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

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

There is a newer version: 1.11.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mesos/v1/mesos.proto

package org.apache.mesos.v1;

public final class Protos {
  private Protos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   **
   * Status is used to indicate the state of the scheduler and executor
   * driver after function calls.
   * 
* * Protobuf enum {@code mesos.v1.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * DRIVER_NOT_STARTED = 1; */ DRIVER_NOT_STARTED(1), /** * DRIVER_RUNNING = 2; */ DRIVER_RUNNING(2), /** * DRIVER_ABORTED = 3; */ DRIVER_ABORTED(3), /** * DRIVER_STOPPED = 4; */ DRIVER_STOPPED(4), ; /** * DRIVER_NOT_STARTED = 1; */ public static final int DRIVER_NOT_STARTED_VALUE = 1; /** * DRIVER_RUNNING = 2; */ public static final int DRIVER_RUNNING_VALUE = 2; /** * DRIVER_ABORTED = 3; */ public static final int DRIVER_ABORTED_VALUE = 3; /** * DRIVER_STOPPED = 4; */ public static final int DRIVER_STOPPED_VALUE = 4; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } public static Status forNumber(int value) { switch (value) { case 1: return DRIVER_NOT_STARTED; case 2: return DRIVER_RUNNING; case 3: return DRIVER_ABORTED; case 4: return DRIVER_STOPPED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Status) } /** *
   **
   * Describes possible task states. IMPORTANT: Mesos assumes tasks that
   * enter terminal states (see below) imply the task is no longer
   * running and thus clean up any thing associated with the task
   * (ultimately offering any resources being consumed by that task to
   * another task).
   * 
* * Protobuf enum {@code mesos.v1.TaskState} */ public enum TaskState implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Initial state. Framework status updates should not use.
     * 
* * TASK_STAGING = 6; */ TASK_STAGING(6), /** *
     * The task is being launched by the executor.
     * 
* * TASK_STARTING = 0; */ TASK_STARTING(0), /** * TASK_RUNNING = 1; */ TASK_RUNNING(1), /** *
     * NOTE: This should only be sent when the framework has
     * the TASK_KILLING_STATE capability.
     * 
* * TASK_KILLING = 8; */ TASK_KILLING(8), /** *
     * The task finished successfully on its own without external interference.
     * 
* * TASK_FINISHED = 2; */ TASK_FINISHED(2), /** *
     * TERMINAL: The task failed to finish successfully.
     * 
* * TASK_FAILED = 3; */ TASK_FAILED(3), /** *
     * TERMINAL: The task was killed by the executor.
     * 
* * TASK_KILLED = 4; */ TASK_KILLED(4), /** *
     * TERMINAL: The task description contains an error.
     * 
* * TASK_ERROR = 7; */ TASK_ERROR(7), /** *
     * In Mesos 1.3, this will only be sent when the framework does NOT
     * opt-in to the PARTITION_AWARE capability.
     * NOTE: This state is not always terminal. For example, tasks might
     * transition from TASK_LOST to TASK_RUNNING or other states when a
     * partitioned agent reregisters.
     * 
* * TASK_LOST = 5; */ TASK_LOST(5), /** *
     * The task failed to launch because of a transient error. The
     * task's executor never started running. Unlike TASK_ERROR, the
     * task description is valid -- attempting to launch the task again
     * may be successful.
     * 
* * TASK_DROPPED = 9; */ TASK_DROPPED(9), /** *
     * The task was running on an agent that has lost contact with the
     * master, typically due to a network failure or partition. The task
     * may or may not still be running.
     * 
* * TASK_UNREACHABLE = 10; */ TASK_UNREACHABLE(10), /** *
     * The task is no longer running. This can occur if the agent has
     * been terminated along with all of its tasks (e.g., the host that
     * was running the agent was rebooted). It might also occur if the
     * task was terminated due to an agent or containerizer error, or if
     * the task was preempted by the QoS controller in an
     * oversubscription scenario.
     * 
* * TASK_GONE = 11; */ TASK_GONE(11), /** *
     * The task was running on an agent that the master cannot contact;
     * the operator has asserted that the agent has been shutdown, but
     * this has not been directly confirmed by the master. If the
     * operator is correct, the task is not running and this is a
     * terminal state; if the operator is mistaken, the task may still
     * be running and might return to RUNNING in the future.
     * 
* * TASK_GONE_BY_OPERATOR = 12; */ TASK_GONE_BY_OPERATOR(12), /** *
     * The master has no knowledge of the task. This is typically
     * because either (a) the master never had knowledge of the task, or
     * (b) the master forgot about the task because it garbage collected
     * its metadata about the task. The task may or may not still be
     * running.
     * 
* * TASK_UNKNOWN = 13; */ TASK_UNKNOWN(13), ; /** *
     * Initial state. Framework status updates should not use.
     * 
* * TASK_STAGING = 6; */ public static final int TASK_STAGING_VALUE = 6; /** *
     * The task is being launched by the executor.
     * 
* * TASK_STARTING = 0; */ public static final int TASK_STARTING_VALUE = 0; /** * TASK_RUNNING = 1; */ public static final int TASK_RUNNING_VALUE = 1; /** *
     * NOTE: This should only be sent when the framework has
     * the TASK_KILLING_STATE capability.
     * 
* * TASK_KILLING = 8; */ public static final int TASK_KILLING_VALUE = 8; /** *
     * The task finished successfully on its own without external interference.
     * 
* * TASK_FINISHED = 2; */ public static final int TASK_FINISHED_VALUE = 2; /** *
     * TERMINAL: The task failed to finish successfully.
     * 
* * TASK_FAILED = 3; */ public static final int TASK_FAILED_VALUE = 3; /** *
     * TERMINAL: The task was killed by the executor.
     * 
* * TASK_KILLED = 4; */ public static final int TASK_KILLED_VALUE = 4; /** *
     * TERMINAL: The task description contains an error.
     * 
* * TASK_ERROR = 7; */ public static final int TASK_ERROR_VALUE = 7; /** *
     * In Mesos 1.3, this will only be sent when the framework does NOT
     * opt-in to the PARTITION_AWARE capability.
     * NOTE: This state is not always terminal. For example, tasks might
     * transition from TASK_LOST to TASK_RUNNING or other states when a
     * partitioned agent reregisters.
     * 
* * TASK_LOST = 5; */ public static final int TASK_LOST_VALUE = 5; /** *
     * The task failed to launch because of a transient error. The
     * task's executor never started running. Unlike TASK_ERROR, the
     * task description is valid -- attempting to launch the task again
     * may be successful.
     * 
* * TASK_DROPPED = 9; */ public static final int TASK_DROPPED_VALUE = 9; /** *
     * The task was running on an agent that has lost contact with the
     * master, typically due to a network failure or partition. The task
     * may or may not still be running.
     * 
* * TASK_UNREACHABLE = 10; */ public static final int TASK_UNREACHABLE_VALUE = 10; /** *
     * The task is no longer running. This can occur if the agent has
     * been terminated along with all of its tasks (e.g., the host that
     * was running the agent was rebooted). It might also occur if the
     * task was terminated due to an agent or containerizer error, or if
     * the task was preempted by the QoS controller in an
     * oversubscription scenario.
     * 
* * TASK_GONE = 11; */ public static final int TASK_GONE_VALUE = 11; /** *
     * The task was running on an agent that the master cannot contact;
     * the operator has asserted that the agent has been shutdown, but
     * this has not been directly confirmed by the master. If the
     * operator is correct, the task is not running and this is a
     * terminal state; if the operator is mistaken, the task may still
     * be running and might return to RUNNING in the future.
     * 
* * TASK_GONE_BY_OPERATOR = 12; */ public static final int TASK_GONE_BY_OPERATOR_VALUE = 12; /** *
     * The master has no knowledge of the task. This is typically
     * because either (a) the master never had knowledge of the task, or
     * (b) the master forgot about the task because it garbage collected
     * its metadata about the task. The task may or may not still be
     * running.
     * 
* * TASK_UNKNOWN = 13; */ public static final int TASK_UNKNOWN_VALUE = 13; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TaskState valueOf(int value) { return forNumber(value); } public static TaskState forNumber(int value) { switch (value) { case 6: return TASK_STAGING; case 0: return TASK_STARTING; case 1: return TASK_RUNNING; case 8: return TASK_KILLING; case 2: return TASK_FINISHED; case 3: return TASK_FAILED; case 4: return TASK_KILLED; case 7: return TASK_ERROR; case 5: return TASK_LOST; case 9: return TASK_DROPPED; case 10: return TASK_UNREACHABLE; case 11: return TASK_GONE; case 12: return TASK_GONE_BY_OPERATOR; case 13: return TASK_UNKNOWN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TaskState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TaskState findValueByNumber(int number) { return TaskState.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.getDescriptor().getEnumTypes().get(1); } private static final TaskState[] VALUES = values(); public static TaskState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private TaskState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.TaskState) } /** *
   **
   * Describes possible operation states.
   * 
* * Protobuf enum {@code mesos.v1.OperationState} */ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Default value if the enum is not set. See MESOS-4997.
     * 
* * OPERATION_UNSUPPORTED = 0; */ OPERATION_UNSUPPORTED(0), /** *
     * Initial state.
     * 
* * OPERATION_PENDING = 1; */ OPERATION_PENDING(1), /** *
     * TERMINAL: The operation was successfully applied.
     * 
* * OPERATION_FINISHED = 2; */ OPERATION_FINISHED(2), /** *
     * TERMINAL: The operation failed to apply.
     * 
* * OPERATION_FAILED = 3; */ OPERATION_FAILED(3), /** *
     * TERMINAL: The operation description contains an error.
     * 
* * OPERATION_ERROR = 4; */ OPERATION_ERROR(4), /** *
     * TERMINAL: The operation was dropped due to a transient error.
     * 
* * OPERATION_DROPPED = 5; */ OPERATION_DROPPED(5), /** *
     * The operation affects an agent that has lost contact with the master,
     * typically due to a network failure or partition. The operation may or may
     * not still be pending.
     * 
* * OPERATION_UNREACHABLE = 6; */ OPERATION_UNREACHABLE(6), /** *
     * The operation affected an agent that the master cannot contact;
     * the operator has asserted that the agent has been shutdown, but this has
     * not been directly confirmed by the master.
     * If the operator is correct, the operation is not pending and this is a
     * terminal state; if the operator is mistaken, the operation may still be
     * pending and might return to a different state in the future.
     * 
* * OPERATION_GONE_BY_OPERATOR = 7; */ OPERATION_GONE_BY_OPERATOR(7), /** *
     * The operation affects an agent that the master recovered from its
     * state, but that agent has not yet re-registered.
     * The operation can transition to `OPERATION_UNREACHABLE` if the
     * corresponding agent is marked as unreachable, and will transition to
     * another status if the agent re-registers.
     * 
* * OPERATION_RECOVERING = 8; */ OPERATION_RECOVERING(8), /** *
     * The master has no knowledge of the operation. This is typically
     * because either (a) the master never had knowledge of the operation, or
     * (b) the master forgot about the operation because it garbage collected
     * its metadata about the operation. The operation may or may not still be
     * pending.
     * 
* * OPERATION_UNKNOWN = 9; */ OPERATION_UNKNOWN(9), ; /** *
     * Default value if the enum is not set. See MESOS-4997.
     * 
* * OPERATION_UNSUPPORTED = 0; */ public static final int OPERATION_UNSUPPORTED_VALUE = 0; /** *
     * Initial state.
     * 
* * OPERATION_PENDING = 1; */ public static final int OPERATION_PENDING_VALUE = 1; /** *
     * TERMINAL: The operation was successfully applied.
     * 
* * OPERATION_FINISHED = 2; */ public static final int OPERATION_FINISHED_VALUE = 2; /** *
     * TERMINAL: The operation failed to apply.
     * 
* * OPERATION_FAILED = 3; */ public static final int OPERATION_FAILED_VALUE = 3; /** *
     * TERMINAL: The operation description contains an error.
     * 
* * OPERATION_ERROR = 4; */ public static final int OPERATION_ERROR_VALUE = 4; /** *
     * TERMINAL: The operation was dropped due to a transient error.
     * 
* * OPERATION_DROPPED = 5; */ public static final int OPERATION_DROPPED_VALUE = 5; /** *
     * The operation affects an agent that has lost contact with the master,
     * typically due to a network failure or partition. The operation may or may
     * not still be pending.
     * 
* * OPERATION_UNREACHABLE = 6; */ public static final int OPERATION_UNREACHABLE_VALUE = 6; /** *
     * The operation affected an agent that the master cannot contact;
     * the operator has asserted that the agent has been shutdown, but this has
     * not been directly confirmed by the master.
     * If the operator is correct, the operation is not pending and this is a
     * terminal state; if the operator is mistaken, the operation may still be
     * pending and might return to a different state in the future.
     * 
* * OPERATION_GONE_BY_OPERATOR = 7; */ public static final int OPERATION_GONE_BY_OPERATOR_VALUE = 7; /** *
     * The operation affects an agent that the master recovered from its
     * state, but that agent has not yet re-registered.
     * The operation can transition to `OPERATION_UNREACHABLE` if the
     * corresponding agent is marked as unreachable, and will transition to
     * another status if the agent re-registers.
     * 
* * OPERATION_RECOVERING = 8; */ public static final int OPERATION_RECOVERING_VALUE = 8; /** *
     * The master has no knowledge of the operation. This is typically
     * because either (a) the master never had knowledge of the operation, or
     * (b) the master forgot about the operation because it garbage collected
     * its metadata about the operation. The operation may or may not still be
     * pending.
     * 
* * OPERATION_UNKNOWN = 9; */ public static final int OPERATION_UNKNOWN_VALUE = 9; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OperationState valueOf(int value) { return forNumber(value); } public static OperationState forNumber(int value) { switch (value) { case 0: return OPERATION_UNSUPPORTED; case 1: return OPERATION_PENDING; case 2: return OPERATION_FINISHED; case 3: return OPERATION_FAILED; case 4: return OPERATION_ERROR; case 5: return OPERATION_DROPPED; case 6: return OPERATION_UNREACHABLE; case 7: return OPERATION_GONE_BY_OPERATOR; case 8: return OPERATION_RECOVERING; case 9: return OPERATION_UNKNOWN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< OperationState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public OperationState findValueByNumber(int number) { return OperationState.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.getDescriptor().getEnumTypes().get(2); } private static final OperationState[] VALUES = values(); public static OperationState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private OperationState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.OperationState) } /** * Protobuf enum {@code mesos.v1.DrainState} */ public enum DrainState implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** *
     * The agent is currently draining.
     * 
* * DRAINING = 1; */ DRAINING(1), /** *
     * The agent has been drained: all tasks have terminated, all terminal
     * task status updates have been acknowledged by the frameworks, and all
     * operations have finished and had their terminal updates acknowledged.
     * 
* * DRAINED = 2; */ DRAINED(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
     * The agent is currently draining.
     * 
* * DRAINING = 1; */ public static final int DRAINING_VALUE = 1; /** *
     * The agent has been drained: all tasks have terminated, all terminal
     * task status updates have been acknowledged by the frameworks, and all
     * operations have finished and had their terminal updates acknowledged.
     * 
* * DRAINED = 2; */ public static final int DRAINED_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DrainState valueOf(int value) { return forNumber(value); } public static DrainState forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return DRAINING; case 2: return DRAINED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DrainState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DrainState findValueByNumber(int number) { return DrainState.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.getDescriptor().getEnumTypes().get(3); } private static final DrainState[] VALUES = values(); public static DrainState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private DrainState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.DrainState) } public interface FrameworkIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.FrameworkID) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * A unique ID assigned to a framework. A framework can reuse this ID
   * in order to do failover (see MesosSchedulerDriver).
   * 
* * Protobuf type {@code mesos.v1.FrameworkID} */ public static final class FrameworkID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.FrameworkID) FrameworkIDOrBuilder { private static final long serialVersionUID = 0L; // Use FrameworkID.newBuilder() to construct. private FrameworkID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FrameworkID() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FrameworkID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.FrameworkID.class, org.apache.mesos.v1.Protos.FrameworkID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.FrameworkID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.FrameworkID other = (org.apache.mesos.v1.Protos.FrameworkID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.FrameworkID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkID 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.Protos.FrameworkID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.FrameworkID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A unique ID assigned to a framework. A framework can reuse this ID
     * in order to do failover (see MesosSchedulerDriver).
     * 
* * Protobuf type {@code mesos.v1.FrameworkID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.FrameworkID) org.apache.mesos.v1.Protos.FrameworkIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.FrameworkID.class, org.apache.mesos.v1.Protos.FrameworkID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.FrameworkID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkID_descriptor; } public org.apache.mesos.v1.Protos.FrameworkID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.FrameworkID build() { org.apache.mesos.v1.Protos.FrameworkID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.FrameworkID buildPartial() { org.apache.mesos.v1.Protos.FrameworkID result = new org.apache.mesos.v1.Protos.FrameworkID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.FrameworkID) { return mergeFrom((org.apache.mesos.v1.Protos.FrameworkID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.FrameworkID other) { if (other == org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.FrameworkID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.FrameworkID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.FrameworkID) } // @@protoc_insertion_point(class_scope:mesos.v1.FrameworkID) private static final org.apache.mesos.v1.Protos.FrameworkID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.FrameworkID(); } public static org.apache.mesos.v1.Protos.FrameworkID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FrameworkID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FrameworkID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.FrameworkID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OfferIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.OfferID) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * A unique ID assigned to an offer.
   * 
* * Protobuf type {@code mesos.v1.OfferID} */ public static final class OfferID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.OfferID) OfferIDOrBuilder { private static final long serialVersionUID = 0L; // Use OfferID.newBuilder() to construct. private OfferID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OfferID() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OfferID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OfferID.class, org.apache.mesos.v1.Protos.OfferID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.OfferID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.OfferID other = (org.apache.mesos.v1.Protos.OfferID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.OfferID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferID 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.Protos.OfferID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.OfferID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A unique ID assigned to an offer.
     * 
* * Protobuf type {@code mesos.v1.OfferID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.OfferID) org.apache.mesos.v1.Protos.OfferIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OfferID.class, org.apache.mesos.v1.Protos.OfferID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.OfferID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferID_descriptor; } public org.apache.mesos.v1.Protos.OfferID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.OfferID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.OfferID build() { org.apache.mesos.v1.Protos.OfferID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.OfferID buildPartial() { org.apache.mesos.v1.Protos.OfferID result = new org.apache.mesos.v1.Protos.OfferID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.OfferID) { return mergeFrom((org.apache.mesos.v1.Protos.OfferID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.OfferID other) { if (other == org.apache.mesos.v1.Protos.OfferID.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.OfferID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.OfferID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.OfferID) } // @@protoc_insertion_point(class_scope:mesos.v1.OfferID) private static final org.apache.mesos.v1.Protos.OfferID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.OfferID(); } public static org.apache.mesos.v1.Protos.OfferID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OfferID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OfferID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.OfferID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AgentIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.AgentID) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * A unique ID assigned to an agent. Currently, an agent gets a new ID
   * whenever it (re)registers with Mesos. Framework writers shouldn't
   * assume any binding between an agent ID and and a hostname.
   * 
* * Protobuf type {@code mesos.v1.AgentID} */ public static final class AgentID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.AgentID) AgentIDOrBuilder { private static final long serialVersionUID = 0L; // Use AgentID.newBuilder() to construct. private AgentID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AgentID() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AgentID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.AgentID.class, org.apache.mesos.v1.Protos.AgentID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.AgentID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.AgentID other = (org.apache.mesos.v1.Protos.AgentID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.AgentID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentID 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.Protos.AgentID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.AgentID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A unique ID assigned to an agent. Currently, an agent gets a new ID
     * whenever it (re)registers with Mesos. Framework writers shouldn't
     * assume any binding between an agent ID and and a hostname.
     * 
* * Protobuf type {@code mesos.v1.AgentID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.AgentID) org.apache.mesos.v1.Protos.AgentIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.AgentID.class, org.apache.mesos.v1.Protos.AgentID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.AgentID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentID_descriptor; } public org.apache.mesos.v1.Protos.AgentID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.AgentID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.AgentID build() { org.apache.mesos.v1.Protos.AgentID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.AgentID buildPartial() { org.apache.mesos.v1.Protos.AgentID result = new org.apache.mesos.v1.Protos.AgentID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.AgentID) { return mergeFrom((org.apache.mesos.v1.Protos.AgentID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.AgentID other) { if (other == org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.AgentID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.AgentID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.AgentID) } // @@protoc_insertion_point(class_scope:mesos.v1.AgentID) private static final org.apache.mesos.v1.Protos.AgentID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.AgentID(); } public static org.apache.mesos.v1.Protos.AgentID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AgentID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AgentID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.AgentID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TaskID) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * A framework-generated ID to distinguish a task. The ID must remain
   * unique while the task is active. A framework can reuse an ID _only_
   * if the previous task with the same ID has reached a terminal state
   * (e.g., TASK_FINISHED, TASK_KILLED, etc.). However, reusing task IDs
   * is strongly discouraged (MESOS-2198).
   * 
* * Protobuf type {@code mesos.v1.TaskID} */ public static final class TaskID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TaskID) TaskIDOrBuilder { private static final long serialVersionUID = 0L; // Use TaskID.newBuilder() to construct. private TaskID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskID() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskID.class, org.apache.mesos.v1.Protos.TaskID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TaskID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TaskID other = (org.apache.mesos.v1.Protos.TaskID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TaskID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskID 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.Protos.TaskID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TaskID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A framework-generated ID to distinguish a task. The ID must remain
     * unique while the task is active. A framework can reuse an ID _only_
     * if the previous task with the same ID has reached a terminal state
     * (e.g., TASK_FINISHED, TASK_KILLED, etc.). However, reusing task IDs
     * is strongly discouraged (MESOS-2198).
     * 
* * Protobuf type {@code mesos.v1.TaskID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TaskID) org.apache.mesos.v1.Protos.TaskIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskID.class, org.apache.mesos.v1.Protos.TaskID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TaskID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskID_descriptor; } public org.apache.mesos.v1.Protos.TaskID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TaskID build() { org.apache.mesos.v1.Protos.TaskID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TaskID buildPartial() { org.apache.mesos.v1.Protos.TaskID result = new org.apache.mesos.v1.Protos.TaskID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TaskID) { return mergeFrom((org.apache.mesos.v1.Protos.TaskID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TaskID other) { if (other == org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.TaskID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TaskID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TaskID) } // @@protoc_insertion_point(class_scope:mesos.v1.TaskID) private static final org.apache.mesos.v1.Protos.TaskID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TaskID(); } public static org.apache.mesos.v1.Protos.TaskID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TaskID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TaskID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecutorIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ExecutorID) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * A framework-generated ID to distinguish an executor. Only one
   * executor with the same ID can be active on the same agent at a
   * time. However, reusing executor IDs is discouraged.
   * 
* * Protobuf type {@code mesos.v1.ExecutorID} */ public static final class ExecutorID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ExecutorID) ExecutorIDOrBuilder { private static final long serialVersionUID = 0L; // Use ExecutorID.newBuilder() to construct. private ExecutorID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecutorID() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExecutorID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ExecutorID.class, org.apache.mesos.v1.Protos.ExecutorID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ExecutorID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ExecutorID other = (org.apache.mesos.v1.Protos.ExecutorID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ExecutorID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ExecutorID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ExecutorID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ExecutorID 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.Protos.ExecutorID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ExecutorID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ExecutorID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ExecutorID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ExecutorID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ExecutorID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ExecutorID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ExecutorID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ExecutorID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A framework-generated ID to distinguish an executor. Only one
     * executor with the same ID can be active on the same agent at a
     * time. However, reusing executor IDs is discouraged.
     * 
* * Protobuf type {@code mesos.v1.ExecutorID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ExecutorID) org.apache.mesos.v1.Protos.ExecutorIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ExecutorID.class, org.apache.mesos.v1.Protos.ExecutorID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ExecutorID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorID_descriptor; } public org.apache.mesos.v1.Protos.ExecutorID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ExecutorID build() { org.apache.mesos.v1.Protos.ExecutorID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ExecutorID buildPartial() { org.apache.mesos.v1.Protos.ExecutorID result = new org.apache.mesos.v1.Protos.ExecutorID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ExecutorID) { return mergeFrom((org.apache.mesos.v1.Protos.ExecutorID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ExecutorID other) { if (other == org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.ExecutorID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ExecutorID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ExecutorID) } // @@protoc_insertion_point(class_scope:mesos.v1.ExecutorID) private static final org.apache.mesos.v1.Protos.ExecutorID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ExecutorID(); } public static org.apache.mesos.v1.Protos.ExecutorID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ExecutorID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExecutorID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ExecutorID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ContainerID) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); /** * optional .mesos.v1.ContainerID parent = 2; */ boolean hasParent(); /** * optional .mesos.v1.ContainerID parent = 2; */ org.apache.mesos.v1.Protos.ContainerID getParent(); /** * optional .mesos.v1.ContainerID parent = 2; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getParentOrBuilder(); } /** *
   **
   * ID used to uniquely identify a container. If the `parent` is not
   * specified, the ID is a UUID generated by the agent to uniquely
   * identify the container of an executor run. If the `parent` field is
   * specified, it represents a nested container.
   * 
* * Protobuf type {@code mesos.v1.ContainerID} */ public static final class ContainerID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ContainerID) ContainerIDOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerID.newBuilder() to construct. private ContainerID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerID() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } case 18: { org.apache.mesos.v1.Protos.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = parent_.toBuilder(); } parent_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(parent_); parent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerID.class, org.apache.mesos.v1.Protos.ContainerID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARENT_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.ContainerID parent_; /** * optional .mesos.v1.ContainerID parent = 2; */ public boolean hasParent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.ContainerID parent = 2; */ public org.apache.mesos.v1.Protos.ContainerID getParent() { return parent_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : parent_; } /** * optional .mesos.v1.ContainerID parent = 2; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getParentOrBuilder() { return parent_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : parent_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } if (hasParent()) { if (!getParent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getParent()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getParent()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ContainerID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ContainerID other = (org.apache.mesos.v1.Protos.ContainerID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && (hasParent() == other.hasParent()); if (hasParent()) { result = result && getParent() .equals(other.getParent()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasParent()) { hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ContainerID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerID 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.Protos.ContainerID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ContainerID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * ID used to uniquely identify a container. If the `parent` is not
     * specified, the ID is a UUID generated by the agent to uniquely
     * identify the container of an executor run. If the `parent` field is
     * specified, it represents a nested container.
     * 
* * Protobuf type {@code mesos.v1.ContainerID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ContainerID) org.apache.mesos.v1.Protos.ContainerIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerID.class, org.apache.mesos.v1.Protos.ContainerID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ContainerID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParentFieldBuilder(); } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (parentBuilder_ == null) { parent_ = null; } else { parentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerID_descriptor; } public org.apache.mesos.v1.Protos.ContainerID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ContainerID build() { org.apache.mesos.v1.Protos.ContainerID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ContainerID buildPartial() { org.apache.mesos.v1.Protos.ContainerID result = new org.apache.mesos.v1.Protos.ContainerID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (parentBuilder_ == null) { result.parent_ = parent_; } else { result.parent_ = parentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ContainerID) { return mergeFrom((org.apache.mesos.v1.Protos.ContainerID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ContainerID other) { if (other == org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } if (other.hasParent()) { mergeParent(other.getParent()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { return false; } if (hasParent()) { if (!getParent().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.Protos.ContainerID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ContainerID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.ContainerID parent_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder> parentBuilder_; /** * optional .mesos.v1.ContainerID parent = 2; */ public boolean hasParent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.ContainerID parent = 2; */ public org.apache.mesos.v1.Protos.ContainerID getParent() { if (parentBuilder_ == null) { return parent_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : parent_; } else { return parentBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerID parent = 2; */ public Builder setParent(org.apache.mesos.v1.Protos.ContainerID value) { if (parentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parent_ = value; onChanged(); } else { parentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.ContainerID parent = 2; */ public Builder setParent( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (parentBuilder_ == null) { parent_ = builderForValue.build(); onChanged(); } else { parentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.ContainerID parent = 2; */ public Builder mergeParent(org.apache.mesos.v1.Protos.ContainerID value) { if (parentBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && parent_ != null && parent_ != org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance()) { parent_ = org.apache.mesos.v1.Protos.ContainerID.newBuilder(parent_).mergeFrom(value).buildPartial(); } else { parent_ = value; } onChanged(); } else { parentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.ContainerID parent = 2; */ public Builder clearParent() { if (parentBuilder_ == null) { parent_ = null; onChanged(); } else { parentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.ContainerID parent = 2; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getParentBuilder() { bitField0_ |= 0x00000002; onChanged(); return getParentFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerID parent = 2; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getParentOrBuilder() { if (parentBuilder_ != null) { return parentBuilder_.getMessageOrBuilder(); } else { return parent_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : parent_; } } /** * optional .mesos.v1.ContainerID parent = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder> getParentFieldBuilder() { if (parentBuilder_ == null) { parentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder>( getParent(), getParentForChildren(), isClean()); parent_ = null; } return parentBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ContainerID) } // @@protoc_insertion_point(class_scope:mesos.v1.ContainerID) private static final org.apache.mesos.v1.Protos.ContainerID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ContainerID(); } public static org.apache.mesos.v1.Protos.ContainerID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ContainerID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ContainerID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceProviderIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ResourceProviderID) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * A unique ID assigned to a resource provider. Currently, a resource
   * provider gets a new ID whenever it (re)registers with Mesos.
   * 
* * Protobuf type {@code mesos.v1.ResourceProviderID} */ public static final class ResourceProviderID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ResourceProviderID) ResourceProviderIDOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceProviderID.newBuilder() to construct. private ResourceProviderID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceProviderID() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceProviderID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceProviderID.class, org.apache.mesos.v1.Protos.ResourceProviderID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ResourceProviderID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ResourceProviderID other = (org.apache.mesos.v1.Protos.ResourceProviderID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ResourceProviderID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderID 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.Protos.ResourceProviderID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ResourceProviderID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A unique ID assigned to a resource provider. Currently, a resource
     * provider gets a new ID whenever it (re)registers with Mesos.
     * 
* * Protobuf type {@code mesos.v1.ResourceProviderID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ResourceProviderID) org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceProviderID.class, org.apache.mesos.v1.Protos.ResourceProviderID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ResourceProviderID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderID_descriptor; } public org.apache.mesos.v1.Protos.ResourceProviderID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ResourceProviderID build() { org.apache.mesos.v1.Protos.ResourceProviderID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ResourceProviderID buildPartial() { org.apache.mesos.v1.Protos.ResourceProviderID result = new org.apache.mesos.v1.Protos.ResourceProviderID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ResourceProviderID) { return mergeFrom((org.apache.mesos.v1.Protos.ResourceProviderID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ResourceProviderID other) { if (other == org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.ResourceProviderID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ResourceProviderID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ResourceProviderID) } // @@protoc_insertion_point(class_scope:mesos.v1.ResourceProviderID) private static final org.apache.mesos.v1.Protos.ResourceProviderID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ResourceProviderID(); } public static org.apache.mesos.v1.Protos.ResourceProviderID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResourceProviderID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceProviderID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ResourceProviderID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperationIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.OperationID) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * A framework-generated ID to distinguish an operation. The ID
   * must be unique within the framework.
   * 
* * Protobuf type {@code mesos.v1.OperationID} */ public static final class OperationID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.OperationID) OperationIDOrBuilder { private static final long serialVersionUID = 0L; // Use OperationID.newBuilder() to construct. private OperationID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OperationID() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OperationID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OperationID.class, org.apache.mesos.v1.Protos.OperationID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.OperationID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.OperationID other = (org.apache.mesos.v1.Protos.OperationID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.OperationID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OperationID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OperationID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OperationID 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.Protos.OperationID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OperationID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OperationID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OperationID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OperationID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OperationID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OperationID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OperationID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.OperationID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A framework-generated ID to distinguish an operation. The ID
     * must be unique within the framework.
     * 
* * Protobuf type {@code mesos.v1.OperationID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.OperationID) org.apache.mesos.v1.Protos.OperationIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OperationID.class, org.apache.mesos.v1.Protos.OperationID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.OperationID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationID_descriptor; } public org.apache.mesos.v1.Protos.OperationID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.OperationID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.OperationID build() { org.apache.mesos.v1.Protos.OperationID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.OperationID buildPartial() { org.apache.mesos.v1.Protos.OperationID result = new org.apache.mesos.v1.Protos.OperationID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.OperationID) { return mergeFrom((org.apache.mesos.v1.Protos.OperationID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.OperationID other) { if (other == org.apache.mesos.v1.Protos.OperationID.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.OperationID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.OperationID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.OperationID) } // @@protoc_insertion_point(class_scope:mesos.v1.OperationID) private static final org.apache.mesos.v1.Protos.OperationID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.OperationID(); } public static org.apache.mesos.v1.Protos.OperationID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OperationID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OperationID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.OperationID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TimeInfo) com.google.protobuf.MessageOrBuilder { /** * required int64 nanoseconds = 1; */ boolean hasNanoseconds(); /** * required int64 nanoseconds = 1; */ long getNanoseconds(); } /** *
   **
   * Represents time since the epoch, in nanoseconds.
   * 
* * Protobuf type {@code mesos.v1.TimeInfo} */ public static final class TimeInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TimeInfo) TimeInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TimeInfo.newBuilder() to construct. private TimeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeInfo() { nanoseconds_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TimeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; nanoseconds_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TimeInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TimeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TimeInfo.class, org.apache.mesos.v1.Protos.TimeInfo.Builder.class); } private int bitField0_; public static final int NANOSECONDS_FIELD_NUMBER = 1; private long nanoseconds_; /** * required int64 nanoseconds = 1; */ public boolean hasNanoseconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 nanoseconds = 1; */ public long getNanoseconds() { return nanoseconds_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasNanoseconds()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, nanoseconds_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, nanoseconds_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TimeInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TimeInfo other = (org.apache.mesos.v1.Protos.TimeInfo) obj; boolean result = true; result = result && (hasNanoseconds() == other.hasNanoseconds()); if (hasNanoseconds()) { result = result && (getNanoseconds() == other.getNanoseconds()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNanoseconds()) { hash = (37 * hash) + NANOSECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNanoseconds()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TimeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TimeInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TimeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TimeInfo 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.Protos.TimeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TimeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TimeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TimeInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TimeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TimeInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TimeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TimeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TimeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Represents time since the epoch, in nanoseconds.
     * 
* * Protobuf type {@code mesos.v1.TimeInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TimeInfo) org.apache.mesos.v1.Protos.TimeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TimeInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TimeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TimeInfo.class, org.apache.mesos.v1.Protos.TimeInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TimeInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); nanoseconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TimeInfo_descriptor; } public org.apache.mesos.v1.Protos.TimeInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TimeInfo build() { org.apache.mesos.v1.Protos.TimeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TimeInfo buildPartial() { org.apache.mesos.v1.Protos.TimeInfo result = new org.apache.mesos.v1.Protos.TimeInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.nanoseconds_ = nanoseconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TimeInfo) { return mergeFrom((org.apache.mesos.v1.Protos.TimeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TimeInfo other) { if (other == org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance()) return this; if (other.hasNanoseconds()) { setNanoseconds(other.getNanoseconds()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasNanoseconds()) { 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.Protos.TimeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TimeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long nanoseconds_ ; /** * required int64 nanoseconds = 1; */ public boolean hasNanoseconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 nanoseconds = 1; */ public long getNanoseconds() { return nanoseconds_; } /** * required int64 nanoseconds = 1; */ public Builder setNanoseconds(long value) { bitField0_ |= 0x00000001; nanoseconds_ = value; onChanged(); return this; } /** * required int64 nanoseconds = 1; */ public Builder clearNanoseconds() { bitField0_ = (bitField0_ & ~0x00000001); nanoseconds_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TimeInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.TimeInfo) private static final org.apache.mesos.v1.Protos.TimeInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TimeInfo(); } public static org.apache.mesos.v1.Protos.TimeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TimeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimeInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TimeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DurationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.DurationInfo) com.google.protobuf.MessageOrBuilder { /** * required int64 nanoseconds = 1; */ boolean hasNanoseconds(); /** * required int64 nanoseconds = 1; */ long getNanoseconds(); } /** *
   **
   * Represents duration in nanoseconds.
   * 
* * Protobuf type {@code mesos.v1.DurationInfo} */ public static final class DurationInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.DurationInfo) DurationInfoOrBuilder { private static final long serialVersionUID = 0L; // Use DurationInfo.newBuilder() to construct. private DurationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DurationInfo() { nanoseconds_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DurationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; nanoseconds_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DurationInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DurationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DurationInfo.class, org.apache.mesos.v1.Protos.DurationInfo.Builder.class); } private int bitField0_; public static final int NANOSECONDS_FIELD_NUMBER = 1; private long nanoseconds_; /** * required int64 nanoseconds = 1; */ public boolean hasNanoseconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 nanoseconds = 1; */ public long getNanoseconds() { return nanoseconds_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasNanoseconds()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, nanoseconds_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, nanoseconds_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.DurationInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.DurationInfo other = (org.apache.mesos.v1.Protos.DurationInfo) obj; boolean result = true; result = result && (hasNanoseconds() == other.hasNanoseconds()); if (hasNanoseconds()) { result = result && (getNanoseconds() == other.getNanoseconds()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNanoseconds()) { hash = (37 * hash) + NANOSECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNanoseconds()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.DurationInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DurationInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DurationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DurationInfo 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.Protos.DurationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DurationInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DurationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DurationInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DurationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DurationInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DurationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DurationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.DurationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Represents duration in nanoseconds.
     * 
* * Protobuf type {@code mesos.v1.DurationInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.DurationInfo) org.apache.mesos.v1.Protos.DurationInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DurationInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DurationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DurationInfo.class, org.apache.mesos.v1.Protos.DurationInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.DurationInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); nanoseconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DurationInfo_descriptor; } public org.apache.mesos.v1.Protos.DurationInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.DurationInfo build() { org.apache.mesos.v1.Protos.DurationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.DurationInfo buildPartial() { org.apache.mesos.v1.Protos.DurationInfo result = new org.apache.mesos.v1.Protos.DurationInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.nanoseconds_ = nanoseconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.DurationInfo) { return mergeFrom((org.apache.mesos.v1.Protos.DurationInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.DurationInfo other) { if (other == org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance()) return this; if (other.hasNanoseconds()) { setNanoseconds(other.getNanoseconds()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasNanoseconds()) { 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.Protos.DurationInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.DurationInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long nanoseconds_ ; /** * required int64 nanoseconds = 1; */ public boolean hasNanoseconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 nanoseconds = 1; */ public long getNanoseconds() { return nanoseconds_; } /** * required int64 nanoseconds = 1; */ public Builder setNanoseconds(long value) { bitField0_ |= 0x00000001; nanoseconds_ = value; onChanged(); return this; } /** * required int64 nanoseconds = 1; */ public Builder clearNanoseconds() { bitField0_ = (bitField0_ & ~0x00000001); nanoseconds_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.DurationInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.DurationInfo) private static final org.apache.mesos.v1.Protos.DurationInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.DurationInfo(); } public static org.apache.mesos.v1.Protos.DurationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DurationInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DurationInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.DurationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddressOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Address) com.google.protobuf.MessageOrBuilder { /** *
     * May contain a hostname, IP address, or both.
     * 
* * optional string hostname = 1; */ boolean hasHostname(); /** *
     * May contain a hostname, IP address, or both.
     * 
* * optional string hostname = 1; */ java.lang.String getHostname(); /** *
     * May contain a hostname, IP address, or both.
     * 
* * optional string hostname = 1; */ com.google.protobuf.ByteString getHostnameBytes(); /** * optional string ip = 2; */ boolean hasIp(); /** * optional string ip = 2; */ java.lang.String getIp(); /** * optional string ip = 2; */ com.google.protobuf.ByteString getIpBytes(); /** * required int32 port = 3; */ boolean hasPort(); /** * required int32 port = 3; */ int getPort(); } /** *
   **
   * A network address.
   * TODO(bmahler): Use this more widely.
   * 
* * Protobuf type {@code mesos.v1.Address} */ public static final class Address extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Address) AddressOrBuilder { private static final long serialVersionUID = 0L; // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Address() { hostname_ = ""; ip_ = ""; port_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Address( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; hostname_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; ip_ = bs; break; } case 24: { bitField0_ |= 0x00000004; port_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Address_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Address.class, org.apache.mesos.v1.Protos.Address.Builder.class); } private int bitField0_; public static final int HOSTNAME_FIELD_NUMBER = 1; private volatile java.lang.Object hostname_; /** *
     * May contain a hostname, IP address, or both.
     * 
* * optional string hostname = 1; */ public boolean hasHostname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * May contain a hostname, IP address, or both.
     * 
* * optional string hostname = 1; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** *
     * May contain a hostname, IP address, or both.
     * 
* * optional string hostname = 1; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IP_FIELD_NUMBER = 2; private volatile java.lang.Object ip_; /** * optional string ip = 2; */ public boolean hasIp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string ip = 2; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } } /** * optional string ip = 2; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 3; private int port_; /** * required int32 port = 3; */ public boolean hasPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 port = 3; */ public int getPort() { return port_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPort()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, port_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, port_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Address)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Address other = (org.apache.mesos.v1.Protos.Address) obj; boolean result = true; result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname() .equals(other.getHostname()); } result = result && (hasIp() == other.hasIp()); if (hasIp()) { result = result && getIp() .equals(other.getIp()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasIp()) { hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Address parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Address parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Address 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.Protos.Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Address parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Address parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Address parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Address parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Address parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Address parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Address parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Address prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A network address.
     * TODO(bmahler): Use this more widely.
     * 
* * Protobuf type {@code mesos.v1.Address} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Address) org.apache.mesos.v1.Protos.AddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Address_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Address.class, org.apache.mesos.v1.Protos.Address.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Address.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000001); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000002); port_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Address_descriptor; } public org.apache.mesos.v1.Protos.Address getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Address.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Address build() { org.apache.mesos.v1.Protos.Address result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Address buildPartial() { org.apache.mesos.v1.Protos.Address result = new org.apache.mesos.v1.Protos.Address(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.ip_ = ip_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.port_ = port_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Address) { return mergeFrom((org.apache.mesos.v1.Protos.Address)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Address other) { if (other == org.apache.mesos.v1.Protos.Address.getDefaultInstance()) return this; if (other.hasHostname()) { bitField0_ |= 0x00000001; hostname_ = other.hostname_; onChanged(); } if (other.hasIp()) { bitField0_ |= 0x00000002; ip_ = other.ip_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPort()) { 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.Protos.Address parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Address) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object hostname_ = ""; /** *
       * May contain a hostname, IP address, or both.
       * 
* * optional string hostname = 1; */ public boolean hasHostname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * May contain a hostname, IP address, or both.
       * 
* * optional string hostname = 1; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * May contain a hostname, IP address, or both.
       * 
* * optional string hostname = 1; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * May contain a hostname, IP address, or both.
       * 
* * optional string hostname = 1; */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; hostname_ = value; onChanged(); return this; } /** *
       * May contain a hostname, IP address, or both.
       * 
* * optional string hostname = 1; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000001); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** *
       * May contain a hostname, IP address, or both.
       * 
* * optional string hostname = 1; */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; hostname_ = value; onChanged(); return this; } private java.lang.Object ip_ = ""; /** * optional string ip = 2; */ public boolean hasIp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string ip = 2; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string ip = 2; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string ip = 2; */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; ip_ = value; onChanged(); return this; } /** * optional string ip = 2; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000002); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * optional string ip = 2; */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; ip_ = value; onChanged(); return this; } private int port_ ; /** * required int32 port = 3; */ public boolean hasPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 port = 3; */ public int getPort() { return port_; } /** * required int32 port = 3; */ public Builder setPort(int value) { bitField0_ |= 0x00000004; port_ = value; onChanged(); return this; } /** * required int32 port = 3; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000004); port_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Address) } // @@protoc_insertion_point(class_scope:mesos.v1.Address) private static final org.apache.mesos.v1.Protos.Address DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Address(); } public static org.apache.mesos.v1.Protos.Address getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { public Address parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Address(input, extensionRegistry); } }; public static com.google.protobuf.Parser
parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser
getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Address getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface URLOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.URL) com.google.protobuf.MessageOrBuilder { /** * required string scheme = 1; */ boolean hasScheme(); /** * required string scheme = 1; */ java.lang.String getScheme(); /** * required string scheme = 1; */ com.google.protobuf.ByteString getSchemeBytes(); /** * required .mesos.v1.Address address = 2; */ boolean hasAddress(); /** * required .mesos.v1.Address address = 2; */ org.apache.mesos.v1.Protos.Address getAddress(); /** * required .mesos.v1.Address address = 2; */ org.apache.mesos.v1.Protos.AddressOrBuilder getAddressOrBuilder(); /** * optional string path = 3; */ boolean hasPath(); /** * optional string path = 3; */ java.lang.String getPath(); /** * optional string path = 3; */ com.google.protobuf.ByteString getPathBytes(); /** * repeated .mesos.v1.Parameter query = 4; */ java.util.List getQueryList(); /** * repeated .mesos.v1.Parameter query = 4; */ org.apache.mesos.v1.Protos.Parameter getQuery(int index); /** * repeated .mesos.v1.Parameter query = 4; */ int getQueryCount(); /** * repeated .mesos.v1.Parameter query = 4; */ java.util.List getQueryOrBuilderList(); /** * repeated .mesos.v1.Parameter query = 4; */ org.apache.mesos.v1.Protos.ParameterOrBuilder getQueryOrBuilder( int index); /** * optional string fragment = 5; */ boolean hasFragment(); /** * optional string fragment = 5; */ java.lang.String getFragment(); /** * optional string fragment = 5; */ com.google.protobuf.ByteString getFragmentBytes(); } /** *
   **
   * Represents a URL.
   * 
* * Protobuf type {@code mesos.v1.URL} */ public static final class URL extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.URL) URLOrBuilder { private static final long serialVersionUID = 0L; // Use URL.newBuilder() to construct. private URL(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private URL() { scheme_ = ""; path_ = ""; query_ = java.util.Collections.emptyList(); fragment_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private URL( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; scheme_ = bs; break; } case 18: { org.apache.mesos.v1.Protos.Address.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = address_.toBuilder(); } address_ = input.readMessage(org.apache.mesos.v1.Protos.Address.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(address_); address_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; path_ = bs; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { query_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } query_.add( input.readMessage(org.apache.mesos.v1.Protos.Parameter.PARSER, extensionRegistry)); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; fragment_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { query_ = java.util.Collections.unmodifiableList(query_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_URL_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_URL_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.URL.class, org.apache.mesos.v1.Protos.URL.Builder.class); } private int bitField0_; public static final int SCHEME_FIELD_NUMBER = 1; private volatile java.lang.Object scheme_; /** * required string scheme = 1; */ public boolean hasScheme() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string scheme = 1; */ public java.lang.String getScheme() { java.lang.Object ref = scheme_; 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()) { scheme_ = s; } return s; } } /** * required string scheme = 1; */ public com.google.protobuf.ByteString getSchemeBytes() { java.lang.Object ref = scheme_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scheme_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Address address_; /** * required .mesos.v1.Address address = 2; */ public boolean hasAddress() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.Address address = 2; */ public org.apache.mesos.v1.Protos.Address getAddress() { return address_ == null ? org.apache.mesos.v1.Protos.Address.getDefaultInstance() : address_; } /** * required .mesos.v1.Address address = 2; */ public org.apache.mesos.v1.Protos.AddressOrBuilder getAddressOrBuilder() { return address_ == null ? org.apache.mesos.v1.Protos.Address.getDefaultInstance() : address_; } public static final int PATH_FIELD_NUMBER = 3; private volatile java.lang.Object path_; /** * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string path = 3; */ 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; } } /** * optional string path = 3; */ 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 QUERY_FIELD_NUMBER = 4; private java.util.List query_; /** * repeated .mesos.v1.Parameter query = 4; */ public java.util.List getQueryList() { return query_; } /** * repeated .mesos.v1.Parameter query = 4; */ public java.util.List getQueryOrBuilderList() { return query_; } /** * repeated .mesos.v1.Parameter query = 4; */ public int getQueryCount() { return query_.size(); } /** * repeated .mesos.v1.Parameter query = 4; */ public org.apache.mesos.v1.Protos.Parameter getQuery(int index) { return query_.get(index); } /** * repeated .mesos.v1.Parameter query = 4; */ public org.apache.mesos.v1.Protos.ParameterOrBuilder getQueryOrBuilder( int index) { return query_.get(index); } public static final int FRAGMENT_FIELD_NUMBER = 5; private volatile java.lang.Object fragment_; /** * optional string fragment = 5; */ public boolean hasFragment() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string fragment = 5; */ public java.lang.String getFragment() { java.lang.Object ref = fragment_; 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()) { fragment_ = s; } return s; } } /** * optional string fragment = 5; */ public com.google.protobuf.ByteString getFragmentBytes() { java.lang.Object ref = fragment_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fragment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasScheme()) { memoizedIsInitialized = 0; return false; } if (!hasAddress()) { memoizedIsInitialized = 0; return false; } if (!getAddress().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getQueryCount(); i++) { if (!getQuery(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheme_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getAddress()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); } for (int i = 0; i < query_.size(); i++) { output.writeMessage(4, query_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fragment_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheme_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAddress()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } for (int i = 0; i < query_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, query_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fragment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.URL)) { return super.equals(obj); } org.apache.mesos.v1.Protos.URL other = (org.apache.mesos.v1.Protos.URL) obj; boolean result = true; result = result && (hasScheme() == other.hasScheme()); if (hasScheme()) { result = result && getScheme() .equals(other.getScheme()); } result = result && (hasAddress() == other.hasAddress()); if (hasAddress()) { result = result && getAddress() .equals(other.getAddress()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); } result = result && getQueryList() .equals(other.getQueryList()); result = result && (hasFragment() == other.hasFragment()); if (hasFragment()) { result = result && getFragment() .equals(other.getFragment()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasScheme()) { hash = (37 * hash) + SCHEME_FIELD_NUMBER; hash = (53 * hash) + getScheme().hashCode(); } if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (getQueryCount() > 0) { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQueryList().hashCode(); } if (hasFragment()) { hash = (37 * hash) + FRAGMENT_FIELD_NUMBER; hash = (53 * hash) + getFragment().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.URL parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.URL parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.URL parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.URL 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.Protos.URL parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.URL parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.URL parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.URL parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.URL parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.URL parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.URL parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.URL parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.URL prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Represents a URL.
     * 
* * Protobuf type {@code mesos.v1.URL} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.URL) org.apache.mesos.v1.Protos.URLOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_URL_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_URL_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.URL.class, org.apache.mesos.v1.Protos.URL.Builder.class); } // Construct using org.apache.mesos.v1.Protos.URL.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAddressFieldBuilder(); getQueryFieldBuilder(); } } public Builder clear() { super.clear(); scheme_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (addressBuilder_ == null) { address_ = null; } else { addressBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); path_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (queryBuilder_ == null) { query_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { queryBuilder_.clear(); } fragment_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_URL_descriptor; } public org.apache.mesos.v1.Protos.URL getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.URL.getDefaultInstance(); } public org.apache.mesos.v1.Protos.URL build() { org.apache.mesos.v1.Protos.URL result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.URL buildPartial() { org.apache.mesos.v1.Protos.URL result = new org.apache.mesos.v1.Protos.URL(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.scheme_ = scheme_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (addressBuilder_ == null) { result.address_ = address_; } else { result.address_ = addressBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.path_ = path_; if (queryBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { query_ = java.util.Collections.unmodifiableList(query_); bitField0_ = (bitField0_ & ~0x00000008); } result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.fragment_ = fragment_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.URL) { return mergeFrom((org.apache.mesos.v1.Protos.URL)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.URL other) { if (other == org.apache.mesos.v1.Protos.URL.getDefaultInstance()) return this; if (other.hasScheme()) { bitField0_ |= 0x00000001; scheme_ = other.scheme_; onChanged(); } if (other.hasAddress()) { mergeAddress(other.getAddress()); } if (other.hasPath()) { bitField0_ |= 0x00000004; path_ = other.path_; onChanged(); } if (queryBuilder_ == null) { if (!other.query_.isEmpty()) { if (query_.isEmpty()) { query_ = other.query_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureQueryIsMutable(); query_.addAll(other.query_); } onChanged(); } } else { if (!other.query_.isEmpty()) { if (queryBuilder_.isEmpty()) { queryBuilder_.dispose(); queryBuilder_ = null; query_ = other.query_; bitField0_ = (bitField0_ & ~0x00000008); queryBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueryFieldBuilder() : null; } else { queryBuilder_.addAllMessages(other.query_); } } } if (other.hasFragment()) { bitField0_ |= 0x00000010; fragment_ = other.fragment_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasScheme()) { return false; } if (!hasAddress()) { return false; } if (!getAddress().isInitialized()) { return false; } for (int i = 0; i < getQueryCount(); i++) { if (!getQuery(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.Protos.URL parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.URL) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object scheme_ = ""; /** * required string scheme = 1; */ public boolean hasScheme() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string scheme = 1; */ public java.lang.String getScheme() { java.lang.Object ref = scheme_; 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()) { scheme_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string scheme = 1; */ public com.google.protobuf.ByteString getSchemeBytes() { java.lang.Object ref = scheme_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scheme_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string scheme = 1; */ public Builder setScheme( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; scheme_ = value; onChanged(); return this; } /** * required string scheme = 1; */ public Builder clearScheme() { bitField0_ = (bitField0_ & ~0x00000001); scheme_ = getDefaultInstance().getScheme(); onChanged(); return this; } /** * required string scheme = 1; */ public Builder setSchemeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; scheme_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Address address_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Address, org.apache.mesos.v1.Protos.Address.Builder, org.apache.mesos.v1.Protos.AddressOrBuilder> addressBuilder_; /** * required .mesos.v1.Address address = 2; */ public boolean hasAddress() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.Address address = 2; */ public org.apache.mesos.v1.Protos.Address getAddress() { if (addressBuilder_ == null) { return address_ == null ? org.apache.mesos.v1.Protos.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** * required .mesos.v1.Address address = 2; */ public Builder setAddress(org.apache.mesos.v1.Protos.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.Address address = 2; */ public Builder setAddress( org.apache.mesos.v1.Protos.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.Address address = 2; */ public Builder mergeAddress(org.apache.mesos.v1.Protos.Address value) { if (addressBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && address_ != null && address_ != org.apache.mesos.v1.Protos.Address.getDefaultInstance()) { address_ = org.apache.mesos.v1.Protos.Address.newBuilder(address_).mergeFrom(value).buildPartial(); } else { address_ = value; } onChanged(); } else { addressBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.Address address = 2; */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = null; onChanged(); } else { addressBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.Address address = 2; */ public org.apache.mesos.v1.Protos.Address.Builder getAddressBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAddressFieldBuilder().getBuilder(); } /** * required .mesos.v1.Address address = 2; */ public org.apache.mesos.v1.Protos.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? org.apache.mesos.v1.Protos.Address.getDefaultInstance() : address_; } } /** * required .mesos.v1.Address address = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Address, org.apache.mesos.v1.Protos.Address.Builder, org.apache.mesos.v1.Protos.AddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Address, org.apache.mesos.v1.Protos.Address.Builder, org.apache.mesos.v1.Protos.AddressOrBuilder>( getAddress(), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } private java.lang.Object path_ = ""; /** * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string path = 3; */ 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; } } /** * optional string path = 3; */ 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; } } /** * optional string path = 3; */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } /** * optional string path = 3; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000004); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * optional string path = 3; */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } private java.util.List query_ = java.util.Collections.emptyList(); private void ensureQueryIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { query_ = new java.util.ArrayList(query_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder> queryBuilder_; /** * repeated .mesos.v1.Parameter query = 4; */ public java.util.List getQueryList() { if (queryBuilder_ == null) { return java.util.Collections.unmodifiableList(query_); } else { return queryBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Parameter query = 4; */ public int getQueryCount() { if (queryBuilder_ == null) { return query_.size(); } else { return queryBuilder_.getCount(); } } /** * repeated .mesos.v1.Parameter query = 4; */ public org.apache.mesos.v1.Protos.Parameter getQuery(int index) { if (queryBuilder_ == null) { return query_.get(index); } else { return queryBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder setQuery( int index, org.apache.mesos.v1.Protos.Parameter value) { if (queryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryIsMutable(); query_.set(index, value); onChanged(); } else { queryBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder setQuery( int index, org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (queryBuilder_ == null) { ensureQueryIsMutable(); query_.set(index, builderForValue.build()); onChanged(); } else { queryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder addQuery(org.apache.mesos.v1.Protos.Parameter value) { if (queryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryIsMutable(); query_.add(value); onChanged(); } else { queryBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder addQuery( int index, org.apache.mesos.v1.Protos.Parameter value) { if (queryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryIsMutable(); query_.add(index, value); onChanged(); } else { queryBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder addQuery( org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (queryBuilder_ == null) { ensureQueryIsMutable(); query_.add(builderForValue.build()); onChanged(); } else { queryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder addQuery( int index, org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (queryBuilder_ == null) { ensureQueryIsMutable(); query_.add(index, builderForValue.build()); onChanged(); } else { queryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder addAllQuery( java.lang.Iterable values) { if (queryBuilder_ == null) { ensureQueryIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, query_); onChanged(); } else { queryBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder clearQuery() { if (queryBuilder_ == null) { query_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { queryBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public Builder removeQuery(int index) { if (queryBuilder_ == null) { ensureQueryIsMutable(); query_.remove(index); onChanged(); } else { queryBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Parameter query = 4; */ public org.apache.mesos.v1.Protos.Parameter.Builder getQueryBuilder( int index) { return getQueryFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Parameter query = 4; */ public org.apache.mesos.v1.Protos.ParameterOrBuilder getQueryOrBuilder( int index) { if (queryBuilder_ == null) { return query_.get(index); } else { return queryBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Parameter query = 4; */ public java.util.List getQueryOrBuilderList() { if (queryBuilder_ != null) { return queryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(query_); } } /** * repeated .mesos.v1.Parameter query = 4; */ public org.apache.mesos.v1.Protos.Parameter.Builder addQueryBuilder() { return getQueryFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Parameter.getDefaultInstance()); } /** * repeated .mesos.v1.Parameter query = 4; */ public org.apache.mesos.v1.Protos.Parameter.Builder addQueryBuilder( int index) { return getQueryFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Parameter.getDefaultInstance()); } /** * repeated .mesos.v1.Parameter query = 4; */ public java.util.List getQueryBuilderList() { return getQueryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { queryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder>( query_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); query_ = null; } return queryBuilder_; } private java.lang.Object fragment_ = ""; /** * optional string fragment = 5; */ public boolean hasFragment() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string fragment = 5; */ public java.lang.String getFragment() { java.lang.Object ref = fragment_; 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()) { fragment_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string fragment = 5; */ public com.google.protobuf.ByteString getFragmentBytes() { java.lang.Object ref = fragment_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fragment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string fragment = 5; */ public Builder setFragment( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; fragment_ = value; onChanged(); return this; } /** * optional string fragment = 5; */ public Builder clearFragment() { bitField0_ = (bitField0_ & ~0x00000010); fragment_ = getDefaultInstance().getFragment(); onChanged(); return this; } /** * optional string fragment = 5; */ public Builder setFragmentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; fragment_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.URL) } // @@protoc_insertion_point(class_scope:mesos.v1.URL) private static final org.apache.mesos.v1.Protos.URL DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.URL(); } public static org.apache.mesos.v1.Protos.URL getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public URL parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new URL(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.URL getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnavailabilityOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Unavailability) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.TimeInfo start = 1; */ boolean hasStart(); /** * required .mesos.v1.TimeInfo start = 1; */ org.apache.mesos.v1.Protos.TimeInfo getStart(); /** * required .mesos.v1.TimeInfo start = 1; */ org.apache.mesos.v1.Protos.TimeInfoOrBuilder getStartOrBuilder(); /** *
     * When added to `start`, this represents the end of the interval.
     * If unspecified, the duration is assumed to be infinite.
     * 
* * optional .mesos.v1.DurationInfo duration = 2; */ boolean hasDuration(); /** *
     * When added to `start`, this represents the end of the interval.
     * If unspecified, the duration is assumed to be infinite.
     * 
* * optional .mesos.v1.DurationInfo duration = 2; */ org.apache.mesos.v1.Protos.DurationInfo getDuration(); /** *
     * When added to `start`, this represents the end of the interval.
     * If unspecified, the duration is assumed to be infinite.
     * 
* * optional .mesos.v1.DurationInfo duration = 2; */ org.apache.mesos.v1.Protos.DurationInfoOrBuilder getDurationOrBuilder(); } /** *
   **
   * Represents an interval, from a given start time over a given duration.
   * This interval pertains to an unavailability event, such as maintenance,
   * and is not a generic interval.
   * 
* * Protobuf type {@code mesos.v1.Unavailability} */ public static final class Unavailability extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Unavailability) UnavailabilityOrBuilder { private static final long serialVersionUID = 0L; // Use Unavailability.newBuilder() to construct. private Unavailability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Unavailability() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Unavailability( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.TimeInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = start_.toBuilder(); } start_ = input.readMessage(org.apache.mesos.v1.Protos.TimeInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(start_); start_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Unavailability_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Unavailability_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Unavailability.class, org.apache.mesos.v1.Protos.Unavailability.Builder.class); } private int bitField0_; public static final int START_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.TimeInfo start_; /** * required .mesos.v1.TimeInfo start = 1; */ public boolean hasStart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.TimeInfo start = 1; */ public org.apache.mesos.v1.Protos.TimeInfo getStart() { return start_ == null ? org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance() : start_; } /** * required .mesos.v1.TimeInfo start = 1; */ public org.apache.mesos.v1.Protos.TimeInfoOrBuilder getStartOrBuilder() { return start_ == null ? org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance() : start_; } public static final int DURATION_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.DurationInfo duration_; /** *
     * When added to `start`, this represents the end of the interval.
     * If unspecified, the duration is assumed to be infinite.
     * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * When added to `start`, this represents the end of the interval.
     * If unspecified, the duration is assumed to be infinite.
     * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public org.apache.mesos.v1.Protos.DurationInfo getDuration() { return duration_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : duration_; } /** *
     * When added to `start`, this represents the end of the interval.
     * If unspecified, the duration is assumed to be infinite.
     * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getDurationOrBuilder() { return duration_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : duration_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasStart()) { memoizedIsInitialized = 0; return false; } if (!getStart().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasDuration()) { if (!getDuration().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getStart()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getDuration()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStart()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Unavailability)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Unavailability other = (org.apache.mesos.v1.Protos.Unavailability) obj; boolean result = true; result = result && (hasStart() == other.hasStart()); if (hasStart()) { result = result && getStart() .equals(other.getStart()); } result = result && (hasDuration() == other.hasDuration()); if (hasDuration()) { result = result && getDuration() .equals(other.getDuration()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Unavailability parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Unavailability parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Unavailability parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Unavailability 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.Protos.Unavailability parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Unavailability parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Unavailability parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Unavailability parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Unavailability parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Unavailability parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Unavailability parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Unavailability parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Unavailability prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Represents an interval, from a given start time over a given duration.
     * This interval pertains to an unavailability event, such as maintenance,
     * and is not a generic interval.
     * 
* * Protobuf type {@code mesos.v1.Unavailability} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Unavailability) org.apache.mesos.v1.Protos.UnavailabilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Unavailability_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Unavailability_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Unavailability.class, org.apache.mesos.v1.Protos.Unavailability.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Unavailability.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStartFieldBuilder(); getDurationFieldBuilder(); } } public Builder clear() { super.clear(); if (startBuilder_ == null) { start_ = null; } else { startBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (durationBuilder_ == null) { duration_ = null; } else { durationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Unavailability_descriptor; } public org.apache.mesos.v1.Protos.Unavailability getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Unavailability build() { org.apache.mesos.v1.Protos.Unavailability result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Unavailability buildPartial() { org.apache.mesos.v1.Protos.Unavailability result = new org.apache.mesos.v1.Protos.Unavailability(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } 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 clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Unavailability) { return mergeFrom((org.apache.mesos.v1.Protos.Unavailability)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Unavailability other) { if (other == org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance()) return this; if (other.hasStart()) { mergeStart(other.getStart()); } if (other.hasDuration()) { mergeDuration(other.getDuration()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasStart()) { return false; } if (!getStart().isInitialized()) { return false; } if (hasDuration()) { 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.Protos.Unavailability parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Unavailability) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.TimeInfo start_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TimeInfo, org.apache.mesos.v1.Protos.TimeInfo.Builder, org.apache.mesos.v1.Protos.TimeInfoOrBuilder> startBuilder_; /** * required .mesos.v1.TimeInfo start = 1; */ public boolean hasStart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.TimeInfo start = 1; */ public org.apache.mesos.v1.Protos.TimeInfo getStart() { if (startBuilder_ == null) { return start_ == null ? org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** * required .mesos.v1.TimeInfo start = 1; */ public Builder setStart(org.apache.mesos.v1.Protos.TimeInfo value) { if (startBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; onChanged(); } else { startBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.TimeInfo start = 1; */ public Builder setStart( org.apache.mesos.v1.Protos.TimeInfo.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); onChanged(); } else { startBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.TimeInfo start = 1; */ public Builder mergeStart(org.apache.mesos.v1.Protos.TimeInfo value) { if (startBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && start_ != null && start_ != org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance()) { start_ = org.apache.mesos.v1.Protos.TimeInfo.newBuilder(start_).mergeFrom(value).buildPartial(); } else { start_ = value; } onChanged(); } else { startBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.TimeInfo start = 1; */ public Builder clearStart() { if (startBuilder_ == null) { start_ = null; onChanged(); } else { startBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.TimeInfo start = 1; */ public org.apache.mesos.v1.Protos.TimeInfo.Builder getStartBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStartFieldBuilder().getBuilder(); } /** * required .mesos.v1.TimeInfo start = 1; */ public org.apache.mesos.v1.Protos.TimeInfoOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { return start_ == null ? org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance() : start_; } } /** * required .mesos.v1.TimeInfo start = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TimeInfo, org.apache.mesos.v1.Protos.TimeInfo.Builder, org.apache.mesos.v1.Protos.TimeInfoOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TimeInfo, org.apache.mesos.v1.Protos.TimeInfo.Builder, org.apache.mesos.v1.Protos.TimeInfoOrBuilder>( getStart(), getParentForChildren(), isClean()); start_ = null; } return startBuilder_; } private org.apache.mesos.v1.Protos.DurationInfo duration_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> durationBuilder_; /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public org.apache.mesos.v1.Protos.DurationInfo getDuration() { if (durationBuilder_ == null) { return duration_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ 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; } /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ 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; } /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public Builder mergeDuration(org.apache.mesos.v1.Protos.DurationInfo value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && duration_ != null && 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; } /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public Builder clearDuration() { if (durationBuilder_ == null) { duration_ = null; onChanged(); } else { durationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public org.apache.mesos.v1.Protos.DurationInfo.Builder getDurationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : duration_; } } /** *
       * When added to `start`, this represents the end of the interval.
       * If unspecified, the duration is assumed to be infinite.
       * 
* * optional .mesos.v1.DurationInfo duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Unavailability) } // @@protoc_insertion_point(class_scope:mesos.v1.Unavailability) private static final org.apache.mesos.v1.Protos.Unavailability DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Unavailability(); } public static org.apache.mesos.v1.Protos.Unavailability getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Unavailability parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unavailability(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Unavailability getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MachineIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.MachineID) com.google.protobuf.MessageOrBuilder { /** * optional string hostname = 1; */ boolean hasHostname(); /** * optional string hostname = 1; */ java.lang.String getHostname(); /** * optional string hostname = 1; */ com.google.protobuf.ByteString getHostnameBytes(); /** * optional string ip = 2; */ boolean hasIp(); /** * optional string ip = 2; */ java.lang.String getIp(); /** * optional string ip = 2; */ com.google.protobuf.ByteString getIpBytes(); } /** *
   **
   * Represents a single machine, which may hold one or more agents.
   * NOTE: In order to match an agent to a machine, both the `hostname` and
   * `ip` must match the values advertised by the agent to the master.
   * Hostname is not case-sensitive.
   * 
* * Protobuf type {@code mesos.v1.MachineID} */ public static final class MachineID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.MachineID) MachineIDOrBuilder { private static final long serialVersionUID = 0L; // Use MachineID.newBuilder() to construct. private MachineID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MachineID() { hostname_ = ""; ip_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MachineID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; hostname_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; ip_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MachineID.class, org.apache.mesos.v1.Protos.MachineID.Builder.class); } private int bitField0_; public static final int HOSTNAME_FIELD_NUMBER = 1; private volatile java.lang.Object hostname_; /** * optional string hostname = 1; */ public boolean hasHostname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string hostname = 1; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** * optional string hostname = 1; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IP_FIELD_NUMBER = 2; private volatile java.lang.Object ip_; /** * optional string ip = 2; */ public boolean hasIp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string ip = 2; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } } /** * optional string ip = 2; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.MachineID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.MachineID other = (org.apache.mesos.v1.Protos.MachineID) obj; boolean result = true; result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname() .equals(other.getHostname()); } result = result && (hasIp() == other.hasIp()); if (hasIp()) { result = result && getIp() .equals(other.getIp()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasIp()) { hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.MachineID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MachineID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MachineID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MachineID 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.Protos.MachineID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MachineID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MachineID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MachineID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MachineID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MachineID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MachineID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MachineID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.MachineID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Represents a single machine, which may hold one or more agents.
     * NOTE: In order to match an agent to a machine, both the `hostname` and
     * `ip` must match the values advertised by the agent to the master.
     * Hostname is not case-sensitive.
     * 
* * Protobuf type {@code mesos.v1.MachineID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.MachineID) org.apache.mesos.v1.Protos.MachineIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MachineID.class, org.apache.mesos.v1.Protos.MachineID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.MachineID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000001); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineID_descriptor; } public org.apache.mesos.v1.Protos.MachineID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.MachineID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.MachineID build() { org.apache.mesos.v1.Protos.MachineID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.MachineID buildPartial() { org.apache.mesos.v1.Protos.MachineID result = new org.apache.mesos.v1.Protos.MachineID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.ip_ = ip_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.MachineID) { return mergeFrom((org.apache.mesos.v1.Protos.MachineID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.MachineID other) { if (other == org.apache.mesos.v1.Protos.MachineID.getDefaultInstance()) return this; if (other.hasHostname()) { bitField0_ |= 0x00000001; hostname_ = other.hostname_; onChanged(); } if (other.hasIp()) { bitField0_ |= 0x00000002; ip_ = other.ip_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.MachineID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.MachineID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object hostname_ = ""; /** * optional string hostname = 1; */ public boolean hasHostname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string hostname = 1; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string hostname = 1; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string hostname = 1; */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; hostname_ = value; onChanged(); return this; } /** * optional string hostname = 1; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000001); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** * optional string hostname = 1; */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; hostname_ = value; onChanged(); return this; } private java.lang.Object ip_ = ""; /** * optional string ip = 2; */ public boolean hasIp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string ip = 2; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string ip = 2; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string ip = 2; */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; ip_ = value; onChanged(); return this; } /** * optional string ip = 2; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000002); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * optional string ip = 2; */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; ip_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.MachineID) } // @@protoc_insertion_point(class_scope:mesos.v1.MachineID) private static final org.apache.mesos.v1.Protos.MachineID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.MachineID(); } public static org.apache.mesos.v1.Protos.MachineID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MachineID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MachineID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.MachineID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MachineInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.MachineInfo) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.MachineID id = 1; */ boolean hasId(); /** * required .mesos.v1.MachineID id = 1; */ org.apache.mesos.v1.Protos.MachineID getId(); /** * required .mesos.v1.MachineID id = 1; */ org.apache.mesos.v1.Protos.MachineIDOrBuilder getIdOrBuilder(); /** * optional .mesos.v1.MachineInfo.Mode mode = 2; */ boolean hasMode(); /** * optional .mesos.v1.MachineInfo.Mode mode = 2; */ org.apache.mesos.v1.Protos.MachineInfo.Mode getMode(); /** *
     * Signifies that the machine may be unavailable during the given interval.
     * See comments in `Unavailability` and for the `unavailability` fields
     * in `Offer` and `InverseOffer` for more information.
     * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ boolean hasUnavailability(); /** *
     * Signifies that the machine may be unavailable during the given interval.
     * See comments in `Unavailability` and for the `unavailability` fields
     * in `Offer` and `InverseOffer` for more information.
     * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ org.apache.mesos.v1.Protos.Unavailability getUnavailability(); /** *
     * Signifies that the machine may be unavailable during the given interval.
     * See comments in `Unavailability` and for the `unavailability` fields
     * in `Offer` and `InverseOffer` for more information.
     * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder(); } /** *
   **
   * Holds information about a single machine, its `mode`, and any other
   * relevant information which may affect the behavior of the machine.
   * 
* * Protobuf type {@code mesos.v1.MachineInfo} */ public static final class MachineInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.MachineInfo) MachineInfoOrBuilder { private static final long serialVersionUID = 0L; // Use MachineInfo.newBuilder() to construct. private MachineInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MachineInfo() { mode_ = 1; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MachineInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.MachineID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.apache.mesos.v1.Protos.MachineID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.MachineInfo.Mode value = org.apache.mesos.v1.Protos.MachineInfo.Mode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; mode_ = rawValue; } break; } case 26: { org.apache.mesos.v1.Protos.Unavailability.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = unavailability_.toBuilder(); } unavailability_ = input.readMessage(org.apache.mesos.v1.Protos.Unavailability.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unavailability_); unavailability_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MachineInfo.class, org.apache.mesos.v1.Protos.MachineInfo.Builder.class); } /** *
     * Describes the several states that a machine can be in.  A `Mode`
     * applies to a machine and to all associated agents on the machine.
     * 
* * Protobuf enum {@code mesos.v1.MachineInfo.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * In this mode, a machine is behaving normally;
       * offering resources, executing tasks, etc.
       * 
* * UP = 1; */ UP(1), /** *
       * In this mode, all agents on the machine are expected to cooperate with
       * frameworks to drain resources.  In general, draining is done ahead of
       * a pending `unavailability`.  The resources should be drained so as to
       * maximize utilization prior to the maintenance but without knowingly
       * violating the frameworks' requirements.
       * 
* * DRAINING = 2; */ DRAINING(2), /** *
       * In this mode, a machine is not running any tasks and will not offer
       * any of its resources.  Agents on the machine will not be allowed to
       * register with the master.
       * 
* * DOWN = 3; */ DOWN(3), ; /** *
       * In this mode, a machine is behaving normally;
       * offering resources, executing tasks, etc.
       * 
* * UP = 1; */ public static final int UP_VALUE = 1; /** *
       * In this mode, all agents on the machine are expected to cooperate with
       * frameworks to drain resources.  In general, draining is done ahead of
       * a pending `unavailability`.  The resources should be drained so as to
       * maximize utilization prior to the maintenance but without knowingly
       * violating the frameworks' requirements.
       * 
* * DRAINING = 2; */ public static final int DRAINING_VALUE = 2; /** *
       * In this mode, a machine is not running any tasks and will not offer
       * any of its resources.  Agents on the machine will not be allowed to
       * register with the master.
       * 
* * DOWN = 3; */ public static final int DOWN_VALUE = 3; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode valueOf(int value) { return forNumber(value); } public static Mode forNumber(int value) { switch (value) { case 1: return UP; case 2: return DRAINING; case 3: return DOWN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.MachineInfo.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.MachineInfo.Mode) } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.MachineID id_; /** * required .mesos.v1.MachineID id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.MachineID id = 1; */ public org.apache.mesos.v1.Protos.MachineID getId() { return id_ == null ? org.apache.mesos.v1.Protos.MachineID.getDefaultInstance() : id_; } /** * required .mesos.v1.MachineID id = 1; */ public org.apache.mesos.v1.Protos.MachineIDOrBuilder getIdOrBuilder() { return id_ == null ? org.apache.mesos.v1.Protos.MachineID.getDefaultInstance() : id_; } public static final int MODE_FIELD_NUMBER = 2; private int mode_; /** * optional .mesos.v1.MachineInfo.Mode mode = 2; */ public boolean hasMode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.MachineInfo.Mode mode = 2; */ public org.apache.mesos.v1.Protos.MachineInfo.Mode getMode() { org.apache.mesos.v1.Protos.MachineInfo.Mode result = org.apache.mesos.v1.Protos.MachineInfo.Mode.valueOf(mode_); return result == null ? org.apache.mesos.v1.Protos.MachineInfo.Mode.UP : result; } public static final int UNAVAILABILITY_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Unavailability unavailability_; /** *
     * Signifies that the machine may be unavailable during the given interval.
     * See comments in `Unavailability` and for the `unavailability` fields
     * in `Offer` and `InverseOffer` for more information.
     * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public boolean hasUnavailability() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Signifies that the machine may be unavailable during the given interval.
     * See comments in `Unavailability` and for the `unavailability` fields
     * in `Offer` and `InverseOffer` for more information.
     * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public org.apache.mesos.v1.Protos.Unavailability getUnavailability() { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } /** *
     * Signifies that the machine may be unavailable during the given interval.
     * See comments in `Unavailability` and for the `unavailability` fields
     * in `Offer` and `InverseOffer` for more information.
     * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder() { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (hasUnavailability()) { if (!getUnavailability().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, mode_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getUnavailability()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, mode_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUnavailability()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.MachineInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.MachineInfo other = (org.apache.mesos.v1.Protos.MachineInfo) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasMode() == other.hasMode()); if (hasMode()) { result = result && mode_ == other.mode_; } result = result && (hasUnavailability() == other.hasUnavailability()); if (hasUnavailability()) { result = result && getUnavailability() .equals(other.getUnavailability()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasMode()) { hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; } if (hasUnavailability()) { hash = (37 * hash) + UNAVAILABILITY_FIELD_NUMBER; hash = (53 * hash) + getUnavailability().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.MachineInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MachineInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MachineInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MachineInfo 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.Protos.MachineInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MachineInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MachineInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MachineInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MachineInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MachineInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MachineInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MachineInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.MachineInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Holds information about a single machine, its `mode`, and any other
     * relevant information which may affect the behavior of the machine.
     * 
* * Protobuf type {@code mesos.v1.MachineInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.MachineInfo) org.apache.mesos.v1.Protos.MachineInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MachineInfo.class, org.apache.mesos.v1.Protos.MachineInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.MachineInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdFieldBuilder(); getUnavailabilityFieldBuilder(); } } public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); mode_ = 1; bitField0_ = (bitField0_ & ~0x00000002); if (unavailabilityBuilder_ == null) { unavailability_ = null; } else { unavailabilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MachineInfo_descriptor; } public org.apache.mesos.v1.Protos.MachineInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.MachineInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.MachineInfo build() { org.apache.mesos.v1.Protos.MachineInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.MachineInfo buildPartial() { org.apache.mesos.v1.Protos.MachineInfo result = new org.apache.mesos.v1.Protos.MachineInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.mode_ = mode_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (unavailabilityBuilder_ == null) { result.unavailability_ = unavailability_; } else { result.unavailability_ = unavailabilityBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.MachineInfo) { return mergeFrom((org.apache.mesos.v1.Protos.MachineInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.MachineInfo other) { if (other == org.apache.mesos.v1.Protos.MachineInfo.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasMode()) { setMode(other.getMode()); } if (other.hasUnavailability()) { mergeUnavailability(other.getUnavailability()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (hasUnavailability()) { if (!getUnavailability().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.Protos.MachineInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.MachineInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.MachineID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder> idBuilder_; /** * required .mesos.v1.MachineID id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.MachineID id = 1; */ public org.apache.mesos.v1.Protos.MachineID getId() { if (idBuilder_ == null) { return id_ == null ? org.apache.mesos.v1.Protos.MachineID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * required .mesos.v1.MachineID id = 1; */ public Builder setId(org.apache.mesos.v1.Protos.MachineID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.MachineID id = 1; */ public Builder setId( org.apache.mesos.v1.Protos.MachineID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.MachineID id = 1; */ public Builder mergeId(org.apache.mesos.v1.Protos.MachineID value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && id_ != null && id_ != org.apache.mesos.v1.Protos.MachineID.getDefaultInstance()) { id_ = org.apache.mesos.v1.Protos.MachineID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.MachineID id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.MachineID id = 1; */ public org.apache.mesos.v1.Protos.MachineID.Builder getIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.MachineID id = 1; */ public org.apache.mesos.v1.Protos.MachineIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.apache.mesos.v1.Protos.MachineID.getDefaultInstance() : id_; } } /** * required .mesos.v1.MachineID id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private int mode_ = 1; /** * optional .mesos.v1.MachineInfo.Mode mode = 2; */ public boolean hasMode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.MachineInfo.Mode mode = 2; */ public org.apache.mesos.v1.Protos.MachineInfo.Mode getMode() { org.apache.mesos.v1.Protos.MachineInfo.Mode result = org.apache.mesos.v1.Protos.MachineInfo.Mode.valueOf(mode_); return result == null ? org.apache.mesos.v1.Protos.MachineInfo.Mode.UP : result; } /** * optional .mesos.v1.MachineInfo.Mode mode = 2; */ public Builder setMode(org.apache.mesos.v1.Protos.MachineInfo.Mode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; mode_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.MachineInfo.Mode mode = 2; */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000002); mode_ = 1; onChanged(); return this; } private org.apache.mesos.v1.Protos.Unavailability unavailability_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder> unavailabilityBuilder_; /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public boolean hasUnavailability() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public org.apache.mesos.v1.Protos.Unavailability getUnavailability() { if (unavailabilityBuilder_ == null) { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } else { return unavailabilityBuilder_.getMessage(); } } /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public Builder setUnavailability(org.apache.mesos.v1.Protos.Unavailability value) { if (unavailabilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unavailability_ = value; onChanged(); } else { unavailabilityBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public Builder setUnavailability( org.apache.mesos.v1.Protos.Unavailability.Builder builderForValue) { if (unavailabilityBuilder_ == null) { unavailability_ = builderForValue.build(); onChanged(); } else { unavailabilityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public Builder mergeUnavailability(org.apache.mesos.v1.Protos.Unavailability value) { if (unavailabilityBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && unavailability_ != null && unavailability_ != org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance()) { unavailability_ = org.apache.mesos.v1.Protos.Unavailability.newBuilder(unavailability_).mergeFrom(value).buildPartial(); } else { unavailability_ = value; } onChanged(); } else { unavailabilityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public Builder clearUnavailability() { if (unavailabilityBuilder_ == null) { unavailability_ = null; onChanged(); } else { unavailabilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public org.apache.mesos.v1.Protos.Unavailability.Builder getUnavailabilityBuilder() { bitField0_ |= 0x00000004; onChanged(); return getUnavailabilityFieldBuilder().getBuilder(); } /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ public org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder() { if (unavailabilityBuilder_ != null) { return unavailabilityBuilder_.getMessageOrBuilder(); } else { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } } /** *
       * Signifies that the machine may be unavailable during the given interval.
       * See comments in `Unavailability` and for the `unavailability` fields
       * in `Offer` and `InverseOffer` for more information.
       * 
* * optional .mesos.v1.Unavailability unavailability = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder> getUnavailabilityFieldBuilder() { if (unavailabilityBuilder_ == null) { unavailabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder>( getUnavailability(), getParentForChildren(), isClean()); unavailability_ = null; } return unavailabilityBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.MachineInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.MachineInfo) private static final org.apache.mesos.v1.Protos.MachineInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.MachineInfo(); } public static org.apache.mesos.v1.Protos.MachineInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MachineInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MachineInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.MachineInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FrameworkInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.FrameworkInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Used to determine the Unix user that an executor or task should be
     * launched as.
     * When using the MesosSchedulerDriver, if the field is set to an
     * empty string, it will automagically set it to the current user.
     * When using the HTTP Scheduler API, the user has to be set
     * explicitly.
     * 
* * required string user = 1; */ boolean hasUser(); /** *
     * Used to determine the Unix user that an executor or task should be
     * launched as.
     * When using the MesosSchedulerDriver, if the field is set to an
     * empty string, it will automagically set it to the current user.
     * When using the HTTP Scheduler API, the user has to be set
     * explicitly.
     * 
* * required string user = 1; */ java.lang.String getUser(); /** *
     * Used to determine the Unix user that an executor or task should be
     * launched as.
     * When using the MesosSchedulerDriver, if the field is set to an
     * empty string, it will automagically set it to the current user.
     * When using the HTTP Scheduler API, the user has to be set
     * explicitly.
     * 
* * required string user = 1; */ com.google.protobuf.ByteString getUserBytes(); /** *
     * Name of the framework that shows up in the Mesos Web UI.
     * 
* * required string name = 2; */ boolean hasName(); /** *
     * Name of the framework that shows up in the Mesos Web UI.
     * 
* * required string name = 2; */ java.lang.String getName(); /** *
     * Name of the framework that shows up in the Mesos Web UI.
     * 
* * required string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Used to uniquely identify the framework.
     * This field must be unset when the framework subscribes for the
     * first time upon which the master will assign a new ID. To
     * resubscribe after scheduler failover the framework should set
     * 'id' to the ID assigned by the master.  Setting 'id' to values
     * not assigned by Mesos masters is unsupported.
     * 
* * optional .mesos.v1.FrameworkID id = 3; */ boolean hasId(); /** *
     * Used to uniquely identify the framework.
     * This field must be unset when the framework subscribes for the
     * first time upon which the master will assign a new ID. To
     * resubscribe after scheduler failover the framework should set
     * 'id' to the ID assigned by the master.  Setting 'id' to values
     * not assigned by Mesos masters is unsupported.
     * 
* * optional .mesos.v1.FrameworkID id = 3; */ org.apache.mesos.v1.Protos.FrameworkID getId(); /** *
     * Used to uniquely identify the framework.
     * This field must be unset when the framework subscribes for the
     * first time upon which the master will assign a new ID. To
     * resubscribe after scheduler failover the framework should set
     * 'id' to the ID assigned by the master.  Setting 'id' to values
     * not assigned by Mesos masters is unsupported.
     * 
* * optional .mesos.v1.FrameworkID id = 3; */ org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getIdOrBuilder(); /** *
     * The amount of time (in seconds) that the master will wait for the
     * scheduler to failover before it tears down the framework by
     * killing all its tasks/executors. This should be non-zero if a
     * framework expects to reconnect after a failure and not lose its
     * tasks/executors.
     * NOTE: To avoid accidental destruction of tasks, production
     * frameworks typically set this to a large value (e.g., 1 week).
     * 
* * optional double failover_timeout = 4 [default = 0]; */ boolean hasFailoverTimeout(); /** *
     * The amount of time (in seconds) that the master will wait for the
     * scheduler to failover before it tears down the framework by
     * killing all its tasks/executors. This should be non-zero if a
     * framework expects to reconnect after a failure and not lose its
     * tasks/executors.
     * NOTE: To avoid accidental destruction of tasks, production
     * frameworks typically set this to a large value (e.g., 1 week).
     * 
* * optional double failover_timeout = 4 [default = 0]; */ double getFailoverTimeout(); /** *
     * If set, agents running tasks started by this framework will write
     * the framework pid, executor pids and status updates to disk. If
     * the agent exits (e.g., due to a crash or as part of upgrading
     * Mesos), this checkpointed data allows the restarted agent to
     * reconnect to executors that were started by the old instance of
     * the agent. Enabling checkpointing improves fault tolerance, at
     * the cost of a (usually small) increase in disk I/O.
     * 
* * optional bool checkpoint = 5 [default = false]; */ boolean hasCheckpoint(); /** *
     * If set, agents running tasks started by this framework will write
     * the framework pid, executor pids and status updates to disk. If
     * the agent exits (e.g., due to a crash or as part of upgrading
     * Mesos), this checkpointed data allows the restarted agent to
     * reconnect to executors that were started by the old instance of
     * the agent. Enabling checkpointing improves fault tolerance, at
     * the cost of a (usually small) increase in disk I/O.
     * 
* * optional bool checkpoint = 5 [default = false]; */ boolean getCheckpoint(); /** *
     * Roles are the entities to which allocations are made.
     * The framework must have at least one role in order to
     * be offered resources. Note that `role` is deprecated
     * in favor of `roles` and only one of these fields must
     * be used. Since we cannot distinguish between empty
     * `roles` and the default unset `role`, we require that
     * frameworks set the `MULTI_ROLE` capability if
     * setting the `roles` field.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated boolean hasRole(); /** *
     * Roles are the entities to which allocations are made.
     * The framework must have at least one role in order to
     * be offered resources. Note that `role` is deprecated
     * in favor of `roles` and only one of these fields must
     * be used. Since we cannot distinguish between empty
     * `roles` and the default unset `role`, we require that
     * frameworks set the `MULTI_ROLE` capability if
     * setting the `roles` field.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated java.lang.String getRole(); /** *
     * Roles are the entities to which allocations are made.
     * The framework must have at least one role in order to
     * be offered resources. Note that `role` is deprecated
     * in favor of `roles` and only one of these fields must
     * be used. Since we cannot distinguish between empty
     * `roles` and the default unset `role`, we require that
     * frameworks set the `MULTI_ROLE` capability if
     * setting the `roles` field.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated com.google.protobuf.ByteString getRoleBytes(); /** * repeated string roles = 12; */ java.util.List getRolesList(); /** * repeated string roles = 12; */ int getRolesCount(); /** * repeated string roles = 12; */ java.lang.String getRoles(int index); /** * repeated string roles = 12; */ com.google.protobuf.ByteString getRolesBytes(int index); /** *
     * Used to indicate the current host from which the scheduler is
     * registered in the Mesos Web UI. If set to an empty string Mesos
     * will automagically set it to the current hostname if one is
     * available.
     * 
* * optional string hostname = 7; */ boolean hasHostname(); /** *
     * Used to indicate the current host from which the scheduler is
     * registered in the Mesos Web UI. If set to an empty string Mesos
     * will automagically set it to the current hostname if one is
     * available.
     * 
* * optional string hostname = 7; */ java.lang.String getHostname(); /** *
     * Used to indicate the current host from which the scheduler is
     * registered in the Mesos Web UI. If set to an empty string Mesos
     * will automagically set it to the current hostname if one is
     * available.
     * 
* * optional string hostname = 7; */ com.google.protobuf.ByteString getHostnameBytes(); /** *
     * This field should match the credential's principal the framework
     * uses for authentication. This field is used for framework API
     * rate limiting and dynamic reservations. It should be set even
     * if authentication is not enabled if these features are desired.
     * 
* * optional string principal = 8; */ boolean hasPrincipal(); /** *
     * This field should match the credential's principal the framework
     * uses for authentication. This field is used for framework API
     * rate limiting and dynamic reservations. It should be set even
     * if authentication is not enabled if these features are desired.
     * 
* * optional string principal = 8; */ java.lang.String getPrincipal(); /** *
     * This field should match the credential's principal the framework
     * uses for authentication. This field is used for framework API
     * rate limiting and dynamic reservations. It should be set even
     * if authentication is not enabled if these features are desired.
     * 
* * optional string principal = 8; */ com.google.protobuf.ByteString getPrincipalBytes(); /** *
     * This field allows a framework to advertise its web UI, so that
     * the Mesos web UI can link to it. It is expected to be a full URL,
     * for example http://my-scheduler.example.com:8080/.
     * 
* * optional string webui_url = 9; */ boolean hasWebuiUrl(); /** *
     * This field allows a framework to advertise its web UI, so that
     * the Mesos web UI can link to it. It is expected to be a full URL,
     * for example http://my-scheduler.example.com:8080/.
     * 
* * optional string webui_url = 9; */ java.lang.String getWebuiUrl(); /** *
     * This field allows a framework to advertise its web UI, so that
     * the Mesos web UI can link to it. It is expected to be a full URL,
     * for example http://my-scheduler.example.com:8080/.
     * 
* * optional string webui_url = 9; */ com.google.protobuf.ByteString getWebuiUrlBytes(); /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ java.util.List getCapabilitiesList(); /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ org.apache.mesos.v1.Protos.FrameworkInfo.Capability getCapabilities(int index); /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ int getCapabilitiesCount(); /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ java.util.List getCapabilitiesOrBuilderList(); /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ org.apache.mesos.v1.Protos.FrameworkInfo.CapabilityOrBuilder getCapabilitiesOrBuilder( int index); /** *
     * Labels are free-form key value pairs supplied by the framework
     * scheduler (e.g., to describe additional functionality offered by
     * the framework). These labels are not interpreted by Mesos itself.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 11; */ boolean hasLabels(); /** *
     * Labels are free-form key value pairs supplied by the framework
     * scheduler (e.g., to describe additional functionality offered by
     * the framework). These labels are not interpreted by Mesos itself.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 11; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** *
     * Labels are free-form key value pairs supplied by the framework
     * scheduler (e.g., to describe additional functionality offered by
     * the framework). These labels are not interpreted by Mesos itself.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 11; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ int getOfferFiltersCount(); /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ boolean containsOfferFilters( java.lang.String key); /** * Use {@link #getOfferFiltersMap()} instead. */ @java.lang.Deprecated java.util.Map getOfferFilters(); /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ java.util.Map getOfferFiltersMap(); /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ org.apache.mesos.v1.Protos.OfferFilters getOfferFiltersOrDefault( java.lang.String key, org.apache.mesos.v1.Protos.OfferFilters defaultValue); /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ org.apache.mesos.v1.Protos.OfferFilters getOfferFiltersOrThrow( java.lang.String key); } /** *
   **
   * Describes a framework.
   * 
* * Protobuf type {@code mesos.v1.FrameworkInfo} */ public static final class FrameworkInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.FrameworkInfo) FrameworkInfoOrBuilder { private static final long serialVersionUID = 0L; // Use FrameworkInfo.newBuilder() to construct. private FrameworkInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FrameworkInfo() { user_ = ""; name_ = ""; failoverTimeout_ = 0D; checkpoint_ = false; role_ = "*"; roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; hostname_ = ""; principal_ = ""; webuiUrl_ = ""; capabilities_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FrameworkInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; user_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { org.apache.mesos.v1.Protos.FrameworkID.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 33: { bitField0_ |= 0x00000008; failoverTimeout_ = input.readDouble(); break; } case 40: { bitField0_ |= 0x00000010; checkpoint_ = input.readBool(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; role_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; hostname_ = bs; break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; principal_ = bs; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; webuiUrl_ = bs; break; } case 82: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { capabilities_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } capabilities_.add( input.readMessage(org.apache.mesos.v1.Protos.FrameworkInfo.Capability.PARSER, extensionRegistry)); break; } case 90: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 98: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { roles_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000040; } roles_.add(bs); break; } case 106: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { offerFilters_ = com.google.protobuf.MapField.newMapField( OfferFiltersDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00001000; } com.google.protobuf.MapEntry offerFilters__ = input.readMessage( OfferFiltersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); offerFilters_.getMutableMap().put( offerFilters__.getKey(), offerFilters__.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { capabilities_ = java.util.Collections.unmodifiableList(capabilities_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { roles_ = roles_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 13: return internalGetOfferFilters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.FrameworkInfo.class, org.apache.mesos.v1.Protos.FrameworkInfo.Builder.class); } public interface CapabilityOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.FrameworkInfo.Capability) com.google.protobuf.MessageOrBuilder { /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.FrameworkInfo.Capability.Type type = 1; */ boolean hasType(); /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.FrameworkInfo.Capability.Type type = 1; */ org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type getType(); } /** * Protobuf type {@code mesos.v1.FrameworkInfo.Capability} */ public static final class Capability extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.FrameworkInfo.Capability) CapabilityOrBuilder { private static final long serialVersionUID = 0L; // Use Capability.newBuilder() to construct. private Capability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Capability() { type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Capability( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type value = org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_Capability_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_Capability_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.FrameworkInfo.Capability.class, org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder.class); } /** * Protobuf enum {@code mesos.v1.FrameworkInfo.Capability.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** *
         * This must be the first enum value in this list, to
         * ensure that if 'type' is not set, the default value
         * is UNKNOWN. This enables enum values to be added
         * in a backwards-compatible way. See: MESOS-4997.
         * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
         * Receive offers with revocable resources. See 'Resource'
         * message for details.
         * 
* * REVOCABLE_RESOURCES = 1; */ REVOCABLE_RESOURCES(1), /** *
         * Receive the TASK_KILLING TaskState when a task is being
         * killed by an executor. The executor will examine this
         * capability to determine whether it can send TASK_KILLING.
         * 
* * TASK_KILLING_STATE = 2; */ TASK_KILLING_STATE(2), /** *
         * Indicates whether the framework is aware of GPU resources.
         * Frameworks that are aware of GPU resources are expected to
         * avoid placing non-GPU workloads on GPU agents, in order
         * to avoid occupying a GPU agent and preventing GPU workloads
         * from running! Currently, if a framework is unaware of GPU
         * resources, it will not be offered *any* of the resources on
         * an agent with GPUs. This restriction is in place because we
         * do not have a revocation mechanism that ensures GPU workloads
         * can evict GPU agent occupants if necessary.
         * TODO(bmahler): As we add revocation we can relax the
         * restriction here. See MESOS-5634 for more information.
         * 
* * GPU_RESOURCES = 3; */ GPU_RESOURCES(3), /** *
         * Receive offers with resources that are shared.
         * 
* * SHARED_RESOURCES = 4; */ SHARED_RESOURCES(4), /** *
         * Indicates that (1) the framework is prepared to handle the
         * following TaskStates: TASK_UNREACHABLE, TASK_DROPPED,
         * TASK_GONE, TASK_GONE_BY_OPERATOR, and TASK_UNKNOWN, and (2)
         * the framework will assume responsibility for managing
         * partitioned tasks that reregister with the master.
         * Frameworks that enable this capability can define how they
         * would like to handle partitioned tasks. Frameworks will
         * receive TASK_UNREACHABLE for tasks on agents that are
         * partitioned from the master.
         * Without this capability, frameworks will receive TASK_LOST
         * for tasks on partitioned agents.
         * NOTE: Prior to Mesos 1.5, such tasks will be killed by Mesos
         * when the agent reregisters (unless the master has failed over).
         * However due to the lack of benefit in maintaining different
         * behaviors depending on whether the master has failed over
         * (see MESOS-7215), as of 1.5, Mesos will not kill these
         * tasks in either case.
         * 
* * PARTITION_AWARE = 5; */ PARTITION_AWARE(5), /** *
         * This expresses the ability for the framework to be
         * "multi-tenant" via using the newly introduced `roles`
         * field, and examining `Offer.allocation_info` to determine
         * which role the offers are being made to. We also
         * expect that "single-tenant" schedulers eventually
         * provide this and move away from the deprecated
         * `role` field.
         * 
* * MULTI_ROLE = 6; */ MULTI_ROLE(6), /** *
         * This capability has two effects for a framework.
         * (1) The framework is offered resources in a new format.
         *     The offered resources have the `Resource.reservations` field set
         *     rather than `Resource.role` and `Resource.reservation`. In short,
         *     an empty `reservations` field denotes unreserved resources, and
         *     each `ReservationInfo` in the `reservations` field denotes a
         *     reservation that refines the previous one.
         *     See the 'Resource Format' section for more details.
         * (2) The framework can create refined reservations.
         *     A framework can refine an existing reservation via the
         *     `Resource.reservations` field. For example, a reservation for role
         *     `eng` can be refined to `eng/front_end`.
         *     See `ReservationInfo.reservations` for more details.
         * NOTE: Without this capability, a framework is not offered resources
         * that have refined reservations. A resource is said to have refined
         * reservations if it uses the `Resource.reservations` field, and
         * `Resource.reservations_size() > 1`.
         * 
* * RESERVATION_REFINEMENT = 7; */ RESERVATION_REFINEMENT(7), /** *
         * Indicates that the framework is prepared to receive offers
         * for agents whose region is different from the master's
         * region. Network links between hosts in different regions
         * typically have higher latency and lower bandwidth than
         * network links within a region, so frameworks should be
         * careful to only place suitable workloads in remote regions.
         * Frameworks that are not region-aware will never receive
         * offers for remote agents; region-aware frameworks are assumed
         * to implement their own logic to decide which workloads (if
         * any) are suitable for placement on remote agents.
         * 
* * REGION_AWARE = 8; */ REGION_AWARE(8), ; /** *
         * This must be the first enum value in this list, to
         * ensure that if 'type' is not set, the default value
         * is UNKNOWN. This enables enum values to be added
         * in a backwards-compatible way. See: MESOS-4997.
         * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
         * Receive offers with revocable resources. See 'Resource'
         * message for details.
         * 
* * REVOCABLE_RESOURCES = 1; */ public static final int REVOCABLE_RESOURCES_VALUE = 1; /** *
         * Receive the TASK_KILLING TaskState when a task is being
         * killed by an executor. The executor will examine this
         * capability to determine whether it can send TASK_KILLING.
         * 
* * TASK_KILLING_STATE = 2; */ public static final int TASK_KILLING_STATE_VALUE = 2; /** *
         * Indicates whether the framework is aware of GPU resources.
         * Frameworks that are aware of GPU resources are expected to
         * avoid placing non-GPU workloads on GPU agents, in order
         * to avoid occupying a GPU agent and preventing GPU workloads
         * from running! Currently, if a framework is unaware of GPU
         * resources, it will not be offered *any* of the resources on
         * an agent with GPUs. This restriction is in place because we
         * do not have a revocation mechanism that ensures GPU workloads
         * can evict GPU agent occupants if necessary.
         * TODO(bmahler): As we add revocation we can relax the
         * restriction here. See MESOS-5634 for more information.
         * 
* * GPU_RESOURCES = 3; */ public static final int GPU_RESOURCES_VALUE = 3; /** *
         * Receive offers with resources that are shared.
         * 
* * SHARED_RESOURCES = 4; */ public static final int SHARED_RESOURCES_VALUE = 4; /** *
         * Indicates that (1) the framework is prepared to handle the
         * following TaskStates: TASK_UNREACHABLE, TASK_DROPPED,
         * TASK_GONE, TASK_GONE_BY_OPERATOR, and TASK_UNKNOWN, and (2)
         * the framework will assume responsibility for managing
         * partitioned tasks that reregister with the master.
         * Frameworks that enable this capability can define how they
         * would like to handle partitioned tasks. Frameworks will
         * receive TASK_UNREACHABLE for tasks on agents that are
         * partitioned from the master.
         * Without this capability, frameworks will receive TASK_LOST
         * for tasks on partitioned agents.
         * NOTE: Prior to Mesos 1.5, such tasks will be killed by Mesos
         * when the agent reregisters (unless the master has failed over).
         * However due to the lack of benefit in maintaining different
         * behaviors depending on whether the master has failed over
         * (see MESOS-7215), as of 1.5, Mesos will not kill these
         * tasks in either case.
         * 
* * PARTITION_AWARE = 5; */ public static final int PARTITION_AWARE_VALUE = 5; /** *
         * This expresses the ability for the framework to be
         * "multi-tenant" via using the newly introduced `roles`
         * field, and examining `Offer.allocation_info` to determine
         * which role the offers are being made to. We also
         * expect that "single-tenant" schedulers eventually
         * provide this and move away from the deprecated
         * `role` field.
         * 
* * MULTI_ROLE = 6; */ public static final int MULTI_ROLE_VALUE = 6; /** *
         * This capability has two effects for a framework.
         * (1) The framework is offered resources in a new format.
         *     The offered resources have the `Resource.reservations` field set
         *     rather than `Resource.role` and `Resource.reservation`. In short,
         *     an empty `reservations` field denotes unreserved resources, and
         *     each `ReservationInfo` in the `reservations` field denotes a
         *     reservation that refines the previous one.
         *     See the 'Resource Format' section for more details.
         * (2) The framework can create refined reservations.
         *     A framework can refine an existing reservation via the
         *     `Resource.reservations` field. For example, a reservation for role
         *     `eng` can be refined to `eng/front_end`.
         *     See `ReservationInfo.reservations` for more details.
         * NOTE: Without this capability, a framework is not offered resources
         * that have refined reservations. A resource is said to have refined
         * reservations if it uses the `Resource.reservations` field, and
         * `Resource.reservations_size() > 1`.
         * 
* * RESERVATION_REFINEMENT = 7; */ public static final int RESERVATION_REFINEMENT_VALUE = 7; /** *
         * Indicates that the framework is prepared to receive offers
         * for agents whose region is different from the master's
         * region. Network links between hosts in different regions
         * typically have higher latency and lower bandwidth than
         * network links within a region, so frameworks should be
         * careful to only place suitable workloads in remote regions.
         * Frameworks that are not region-aware will never receive
         * offers for remote agents; region-aware frameworks are assumed
         * to implement their own logic to decide which workloads (if
         * any) are suitable for placement on remote agents.
         * 
* * REGION_AWARE = 8; */ public static final int REGION_AWARE_VALUE = 8; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return REVOCABLE_RESOURCES; case 2: return TASK_KILLING_STATE; case 3: return GPU_RESOURCES; case 4: return SHARED_RESOURCES; case 5: return PARTITION_AWARE; case 6: return MULTI_ROLE; case 7: return RESERVATION_REFINEMENT; case 8: return REGION_AWARE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.FrameworkInfo.Capability.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.FrameworkInfo.Capability.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.FrameworkInfo.Capability.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.FrameworkInfo.Capability.Type type = 1; */ public org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type getType() { org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type result = org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type.UNKNOWN : result; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.FrameworkInfo.Capability)) { return super.equals(obj); } org.apache.mesos.v1.Protos.FrameworkInfo.Capability other = (org.apache.mesos.v1.Protos.FrameworkInfo.Capability) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability 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.Protos.FrameworkInfo.Capability parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.FrameworkInfo.Capability prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.FrameworkInfo.Capability} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.FrameworkInfo.Capability) org.apache.mesos.v1.Protos.FrameworkInfo.CapabilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_Capability_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_Capability_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.FrameworkInfo.Capability.class, org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder.class); } // Construct using org.apache.mesos.v1.Protos.FrameworkInfo.Capability.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_Capability_descriptor; } public org.apache.mesos.v1.Protos.FrameworkInfo.Capability getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.FrameworkInfo.Capability.getDefaultInstance(); } public org.apache.mesos.v1.Protos.FrameworkInfo.Capability build() { org.apache.mesos.v1.Protos.FrameworkInfo.Capability result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.FrameworkInfo.Capability buildPartial() { org.apache.mesos.v1.Protos.FrameworkInfo.Capability result = new org.apache.mesos.v1.Protos.FrameworkInfo.Capability(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.FrameworkInfo.Capability) { return mergeFrom((org.apache.mesos.v1.Protos.FrameworkInfo.Capability)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.FrameworkInfo.Capability other) { if (other == org.apache.mesos.v1.Protos.FrameworkInfo.Capability.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.FrameworkInfo.Capability parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.FrameworkInfo.Capability) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.FrameworkInfo.Capability.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.FrameworkInfo.Capability.Type type = 1; */ public org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type getType() { org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type result = org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type.UNKNOWN : result; } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.FrameworkInfo.Capability.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.FrameworkInfo.Capability.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.FrameworkInfo.Capability) } // @@protoc_insertion_point(class_scope:mesos.v1.FrameworkInfo.Capability) private static final org.apache.mesos.v1.Protos.FrameworkInfo.Capability DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.FrameworkInfo.Capability(); } public static org.apache.mesos.v1.Protos.FrameworkInfo.Capability getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Capability parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Capability(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.FrameworkInfo.Capability getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int USER_FIELD_NUMBER = 1; private volatile java.lang.Object user_; /** *
     * Used to determine the Unix user that an executor or task should be
     * launched as.
     * When using the MesosSchedulerDriver, if the field is set to an
     * empty string, it will automagically set it to the current user.
     * When using the HTTP Scheduler API, the user has to be set
     * explicitly.
     * 
* * required string user = 1; */ public boolean hasUser() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Used to determine the Unix user that an executor or task should be
     * launched as.
     * When using the MesosSchedulerDriver, if the field is set to an
     * empty string, it will automagically set it to the current user.
     * When using the HTTP Scheduler API, the user has to be set
     * explicitly.
     * 
* * required string user = 1; */ public java.lang.String getUser() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { user_ = s; } return s; } } /** *
     * Used to determine the Unix user that an executor or task should be
     * launched as.
     * When using the MesosSchedulerDriver, if the field is set to an
     * empty string, it will automagically set it to the current user.
     * When using the HTTP Scheduler API, the user has to be set
     * explicitly.
     * 
* * required string user = 1; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the framework that shows up in the Mesos Web UI.
     * 
* * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Name of the framework that shows up in the Mesos Web UI.
     * 
* * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
     * Name of the framework that shows up in the Mesos Web UI.
     * 
* * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.FrameworkID id_; /** *
     * Used to uniquely identify the framework.
     * This field must be unset when the framework subscribes for the
     * first time upon which the master will assign a new ID. To
     * resubscribe after scheduler failover the framework should set
     * 'id' to the ID assigned by the master.  Setting 'id' to values
     * not assigned by Mesos masters is unsupported.
     * 
* * optional .mesos.v1.FrameworkID id = 3; */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Used to uniquely identify the framework.
     * This field must be unset when the framework subscribes for the
     * first time upon which the master will assign a new ID. To
     * resubscribe after scheduler failover the framework should set
     * 'id' to the ID assigned by the master.  Setting 'id' to values
     * not assigned by Mesos masters is unsupported.
     * 
* * optional .mesos.v1.FrameworkID id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID getId() { return id_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : id_; } /** *
     * Used to uniquely identify the framework.
     * This field must be unset when the framework subscribes for the
     * first time upon which the master will assign a new ID. To
     * resubscribe after scheduler failover the framework should set
     * 'id' to the ID assigned by the master.  Setting 'id' to values
     * not assigned by Mesos masters is unsupported.
     * 
* * optional .mesos.v1.FrameworkID id = 3; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getIdOrBuilder() { return id_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : id_; } public static final int FAILOVER_TIMEOUT_FIELD_NUMBER = 4; private double failoverTimeout_; /** *
     * The amount of time (in seconds) that the master will wait for the
     * scheduler to failover before it tears down the framework by
     * killing all its tasks/executors. This should be non-zero if a
     * framework expects to reconnect after a failure and not lose its
     * tasks/executors.
     * NOTE: To avoid accidental destruction of tasks, production
     * frameworks typically set this to a large value (e.g., 1 week).
     * 
* * optional double failover_timeout = 4 [default = 0]; */ public boolean hasFailoverTimeout() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * The amount of time (in seconds) that the master will wait for the
     * scheduler to failover before it tears down the framework by
     * killing all its tasks/executors. This should be non-zero if a
     * framework expects to reconnect after a failure and not lose its
     * tasks/executors.
     * NOTE: To avoid accidental destruction of tasks, production
     * frameworks typically set this to a large value (e.g., 1 week).
     * 
* * optional double failover_timeout = 4 [default = 0]; */ public double getFailoverTimeout() { return failoverTimeout_; } public static final int CHECKPOINT_FIELD_NUMBER = 5; private boolean checkpoint_; /** *
     * If set, agents running tasks started by this framework will write
     * the framework pid, executor pids and status updates to disk. If
     * the agent exits (e.g., due to a crash or as part of upgrading
     * Mesos), this checkpointed data allows the restarted agent to
     * reconnect to executors that were started by the old instance of
     * the agent. Enabling checkpointing improves fault tolerance, at
     * the cost of a (usually small) increase in disk I/O.
     * 
* * optional bool checkpoint = 5 [default = false]; */ public boolean hasCheckpoint() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * If set, agents running tasks started by this framework will write
     * the framework pid, executor pids and status updates to disk. If
     * the agent exits (e.g., due to a crash or as part of upgrading
     * Mesos), this checkpointed data allows the restarted agent to
     * reconnect to executors that were started by the old instance of
     * the agent. Enabling checkpointing improves fault tolerance, at
     * the cost of a (usually small) increase in disk I/O.
     * 
* * optional bool checkpoint = 5 [default = false]; */ public boolean getCheckpoint() { return checkpoint_; } public static final int ROLE_FIELD_NUMBER = 6; private volatile java.lang.Object role_; /** *
     * Roles are the entities to which allocations are made.
     * The framework must have at least one role in order to
     * be offered resources. Note that `role` is deprecated
     * in favor of `roles` and only one of these fields must
     * be used. Since we cannot distinguish between empty
     * `roles` and the default unset `role`, we require that
     * frameworks set the `MULTI_ROLE` capability if
     * setting the `roles` field.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public boolean hasRole() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * Roles are the entities to which allocations are made.
     * The framework must have at least one role in order to
     * be offered resources. Note that `role` is deprecated
     * in favor of `roles` and only one of these fields must
     * be used. Since we cannot distinguish between empty
     * `roles` and the default unset `role`, we require that
     * frameworks set the `MULTI_ROLE` capability if
     * setting the `roles` field.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } } /** *
     * Roles are the entities to which allocations are made.
     * The framework must have at least one role in order to
     * be offered resources. Note that `role` is deprecated
     * in favor of `roles` and only one of these fields must
     * be used. Since we cannot distinguish between empty
     * `roles` and the default unset `role`, we require that
     * frameworks set the `MULTI_ROLE` capability if
     * setting the `roles` field.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLES_FIELD_NUMBER = 12; private com.google.protobuf.LazyStringList roles_; /** * repeated string roles = 12; */ public com.google.protobuf.ProtocolStringList getRolesList() { return roles_; } /** * repeated string roles = 12; */ public int getRolesCount() { return roles_.size(); } /** * repeated string roles = 12; */ public java.lang.String getRoles(int index) { return roles_.get(index); } /** * repeated string roles = 12; */ public com.google.protobuf.ByteString getRolesBytes(int index) { return roles_.getByteString(index); } public static final int HOSTNAME_FIELD_NUMBER = 7; private volatile java.lang.Object hostname_; /** *
     * Used to indicate the current host from which the scheduler is
     * registered in the Mesos Web UI. If set to an empty string Mesos
     * will automagically set it to the current hostname if one is
     * available.
     * 
* * optional string hostname = 7; */ public boolean hasHostname() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * Used to indicate the current host from which the scheduler is
     * registered in the Mesos Web UI. If set to an empty string Mesos
     * will automagically set it to the current hostname if one is
     * available.
     * 
* * optional string hostname = 7; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** *
     * Used to indicate the current host from which the scheduler is
     * registered in the Mesos Web UI. If set to an empty string Mesos
     * will automagically set it to the current hostname if one is
     * available.
     * 
* * optional string hostname = 7; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRINCIPAL_FIELD_NUMBER = 8; private volatile java.lang.Object principal_; /** *
     * This field should match the credential's principal the framework
     * uses for authentication. This field is used for framework API
     * rate limiting and dynamic reservations. It should be set even
     * if authentication is not enabled if these features are desired.
     * 
* * optional string principal = 8; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     * This field should match the credential's principal the framework
     * uses for authentication. This field is used for framework API
     * rate limiting and dynamic reservations. It should be set even
     * if authentication is not enabled if these features are desired.
     * 
* * optional string principal = 8; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } } /** *
     * This field should match the credential's principal the framework
     * uses for authentication. This field is used for framework API
     * rate limiting and dynamic reservations. It should be set even
     * if authentication is not enabled if these features are desired.
     * 
* * optional string principal = 8; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEBUI_URL_FIELD_NUMBER = 9; private volatile java.lang.Object webuiUrl_; /** *
     * This field allows a framework to advertise its web UI, so that
     * the Mesos web UI can link to it. It is expected to be a full URL,
     * for example http://my-scheduler.example.com:8080/.
     * 
* * optional string webui_url = 9; */ public boolean hasWebuiUrl() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
     * This field allows a framework to advertise its web UI, so that
     * the Mesos web UI can link to it. It is expected to be a full URL,
     * for example http://my-scheduler.example.com:8080/.
     * 
* * optional string webui_url = 9; */ public java.lang.String getWebuiUrl() { java.lang.Object ref = webuiUrl_; 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()) { webuiUrl_ = s; } return s; } } /** *
     * This field allows a framework to advertise its web UI, so that
     * the Mesos web UI can link to it. It is expected to be a full URL,
     * for example http://my-scheduler.example.com:8080/.
     * 
* * optional string webui_url = 9; */ public com.google.protobuf.ByteString getWebuiUrlBytes() { java.lang.Object ref = webuiUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); webuiUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAPABILITIES_FIELD_NUMBER = 10; private java.util.List capabilities_; /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public java.util.List getCapabilitiesList() { return capabilities_; } /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public java.util.List getCapabilitiesOrBuilderList() { return capabilities_; } /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public int getCapabilitiesCount() { return capabilities_.size(); } /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public org.apache.mesos.v1.Protos.FrameworkInfo.Capability getCapabilities(int index) { return capabilities_.get(index); } /** *
     * This field allows a framework to advertise its set of
     * capabilities (e.g., ability to receive offers for revocable
     * resources).
     * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public org.apache.mesos.v1.Protos.FrameworkInfo.CapabilityOrBuilder getCapabilitiesOrBuilder( int index) { return capabilities_.get(index); } public static final int LABELS_FIELD_NUMBER = 11; private org.apache.mesos.v1.Protos.Labels labels_; /** *
     * Labels are free-form key value pairs supplied by the framework
     * scheduler (e.g., to describe additional functionality offered by
     * the framework). These labels are not interpreted by Mesos itself.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 11; */ public boolean hasLabels() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
     * Labels are free-form key value pairs supplied by the framework
     * scheduler (e.g., to describe additional functionality offered by
     * the framework). These labels are not interpreted by Mesos itself.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** *
     * Labels are free-form key value pairs supplied by the framework
     * scheduler (e.g., to describe additional functionality offered by
     * the framework). These labels are not interpreted by Mesos itself.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } public static final int OFFER_FILTERS_FIELD_NUMBER = 13; private static final class OfferFiltersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.apache.mesos.v1.Protos.OfferFilters> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_OfferFiltersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.apache.mesos.v1.Protos.OfferFilters.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.apache.mesos.v1.Protos.OfferFilters> offerFilters_; private com.google.protobuf.MapField internalGetOfferFilters() { if (offerFilters_ == null) { return com.google.protobuf.MapField.emptyMapField( OfferFiltersDefaultEntryHolder.defaultEntry); } return offerFilters_; } public int getOfferFiltersCount() { return internalGetOfferFilters().getMap().size(); } /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public boolean containsOfferFilters( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOfferFilters().getMap().containsKey(key); } /** * Use {@link #getOfferFiltersMap()} instead. */ @java.lang.Deprecated public java.util.Map getOfferFilters() { return getOfferFiltersMap(); } /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public java.util.Map getOfferFiltersMap() { return internalGetOfferFilters().getMap(); } /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public org.apache.mesos.v1.Protos.OfferFilters getOfferFiltersOrDefault( java.lang.String key, org.apache.mesos.v1.Protos.OfferFilters defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOfferFilters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Specifc resource requirements for each of the framework's roles. This field
     * is used by e.g., the default allocator to decide whether a framework is
     * interested in seeing a resource of a certain shape.
     * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public org.apache.mesos.v1.Protos.OfferFilters getOfferFiltersOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOfferFilters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasUser()) { memoizedIsInitialized = 0; return false; } if (!hasName()) { memoizedIsInitialized = 0; return false; } if (hasId()) { if (!getId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (org.apache.mesos.v1.Protos.OfferFilters item : getOfferFiltersMap().values()) { if (!item.isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getId()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeDouble(4, failoverTimeout_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, checkpoint_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, role_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hostname_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, principal_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, webuiUrl_); } for (int i = 0; i < capabilities_.size(); i++) { output.writeMessage(10, capabilities_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(11, getLabels()); } for (int i = 0; i < roles_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, roles_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetOfferFilters(), OfferFiltersDefaultEntryHolder.defaultEntry, 13); unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getId()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, failoverTimeout_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, checkpoint_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, role_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, hostname_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, principal_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, webuiUrl_); } for (int i = 0; i < capabilities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, capabilities_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getLabels()); } { int dataSize = 0; for (int i = 0; i < roles_.size(); i++) { dataSize += computeStringSizeNoTag(roles_.getRaw(i)); } size += dataSize; size += 1 * getRolesList().size(); } for (java.util.Map.Entry entry : internalGetOfferFilters().getMap().entrySet()) { com.google.protobuf.MapEntry offerFilters__ = OfferFiltersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, offerFilters__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.FrameworkInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.FrameworkInfo other = (org.apache.mesos.v1.Protos.FrameworkInfo) obj; boolean result = true; result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser() .equals(other.getUser()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasFailoverTimeout() == other.hasFailoverTimeout()); if (hasFailoverTimeout()) { result = result && ( java.lang.Double.doubleToLongBits(getFailoverTimeout()) == java.lang.Double.doubleToLongBits( other.getFailoverTimeout())); } result = result && (hasCheckpoint() == other.hasCheckpoint()); if (hasCheckpoint()) { result = result && (getCheckpoint() == other.getCheckpoint()); } result = result && (hasRole() == other.hasRole()); if (hasRole()) { result = result && getRole() .equals(other.getRole()); } result = result && getRolesList() .equals(other.getRolesList()); result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname() .equals(other.getHostname()); } result = result && (hasPrincipal() == other.hasPrincipal()); if (hasPrincipal()) { result = result && getPrincipal() .equals(other.getPrincipal()); } result = result && (hasWebuiUrl() == other.hasWebuiUrl()); if (hasWebuiUrl()) { result = result && getWebuiUrl() .equals(other.getWebuiUrl()); } result = result && getCapabilitiesList() .equals(other.getCapabilitiesList()); result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && internalGetOfferFilters().equals( other.internalGetOfferFilters()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasFailoverTimeout()) { hash = (37 * hash) + FAILOVER_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getFailoverTimeout())); } if (hasCheckpoint()) { hash = (37 * hash) + CHECKPOINT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCheckpoint()); } if (hasRole()) { hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); } if (getRolesCount() > 0) { hash = (37 * hash) + ROLES_FIELD_NUMBER; hash = (53 * hash) + getRolesList().hashCode(); } if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasPrincipal()) { hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); } if (hasWebuiUrl()) { hash = (37 * hash) + WEBUI_URL_FIELD_NUMBER; hash = (53 * hash) + getWebuiUrl().hashCode(); } if (getCapabilitiesCount() > 0) { hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getCapabilitiesList().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } if (!internalGetOfferFilters().getMap().isEmpty()) { hash = (37 * hash) + OFFER_FILTERS_FIELD_NUMBER; hash = (53 * hash) + internalGetOfferFilters().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.FrameworkInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkInfo 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.Protos.FrameworkInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.FrameworkInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.FrameworkInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a framework.
     * 
* * Protobuf type {@code mesos.v1.FrameworkInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.FrameworkInfo) org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 13: return internalGetOfferFilters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 13: return internalGetMutableOfferFilters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.FrameworkInfo.class, org.apache.mesos.v1.Protos.FrameworkInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.FrameworkInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdFieldBuilder(); getCapabilitiesFieldBuilder(); getLabelsFieldBuilder(); } } public Builder clear() { super.clear(); user_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); failoverTimeout_ = 0D; bitField0_ = (bitField0_ & ~0x00000008); checkpoint_ = false; bitField0_ = (bitField0_ & ~0x00000010); role_ = "*"; bitField0_ = (bitField0_ & ~0x00000020); roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000080); principal_ = ""; bitField0_ = (bitField0_ & ~0x00000100); webuiUrl_ = ""; bitField0_ = (bitField0_ & ~0x00000200); if (capabilitiesBuilder_ == null) { capabilities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); } else { capabilitiesBuilder_.clear(); } if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableOfferFilters().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_FrameworkInfo_descriptor; } public org.apache.mesos.v1.Protos.FrameworkInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.FrameworkInfo build() { org.apache.mesos.v1.Protos.FrameworkInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.FrameworkInfo buildPartial() { org.apache.mesos.v1.Protos.FrameworkInfo result = new org.apache.mesos.v1.Protos.FrameworkInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.user_ = user_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.failoverTimeout_ = failoverTimeout_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.checkpoint_ = checkpoint_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.role_ = role_; if (((bitField0_ & 0x00000040) == 0x00000040)) { roles_ = roles_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.roles_ = roles_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.principal_ = principal_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000100; } result.webuiUrl_ = webuiUrl_; if (capabilitiesBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400)) { capabilities_ = java.util.Collections.unmodifiableList(capabilities_); bitField0_ = (bitField0_ & ~0x00000400); } result.capabilities_ = capabilities_; } else { result.capabilities_ = capabilitiesBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000200; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } result.offerFilters_ = internalGetOfferFilters(); result.offerFilters_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.FrameworkInfo) { return mergeFrom((org.apache.mesos.v1.Protos.FrameworkInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.FrameworkInfo other) { if (other == org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance()) return this; if (other.hasUser()) { bitField0_ |= 0x00000001; user_ = other.user_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasId()) { mergeId(other.getId()); } if (other.hasFailoverTimeout()) { setFailoverTimeout(other.getFailoverTimeout()); } if (other.hasCheckpoint()) { setCheckpoint(other.getCheckpoint()); } if (other.hasRole()) { bitField0_ |= 0x00000020; role_ = other.role_; onChanged(); } if (!other.roles_.isEmpty()) { if (roles_.isEmpty()) { roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureRolesIsMutable(); roles_.addAll(other.roles_); } onChanged(); } if (other.hasHostname()) { bitField0_ |= 0x00000080; hostname_ = other.hostname_; onChanged(); } if (other.hasPrincipal()) { bitField0_ |= 0x00000100; principal_ = other.principal_; onChanged(); } if (other.hasWebuiUrl()) { bitField0_ |= 0x00000200; webuiUrl_ = other.webuiUrl_; onChanged(); } if (capabilitiesBuilder_ == null) { if (!other.capabilities_.isEmpty()) { if (capabilities_.isEmpty()) { capabilities_ = other.capabilities_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureCapabilitiesIsMutable(); capabilities_.addAll(other.capabilities_); } onChanged(); } } else { if (!other.capabilities_.isEmpty()) { if (capabilitiesBuilder_.isEmpty()) { capabilitiesBuilder_.dispose(); capabilitiesBuilder_ = null; capabilities_ = other.capabilities_; bitField0_ = (bitField0_ & ~0x00000400); capabilitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCapabilitiesFieldBuilder() : null; } else { capabilitiesBuilder_.addAllMessages(other.capabilities_); } } } if (other.hasLabels()) { mergeLabels(other.getLabels()); } internalGetMutableOfferFilters().mergeFrom( other.internalGetOfferFilters()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasUser()) { return false; } if (!hasName()) { return false; } if (hasId()) { if (!getId().isInitialized()) { return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { return false; } } for (org.apache.mesos.v1.Protos.OfferFilters item : getOfferFiltersMap().values()) { if (!item.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.Protos.FrameworkInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.FrameworkInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object user_ = ""; /** *
       * Used to determine the Unix user that an executor or task should be
       * launched as.
       * When using the MesosSchedulerDriver, if the field is set to an
       * empty string, it will automagically set it to the current user.
       * When using the HTTP Scheduler API, the user has to be set
       * explicitly.
       * 
* * required string user = 1; */ public boolean hasUser() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Used to determine the Unix user that an executor or task should be
       * launched as.
       * When using the MesosSchedulerDriver, if the field is set to an
       * empty string, it will automagically set it to the current user.
       * When using the HTTP Scheduler API, the user has to be set
       * explicitly.
       * 
* * required string user = 1; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Used to determine the Unix user that an executor or task should be
       * launched as.
       * When using the MesosSchedulerDriver, if the field is set to an
       * empty string, it will automagically set it to the current user.
       * When using the HTTP Scheduler API, the user has to be set
       * explicitly.
       * 
* * required string user = 1; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Used to determine the Unix user that an executor or task should be
       * launched as.
       * When using the MesosSchedulerDriver, if the field is set to an
       * empty string, it will automagically set it to the current user.
       * When using the HTTP Scheduler API, the user has to be set
       * explicitly.
       * 
* * required string user = 1; */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; user_ = value; onChanged(); return this; } /** *
       * Used to determine the Unix user that an executor or task should be
       * launched as.
       * When using the MesosSchedulerDriver, if the field is set to an
       * empty string, it will automagically set it to the current user.
       * When using the HTTP Scheduler API, the user has to be set
       * explicitly.
       * 
* * required string user = 1; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000001); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** *
       * Used to determine the Unix user that an executor or task should be
       * launched as.
       * When using the MesosSchedulerDriver, if the field is set to an
       * empty string, it will automagically set it to the current user.
       * When using the HTTP Scheduler API, the user has to be set
       * explicitly.
       * 
* * required string user = 1; */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; user_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the framework that shows up in the Mesos Web UI.
       * 
* * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Name of the framework that shows up in the Mesos Web UI.
       * 
* * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the framework that shows up in the Mesos Web UI.
       * 
* * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the framework that shows up in the Mesos Web UI.
       * 
* * required string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** *
       * Name of the framework that shows up in the Mesos Web UI.
       * 
* * required string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the framework that shows up in the Mesos Web UI.
       * 
* * required string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.FrameworkID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> idBuilder_; /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID getId() { if (idBuilder_ == null) { return id_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ public Builder setId(org.apache.mesos.v1.Protos.FrameworkID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ public Builder setId( org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ public Builder mergeId(org.apache.mesos.v1.Protos.FrameworkID value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && id_ != null && id_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) { id_ = org.apache.mesos.v1.Protos.FrameworkID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID.Builder getIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : id_; } } /** *
       * Used to uniquely identify the framework.
       * This field must be unset when the framework subscribes for the
       * first time upon which the master will assign a new ID. To
       * resubscribe after scheduler failover the framework should set
       * 'id' to the ID assigned by the master.  Setting 'id' to values
       * not assigned by Mesos masters is unsupported.
       * 
* * optional .mesos.v1.FrameworkID id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private double failoverTimeout_ ; /** *
       * The amount of time (in seconds) that the master will wait for the
       * scheduler to failover before it tears down the framework by
       * killing all its tasks/executors. This should be non-zero if a
       * framework expects to reconnect after a failure and not lose its
       * tasks/executors.
       * NOTE: To avoid accidental destruction of tasks, production
       * frameworks typically set this to a large value (e.g., 1 week).
       * 
* * optional double failover_timeout = 4 [default = 0]; */ public boolean hasFailoverTimeout() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * The amount of time (in seconds) that the master will wait for the
       * scheduler to failover before it tears down the framework by
       * killing all its tasks/executors. This should be non-zero if a
       * framework expects to reconnect after a failure and not lose its
       * tasks/executors.
       * NOTE: To avoid accidental destruction of tasks, production
       * frameworks typically set this to a large value (e.g., 1 week).
       * 
* * optional double failover_timeout = 4 [default = 0]; */ public double getFailoverTimeout() { return failoverTimeout_; } /** *
       * The amount of time (in seconds) that the master will wait for the
       * scheduler to failover before it tears down the framework by
       * killing all its tasks/executors. This should be non-zero if a
       * framework expects to reconnect after a failure and not lose its
       * tasks/executors.
       * NOTE: To avoid accidental destruction of tasks, production
       * frameworks typically set this to a large value (e.g., 1 week).
       * 
* * optional double failover_timeout = 4 [default = 0]; */ public Builder setFailoverTimeout(double value) { bitField0_ |= 0x00000008; failoverTimeout_ = value; onChanged(); return this; } /** *
       * The amount of time (in seconds) that the master will wait for the
       * scheduler to failover before it tears down the framework by
       * killing all its tasks/executors. This should be non-zero if a
       * framework expects to reconnect after a failure and not lose its
       * tasks/executors.
       * NOTE: To avoid accidental destruction of tasks, production
       * frameworks typically set this to a large value (e.g., 1 week).
       * 
* * optional double failover_timeout = 4 [default = 0]; */ public Builder clearFailoverTimeout() { bitField0_ = (bitField0_ & ~0x00000008); failoverTimeout_ = 0D; onChanged(); return this; } private boolean checkpoint_ ; /** *
       * If set, agents running tasks started by this framework will write
       * the framework pid, executor pids and status updates to disk. If
       * the agent exits (e.g., due to a crash or as part of upgrading
       * Mesos), this checkpointed data allows the restarted agent to
       * reconnect to executors that were started by the old instance of
       * the agent. Enabling checkpointing improves fault tolerance, at
       * the cost of a (usually small) increase in disk I/O.
       * 
* * optional bool checkpoint = 5 [default = false]; */ public boolean hasCheckpoint() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * If set, agents running tasks started by this framework will write
       * the framework pid, executor pids and status updates to disk. If
       * the agent exits (e.g., due to a crash or as part of upgrading
       * Mesos), this checkpointed data allows the restarted agent to
       * reconnect to executors that were started by the old instance of
       * the agent. Enabling checkpointing improves fault tolerance, at
       * the cost of a (usually small) increase in disk I/O.
       * 
* * optional bool checkpoint = 5 [default = false]; */ public boolean getCheckpoint() { return checkpoint_; } /** *
       * If set, agents running tasks started by this framework will write
       * the framework pid, executor pids and status updates to disk. If
       * the agent exits (e.g., due to a crash or as part of upgrading
       * Mesos), this checkpointed data allows the restarted agent to
       * reconnect to executors that were started by the old instance of
       * the agent. Enabling checkpointing improves fault tolerance, at
       * the cost of a (usually small) increase in disk I/O.
       * 
* * optional bool checkpoint = 5 [default = false]; */ public Builder setCheckpoint(boolean value) { bitField0_ |= 0x00000010; checkpoint_ = value; onChanged(); return this; } /** *
       * If set, agents running tasks started by this framework will write
       * the framework pid, executor pids and status updates to disk. If
       * the agent exits (e.g., due to a crash or as part of upgrading
       * Mesos), this checkpointed data allows the restarted agent to
       * reconnect to executors that were started by the old instance of
       * the agent. Enabling checkpointing improves fault tolerance, at
       * the cost of a (usually small) increase in disk I/O.
       * 
* * optional bool checkpoint = 5 [default = false]; */ public Builder clearCheckpoint() { bitField0_ = (bitField0_ & ~0x00000010); checkpoint_ = false; onChanged(); return this; } private java.lang.Object role_ = "*"; /** *
       * Roles are the entities to which allocations are made.
       * The framework must have at least one role in order to
       * be offered resources. Note that `role` is deprecated
       * in favor of `roles` and only one of these fields must
       * be used. Since we cannot distinguish between empty
       * `roles` and the default unset `role`, we require that
       * frameworks set the `MULTI_ROLE` capability if
       * setting the `roles` field.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public boolean hasRole() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * Roles are the entities to which allocations are made.
       * The framework must have at least one role in order to
       * be offered resources. Note that `role` is deprecated
       * in favor of `roles` and only one of these fields must
       * be used. Since we cannot distinguish between empty
       * `roles` and the default unset `role`, we require that
       * frameworks set the `MULTI_ROLE` capability if
       * setting the `roles` field.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Roles are the entities to which allocations are made.
       * The framework must have at least one role in order to
       * be offered resources. Note that `role` is deprecated
       * in favor of `roles` and only one of these fields must
       * be used. Since we cannot distinguish between empty
       * `roles` and the default unset `role`, we require that
       * frameworks set the `MULTI_ROLE` capability if
       * setting the `roles` field.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Roles are the entities to which allocations are made.
       * The framework must have at least one role in order to
       * be offered resources. Note that `role` is deprecated
       * in favor of `roles` and only one of these fields must
       * be used. Since we cannot distinguish between empty
       * `roles` and the default unset `role`, we require that
       * frameworks set the `MULTI_ROLE` capability if
       * setting the `roles` field.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; role_ = value; onChanged(); return this; } /** *
       * Roles are the entities to which allocations are made.
       * The framework must have at least one role in order to
       * be offered resources. Note that `role` is deprecated
       * in favor of `roles` and only one of these fields must
       * be used. Since we cannot distinguish between empty
       * `roles` and the default unset `role`, we require that
       * frameworks set the `MULTI_ROLE` capability if
       * setting the `roles` field.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public Builder clearRole() { bitField0_ = (bitField0_ & ~0x00000020); role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** *
       * Roles are the entities to which allocations are made.
       * The framework must have at least one role in order to
       * be offered resources. Note that `role` is deprecated
       * in favor of `roles` and only one of these fields must
       * be used. Since we cannot distinguish between empty
       * `roles` and the default unset `role`, we require that
       * frameworks set the `MULTI_ROLE` capability if
       * setting the `roles` field.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; role_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { roles_ = new com.google.protobuf.LazyStringArrayList(roles_); bitField0_ |= 0x00000040; } } /** * repeated string roles = 12; */ public com.google.protobuf.ProtocolStringList getRolesList() { return roles_.getUnmodifiableView(); } /** * repeated string roles = 12; */ public int getRolesCount() { return roles_.size(); } /** * repeated string roles = 12; */ public java.lang.String getRoles(int index) { return roles_.get(index); } /** * repeated string roles = 12; */ public com.google.protobuf.ByteString getRolesBytes(int index) { return roles_.getByteString(index); } /** * repeated string roles = 12; */ public Builder setRoles( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** * repeated string roles = 12; */ public Builder addRoles( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } /** * repeated string roles = 12; */ public Builder addAllRoles( java.lang.Iterable values) { ensureRolesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, roles_); onChanged(); return this; } /** * repeated string roles = 12; */ public Builder clearRoles() { roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * repeated string roles = 12; */ public Builder addRolesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } private java.lang.Object hostname_ = ""; /** *
       * Used to indicate the current host from which the scheduler is
       * registered in the Mesos Web UI. If set to an empty string Mesos
       * will automagically set it to the current hostname if one is
       * available.
       * 
* * optional string hostname = 7; */ public boolean hasHostname() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       * Used to indicate the current host from which the scheduler is
       * registered in the Mesos Web UI. If set to an empty string Mesos
       * will automagically set it to the current hostname if one is
       * available.
       * 
* * optional string hostname = 7; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Used to indicate the current host from which the scheduler is
       * registered in the Mesos Web UI. If set to an empty string Mesos
       * will automagically set it to the current hostname if one is
       * available.
       * 
* * optional string hostname = 7; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Used to indicate the current host from which the scheduler is
       * registered in the Mesos Web UI. If set to an empty string Mesos
       * will automagically set it to the current hostname if one is
       * available.
       * 
* * optional string hostname = 7; */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; hostname_ = value; onChanged(); return this; } /** *
       * Used to indicate the current host from which the scheduler is
       * registered in the Mesos Web UI. If set to an empty string Mesos
       * will automagically set it to the current hostname if one is
       * available.
       * 
* * optional string hostname = 7; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000080); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** *
       * Used to indicate the current host from which the scheduler is
       * registered in the Mesos Web UI. If set to an empty string Mesos
       * will automagically set it to the current hostname if one is
       * available.
       * 
* * optional string hostname = 7; */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; hostname_ = value; onChanged(); return this; } private java.lang.Object principal_ = ""; /** *
       * This field should match the credential's principal the framework
       * uses for authentication. This field is used for framework API
       * rate limiting and dynamic reservations. It should be set even
       * if authentication is not enabled if these features are desired.
       * 
* * optional string principal = 8; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * This field should match the credential's principal the framework
       * uses for authentication. This field is used for framework API
       * rate limiting and dynamic reservations. It should be set even
       * if authentication is not enabled if these features are desired.
       * 
* * optional string principal = 8; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * This field should match the credential's principal the framework
       * uses for authentication. This field is used for framework API
       * rate limiting and dynamic reservations. It should be set even
       * if authentication is not enabled if these features are desired.
       * 
* * optional string principal = 8; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * This field should match the credential's principal the framework
       * uses for authentication. This field is used for framework API
       * rate limiting and dynamic reservations. It should be set even
       * if authentication is not enabled if these features are desired.
       * 
* * optional string principal = 8; */ public Builder setPrincipal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; principal_ = value; onChanged(); return this; } /** *
       * This field should match the credential's principal the framework
       * uses for authentication. This field is used for framework API
       * rate limiting and dynamic reservations. It should be set even
       * if authentication is not enabled if these features are desired.
       * 
* * optional string principal = 8; */ public Builder clearPrincipal() { bitField0_ = (bitField0_ & ~0x00000100); principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** *
       * This field should match the credential's principal the framework
       * uses for authentication. This field is used for framework API
       * rate limiting and dynamic reservations. It should be set even
       * if authentication is not enabled if these features are desired.
       * 
* * optional string principal = 8; */ public Builder setPrincipalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; principal_ = value; onChanged(); return this; } private java.lang.Object webuiUrl_ = ""; /** *
       * This field allows a framework to advertise its web UI, so that
       * the Mesos web UI can link to it. It is expected to be a full URL,
       * for example http://my-scheduler.example.com:8080/.
       * 
* * optional string webui_url = 9; */ public boolean hasWebuiUrl() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       * This field allows a framework to advertise its web UI, so that
       * the Mesos web UI can link to it. It is expected to be a full URL,
       * for example http://my-scheduler.example.com:8080/.
       * 
* * optional string webui_url = 9; */ public java.lang.String getWebuiUrl() { java.lang.Object ref = webuiUrl_; 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()) { webuiUrl_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * This field allows a framework to advertise its web UI, so that
       * the Mesos web UI can link to it. It is expected to be a full URL,
       * for example http://my-scheduler.example.com:8080/.
       * 
* * optional string webui_url = 9; */ public com.google.protobuf.ByteString getWebuiUrlBytes() { java.lang.Object ref = webuiUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); webuiUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * This field allows a framework to advertise its web UI, so that
       * the Mesos web UI can link to it. It is expected to be a full URL,
       * for example http://my-scheduler.example.com:8080/.
       * 
* * optional string webui_url = 9; */ public Builder setWebuiUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; webuiUrl_ = value; onChanged(); return this; } /** *
       * This field allows a framework to advertise its web UI, so that
       * the Mesos web UI can link to it. It is expected to be a full URL,
       * for example http://my-scheduler.example.com:8080/.
       * 
* * optional string webui_url = 9; */ public Builder clearWebuiUrl() { bitField0_ = (bitField0_ & ~0x00000200); webuiUrl_ = getDefaultInstance().getWebuiUrl(); onChanged(); return this; } /** *
       * This field allows a framework to advertise its web UI, so that
       * the Mesos web UI can link to it. It is expected to be a full URL,
       * for example http://my-scheduler.example.com:8080/.
       * 
* * optional string webui_url = 9; */ public Builder setWebuiUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; webuiUrl_ = value; onChanged(); return this; } private java.util.List capabilities_ = java.util.Collections.emptyList(); private void ensureCapabilitiesIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { capabilities_ = new java.util.ArrayList(capabilities_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkInfo.Capability, org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder, org.apache.mesos.v1.Protos.FrameworkInfo.CapabilityOrBuilder> capabilitiesBuilder_; /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public java.util.List getCapabilitiesList() { if (capabilitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(capabilities_); } else { return capabilitiesBuilder_.getMessageList(); } } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public int getCapabilitiesCount() { if (capabilitiesBuilder_ == null) { return capabilities_.size(); } else { return capabilitiesBuilder_.getCount(); } } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public org.apache.mesos.v1.Protos.FrameworkInfo.Capability getCapabilities(int index) { if (capabilitiesBuilder_ == null) { return capabilities_.get(index); } else { return capabilitiesBuilder_.getMessage(index); } } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder setCapabilities( int index, org.apache.mesos.v1.Protos.FrameworkInfo.Capability value) { if (capabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.set(index, value); onChanged(); } else { capabilitiesBuilder_.setMessage(index, value); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder setCapabilities( int index, org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder builderForValue) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); capabilities_.set(index, builderForValue.build()); onChanged(); } else { capabilitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder addCapabilities(org.apache.mesos.v1.Protos.FrameworkInfo.Capability value) { if (capabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.add(value); onChanged(); } else { capabilitiesBuilder_.addMessage(value); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder addCapabilities( int index, org.apache.mesos.v1.Protos.FrameworkInfo.Capability value) { if (capabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.add(index, value); onChanged(); } else { capabilitiesBuilder_.addMessage(index, value); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder addCapabilities( org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder builderForValue) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); capabilities_.add(builderForValue.build()); onChanged(); } else { capabilitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder addCapabilities( int index, org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder builderForValue) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); capabilities_.add(index, builderForValue.build()); onChanged(); } else { capabilitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder addAllCapabilities( java.lang.Iterable values) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, capabilities_); onChanged(); } else { capabilitiesBuilder_.addAllMessages(values); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder clearCapabilities() { if (capabilitiesBuilder_ == null) { capabilities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { capabilitiesBuilder_.clear(); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public Builder removeCapabilities(int index) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); capabilities_.remove(index); onChanged(); } else { capabilitiesBuilder_.remove(index); } return this; } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder getCapabilitiesBuilder( int index) { return getCapabilitiesFieldBuilder().getBuilder(index); } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public org.apache.mesos.v1.Protos.FrameworkInfo.CapabilityOrBuilder getCapabilitiesOrBuilder( int index) { if (capabilitiesBuilder_ == null) { return capabilities_.get(index); } else { return capabilitiesBuilder_.getMessageOrBuilder(index); } } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public java.util.List getCapabilitiesOrBuilderList() { if (capabilitiesBuilder_ != null) { return capabilitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(capabilities_); } } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder addCapabilitiesBuilder() { return getCapabilitiesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.FrameworkInfo.Capability.getDefaultInstance()); } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder addCapabilitiesBuilder( int index) { return getCapabilitiesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.FrameworkInfo.Capability.getDefaultInstance()); } /** *
       * This field allows a framework to advertise its set of
       * capabilities (e.g., ability to receive offers for revocable
       * resources).
       * 
* * repeated .mesos.v1.FrameworkInfo.Capability capabilities = 10; */ public java.util.List getCapabilitiesBuilderList() { return getCapabilitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkInfo.Capability, org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder, org.apache.mesos.v1.Protos.FrameworkInfo.CapabilityOrBuilder> getCapabilitiesFieldBuilder() { if (capabilitiesBuilder_ == null) { capabilitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkInfo.Capability, org.apache.mesos.v1.Protos.FrameworkInfo.Capability.Builder, org.apache.mesos.v1.Protos.FrameworkInfo.CapabilityOrBuilder>( capabilities_, ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); capabilities_ = null; } return capabilitiesBuilder_; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ public boolean hasLabels() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00000800; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** *
       * Labels are free-form key value pairs supplied by the framework
       * scheduler (e.g., to describe additional functionality offered by
       * the framework). These labels are not interpreted by Mesos itself.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } private com.google.protobuf.MapField< java.lang.String, org.apache.mesos.v1.Protos.OfferFilters> offerFilters_; private com.google.protobuf.MapField internalGetOfferFilters() { if (offerFilters_ == null) { return com.google.protobuf.MapField.emptyMapField( OfferFiltersDefaultEntryHolder.defaultEntry); } return offerFilters_; } private com.google.protobuf.MapField internalGetMutableOfferFilters() { onChanged();; if (offerFilters_ == null) { offerFilters_ = com.google.protobuf.MapField.newMapField( OfferFiltersDefaultEntryHolder.defaultEntry); } if (!offerFilters_.isMutable()) { offerFilters_ = offerFilters_.copy(); } return offerFilters_; } public int getOfferFiltersCount() { return internalGetOfferFilters().getMap().size(); } /** *
       * Specifc resource requirements for each of the framework's roles. This field
       * is used by e.g., the default allocator to decide whether a framework is
       * interested in seeing a resource of a certain shape.
       * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public boolean containsOfferFilters( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOfferFilters().getMap().containsKey(key); } /** * Use {@link #getOfferFiltersMap()} instead. */ @java.lang.Deprecated public java.util.Map getOfferFilters() { return getOfferFiltersMap(); } /** *
       * Specifc resource requirements for each of the framework's roles. This field
       * is used by e.g., the default allocator to decide whether a framework is
       * interested in seeing a resource of a certain shape.
       * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public java.util.Map getOfferFiltersMap() { return internalGetOfferFilters().getMap(); } /** *
       * Specifc resource requirements for each of the framework's roles. This field
       * is used by e.g., the default allocator to decide whether a framework is
       * interested in seeing a resource of a certain shape.
       * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public org.apache.mesos.v1.Protos.OfferFilters getOfferFiltersOrDefault( java.lang.String key, org.apache.mesos.v1.Protos.OfferFilters defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOfferFilters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Specifc resource requirements for each of the framework's roles. This field
       * is used by e.g., the default allocator to decide whether a framework is
       * interested in seeing a resource of a certain shape.
       * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public org.apache.mesos.v1.Protos.OfferFilters getOfferFiltersOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOfferFilters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearOfferFilters() { internalGetMutableOfferFilters().getMutableMap() .clear(); return this; } /** *
       * Specifc resource requirements for each of the framework's roles. This field
       * is used by e.g., the default allocator to decide whether a framework is
       * interested in seeing a resource of a certain shape.
       * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public Builder removeOfferFilters( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableOfferFilters().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableOfferFilters() { return internalGetMutableOfferFilters().getMutableMap(); } /** *
       * Specifc resource requirements for each of the framework's roles. This field
       * is used by e.g., the default allocator to decide whether a framework is
       * interested in seeing a resource of a certain shape.
       * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public Builder putOfferFilters( java.lang.String key, org.apache.mesos.v1.Protos.OfferFilters value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableOfferFilters().getMutableMap() .put(key, value); return this; } /** *
       * Specifc resource requirements for each of the framework's roles. This field
       * is used by e.g., the default allocator to decide whether a framework is
       * interested in seeing a resource of a certain shape.
       * 
* * map<string, .mesos.v1.OfferFilters> offer_filters = 13; */ public Builder putAllOfferFilters( java.util.Map values) { internalGetMutableOfferFilters().getMutableMap() .putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.FrameworkInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.FrameworkInfo) private static final org.apache.mesos.v1.Protos.FrameworkInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.FrameworkInfo(); } public static org.apache.mesos.v1.Protos.FrameworkInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FrameworkInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FrameworkInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.FrameworkInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CheckInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The type of the check.
     * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ boolean hasType(); /** *
     * The type of the check.
     * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ org.apache.mesos.v1.Protos.CheckInfo.Type getType(); /** *
     * Command check.
     * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ boolean hasCommand(); /** *
     * Command check.
     * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ org.apache.mesos.v1.Protos.CheckInfo.Command getCommand(); /** *
     * Command check.
     * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ org.apache.mesos.v1.Protos.CheckInfo.CommandOrBuilder getCommandOrBuilder(); /** *
     * HTTP check.
     * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ boolean hasHttp(); /** *
     * HTTP check.
     * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ org.apache.mesos.v1.Protos.CheckInfo.Http getHttp(); /** *
     * HTTP check.
     * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ org.apache.mesos.v1.Protos.CheckInfo.HttpOrBuilder getHttpOrBuilder(); /** *
     * TCP check.
     * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ boolean hasTcp(); /** *
     * TCP check.
     * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ org.apache.mesos.v1.Protos.CheckInfo.Tcp getTcp(); /** *
     * TCP check.
     * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ org.apache.mesos.v1.Protos.CheckInfo.TcpOrBuilder getTcpOrBuilder(); /** *
     * Amount of time to wait to start checking the task after it
     * transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
     * is used by the executor.
     * 
* * optional double delay_seconds = 4 [default = 15]; */ boolean hasDelaySeconds(); /** *
     * Amount of time to wait to start checking the task after it
     * transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
     * is used by the executor.
     * 
* * optional double delay_seconds = 4 [default = 15]; */ double getDelaySeconds(); /** *
     * Interval between check attempts, i.e., amount of time to wait after
     * the previous check finished or timed out to start the next check.
     * 
* * optional double interval_seconds = 5 [default = 10]; */ boolean hasIntervalSeconds(); /** *
     * Interval between check attempts, i.e., amount of time to wait after
     * the previous check finished or timed out to start the next check.
     * 
* * optional double interval_seconds = 5 [default = 10]; */ double getIntervalSeconds(); /** *
     * Amount of time to wait for the check to complete. Zero means infinite
     * timeout.
     * After this timeout, the check attempt is aborted and no result is
     * reported. Note that this may be considered a state change and hence
     * may trigger a check status change delivery to the corresponding
     * scheduler. See `CheckStatusInfo` for more details.
     * 
* * optional double timeout_seconds = 6 [default = 20]; */ boolean hasTimeoutSeconds(); /** *
     * Amount of time to wait for the check to complete. Zero means infinite
     * timeout.
     * After this timeout, the check attempt is aborted and no result is
     * reported. Note that this may be considered a state change and hence
     * may trigger a check status change delivery to the corresponding
     * scheduler. See `CheckStatusInfo` for more details.
     * 
* * optional double timeout_seconds = 6 [default = 20]; */ double getTimeoutSeconds(); } /** *
   **
   * Describes a general non-interpreting non-killing check for a task or
   * executor (or any arbitrary process/command). A type is picked by
   * specifying one of the optional fields. Specifying more than one type
   * is an error.
   * NOTE: This API is subject to change and the related feature is experimental.
   * 
* * Protobuf type {@code mesos.v1.CheckInfo} */ public static final class CheckInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CheckInfo) CheckInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CheckInfo.newBuilder() to construct. private CheckInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckInfo() { type_ = 0; delaySeconds_ = 15D; intervalSeconds_ = 10D; timeoutSeconds_ = 20D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.CheckInfo.Type value = org.apache.mesos.v1.Protos.CheckInfo.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { org.apache.mesos.v1.Protos.CheckInfo.Command.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CheckInfo.Command.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.CheckInfo.Http.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = http_.toBuilder(); } http_ = input.readMessage(org.apache.mesos.v1.Protos.CheckInfo.Http.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(http_); http_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 33: { bitField0_ |= 0x00000010; delaySeconds_ = input.readDouble(); break; } case 41: { bitField0_ |= 0x00000020; intervalSeconds_ = input.readDouble(); break; } case 49: { bitField0_ |= 0x00000040; timeoutSeconds_ = input.readDouble(); break; } case 58: { org.apache.mesos.v1.Protos.CheckInfo.Tcp.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = tcp_.toBuilder(); } tcp_ = input.readMessage(org.apache.mesos.v1.Protos.CheckInfo.Tcp.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tcp_); tcp_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckInfo.class, org.apache.mesos.v1.Protos.CheckInfo.Builder.class); } /** * Protobuf enum {@code mesos.v1.CheckInfo.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * COMMAND = 1; */ COMMAND(1), /** * HTTP = 2; */ HTTP(2), /** * TCP = 3; */ TCP(3), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * COMMAND = 1; */ public static final int COMMAND_VALUE = 1; /** * HTTP = 2; */ public static final int HTTP_VALUE = 2; /** * TCP = 3; */ public static final int TCP_VALUE = 3; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return COMMAND; case 2: return HTTP; case 3: return TCP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.CheckInfo.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.CheckInfo.Type) } public interface CommandOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CheckInfo.Command) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.CommandInfo command = 1; */ boolean hasCommand(); /** * required .mesos.v1.CommandInfo command = 1; */ org.apache.mesos.v1.Protos.CommandInfo getCommand(); /** * required .mesos.v1.CommandInfo command = 1; */ org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder(); } /** *
     * Describes a command check. If applicable, enters mount and/or network
     * namespaces of the task.
     * 
* * Protobuf type {@code mesos.v1.CheckInfo.Command} */ public static final class Command extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CheckInfo.Command) CommandOrBuilder { private static final long serialVersionUID = 0L; // Use Command.newBuilder() to construct. private Command(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Command() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Command( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.CommandInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CommandInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Command_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Command_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckInfo.Command.class, org.apache.mesos.v1.Protos.CheckInfo.Command.Builder.class); } private int bitField0_; public static final int COMMAND_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.CommandInfo command_; /** * required .mesos.v1.CommandInfo command = 1; */ public boolean hasCommand() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.CommandInfo command = 1; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } /** * required .mesos.v1.CommandInfo command = 1; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasCommand()) { memoizedIsInitialized = 0; return false; } if (!getCommand().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getCommand()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCommand()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CheckInfo.Command)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CheckInfo.Command other = (org.apache.mesos.v1.Protos.CheckInfo.Command) obj; boolean result = true; result = result && (hasCommand() == other.hasCommand()); if (hasCommand()) { result = result && getCommand() .equals(other.getCommand()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Command 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.Protos.CheckInfo.Command parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Command parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CheckInfo.Command prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes a command check. If applicable, enters mount and/or network
       * namespaces of the task.
       * 
* * Protobuf type {@code mesos.v1.CheckInfo.Command} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CheckInfo.Command) org.apache.mesos.v1.Protos.CheckInfo.CommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Command_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Command_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckInfo.Command.class, org.apache.mesos.v1.Protos.CheckInfo.Command.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CheckInfo.Command.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommandFieldBuilder(); } } public Builder clear() { super.clear(); if (commandBuilder_ == null) { command_ = null; } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Command_descriptor; } public org.apache.mesos.v1.Protos.CheckInfo.Command getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CheckInfo.Command.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CheckInfo.Command build() { org.apache.mesos.v1.Protos.CheckInfo.Command result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CheckInfo.Command buildPartial() { org.apache.mesos.v1.Protos.CheckInfo.Command result = new org.apache.mesos.v1.Protos.CheckInfo.Command(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CheckInfo.Command) { return mergeFrom((org.apache.mesos.v1.Protos.CheckInfo.Command)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CheckInfo.Command other) { if (other == org.apache.mesos.v1.Protos.CheckInfo.Command.getDefaultInstance()) return this; if (other.hasCommand()) { mergeCommand(other.getCommand()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasCommand()) { return false; } if (!getCommand().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.Protos.CheckInfo.Command parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CheckInfo.Command) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.CommandInfo command_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CommandInfo, org.apache.mesos.v1.Protos.CommandInfo.Builder, org.apache.mesos.v1.Protos.CommandInfoOrBuilder> commandBuilder_; /** * required .mesos.v1.CommandInfo command = 1; */ public boolean hasCommand() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.CommandInfo command = 1; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { if (commandBuilder_ == null) { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } else { return commandBuilder_.getMessage(); } } /** * required .mesos.v1.CommandInfo command = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.CommandInfo command = 1; */ public Builder setCommand( org.apache.mesos.v1.Protos.CommandInfo.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.CommandInfo command = 1; */ public Builder mergeCommand(org.apache.mesos.v1.Protos.CommandInfo value) { if (commandBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && command_ != null && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.CommandInfo command = 1; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = null; onChanged(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.CommandInfo command = 1; */ public org.apache.mesos.v1.Protos.CommandInfo.Builder getCommandBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCommandFieldBuilder().getBuilder(); } /** * required .mesos.v1.CommandInfo command = 1; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } } /** * required .mesos.v1.CommandInfo command = 1; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CheckInfo.Command) } // @@protoc_insertion_point(class_scope:mesos.v1.CheckInfo.Command) private static final org.apache.mesos.v1.Protos.CheckInfo.Command DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CheckInfo.Command(); } public static org.apache.mesos.v1.Protos.CheckInfo.Command getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Command parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Command(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CheckInfo.Command getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HttpOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CheckInfo.Http) com.google.protobuf.MessageOrBuilder { /** *
       * Port to send the HTTP request.
       * 
* * required uint32 port = 1; */ boolean hasPort(); /** *
       * Port to send the HTTP request.
       * 
* * required uint32 port = 1; */ int getPort(); /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ boolean hasPath(); /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ java.lang.String getPath(); /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ com.google.protobuf.ByteString getPathBytes(); } /** *
     * Describes an HTTP check. Sends a GET request to
     * http://<host>:port/path. Note that <host> is not configurable and is
     * resolved automatically to 127.0.0.1.
     * 
* * Protobuf type {@code mesos.v1.CheckInfo.Http} */ public static final class Http extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CheckInfo.Http) HttpOrBuilder { private static final long serialVersionUID = 0L; // Use Http.newBuilder() to construct. private Http(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Http() { port_ = 0; path_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Http( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; port_ = input.readUInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Http_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Http_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckInfo.Http.class, org.apache.mesos.v1.Protos.CheckInfo.Http.Builder.class); } private int bitField0_; public static final int PORT_FIELD_NUMBER = 1; private int port_; /** *
       * Port to send the HTTP request.
       * 
* * required uint32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Port to send the HTTP request.
       * 
* * required uint32 port = 1; */ public int getPort() { return port_; } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ 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; } } /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ 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 byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPort()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, port_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, port_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CheckInfo.Http)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CheckInfo.Http other = (org.apache.mesos.v1.Protos.CheckInfo.Http) obj; boolean result = true; result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Http 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.Protos.CheckInfo.Http parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Http parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CheckInfo.Http prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes an HTTP check. Sends a GET request to
       * http://<host>:port/path. Note that <host> is not configurable and is
       * resolved automatically to 127.0.0.1.
       * 
* * Protobuf type {@code mesos.v1.CheckInfo.Http} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CheckInfo.Http) org.apache.mesos.v1.Protos.CheckInfo.HttpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Http_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Http_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckInfo.Http.class, org.apache.mesos.v1.Protos.CheckInfo.Http.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CheckInfo.Http.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); port_ = 0; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Http_descriptor; } public org.apache.mesos.v1.Protos.CheckInfo.Http getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CheckInfo.Http.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CheckInfo.Http build() { org.apache.mesos.v1.Protos.CheckInfo.Http result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CheckInfo.Http buildPartial() { org.apache.mesos.v1.Protos.CheckInfo.Http result = new org.apache.mesos.v1.Protos.CheckInfo.Http(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.port_ = port_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.path_ = path_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CheckInfo.Http) { return mergeFrom((org.apache.mesos.v1.Protos.CheckInfo.Http)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CheckInfo.Http other) { if (other == org.apache.mesos.v1.Protos.CheckInfo.Http.getDefaultInstance()) return this; if (other.hasPort()) { setPort(other.getPort()); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPort()) { 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.Protos.CheckInfo.Http parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CheckInfo.Http) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int port_ ; /** *
         * Port to send the HTTP request.
         * 
* * required uint32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Port to send the HTTP request.
         * 
* * required uint32 port = 1; */ public int getPort() { return port_; } /** *
         * Port to send the HTTP request.
         * 
* * required uint32 port = 1; */ public Builder setPort(int value) { bitField0_ |= 0x00000001; port_ = value; onChanged(); return this; } /** *
         * Port to send the HTTP request.
         * 
* * required uint32 port = 1; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000001); port_ = 0; onChanged(); return this; } private java.lang.Object path_ = ""; /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ 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; } } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ 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; } } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CheckInfo.Http) } // @@protoc_insertion_point(class_scope:mesos.v1.CheckInfo.Http) private static final org.apache.mesos.v1.Protos.CheckInfo.Http DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CheckInfo.Http(); } public static org.apache.mesos.v1.Protos.CheckInfo.Http getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Http parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Http(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CheckInfo.Http getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TcpOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CheckInfo.Tcp) com.google.protobuf.MessageOrBuilder { /** * required uint32 port = 1; */ boolean hasPort(); /** * required uint32 port = 1; */ int getPort(); } /** *
     * Describes a TCP check, i.e. based on establishing a TCP connection to
     * the specified port. Note that <host> is not configurable and is resolved
     * automatically to 127.0.0.1.
     * 
* * Protobuf type {@code mesos.v1.CheckInfo.Tcp} */ public static final class Tcp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CheckInfo.Tcp) TcpOrBuilder { private static final long serialVersionUID = 0L; // Use Tcp.newBuilder() to construct. private Tcp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tcp() { port_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Tcp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; port_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Tcp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Tcp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckInfo.Tcp.class, org.apache.mesos.v1.Protos.CheckInfo.Tcp.Builder.class); } private int bitField0_; public static final int PORT_FIELD_NUMBER = 1; private int port_; /** * required uint32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 port = 1; */ public int getPort() { return port_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPort()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, port_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, port_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CheckInfo.Tcp)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CheckInfo.Tcp other = (org.apache.mesos.v1.Protos.CheckInfo.Tcp) obj; boolean result = true; result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp 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.Protos.CheckInfo.Tcp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CheckInfo.Tcp prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes a TCP check, i.e. based on establishing a TCP connection to
       * the specified port. Note that <host> is not configurable and is resolved
       * automatically to 127.0.0.1.
       * 
* * Protobuf type {@code mesos.v1.CheckInfo.Tcp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CheckInfo.Tcp) org.apache.mesos.v1.Protos.CheckInfo.TcpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Tcp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Tcp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckInfo.Tcp.class, org.apache.mesos.v1.Protos.CheckInfo.Tcp.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CheckInfo.Tcp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); port_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_Tcp_descriptor; } public org.apache.mesos.v1.Protos.CheckInfo.Tcp getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CheckInfo.Tcp.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CheckInfo.Tcp build() { org.apache.mesos.v1.Protos.CheckInfo.Tcp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CheckInfo.Tcp buildPartial() { org.apache.mesos.v1.Protos.CheckInfo.Tcp result = new org.apache.mesos.v1.Protos.CheckInfo.Tcp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.port_ = port_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CheckInfo.Tcp) { return mergeFrom((org.apache.mesos.v1.Protos.CheckInfo.Tcp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CheckInfo.Tcp other) { if (other == org.apache.mesos.v1.Protos.CheckInfo.Tcp.getDefaultInstance()) return this; if (other.hasPort()) { setPort(other.getPort()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPort()) { 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.Protos.CheckInfo.Tcp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CheckInfo.Tcp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int port_ ; /** * required uint32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 port = 1; */ public int getPort() { return port_; } /** * required uint32 port = 1; */ public Builder setPort(int value) { bitField0_ |= 0x00000001; port_ = value; onChanged(); return this; } /** * required uint32 port = 1; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000001); port_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CheckInfo.Tcp) } // @@protoc_insertion_point(class_scope:mesos.v1.CheckInfo.Tcp) private static final org.apache.mesos.v1.Protos.CheckInfo.Tcp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CheckInfo.Tcp(); } public static org.apache.mesos.v1.Protos.CheckInfo.Tcp getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Tcp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Tcp(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CheckInfo.Tcp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * The type of the check.
     * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * The type of the check.
     * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public org.apache.mesos.v1.Protos.CheckInfo.Type getType() { org.apache.mesos.v1.Protos.CheckInfo.Type result = org.apache.mesos.v1.Protos.CheckInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.CheckInfo.Type.UNKNOWN : result; } public static final int COMMAND_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.CheckInfo.Command command_; /** *
     * Command check.
     * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public boolean hasCommand() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Command check.
     * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckInfo.Command getCommand() { return command_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Command.getDefaultInstance() : command_; } /** *
     * Command check.
     * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckInfo.CommandOrBuilder getCommandOrBuilder() { return command_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Command.getDefaultInstance() : command_; } public static final int HTTP_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.CheckInfo.Http http_; /** *
     * HTTP check.
     * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public boolean hasHttp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * HTTP check.
     * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckInfo.Http getHttp() { return http_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Http.getDefaultInstance() : http_; } /** *
     * HTTP check.
     * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckInfo.HttpOrBuilder getHttpOrBuilder() { return http_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Http.getDefaultInstance() : http_; } public static final int TCP_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.CheckInfo.Tcp tcp_; /** *
     * TCP check.
     * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public boolean hasTcp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * TCP check.
     * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public org.apache.mesos.v1.Protos.CheckInfo.Tcp getTcp() { return tcp_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Tcp.getDefaultInstance() : tcp_; } /** *
     * TCP check.
     * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public org.apache.mesos.v1.Protos.CheckInfo.TcpOrBuilder getTcpOrBuilder() { return tcp_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Tcp.getDefaultInstance() : tcp_; } public static final int DELAY_SECONDS_FIELD_NUMBER = 4; private double delaySeconds_; /** *
     * Amount of time to wait to start checking the task after it
     * transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
     * is used by the executor.
     * 
* * optional double delay_seconds = 4 [default = 15]; */ public boolean hasDelaySeconds() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * Amount of time to wait to start checking the task after it
     * transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
     * is used by the executor.
     * 
* * optional double delay_seconds = 4 [default = 15]; */ public double getDelaySeconds() { return delaySeconds_; } public static final int INTERVAL_SECONDS_FIELD_NUMBER = 5; private double intervalSeconds_; /** *
     * Interval between check attempts, i.e., amount of time to wait after
     * the previous check finished or timed out to start the next check.
     * 
* * optional double interval_seconds = 5 [default = 10]; */ public boolean hasIntervalSeconds() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * Interval between check attempts, i.e., amount of time to wait after
     * the previous check finished or timed out to start the next check.
     * 
* * optional double interval_seconds = 5 [default = 10]; */ public double getIntervalSeconds() { return intervalSeconds_; } public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 6; private double timeoutSeconds_; /** *
     * Amount of time to wait for the check to complete. Zero means infinite
     * timeout.
     * After this timeout, the check attempt is aborted and no result is
     * reported. Note that this may be considered a state change and hence
     * may trigger a check status change delivery to the corresponding
     * scheduler. See `CheckStatusInfo` for more details.
     * 
* * optional double timeout_seconds = 6 [default = 20]; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * Amount of time to wait for the check to complete. Zero means infinite
     * timeout.
     * After this timeout, the check attempt is aborted and no result is
     * reported. Note that this may be considered a state change and hence
     * may trigger a check status change delivery to the corresponding
     * scheduler. See `CheckStatusInfo` for more details.
     * 
* * optional double timeout_seconds = 6 [default = 20]; */ public double getTimeoutSeconds() { return timeoutSeconds_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasCommand()) { if (!getCommand().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasHttp()) { if (!getHttp().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasTcp()) { if (!getTcp().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getCommand()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getHttp()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeDouble(4, delaySeconds_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeDouble(5, intervalSeconds_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeDouble(6, timeoutSeconds_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(7, getTcp()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCommand()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHttp()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, delaySeconds_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, intervalSeconds_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, timeoutSeconds_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getTcp()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CheckInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CheckInfo other = (org.apache.mesos.v1.Protos.CheckInfo) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasCommand() == other.hasCommand()); if (hasCommand()) { result = result && getCommand() .equals(other.getCommand()); } result = result && (hasHttp() == other.hasHttp()); if (hasHttp()) { result = result && getHttp() .equals(other.getHttp()); } result = result && (hasTcp() == other.hasTcp()); if (hasTcp()) { result = result && getTcp() .equals(other.getTcp()); } result = result && (hasDelaySeconds() == other.hasDelaySeconds()); if (hasDelaySeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getDelaySeconds()) == java.lang.Double.doubleToLongBits( other.getDelaySeconds())); } result = result && (hasIntervalSeconds() == other.hasIntervalSeconds()); if (hasIntervalSeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getIntervalSeconds()) == java.lang.Double.doubleToLongBits( other.getIntervalSeconds())); } result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds()); if (hasTimeoutSeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getTimeoutSeconds()) == java.lang.Double.doubleToLongBits( other.getTimeoutSeconds())); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } if (hasHttp()) { hash = (37 * hash) + HTTP_FIELD_NUMBER; hash = (53 * hash) + getHttp().hashCode(); } if (hasTcp()) { hash = (37 * hash) + TCP_FIELD_NUMBER; hash = (53 * hash) + getTcp().hashCode(); } if (hasDelaySeconds()) { hash = (37 * hash) + DELAY_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDelaySeconds())); } if (hasIntervalSeconds()) { hash = (37 * hash) + INTERVAL_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getIntervalSeconds())); } if (hasTimeoutSeconds()) { hash = (37 * hash) + TIMEOUT_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTimeoutSeconds())); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CheckInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo 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.Protos.CheckInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CheckInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a general non-interpreting non-killing check for a task or
     * executor (or any arbitrary process/command). A type is picked by
     * specifying one of the optional fields. Specifying more than one type
     * is an error.
     * NOTE: This API is subject to change and the related feature is experimental.
     * 
* * Protobuf type {@code mesos.v1.CheckInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CheckInfo) org.apache.mesos.v1.Protos.CheckInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckInfo.class, org.apache.mesos.v1.Protos.CheckInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CheckInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommandFieldBuilder(); getHttpFieldBuilder(); getTcpFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (commandBuilder_ == null) { command_ = null; } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (httpBuilder_ == null) { http_ = null; } else { httpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (tcpBuilder_ == null) { tcp_ = null; } else { tcpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); delaySeconds_ = 15D; bitField0_ = (bitField0_ & ~0x00000010); intervalSeconds_ = 10D; bitField0_ = (bitField0_ & ~0x00000020); timeoutSeconds_ = 20D; bitField0_ = (bitField0_ & ~0x00000040); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckInfo_descriptor; } public org.apache.mesos.v1.Protos.CheckInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CheckInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CheckInfo build() { org.apache.mesos.v1.Protos.CheckInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CheckInfo buildPartial() { org.apache.mesos.v1.Protos.CheckInfo result = new org.apache.mesos.v1.Protos.CheckInfo(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 (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (httpBuilder_ == null) { result.http_ = http_; } else { result.http_ = httpBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (tcpBuilder_ == null) { result.tcp_ = tcp_; } else { result.tcp_ = tcpBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.delaySeconds_ = delaySeconds_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.intervalSeconds_ = intervalSeconds_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.timeoutSeconds_ = timeoutSeconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CheckInfo) { return mergeFrom((org.apache.mesos.v1.Protos.CheckInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CheckInfo other) { if (other == org.apache.mesos.v1.Protos.CheckInfo.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (other.hasHttp()) { mergeHttp(other.getHttp()); } if (other.hasTcp()) { mergeTcp(other.getTcp()); } if (other.hasDelaySeconds()) { setDelaySeconds(other.getDelaySeconds()); } if (other.hasIntervalSeconds()) { setIntervalSeconds(other.getIntervalSeconds()); } if (other.hasTimeoutSeconds()) { setTimeoutSeconds(other.getTimeoutSeconds()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasCommand()) { if (!getCommand().isInitialized()) { return false; } } if (hasHttp()) { if (!getHttp().isInitialized()) { return false; } } if (hasTcp()) { if (!getTcp().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.Protos.CheckInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CheckInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** *
       * The type of the check.
       * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The type of the check.
       * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public org.apache.mesos.v1.Protos.CheckInfo.Type getType() { org.apache.mesos.v1.Protos.CheckInfo.Type result = org.apache.mesos.v1.Protos.CheckInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.CheckInfo.Type.UNKNOWN : result; } /** *
       * The type of the check.
       * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.CheckInfo.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
       * The type of the check.
       * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.CheckInfo.Command command_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Command, org.apache.mesos.v1.Protos.CheckInfo.Command.Builder, org.apache.mesos.v1.Protos.CheckInfo.CommandOrBuilder> commandBuilder_; /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public boolean hasCommand() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckInfo.Command getCommand() { if (commandBuilder_ == null) { return command_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Command.getDefaultInstance() : command_; } else { return commandBuilder_.getMessage(); } } /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public Builder setCommand(org.apache.mesos.v1.Protos.CheckInfo.Command value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { commandBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public Builder setCommand( org.apache.mesos.v1.Protos.CheckInfo.Command.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public Builder mergeCommand(org.apache.mesos.v1.Protos.CheckInfo.Command value) { if (commandBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && command_ != null && command_ != org.apache.mesos.v1.Protos.CheckInfo.Command.getDefaultInstance()) { command_ = org.apache.mesos.v1.Protos.CheckInfo.Command.newBuilder(command_).mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { commandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = null; onChanged(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckInfo.Command.Builder getCommandBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommandFieldBuilder().getBuilder(); } /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckInfo.CommandOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Command.getDefaultInstance() : command_; } } /** *
       * Command check.
       * 
* * optional .mesos.v1.CheckInfo.Command command = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Command, org.apache.mesos.v1.Protos.CheckInfo.Command.Builder, org.apache.mesos.v1.Protos.CheckInfo.CommandOrBuilder> getCommandFieldBuilder() { if (commandBuilder_ == null) { commandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Command, org.apache.mesos.v1.Protos.CheckInfo.Command.Builder, org.apache.mesos.v1.Protos.CheckInfo.CommandOrBuilder>( getCommand(), getParentForChildren(), isClean()); command_ = null; } return commandBuilder_; } private org.apache.mesos.v1.Protos.CheckInfo.Http http_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Http, org.apache.mesos.v1.Protos.CheckInfo.Http.Builder, org.apache.mesos.v1.Protos.CheckInfo.HttpOrBuilder> httpBuilder_; /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public boolean hasHttp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckInfo.Http getHttp() { if (httpBuilder_ == null) { return http_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Http.getDefaultInstance() : http_; } else { return httpBuilder_.getMessage(); } } /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public Builder setHttp(org.apache.mesos.v1.Protos.CheckInfo.Http value) { if (httpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } http_ = value; onChanged(); } else { httpBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public Builder setHttp( org.apache.mesos.v1.Protos.CheckInfo.Http.Builder builderForValue) { if (httpBuilder_ == null) { http_ = builderForValue.build(); onChanged(); } else { httpBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public Builder mergeHttp(org.apache.mesos.v1.Protos.CheckInfo.Http value) { if (httpBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && http_ != null && http_ != org.apache.mesos.v1.Protos.CheckInfo.Http.getDefaultInstance()) { http_ = org.apache.mesos.v1.Protos.CheckInfo.Http.newBuilder(http_).mergeFrom(value).buildPartial(); } else { http_ = value; } onChanged(); } else { httpBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public Builder clearHttp() { if (httpBuilder_ == null) { http_ = null; onChanged(); } else { httpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckInfo.Http.Builder getHttpBuilder() { bitField0_ |= 0x00000004; onChanged(); return getHttpFieldBuilder().getBuilder(); } /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckInfo.HttpOrBuilder getHttpOrBuilder() { if (httpBuilder_ != null) { return httpBuilder_.getMessageOrBuilder(); } else { return http_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Http.getDefaultInstance() : http_; } } /** *
       * HTTP check.
       * 
* * optional .mesos.v1.CheckInfo.Http http = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Http, org.apache.mesos.v1.Protos.CheckInfo.Http.Builder, org.apache.mesos.v1.Protos.CheckInfo.HttpOrBuilder> getHttpFieldBuilder() { if (httpBuilder_ == null) { httpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Http, org.apache.mesos.v1.Protos.CheckInfo.Http.Builder, org.apache.mesos.v1.Protos.CheckInfo.HttpOrBuilder>( getHttp(), getParentForChildren(), isClean()); http_ = null; } return httpBuilder_; } private org.apache.mesos.v1.Protos.CheckInfo.Tcp tcp_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Tcp, org.apache.mesos.v1.Protos.CheckInfo.Tcp.Builder, org.apache.mesos.v1.Protos.CheckInfo.TcpOrBuilder> tcpBuilder_; /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public boolean hasTcp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public org.apache.mesos.v1.Protos.CheckInfo.Tcp getTcp() { if (tcpBuilder_ == null) { return tcp_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Tcp.getDefaultInstance() : tcp_; } else { return tcpBuilder_.getMessage(); } } /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public Builder setTcp(org.apache.mesos.v1.Protos.CheckInfo.Tcp value) { if (tcpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tcp_ = value; onChanged(); } else { tcpBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public Builder setTcp( org.apache.mesos.v1.Protos.CheckInfo.Tcp.Builder builderForValue) { if (tcpBuilder_ == null) { tcp_ = builderForValue.build(); onChanged(); } else { tcpBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public Builder mergeTcp(org.apache.mesos.v1.Protos.CheckInfo.Tcp value) { if (tcpBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && tcp_ != null && tcp_ != org.apache.mesos.v1.Protos.CheckInfo.Tcp.getDefaultInstance()) { tcp_ = org.apache.mesos.v1.Protos.CheckInfo.Tcp.newBuilder(tcp_).mergeFrom(value).buildPartial(); } else { tcp_ = value; } onChanged(); } else { tcpBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public Builder clearTcp() { if (tcpBuilder_ == null) { tcp_ = null; onChanged(); } else { tcpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public org.apache.mesos.v1.Protos.CheckInfo.Tcp.Builder getTcpBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTcpFieldBuilder().getBuilder(); } /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ public org.apache.mesos.v1.Protos.CheckInfo.TcpOrBuilder getTcpOrBuilder() { if (tcpBuilder_ != null) { return tcpBuilder_.getMessageOrBuilder(); } else { return tcp_ == null ? org.apache.mesos.v1.Protos.CheckInfo.Tcp.getDefaultInstance() : tcp_; } } /** *
       * TCP check.
       * 
* * optional .mesos.v1.CheckInfo.Tcp tcp = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Tcp, org.apache.mesos.v1.Protos.CheckInfo.Tcp.Builder, org.apache.mesos.v1.Protos.CheckInfo.TcpOrBuilder> getTcpFieldBuilder() { if (tcpBuilder_ == null) { tcpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo.Tcp, org.apache.mesos.v1.Protos.CheckInfo.Tcp.Builder, org.apache.mesos.v1.Protos.CheckInfo.TcpOrBuilder>( getTcp(), getParentForChildren(), isClean()); tcp_ = null; } return tcpBuilder_; } private double delaySeconds_ = 15D; /** *
       * Amount of time to wait to start checking the task after it
       * transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
       * is used by the executor.
       * 
* * optional double delay_seconds = 4 [default = 15]; */ public boolean hasDelaySeconds() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * Amount of time to wait to start checking the task after it
       * transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
       * is used by the executor.
       * 
* * optional double delay_seconds = 4 [default = 15]; */ public double getDelaySeconds() { return delaySeconds_; } /** *
       * Amount of time to wait to start checking the task after it
       * transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
       * is used by the executor.
       * 
* * optional double delay_seconds = 4 [default = 15]; */ public Builder setDelaySeconds(double value) { bitField0_ |= 0x00000010; delaySeconds_ = value; onChanged(); return this; } /** *
       * Amount of time to wait to start checking the task after it
       * transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
       * is used by the executor.
       * 
* * optional double delay_seconds = 4 [default = 15]; */ public Builder clearDelaySeconds() { bitField0_ = (bitField0_ & ~0x00000010); delaySeconds_ = 15D; onChanged(); return this; } private double intervalSeconds_ = 10D; /** *
       * Interval between check attempts, i.e., amount of time to wait after
       * the previous check finished or timed out to start the next check.
       * 
* * optional double interval_seconds = 5 [default = 10]; */ public boolean hasIntervalSeconds() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * Interval between check attempts, i.e., amount of time to wait after
       * the previous check finished or timed out to start the next check.
       * 
* * optional double interval_seconds = 5 [default = 10]; */ public double getIntervalSeconds() { return intervalSeconds_; } /** *
       * Interval between check attempts, i.e., amount of time to wait after
       * the previous check finished or timed out to start the next check.
       * 
* * optional double interval_seconds = 5 [default = 10]; */ public Builder setIntervalSeconds(double value) { bitField0_ |= 0x00000020; intervalSeconds_ = value; onChanged(); return this; } /** *
       * Interval between check attempts, i.e., amount of time to wait after
       * the previous check finished or timed out to start the next check.
       * 
* * optional double interval_seconds = 5 [default = 10]; */ public Builder clearIntervalSeconds() { bitField0_ = (bitField0_ & ~0x00000020); intervalSeconds_ = 10D; onChanged(); return this; } private double timeoutSeconds_ = 20D; /** *
       * Amount of time to wait for the check to complete. Zero means infinite
       * timeout.
       * After this timeout, the check attempt is aborted and no result is
       * reported. Note that this may be considered a state change and hence
       * may trigger a check status change delivery to the corresponding
       * scheduler. See `CheckStatusInfo` for more details.
       * 
* * optional double timeout_seconds = 6 [default = 20]; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * Amount of time to wait for the check to complete. Zero means infinite
       * timeout.
       * After this timeout, the check attempt is aborted and no result is
       * reported. Note that this may be considered a state change and hence
       * may trigger a check status change delivery to the corresponding
       * scheduler. See `CheckStatusInfo` for more details.
       * 
* * optional double timeout_seconds = 6 [default = 20]; */ public double getTimeoutSeconds() { return timeoutSeconds_; } /** *
       * Amount of time to wait for the check to complete. Zero means infinite
       * timeout.
       * After this timeout, the check attempt is aborted and no result is
       * reported. Note that this may be considered a state change and hence
       * may trigger a check status change delivery to the corresponding
       * scheduler. See `CheckStatusInfo` for more details.
       * 
* * optional double timeout_seconds = 6 [default = 20]; */ public Builder setTimeoutSeconds(double value) { bitField0_ |= 0x00000040; timeoutSeconds_ = value; onChanged(); return this; } /** *
       * Amount of time to wait for the check to complete. Zero means infinite
       * timeout.
       * After this timeout, the check attempt is aborted and no result is
       * reported. Note that this may be considered a state change and hence
       * may trigger a check status change delivery to the corresponding
       * scheduler. See `CheckStatusInfo` for more details.
       * 
* * optional double timeout_seconds = 6 [default = 20]; */ public Builder clearTimeoutSeconds() { bitField0_ = (bitField0_ & ~0x00000040); timeoutSeconds_ = 20D; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CheckInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.CheckInfo) private static final org.apache.mesos.v1.Protos.CheckInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CheckInfo(); } public static org.apache.mesos.v1.Protos.CheckInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CheckInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HealthCheckOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.HealthCheck) com.google.protobuf.MessageOrBuilder { /** *
     * Amount of time to wait to start health checking the task after it
     * transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
     * used by the executor.
     * 
* * optional double delay_seconds = 2 [default = 15]; */ boolean hasDelaySeconds(); /** *
     * Amount of time to wait to start health checking the task after it
     * transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
     * used by the executor.
     * 
* * optional double delay_seconds = 2 [default = 15]; */ double getDelaySeconds(); /** *
     * Interval between health checks, i.e., amount of time to wait after
     * the previous health check finished or timed out to start the next
     * health check.
     * 
* * optional double interval_seconds = 3 [default = 10]; */ boolean hasIntervalSeconds(); /** *
     * Interval between health checks, i.e., amount of time to wait after
     * the previous health check finished or timed out to start the next
     * health check.
     * 
* * optional double interval_seconds = 3 [default = 10]; */ double getIntervalSeconds(); /** *
     * Amount of time to wait for the health check to complete. After this
     * timeout, the health check is aborted and treated as a failure. Zero
     * means infinite timeout.
     * 
* * optional double timeout_seconds = 4 [default = 20]; */ boolean hasTimeoutSeconds(); /** *
     * Amount of time to wait for the health check to complete. After this
     * timeout, the health check is aborted and treated as a failure. Zero
     * means infinite timeout.
     * 
* * optional double timeout_seconds = 4 [default = 20]; */ double getTimeoutSeconds(); /** *
     * Number of consecutive failures until the task is killed by the executor.
     * 
* * optional uint32 consecutive_failures = 5 [default = 3]; */ boolean hasConsecutiveFailures(); /** *
     * Number of consecutive failures until the task is killed by the executor.
     * 
* * optional uint32 consecutive_failures = 5 [default = 3]; */ int getConsecutiveFailures(); /** *
     * Amount of time after the task is launched during which health check
     * failures are ignored. Once a check succeeds for the first time,
     * the grace period does not apply anymore. Note that it includes
     * `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
     * has no effect.
     * 
* * optional double grace_period_seconds = 6 [default = 10]; */ boolean hasGracePeriodSeconds(); /** *
     * Amount of time after the task is launched during which health check
     * failures are ignored. Once a check succeeds for the first time,
     * the grace period does not apply anymore. Note that it includes
     * `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
     * has no effect.
     * 
* * optional double grace_period_seconds = 6 [default = 10]; */ double getGracePeriodSeconds(); /** *
     * The type of health check.
     * 
* * optional .mesos.v1.HealthCheck.Type type = 8; */ boolean hasType(); /** *
     * The type of health check.
     * 
* * optional .mesos.v1.HealthCheck.Type type = 8; */ org.apache.mesos.v1.Protos.HealthCheck.Type getType(); /** *
     * Command health check.
     * 
* * optional .mesos.v1.CommandInfo command = 7; */ boolean hasCommand(); /** *
     * Command health check.
     * 
* * optional .mesos.v1.CommandInfo command = 7; */ org.apache.mesos.v1.Protos.CommandInfo getCommand(); /** *
     * Command health check.
     * 
* * optional .mesos.v1.CommandInfo command = 7; */ org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder(); /** *
     * HTTP health check.
     * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ boolean hasHttp(); /** *
     * HTTP health check.
     * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo getHttp(); /** *
     * HTTP health check.
     * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfoOrBuilder getHttpOrBuilder(); /** *
     * TCP health check.
     * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ boolean hasTcp(); /** *
     * TCP health check.
     * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo getTcp(); /** *
     * TCP health check.
     * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfoOrBuilder getTcpOrBuilder(); } /** *
   **
   * Describes a health check for a task or executor (or any arbitrary
   * process/command). A type is picked by specifying one of the
   * optional fields. Specifying more than one type is an error.
   * 
* * Protobuf type {@code mesos.v1.HealthCheck} */ public static final class HealthCheck extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.HealthCheck) HealthCheckOrBuilder { private static final long serialVersionUID = 0L; // Use HealthCheck.newBuilder() to construct. private HealthCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HealthCheck() { delaySeconds_ = 15D; intervalSeconds_ = 10D; timeoutSeconds_ = 20D; consecutiveFailures_ = 3; gracePeriodSeconds_ = 10D; type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HealthCheck( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = http_.toBuilder(); } http_ = input.readMessage(org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(http_); http_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 17: { bitField0_ |= 0x00000001; delaySeconds_ = input.readDouble(); break; } case 25: { bitField0_ |= 0x00000002; intervalSeconds_ = input.readDouble(); break; } case 33: { bitField0_ |= 0x00000004; timeoutSeconds_ = input.readDouble(); break; } case 40: { bitField0_ |= 0x00000008; consecutiveFailures_ = input.readUInt32(); break; } case 49: { bitField0_ |= 0x00000010; gracePeriodSeconds_ = input.readDouble(); break; } case 58: { org.apache.mesos.v1.Protos.CommandInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CommandInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 64: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.HealthCheck.Type value = org.apache.mesos.v1.Protos.HealthCheck.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(8, rawValue); } else { bitField0_ |= 0x00000020; type_ = rawValue; } break; } case 74: { org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = tcp_.toBuilder(); } tcp_ = input.readMessage(org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tcp_); tcp_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.HealthCheck.class, org.apache.mesos.v1.Protos.HealthCheck.Builder.class); } /** * Protobuf enum {@code mesos.v1.HealthCheck.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * COMMAND = 1; */ COMMAND(1), /** * HTTP = 2; */ HTTP(2), /** * TCP = 3; */ TCP(3), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * COMMAND = 1; */ public static final int COMMAND_VALUE = 1; /** * HTTP = 2; */ public static final int HTTP_VALUE = 2; /** * TCP = 3; */ public static final int TCP_VALUE = 3; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return COMMAND; case 2: return HTTP; case 3: return TCP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.HealthCheck.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.HealthCheck.Type) } public interface HTTPCheckInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.HealthCheck.HTTPCheckInfo) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 5 [default = IPv4]; */ boolean hasProtocol(); /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 5 [default = IPv4]; */ org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol(); /** *
       * Currently "http" and "https" are supported.
       * 
* * optional string scheme = 3; */ boolean hasScheme(); /** *
       * Currently "http" and "https" are supported.
       * 
* * optional string scheme = 3; */ java.lang.String getScheme(); /** *
       * Currently "http" and "https" are supported.
       * 
* * optional string scheme = 3; */ com.google.protobuf.ByteString getSchemeBytes(); /** *
       * Port to send the HTTP request.
       * 
* * required uint32 port = 1; */ boolean hasPort(); /** *
       * Port to send the HTTP request.
       * 
* * required uint32 port = 1; */ int getPort(); /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ boolean hasPath(); /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ java.lang.String getPath(); /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ com.google.protobuf.ByteString getPathBytes(); /** *
       * NOTE: It is up to the custom executor to interpret and act on this
       * field. Setting this field has no effect on the default executors.
       * TODO(haosdent): Deprecate this field when we add better support for
       * success and possibly failure statuses, e.g. ranges of success and
       * failure statuses.
       * 
* * repeated uint32 statuses = 4; */ java.util.List getStatusesList(); /** *
       * NOTE: It is up to the custom executor to interpret and act on this
       * field. Setting this field has no effect on the default executors.
       * TODO(haosdent): Deprecate this field when we add better support for
       * success and possibly failure statuses, e.g. ranges of success and
       * failure statuses.
       * 
* * repeated uint32 statuses = 4; */ int getStatusesCount(); /** *
       * NOTE: It is up to the custom executor to interpret and act on this
       * field. Setting this field has no effect on the default executors.
       * TODO(haosdent): Deprecate this field when we add better support for
       * success and possibly failure statuses, e.g. ranges of success and
       * failure statuses.
       * 
* * repeated uint32 statuses = 4; */ int getStatuses(int index); } /** *
     * Describes an HTTP health check. Sends a GET request to
     * scheme://<host>:port/path. Note that <host> is not configurable and is
     * resolved automatically, in most cases to 127.0.0.1. Default executors
     * treat return codes between 200 and 399 as success; custom executors
     * may employ a different strategy, e.g. leveraging the `statuses` field.
     * 
* * Protobuf type {@code mesos.v1.HealthCheck.HTTPCheckInfo} */ public static final class HTTPCheckInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.HealthCheck.HTTPCheckInfo) HTTPCheckInfoOrBuilder { private static final long serialVersionUID = 0L; // Use HTTPCheckInfo.newBuilder() to construct. private HTTPCheckInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HTTPCheckInfo() { protocol_ = 1; scheme_ = ""; port_ = 0; path_ = ""; statuses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HTTPCheckInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000004; port_ = input.readUInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; path_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; scheme_ = bs; break; } case 32: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { statuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } statuses_.add(input.readUInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { statuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { statuses_.add(input.readUInt32()); } input.popLimit(limit); break; } case 40: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.NetworkInfo.Protocol value = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(5, rawValue); } else { bitField0_ |= 0x00000001; protocol_ = rawValue; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { statuses_ = java.util.Collections.unmodifiableList(statuses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_HTTPCheckInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_HTTPCheckInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.class, org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.Builder.class); } private int bitField0_; public static final int PROTOCOL_FIELD_NUMBER = 5; private int protocol_; /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 5 [default = IPv4]; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 5 [default = IPv4]; */ public org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol() { org.apache.mesos.v1.Protos.NetworkInfo.Protocol result = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(protocol_); return result == null ? org.apache.mesos.v1.Protos.NetworkInfo.Protocol.IPv4 : result; } public static final int SCHEME_FIELD_NUMBER = 3; private volatile java.lang.Object scheme_; /** *
       * Currently "http" and "https" are supported.
       * 
* * optional string scheme = 3; */ public boolean hasScheme() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Currently "http" and "https" are supported.
       * 
* * optional string scheme = 3; */ public java.lang.String getScheme() { java.lang.Object ref = scheme_; 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()) { scheme_ = s; } return s; } } /** *
       * Currently "http" and "https" are supported.
       * 
* * optional string scheme = 3; */ public com.google.protobuf.ByteString getSchemeBytes() { java.lang.Object ref = scheme_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scheme_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 1; private int port_; /** *
       * Port to send the HTTP request.
       * 
* * required uint32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Port to send the HTTP request.
       * 
* * required uint32 port = 1; */ public int getPort() { return port_; } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ 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; } } /** *
       * HTTP request path.
       * 
* * optional string path = 2; */ 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 STATUSES_FIELD_NUMBER = 4; private java.util.List statuses_; /** *
       * NOTE: It is up to the custom executor to interpret and act on this
       * field. Setting this field has no effect on the default executors.
       * TODO(haosdent): Deprecate this field when we add better support for
       * success and possibly failure statuses, e.g. ranges of success and
       * failure statuses.
       * 
* * repeated uint32 statuses = 4; */ public java.util.List getStatusesList() { return statuses_; } /** *
       * NOTE: It is up to the custom executor to interpret and act on this
       * field. Setting this field has no effect on the default executors.
       * TODO(haosdent): Deprecate this field when we add better support for
       * success and possibly failure statuses, e.g. ranges of success and
       * failure statuses.
       * 
* * repeated uint32 statuses = 4; */ public int getStatusesCount() { return statuses_.size(); } /** *
       * NOTE: It is up to the custom executor to interpret and act on this
       * field. Setting this field has no effect on the default executors.
       * TODO(haosdent): Deprecate this field when we add better support for
       * success and possibly failure statuses, e.g. ranges of success and
       * failure statuses.
       * 
* * repeated uint32 statuses = 4; */ public int getStatuses(int index) { return statuses_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPort()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(1, port_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scheme_); } for (int i = 0; i < statuses_.size(); i++) { output.writeUInt32(4, statuses_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(5, protocol_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, port_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, scheme_); } { int dataSize = 0; for (int i = 0; i < statuses_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(statuses_.get(i)); } size += dataSize; size += 1 * getStatusesList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, protocol_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo other = (org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo) obj; boolean result = true; result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && protocol_ == other.protocol_; } result = result && (hasScheme() == other.hasScheme()); if (hasScheme()) { result = result && getScheme() .equals(other.getScheme()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); } result = result && getStatusesList() .equals(other.getStatusesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; } if (hasScheme()) { hash = (37 * hash) + SCHEME_FIELD_NUMBER; hash = (53 * hash) + getScheme().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (getStatusesCount() > 0) { hash = (37 * hash) + STATUSES_FIELD_NUMBER; hash = (53 * hash) + getStatusesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo 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.Protos.HealthCheck.HTTPCheckInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes an HTTP health check. Sends a GET request to
       * scheme://<host>:port/path. Note that <host> is not configurable and is
       * resolved automatically, in most cases to 127.0.0.1. Default executors
       * treat return codes between 200 and 399 as success; custom executors
       * may employ a different strategy, e.g. leveraging the `statuses` field.
       * 
* * Protobuf type {@code mesos.v1.HealthCheck.HTTPCheckInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.HealthCheck.HTTPCheckInfo) org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_HTTPCheckInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_HTTPCheckInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.class, org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); protocol_ = 1; bitField0_ = (bitField0_ & ~0x00000001); scheme_ = ""; bitField0_ = (bitField0_ & ~0x00000002); port_ = 0; bitField0_ = (bitField0_ & ~0x00000004); path_ = ""; bitField0_ = (bitField0_ & ~0x00000008); statuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_HTTPCheckInfo_descriptor; } public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo build() { org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo buildPartial() { org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo result = new org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.protocol_ = protocol_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.scheme_ = scheme_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.port_ = port_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.path_ = path_; if (((bitField0_ & 0x00000010) == 0x00000010)) { statuses_ = java.util.Collections.unmodifiableList(statuses_); bitField0_ = (bitField0_ & ~0x00000010); } result.statuses_ = statuses_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo) { return mergeFrom((org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo other) { if (other == org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.getDefaultInstance()) return this; if (other.hasProtocol()) { setProtocol(other.getProtocol()); } if (other.hasScheme()) { bitField0_ |= 0x00000002; scheme_ = other.scheme_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasPath()) { bitField0_ |= 0x00000008; path_ = other.path_; onChanged(); } if (!other.statuses_.isEmpty()) { if (statuses_.isEmpty()) { statuses_ = other.statuses_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureStatusesIsMutable(); statuses_.addAll(other.statuses_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPort()) { 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.Protos.HealthCheck.HTTPCheckInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int protocol_ = 1; /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 5 [default = IPv4]; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 5 [default = IPv4]; */ public org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol() { org.apache.mesos.v1.Protos.NetworkInfo.Protocol result = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(protocol_); return result == null ? org.apache.mesos.v1.Protos.NetworkInfo.Protocol.IPv4 : result; } /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 5 [default = IPv4]; */ public Builder setProtocol(org.apache.mesos.v1.Protos.NetworkInfo.Protocol value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; protocol_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 5 [default = IPv4]; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000001); protocol_ = 1; onChanged(); return this; } private java.lang.Object scheme_ = ""; /** *
         * Currently "http" and "https" are supported.
         * 
* * optional string scheme = 3; */ public boolean hasScheme() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Currently "http" and "https" are supported.
         * 
* * optional string scheme = 3; */ public java.lang.String getScheme() { java.lang.Object ref = scheme_; 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()) { scheme_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * Currently "http" and "https" are supported.
         * 
* * optional string scheme = 3; */ public com.google.protobuf.ByteString getSchemeBytes() { java.lang.Object ref = scheme_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scheme_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Currently "http" and "https" are supported.
         * 
* * optional string scheme = 3; */ public Builder setScheme( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; scheme_ = value; onChanged(); return this; } /** *
         * Currently "http" and "https" are supported.
         * 
* * optional string scheme = 3; */ public Builder clearScheme() { bitField0_ = (bitField0_ & ~0x00000002); scheme_ = getDefaultInstance().getScheme(); onChanged(); return this; } /** *
         * Currently "http" and "https" are supported.
         * 
* * optional string scheme = 3; */ public Builder setSchemeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; scheme_ = value; onChanged(); return this; } private int port_ ; /** *
         * Port to send the HTTP request.
         * 
* * required uint32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Port to send the HTTP request.
         * 
* * required uint32 port = 1; */ public int getPort() { return port_; } /** *
         * Port to send the HTTP request.
         * 
* * required uint32 port = 1; */ public Builder setPort(int value) { bitField0_ |= 0x00000004; port_ = value; onChanged(); return this; } /** *
         * Port to send the HTTP request.
         * 
* * required uint32 port = 1; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000004); port_ = 0; onChanged(); return this; } private java.lang.Object path_ = ""; /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ 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; } } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ 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; } } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; path_ = value; onChanged(); return this; } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000008); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** *
         * HTTP request path.
         * 
* * optional string path = 2; */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; path_ = value; onChanged(); return this; } private java.util.List statuses_ = java.util.Collections.emptyList(); private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000010; } } /** *
         * NOTE: It is up to the custom executor to interpret and act on this
         * field. Setting this field has no effect on the default executors.
         * TODO(haosdent): Deprecate this field when we add better support for
         * success and possibly failure statuses, e.g. ranges of success and
         * failure statuses.
         * 
* * repeated uint32 statuses = 4; */ public java.util.List getStatusesList() { return java.util.Collections.unmodifiableList(statuses_); } /** *
         * NOTE: It is up to the custom executor to interpret and act on this
         * field. Setting this field has no effect on the default executors.
         * TODO(haosdent): Deprecate this field when we add better support for
         * success and possibly failure statuses, e.g. ranges of success and
         * failure statuses.
         * 
* * repeated uint32 statuses = 4; */ public int getStatusesCount() { return statuses_.size(); } /** *
         * NOTE: It is up to the custom executor to interpret and act on this
         * field. Setting this field has no effect on the default executors.
         * TODO(haosdent): Deprecate this field when we add better support for
         * success and possibly failure statuses, e.g. ranges of success and
         * failure statuses.
         * 
* * repeated uint32 statuses = 4; */ public int getStatuses(int index) { return statuses_.get(index); } /** *
         * NOTE: It is up to the custom executor to interpret and act on this
         * field. Setting this field has no effect on the default executors.
         * TODO(haosdent): Deprecate this field when we add better support for
         * success and possibly failure statuses, e.g. ranges of success and
         * failure statuses.
         * 
* * repeated uint32 statuses = 4; */ public Builder setStatuses( int index, int value) { ensureStatusesIsMutable(); statuses_.set(index, value); onChanged(); return this; } /** *
         * NOTE: It is up to the custom executor to interpret and act on this
         * field. Setting this field has no effect on the default executors.
         * TODO(haosdent): Deprecate this field when we add better support for
         * success and possibly failure statuses, e.g. ranges of success and
         * failure statuses.
         * 
* * repeated uint32 statuses = 4; */ public Builder addStatuses(int value) { ensureStatusesIsMutable(); statuses_.add(value); onChanged(); return this; } /** *
         * NOTE: It is up to the custom executor to interpret and act on this
         * field. Setting this field has no effect on the default executors.
         * TODO(haosdent): Deprecate this field when we add better support for
         * success and possibly failure statuses, e.g. ranges of success and
         * failure statuses.
         * 
* * repeated uint32 statuses = 4; */ public Builder addAllStatuses( java.lang.Iterable values) { ensureStatusesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, statuses_); onChanged(); return this; } /** *
         * NOTE: It is up to the custom executor to interpret and act on this
         * field. Setting this field has no effect on the default executors.
         * TODO(haosdent): Deprecate this field when we add better support for
         * success and possibly failure statuses, e.g. ranges of success and
         * failure statuses.
         * 
* * repeated uint32 statuses = 4; */ public Builder clearStatuses() { statuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.HealthCheck.HTTPCheckInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.HealthCheck.HTTPCheckInfo) private static final org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo(); } public static org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HTTPCheckInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HTTPCheckInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TCPCheckInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.HealthCheck.TCPCheckInfo) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 2 [default = IPv4]; */ boolean hasProtocol(); /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 2 [default = IPv4]; */ org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol(); /** *
       * Port expected to be open.
       * 
* * required uint32 port = 1; */ boolean hasPort(); /** *
       * Port expected to be open.
       * 
* * required uint32 port = 1; */ int getPort(); } /** *
     * Describes a TCP health check, i.e. based on establishing
     * a TCP connection to the specified port.
     * 
* * Protobuf type {@code mesos.v1.HealthCheck.TCPCheckInfo} */ public static final class TCPCheckInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.HealthCheck.TCPCheckInfo) TCPCheckInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TCPCheckInfo.newBuilder() to construct. private TCPCheckInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TCPCheckInfo() { protocol_ = 1; port_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TCPCheckInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000002; port_ = input.readUInt32(); break; } case 16: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.NetworkInfo.Protocol value = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000001; protocol_ = rawValue; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_TCPCheckInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_TCPCheckInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.class, org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.Builder.class); } private int bitField0_; public static final int PROTOCOL_FIELD_NUMBER = 2; private int protocol_; /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 2 [default = IPv4]; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 2 [default = IPv4]; */ public org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol() { org.apache.mesos.v1.Protos.NetworkInfo.Protocol result = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(protocol_); return result == null ? org.apache.mesos.v1.Protos.NetworkInfo.Protocol.IPv4 : result; } public static final int PORT_FIELD_NUMBER = 1; private int port_; /** *
       * Port expected to be open.
       * 
* * required uint32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Port expected to be open.
       * 
* * required uint32 port = 1; */ public int getPort() { return port_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPort()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(1, port_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(2, protocol_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, port_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, protocol_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo other = (org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo) obj; boolean result = true; result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && protocol_ == other.protocol_; } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo 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.Protos.HealthCheck.TCPCheckInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes a TCP health check, i.e. based on establishing
       * a TCP connection to the specified port.
       * 
* * Protobuf type {@code mesos.v1.HealthCheck.TCPCheckInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.HealthCheck.TCPCheckInfo) org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_TCPCheckInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_TCPCheckInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.class, org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); protocol_ = 1; bitField0_ = (bitField0_ & ~0x00000001); port_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_TCPCheckInfo_descriptor; } public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo build() { org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo buildPartial() { org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo result = new org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.protocol_ = protocol_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.port_ = port_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo) { return mergeFrom((org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo other) { if (other == org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.getDefaultInstance()) return this; if (other.hasProtocol()) { setProtocol(other.getProtocol()); } if (other.hasPort()) { setPort(other.getPort()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPort()) { 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.Protos.HealthCheck.TCPCheckInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int protocol_ = 1; /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 2 [default = IPv4]; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 2 [default = IPv4]; */ public org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol() { org.apache.mesos.v1.Protos.NetworkInfo.Protocol result = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(protocol_); return result == null ? org.apache.mesos.v1.Protos.NetworkInfo.Protocol.IPv4 : result; } /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 2 [default = IPv4]; */ public Builder setProtocol(org.apache.mesos.v1.Protos.NetworkInfo.Protocol value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; protocol_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.NetworkInfo.Protocol protocol = 2 [default = IPv4]; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000001); protocol_ = 1; onChanged(); return this; } private int port_ ; /** *
         * Port expected to be open.
         * 
* * required uint32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Port expected to be open.
         * 
* * required uint32 port = 1; */ public int getPort() { return port_; } /** *
         * Port expected to be open.
         * 
* * required uint32 port = 1; */ public Builder setPort(int value) { bitField0_ |= 0x00000002; port_ = value; onChanged(); return this; } /** *
         * Port expected to be open.
         * 
* * required uint32 port = 1; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); port_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.HealthCheck.TCPCheckInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.HealthCheck.TCPCheckInfo) private static final org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo(); } public static org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TCPCheckInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TCPCheckInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int DELAY_SECONDS_FIELD_NUMBER = 2; private double delaySeconds_; /** *
     * Amount of time to wait to start health checking the task after it
     * transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
     * used by the executor.
     * 
* * optional double delay_seconds = 2 [default = 15]; */ public boolean hasDelaySeconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Amount of time to wait to start health checking the task after it
     * transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
     * used by the executor.
     * 
* * optional double delay_seconds = 2 [default = 15]; */ public double getDelaySeconds() { return delaySeconds_; } public static final int INTERVAL_SECONDS_FIELD_NUMBER = 3; private double intervalSeconds_; /** *
     * Interval between health checks, i.e., amount of time to wait after
     * the previous health check finished or timed out to start the next
     * health check.
     * 
* * optional double interval_seconds = 3 [default = 10]; */ public boolean hasIntervalSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Interval between health checks, i.e., amount of time to wait after
     * the previous health check finished or timed out to start the next
     * health check.
     * 
* * optional double interval_seconds = 3 [default = 10]; */ public double getIntervalSeconds() { return intervalSeconds_; } public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 4; private double timeoutSeconds_; /** *
     * Amount of time to wait for the health check to complete. After this
     * timeout, the health check is aborted and treated as a failure. Zero
     * means infinite timeout.
     * 
* * optional double timeout_seconds = 4 [default = 20]; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Amount of time to wait for the health check to complete. After this
     * timeout, the health check is aborted and treated as a failure. Zero
     * means infinite timeout.
     * 
* * optional double timeout_seconds = 4 [default = 20]; */ public double getTimeoutSeconds() { return timeoutSeconds_; } public static final int CONSECUTIVE_FAILURES_FIELD_NUMBER = 5; private int consecutiveFailures_; /** *
     * Number of consecutive failures until the task is killed by the executor.
     * 
* * optional uint32 consecutive_failures = 5 [default = 3]; */ public boolean hasConsecutiveFailures() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * Number of consecutive failures until the task is killed by the executor.
     * 
* * optional uint32 consecutive_failures = 5 [default = 3]; */ public int getConsecutiveFailures() { return consecutiveFailures_; } public static final int GRACE_PERIOD_SECONDS_FIELD_NUMBER = 6; private double gracePeriodSeconds_; /** *
     * Amount of time after the task is launched during which health check
     * failures are ignored. Once a check succeeds for the first time,
     * the grace period does not apply anymore. Note that it includes
     * `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
     * has no effect.
     * 
* * optional double grace_period_seconds = 6 [default = 10]; */ public boolean hasGracePeriodSeconds() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * Amount of time after the task is launched during which health check
     * failures are ignored. Once a check succeeds for the first time,
     * the grace period does not apply anymore. Note that it includes
     * `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
     * has no effect.
     * 
* * optional double grace_period_seconds = 6 [default = 10]; */ public double getGracePeriodSeconds() { return gracePeriodSeconds_; } public static final int TYPE_FIELD_NUMBER = 8; private int type_; /** *
     * The type of health check.
     * 
* * optional .mesos.v1.HealthCheck.Type type = 8; */ public boolean hasType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * The type of health check.
     * 
* * optional .mesos.v1.HealthCheck.Type type = 8; */ public org.apache.mesos.v1.Protos.HealthCheck.Type getType() { org.apache.mesos.v1.Protos.HealthCheck.Type result = org.apache.mesos.v1.Protos.HealthCheck.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.HealthCheck.Type.UNKNOWN : result; } public static final int COMMAND_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.CommandInfo command_; /** *
     * Command health check.
     * 
* * optional .mesos.v1.CommandInfo command = 7; */ public boolean hasCommand() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * Command health check.
     * 
* * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } /** *
     * Command health check.
     * 
* * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } public static final int HTTP_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo http_; /** *
     * HTTP health check.
     * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public boolean hasHttp() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     * HTTP health check.
     * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo getHttp() { return http_ == null ? org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.getDefaultInstance() : http_; } /** *
     * HTTP health check.
     * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfoOrBuilder getHttpOrBuilder() { return http_ == null ? org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.getDefaultInstance() : http_; } public static final int TCP_FIELD_NUMBER = 9; private org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo tcp_; /** *
     * TCP health check.
     * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public boolean hasTcp() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
     * TCP health check.
     * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo getTcp() { return tcp_ == null ? org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.getDefaultInstance() : tcp_; } /** *
     * TCP health check.
     * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfoOrBuilder getTcpOrBuilder() { return tcp_ == null ? org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.getDefaultInstance() : tcp_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasCommand()) { if (!getCommand().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasHttp()) { if (!getHttp().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasTcp()) { if (!getTcp().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(1, getHttp()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeDouble(2, delaySeconds_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeDouble(3, intervalSeconds_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeDouble(4, timeoutSeconds_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(5, consecutiveFailures_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeDouble(6, gracePeriodSeconds_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, getCommand()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeEnum(8, type_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(9, getTcp()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHttp()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, delaySeconds_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, intervalSeconds_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, timeoutSeconds_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, consecutiveFailures_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, gracePeriodSeconds_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCommand()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, type_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getTcp()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.HealthCheck)) { return super.equals(obj); } org.apache.mesos.v1.Protos.HealthCheck other = (org.apache.mesos.v1.Protos.HealthCheck) obj; boolean result = true; result = result && (hasDelaySeconds() == other.hasDelaySeconds()); if (hasDelaySeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getDelaySeconds()) == java.lang.Double.doubleToLongBits( other.getDelaySeconds())); } result = result && (hasIntervalSeconds() == other.hasIntervalSeconds()); if (hasIntervalSeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getIntervalSeconds()) == java.lang.Double.doubleToLongBits( other.getIntervalSeconds())); } result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds()); if (hasTimeoutSeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getTimeoutSeconds()) == java.lang.Double.doubleToLongBits( other.getTimeoutSeconds())); } result = result && (hasConsecutiveFailures() == other.hasConsecutiveFailures()); if (hasConsecutiveFailures()) { result = result && (getConsecutiveFailures() == other.getConsecutiveFailures()); } result = result && (hasGracePeriodSeconds() == other.hasGracePeriodSeconds()); if (hasGracePeriodSeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getGracePeriodSeconds()) == java.lang.Double.doubleToLongBits( other.getGracePeriodSeconds())); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasCommand() == other.hasCommand()); if (hasCommand()) { result = result && getCommand() .equals(other.getCommand()); } result = result && (hasHttp() == other.hasHttp()); if (hasHttp()) { result = result && getHttp() .equals(other.getHttp()); } result = result && (hasTcp() == other.hasTcp()); if (hasTcp()) { result = result && getTcp() .equals(other.getTcp()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDelaySeconds()) { hash = (37 * hash) + DELAY_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDelaySeconds())); } if (hasIntervalSeconds()) { hash = (37 * hash) + INTERVAL_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getIntervalSeconds())); } if (hasTimeoutSeconds()) { hash = (37 * hash) + TIMEOUT_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTimeoutSeconds())); } if (hasConsecutiveFailures()) { hash = (37 * hash) + CONSECUTIVE_FAILURES_FIELD_NUMBER; hash = (53 * hash) + getConsecutiveFailures(); } if (hasGracePeriodSeconds()) { hash = (37 * hash) + GRACE_PERIOD_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getGracePeriodSeconds())); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } if (hasHttp()) { hash = (37 * hash) + HTTP_FIELD_NUMBER; hash = (53 * hash) + getHttp().hashCode(); } if (hasTcp()) { hash = (37 * hash) + TCP_FIELD_NUMBER; hash = (53 * hash) + getTcp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.HealthCheck parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck 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.Protos.HealthCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.HealthCheck parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.HealthCheck parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.HealthCheck parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.HealthCheck prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a health check for a task or executor (or any arbitrary
     * process/command). A type is picked by specifying one of the
     * optional fields. Specifying more than one type is an error.
     * 
* * Protobuf type {@code mesos.v1.HealthCheck} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.HealthCheck) org.apache.mesos.v1.Protos.HealthCheckOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.HealthCheck.class, org.apache.mesos.v1.Protos.HealthCheck.Builder.class); } // Construct using org.apache.mesos.v1.Protos.HealthCheck.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommandFieldBuilder(); getHttpFieldBuilder(); getTcpFieldBuilder(); } } public Builder clear() { super.clear(); delaySeconds_ = 15D; bitField0_ = (bitField0_ & ~0x00000001); intervalSeconds_ = 10D; bitField0_ = (bitField0_ & ~0x00000002); timeoutSeconds_ = 20D; bitField0_ = (bitField0_ & ~0x00000004); consecutiveFailures_ = 3; bitField0_ = (bitField0_ & ~0x00000008); gracePeriodSeconds_ = 10D; bitField0_ = (bitField0_ & ~0x00000010); type_ = 0; bitField0_ = (bitField0_ & ~0x00000020); if (commandBuilder_ == null) { command_ = null; } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (httpBuilder_ == null) { http_ = null; } else { httpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (tcpBuilder_ == null) { tcp_ = null; } else { tcpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_HealthCheck_descriptor; } public org.apache.mesos.v1.Protos.HealthCheck getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance(); } public org.apache.mesos.v1.Protos.HealthCheck build() { org.apache.mesos.v1.Protos.HealthCheck result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.HealthCheck buildPartial() { org.apache.mesos.v1.Protos.HealthCheck result = new org.apache.mesos.v1.Protos.HealthCheck(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.delaySeconds_ = delaySeconds_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.intervalSeconds_ = intervalSeconds_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.timeoutSeconds_ = timeoutSeconds_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.consecutiveFailures_ = consecutiveFailures_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.gracePeriodSeconds_ = gracePeriodSeconds_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.type_ = type_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (httpBuilder_ == null) { result.http_ = http_; } else { result.http_ = httpBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (tcpBuilder_ == null) { result.tcp_ = tcp_; } else { result.tcp_ = tcpBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.HealthCheck) { return mergeFrom((org.apache.mesos.v1.Protos.HealthCheck)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.HealthCheck other) { if (other == org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance()) return this; if (other.hasDelaySeconds()) { setDelaySeconds(other.getDelaySeconds()); } if (other.hasIntervalSeconds()) { setIntervalSeconds(other.getIntervalSeconds()); } if (other.hasTimeoutSeconds()) { setTimeoutSeconds(other.getTimeoutSeconds()); } if (other.hasConsecutiveFailures()) { setConsecutiveFailures(other.getConsecutiveFailures()); } if (other.hasGracePeriodSeconds()) { setGracePeriodSeconds(other.getGracePeriodSeconds()); } if (other.hasType()) { setType(other.getType()); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (other.hasHttp()) { mergeHttp(other.getHttp()); } if (other.hasTcp()) { mergeTcp(other.getTcp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasCommand()) { if (!getCommand().isInitialized()) { return false; } } if (hasHttp()) { if (!getHttp().isInitialized()) { return false; } } if (hasTcp()) { if (!getTcp().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.Protos.HealthCheck parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.HealthCheck) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double delaySeconds_ = 15D; /** *
       * Amount of time to wait to start health checking the task after it
       * transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
       * used by the executor.
       * 
* * optional double delay_seconds = 2 [default = 15]; */ public boolean hasDelaySeconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Amount of time to wait to start health checking the task after it
       * transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
       * used by the executor.
       * 
* * optional double delay_seconds = 2 [default = 15]; */ public double getDelaySeconds() { return delaySeconds_; } /** *
       * Amount of time to wait to start health checking the task after it
       * transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
       * used by the executor.
       * 
* * optional double delay_seconds = 2 [default = 15]; */ public Builder setDelaySeconds(double value) { bitField0_ |= 0x00000001; delaySeconds_ = value; onChanged(); return this; } /** *
       * Amount of time to wait to start health checking the task after it
       * transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
       * used by the executor.
       * 
* * optional double delay_seconds = 2 [default = 15]; */ public Builder clearDelaySeconds() { bitField0_ = (bitField0_ & ~0x00000001); delaySeconds_ = 15D; onChanged(); return this; } private double intervalSeconds_ = 10D; /** *
       * Interval between health checks, i.e., amount of time to wait after
       * the previous health check finished or timed out to start the next
       * health check.
       * 
* * optional double interval_seconds = 3 [default = 10]; */ public boolean hasIntervalSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Interval between health checks, i.e., amount of time to wait after
       * the previous health check finished or timed out to start the next
       * health check.
       * 
* * optional double interval_seconds = 3 [default = 10]; */ public double getIntervalSeconds() { return intervalSeconds_; } /** *
       * Interval between health checks, i.e., amount of time to wait after
       * the previous health check finished or timed out to start the next
       * health check.
       * 
* * optional double interval_seconds = 3 [default = 10]; */ public Builder setIntervalSeconds(double value) { bitField0_ |= 0x00000002; intervalSeconds_ = value; onChanged(); return this; } /** *
       * Interval between health checks, i.e., amount of time to wait after
       * the previous health check finished or timed out to start the next
       * health check.
       * 
* * optional double interval_seconds = 3 [default = 10]; */ public Builder clearIntervalSeconds() { bitField0_ = (bitField0_ & ~0x00000002); intervalSeconds_ = 10D; onChanged(); return this; } private double timeoutSeconds_ = 20D; /** *
       * Amount of time to wait for the health check to complete. After this
       * timeout, the health check is aborted and treated as a failure. Zero
       * means infinite timeout.
       * 
* * optional double timeout_seconds = 4 [default = 20]; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Amount of time to wait for the health check to complete. After this
       * timeout, the health check is aborted and treated as a failure. Zero
       * means infinite timeout.
       * 
* * optional double timeout_seconds = 4 [default = 20]; */ public double getTimeoutSeconds() { return timeoutSeconds_; } /** *
       * Amount of time to wait for the health check to complete. After this
       * timeout, the health check is aborted and treated as a failure. Zero
       * means infinite timeout.
       * 
* * optional double timeout_seconds = 4 [default = 20]; */ public Builder setTimeoutSeconds(double value) { bitField0_ |= 0x00000004; timeoutSeconds_ = value; onChanged(); return this; } /** *
       * Amount of time to wait for the health check to complete. After this
       * timeout, the health check is aborted and treated as a failure. Zero
       * means infinite timeout.
       * 
* * optional double timeout_seconds = 4 [default = 20]; */ public Builder clearTimeoutSeconds() { bitField0_ = (bitField0_ & ~0x00000004); timeoutSeconds_ = 20D; onChanged(); return this; } private int consecutiveFailures_ = 3; /** *
       * Number of consecutive failures until the task is killed by the executor.
       * 
* * optional uint32 consecutive_failures = 5 [default = 3]; */ public boolean hasConsecutiveFailures() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * Number of consecutive failures until the task is killed by the executor.
       * 
* * optional uint32 consecutive_failures = 5 [default = 3]; */ public int getConsecutiveFailures() { return consecutiveFailures_; } /** *
       * Number of consecutive failures until the task is killed by the executor.
       * 
* * optional uint32 consecutive_failures = 5 [default = 3]; */ public Builder setConsecutiveFailures(int value) { bitField0_ |= 0x00000008; consecutiveFailures_ = value; onChanged(); return this; } /** *
       * Number of consecutive failures until the task is killed by the executor.
       * 
* * optional uint32 consecutive_failures = 5 [default = 3]; */ public Builder clearConsecutiveFailures() { bitField0_ = (bitField0_ & ~0x00000008); consecutiveFailures_ = 3; onChanged(); return this; } private double gracePeriodSeconds_ = 10D; /** *
       * Amount of time after the task is launched during which health check
       * failures are ignored. Once a check succeeds for the first time,
       * the grace period does not apply anymore. Note that it includes
       * `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
       * has no effect.
       * 
* * optional double grace_period_seconds = 6 [default = 10]; */ public boolean hasGracePeriodSeconds() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * Amount of time after the task is launched during which health check
       * failures are ignored. Once a check succeeds for the first time,
       * the grace period does not apply anymore. Note that it includes
       * `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
       * has no effect.
       * 
* * optional double grace_period_seconds = 6 [default = 10]; */ public double getGracePeriodSeconds() { return gracePeriodSeconds_; } /** *
       * Amount of time after the task is launched during which health check
       * failures are ignored. Once a check succeeds for the first time,
       * the grace period does not apply anymore. Note that it includes
       * `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
       * has no effect.
       * 
* * optional double grace_period_seconds = 6 [default = 10]; */ public Builder setGracePeriodSeconds(double value) { bitField0_ |= 0x00000010; gracePeriodSeconds_ = value; onChanged(); return this; } /** *
       * Amount of time after the task is launched during which health check
       * failures are ignored. Once a check succeeds for the first time,
       * the grace period does not apply anymore. Note that it includes
       * `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
       * has no effect.
       * 
* * optional double grace_period_seconds = 6 [default = 10]; */ public Builder clearGracePeriodSeconds() { bitField0_ = (bitField0_ & ~0x00000010); gracePeriodSeconds_ = 10D; onChanged(); return this; } private int type_ = 0; /** *
       * The type of health check.
       * 
* * optional .mesos.v1.HealthCheck.Type type = 8; */ public boolean hasType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * The type of health check.
       * 
* * optional .mesos.v1.HealthCheck.Type type = 8; */ public org.apache.mesos.v1.Protos.HealthCheck.Type getType() { org.apache.mesos.v1.Protos.HealthCheck.Type result = org.apache.mesos.v1.Protos.HealthCheck.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.HealthCheck.Type.UNKNOWN : result; } /** *
       * The type of health check.
       * 
* * optional .mesos.v1.HealthCheck.Type type = 8; */ public Builder setType(org.apache.mesos.v1.Protos.HealthCheck.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; type_ = value.getNumber(); onChanged(); return this; } /** *
       * The type of health check.
       * 
* * optional .mesos.v1.HealthCheck.Type type = 8; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000020); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.CommandInfo command_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CommandInfo, org.apache.mesos.v1.Protos.CommandInfo.Builder, org.apache.mesos.v1.Protos.CommandInfoOrBuilder> commandBuilder_; /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ public boolean hasCommand() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { if (commandBuilder_ == null) { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } else { return commandBuilder_.getMessage(); } } /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ 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_ |= 0x00000040; return this; } /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ public Builder setCommand( org.apache.mesos.v1.Protos.CommandInfo.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ public Builder mergeCommand(org.apache.mesos.v1.Protos.CommandInfo value) { if (commandBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && command_ != null && 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_ |= 0x00000040; return this; } /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = null; onChanged(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo.Builder getCommandBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCommandFieldBuilder().getBuilder(); } /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } } /** *
       * Command health check.
       * 
* * optional .mesos.v1.CommandInfo command = 7; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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.HealthCheck.HTTPCheckInfo http_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo, org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.Builder, org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfoOrBuilder> httpBuilder_; /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public boolean hasHttp() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo getHttp() { if (httpBuilder_ == null) { return http_ == null ? org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.getDefaultInstance() : http_; } else { return httpBuilder_.getMessage(); } } /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public Builder setHttp(org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo value) { if (httpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } http_ = value; onChanged(); } else { httpBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public Builder setHttp( org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.Builder builderForValue) { if (httpBuilder_ == null) { http_ = builderForValue.build(); onChanged(); } else { httpBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public Builder mergeHttp(org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo value) { if (httpBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && http_ != null && http_ != org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.getDefaultInstance()) { http_ = org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.newBuilder(http_).mergeFrom(value).buildPartial(); } else { http_ = value; } onChanged(); } else { httpBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public Builder clearHttp() { if (httpBuilder_ == null) { http_ = null; onChanged(); } else { httpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.Builder getHttpBuilder() { bitField0_ |= 0x00000080; onChanged(); return getHttpFieldBuilder().getBuilder(); } /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ public org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfoOrBuilder getHttpOrBuilder() { if (httpBuilder_ != null) { return httpBuilder_.getMessageOrBuilder(); } else { return http_ == null ? org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.getDefaultInstance() : http_; } } /** *
       * HTTP health check.
       * 
* * optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo, org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.Builder, org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfoOrBuilder> getHttpFieldBuilder() { if (httpBuilder_ == null) { httpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo, org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfo.Builder, org.apache.mesos.v1.Protos.HealthCheck.HTTPCheckInfoOrBuilder>( getHttp(), getParentForChildren(), isClean()); http_ = null; } return httpBuilder_; } private org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo tcp_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo, org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.Builder, org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfoOrBuilder> tcpBuilder_; /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public boolean hasTcp() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo getTcp() { if (tcpBuilder_ == null) { return tcp_ == null ? org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.getDefaultInstance() : tcp_; } else { return tcpBuilder_.getMessage(); } } /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public Builder setTcp(org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo value) { if (tcpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tcp_ = value; onChanged(); } else { tcpBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public Builder setTcp( org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.Builder builderForValue) { if (tcpBuilder_ == null) { tcp_ = builderForValue.build(); onChanged(); } else { tcpBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public Builder mergeTcp(org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo value) { if (tcpBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && tcp_ != null && tcp_ != org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.getDefaultInstance()) { tcp_ = org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.newBuilder(tcp_).mergeFrom(value).buildPartial(); } else { tcp_ = value; } onChanged(); } else { tcpBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public Builder clearTcp() { if (tcpBuilder_ == null) { tcp_ = null; onChanged(); } else { tcpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.Builder getTcpBuilder() { bitField0_ |= 0x00000100; onChanged(); return getTcpFieldBuilder().getBuilder(); } /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ public org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfoOrBuilder getTcpOrBuilder() { if (tcpBuilder_ != null) { return tcpBuilder_.getMessageOrBuilder(); } else { return tcp_ == null ? org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.getDefaultInstance() : tcp_; } } /** *
       * TCP health check.
       * 
* * optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo, org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.Builder, org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfoOrBuilder> getTcpFieldBuilder() { if (tcpBuilder_ == null) { tcpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo, org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfo.Builder, org.apache.mesos.v1.Protos.HealthCheck.TCPCheckInfoOrBuilder>( getTcp(), getParentForChildren(), isClean()); tcp_ = null; } return tcpBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.HealthCheck) } // @@protoc_insertion_point(class_scope:mesos.v1.HealthCheck) private static final org.apache.mesos.v1.Protos.HealthCheck DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.HealthCheck(); } public static org.apache.mesos.v1.Protos.HealthCheck getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HealthCheck parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HealthCheck(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.HealthCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KillPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.KillPolicy) com.google.protobuf.MessageOrBuilder { /** *
     * The grace period specifies how long to wait before forcibly
     * killing the task. It is recommended to attempt to gracefully
     * kill the task (and send TASK_KILLING) to indicate that the
     * graceful kill is in progress. Once the grace period elapses,
     * if the task has not terminated, a forcible kill should occur.
     * The task should not assume that it will always be allotted
     * the full grace period. For example, the executor may be
     * shutdown more quickly by the agent, or failures / forcible
     * terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ boolean hasGracePeriod(); /** *
     * The grace period specifies how long to wait before forcibly
     * killing the task. It is recommended to attempt to gracefully
     * kill the task (and send TASK_KILLING) to indicate that the
     * graceful kill is in progress. Once the grace period elapses,
     * if the task has not terminated, a forcible kill should occur.
     * The task should not assume that it will always be allotted
     * the full grace period. For example, the executor may be
     * shutdown more quickly by the agent, or failures / forcible
     * terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ org.apache.mesos.v1.Protos.DurationInfo getGracePeriod(); /** *
     * The grace period specifies how long to wait before forcibly
     * killing the task. It is recommended to attempt to gracefully
     * kill the task (and send TASK_KILLING) to indicate that the
     * graceful kill is in progress. Once the grace period elapses,
     * if the task has not terminated, a forcible kill should occur.
     * The task should not assume that it will always be allotted
     * the full grace period. For example, the executor may be
     * shutdown more quickly by the agent, or failures / forcible
     * terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ org.apache.mesos.v1.Protos.DurationInfoOrBuilder getGracePeriodOrBuilder(); } /** *
   **
   * Describes a kill policy for a task. Currently does not express
   * different policies (e.g. hitting HTTP endpoints), only controls
   * how long to wait between graceful and forcible task kill:
   *     graceful kill --------------> forcible kill
   *                    grace_period
   * Kill policies are best-effort, because machine failures / forcible
   * terminations may occur.
   * NOTE: For executor-less command-based tasks, the kill is performed
   * via sending a signal to the task process: SIGTERM for the graceful
   * kill and SIGKILL for the forcible kill. For the docker executor-less
   * tasks the grace period is passed to 'docker stop --time'.
   * 
* * Protobuf type {@code mesos.v1.KillPolicy} */ public static final class KillPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.KillPolicy) KillPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use KillPolicy.newBuilder() to construct. private KillPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KillPolicy() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KillPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.DurationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = gracePeriod_.toBuilder(); } gracePeriod_ = input.readMessage(org.apache.mesos.v1.Protos.DurationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(gracePeriod_); gracePeriod_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_KillPolicy_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_KillPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.KillPolicy.class, org.apache.mesos.v1.Protos.KillPolicy.Builder.class); } private int bitField0_; public static final int GRACE_PERIOD_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.DurationInfo gracePeriod_; /** *
     * The grace period specifies how long to wait before forcibly
     * killing the task. It is recommended to attempt to gracefully
     * kill the task (and send TASK_KILLING) to indicate that the
     * graceful kill is in progress. Once the grace period elapses,
     * if the task has not terminated, a forcible kill should occur.
     * The task should not assume that it will always be allotted
     * the full grace period. For example, the executor may be
     * shutdown more quickly by the agent, or failures / forcible
     * terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public boolean hasGracePeriod() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * The grace period specifies how long to wait before forcibly
     * killing the task. It is recommended to attempt to gracefully
     * kill the task (and send TASK_KILLING) to indicate that the
     * graceful kill is in progress. Once the grace period elapses,
     * if the task has not terminated, a forcible kill should occur.
     * The task should not assume that it will always be allotted
     * the full grace period. For example, the executor may be
     * shutdown more quickly by the agent, or failures / forcible
     * terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public org.apache.mesos.v1.Protos.DurationInfo getGracePeriod() { return gracePeriod_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : gracePeriod_; } /** *
     * The grace period specifies how long to wait before forcibly
     * killing the task. It is recommended to attempt to gracefully
     * kill the task (and send TASK_KILLING) to indicate that the
     * graceful kill is in progress. Once the grace period elapses,
     * if the task has not terminated, a forcible kill should occur.
     * The task should not assume that it will always be allotted
     * the full grace period. For example, the executor may be
     * shutdown more quickly by the agent, or failures / forcible
     * terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getGracePeriodOrBuilder() { return gracePeriod_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : gracePeriod_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasGracePeriod()) { if (!getGracePeriod().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getGracePeriod()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getGracePeriod()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.KillPolicy)) { return super.equals(obj); } org.apache.mesos.v1.Protos.KillPolicy other = (org.apache.mesos.v1.Protos.KillPolicy) obj; boolean result = true; result = result && (hasGracePeriod() == other.hasGracePeriod()); if (hasGracePeriod()) { result = result && getGracePeriod() .equals(other.getGracePeriod()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasGracePeriod()) { hash = (37 * hash) + GRACE_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getGracePeriod().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.KillPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.KillPolicy parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.KillPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.KillPolicy 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.Protos.KillPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.KillPolicy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.KillPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.KillPolicy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.KillPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.KillPolicy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.KillPolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.KillPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.KillPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a kill policy for a task. Currently does not express
     * different policies (e.g. hitting HTTP endpoints), only controls
     * how long to wait between graceful and forcible task kill:
     *     graceful kill --------------> forcible kill
     *                    grace_period
     * Kill policies are best-effort, because machine failures / forcible
     * terminations may occur.
     * NOTE: For executor-less command-based tasks, the kill is performed
     * via sending a signal to the task process: SIGTERM for the graceful
     * kill and SIGKILL for the forcible kill. For the docker executor-less
     * tasks the grace period is passed to 'docker stop --time'.
     * 
* * Protobuf type {@code mesos.v1.KillPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.KillPolicy) org.apache.mesos.v1.Protos.KillPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_KillPolicy_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_KillPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.KillPolicy.class, org.apache.mesos.v1.Protos.KillPolicy.Builder.class); } // Construct using org.apache.mesos.v1.Protos.KillPolicy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGracePeriodFieldBuilder(); } } public Builder clear() { super.clear(); if (gracePeriodBuilder_ == null) { gracePeriod_ = null; } else { gracePeriodBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_KillPolicy_descriptor; } public org.apache.mesos.v1.Protos.KillPolicy getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance(); } public org.apache.mesos.v1.Protos.KillPolicy build() { org.apache.mesos.v1.Protos.KillPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.KillPolicy buildPartial() { org.apache.mesos.v1.Protos.KillPolicy result = new org.apache.mesos.v1.Protos.KillPolicy(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (gracePeriodBuilder_ == null) { result.gracePeriod_ = gracePeriod_; } else { result.gracePeriod_ = gracePeriodBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.KillPolicy) { return mergeFrom((org.apache.mesos.v1.Protos.KillPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.KillPolicy other) { if (other == org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance()) return this; if (other.hasGracePeriod()) { mergeGracePeriod(other.getGracePeriod()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasGracePeriod()) { if (!getGracePeriod().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.Protos.KillPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.KillPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.DurationInfo gracePeriod_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> gracePeriodBuilder_; /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public boolean hasGracePeriod() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public org.apache.mesos.v1.Protos.DurationInfo getGracePeriod() { if (gracePeriodBuilder_ == null) { return gracePeriod_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : gracePeriod_; } else { return gracePeriodBuilder_.getMessage(); } } /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public Builder setGracePeriod(org.apache.mesos.v1.Protos.DurationInfo value) { if (gracePeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gracePeriod_ = value; onChanged(); } else { gracePeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public Builder setGracePeriod( org.apache.mesos.v1.Protos.DurationInfo.Builder builderForValue) { if (gracePeriodBuilder_ == null) { gracePeriod_ = builderForValue.build(); onChanged(); } else { gracePeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public Builder mergeGracePeriod(org.apache.mesos.v1.Protos.DurationInfo value) { if (gracePeriodBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && gracePeriod_ != null && gracePeriod_ != org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance()) { gracePeriod_ = org.apache.mesos.v1.Protos.DurationInfo.newBuilder(gracePeriod_).mergeFrom(value).buildPartial(); } else { gracePeriod_ = value; } onChanged(); } else { gracePeriodBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public Builder clearGracePeriod() { if (gracePeriodBuilder_ == null) { gracePeriod_ = null; onChanged(); } else { gracePeriodBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public org.apache.mesos.v1.Protos.DurationInfo.Builder getGracePeriodBuilder() { bitField0_ |= 0x00000001; onChanged(); return getGracePeriodFieldBuilder().getBuilder(); } /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getGracePeriodOrBuilder() { if (gracePeriodBuilder_ != null) { return gracePeriodBuilder_.getMessageOrBuilder(); } else { return gracePeriod_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : gracePeriod_; } } /** *
       * The grace period specifies how long to wait before forcibly
       * killing the task. It is recommended to attempt to gracefully
       * kill the task (and send TASK_KILLING) to indicate that the
       * graceful kill is in progress. Once the grace period elapses,
       * if the task has not terminated, a forcible kill should occur.
       * The task should not assume that it will always be allotted
       * the full grace period. For example, the executor may be
       * shutdown more quickly by the agent, or failures / forcible
       * terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo grace_period = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> getGracePeriodFieldBuilder() { if (gracePeriodBuilder_ == null) { gracePeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder>( getGracePeriod(), getParentForChildren(), isClean()); gracePeriod_ = null; } return gracePeriodBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.KillPolicy) } // @@protoc_insertion_point(class_scope:mesos.v1.KillPolicy) private static final org.apache.mesos.v1.Protos.KillPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.KillPolicy(); } public static org.apache.mesos.v1.Protos.KillPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KillPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KillPolicy(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.KillPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommandInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CommandInfo) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ java.util.List getUrisList(); /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ org.apache.mesos.v1.Protos.CommandInfo.URI getUris(int index); /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ int getUrisCount(); /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ java.util.List getUrisOrBuilderList(); /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ org.apache.mesos.v1.Protos.CommandInfo.URIOrBuilder getUrisOrBuilder( int index); /** * optional .mesos.v1.Environment environment = 2; */ boolean hasEnvironment(); /** * optional .mesos.v1.Environment environment = 2; */ org.apache.mesos.v1.Protos.Environment getEnvironment(); /** * optional .mesos.v1.Environment environment = 2; */ org.apache.mesos.v1.Protos.EnvironmentOrBuilder getEnvironmentOrBuilder(); /** *
     * There are two ways to specify the command:
     * 1) If 'shell == true', the command will be launched via shell
     *		(i.e., /bin/sh -c 'value'). The 'value' specified will be
     *		treated as the shell command. The 'arguments' will be ignored.
     * 2) If 'shell == false', the command will be launched by passing
     *		arguments to an executable. The 'value' specified will be
     *		treated as the filename of the executable. The 'arguments'
     *		will be treated as the arguments to the executable. This is
     *		similar to how POSIX exec families launch processes (i.e.,
     *		execlp(value, arguments(0), arguments(1), ...)).
     * NOTE: The field 'value' is changed from 'required' to 'optional'
     * in 0.20.0. It will only cause issues if a new framework is
     * connecting to an old master.
     * 
* * optional bool shell = 6 [default = true]; */ boolean hasShell(); /** *
     * There are two ways to specify the command:
     * 1) If 'shell == true', the command will be launched via shell
     *		(i.e., /bin/sh -c 'value'). The 'value' specified will be
     *		treated as the shell command. The 'arguments' will be ignored.
     * 2) If 'shell == false', the command will be launched by passing
     *		arguments to an executable. The 'value' specified will be
     *		treated as the filename of the executable. The 'arguments'
     *		will be treated as the arguments to the executable. This is
     *		similar to how POSIX exec families launch processes (i.e.,
     *		execlp(value, arguments(0), arguments(1), ...)).
     * NOTE: The field 'value' is changed from 'required' to 'optional'
     * in 0.20.0. It will only cause issues if a new framework is
     * connecting to an old master.
     * 
* * optional bool shell = 6 [default = true]; */ boolean getShell(); /** * optional string value = 3; */ boolean hasValue(); /** * optional string value = 3; */ java.lang.String getValue(); /** * optional string value = 3; */ com.google.protobuf.ByteString getValueBytes(); /** * repeated string arguments = 7; */ java.util.List getArgumentsList(); /** * repeated string arguments = 7; */ int getArgumentsCount(); /** * repeated string arguments = 7; */ java.lang.String getArguments(int index); /** * repeated string arguments = 7; */ com.google.protobuf.ByteString getArgumentsBytes(int index); /** *
     * Enables executor and tasks to run as a specific user. If the user
     * field is present both in FrameworkInfo and here, the CommandInfo
     * user value takes precedence.
     * 
* * optional string user = 5; */ boolean hasUser(); /** *
     * Enables executor and tasks to run as a specific user. If the user
     * field is present both in FrameworkInfo and here, the CommandInfo
     * user value takes precedence.
     * 
* * optional string user = 5; */ java.lang.String getUser(); /** *
     * Enables executor and tasks to run as a specific user. If the user
     * field is present both in FrameworkInfo and here, the CommandInfo
     * user value takes precedence.
     * 
* * optional string user = 5; */ com.google.protobuf.ByteString getUserBytes(); } /** *
   **
   * Describes a command, executed via: '/bin/sh -c value'. Any URIs specified
   * are fetched before executing the command.  If the executable field for an
   * uri is set, executable file permission is set on the downloaded file.
   * Otherwise, if the downloaded file has a recognized archive extension
   * (currently [compressed] tar and zip) it is extracted into the executor's
   * working directory. This extraction can be disabled by setting `extract` to
   * false. In addition, any environment variables are set before executing
   * the command (so they can be used to "parameterize" your command).
   * 
* * Protobuf type {@code mesos.v1.CommandInfo} */ public static final class CommandInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CommandInfo) CommandInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CommandInfo.newBuilder() to construct. private CommandInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommandInfo() { uris_ = java.util.Collections.emptyList(); shell_ = true; value_ = ""; arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; user_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommandInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { uris_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } uris_.add( input.readMessage(org.apache.mesos.v1.Protos.CommandInfo.URI.PARSER, extensionRegistry)); break; } case 18: { org.apache.mesos.v1.Protos.Environment.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = environment_.toBuilder(); } environment_ = input.readMessage(org.apache.mesos.v1.Protos.Environment.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(environment_); environment_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; value_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; user_ = bs; break; } case 48: { bitField0_ |= 0x00000002; shell_ = input.readBool(); break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { arguments_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } arguments_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { uris_ = java.util.Collections.unmodifiableList(uris_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { arguments_ = arguments_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CommandInfo.class, org.apache.mesos.v1.Protos.CommandInfo.Builder.class); } public interface URIOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CommandInfo.URI) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); /** * optional bool executable = 2; */ boolean hasExecutable(); /** * optional bool executable = 2; */ boolean getExecutable(); /** *
       * In case the fetched file is recognized as an archive, extract
       * its contents into the sandbox. Note that a cached archive is
       * not copied from the cache to the sandbox in case extraction
       * originates from an archive in the cache.
       * 
* * optional bool extract = 3 [default = true]; */ boolean hasExtract(); /** *
       * In case the fetched file is recognized as an archive, extract
       * its contents into the sandbox. Note that a cached archive is
       * not copied from the cache to the sandbox in case extraction
       * originates from an archive in the cache.
       * 
* * optional bool extract = 3 [default = true]; */ boolean getExtract(); /** *
       * If this field is "true", the fetcher cache will be used. If not,
       * fetching bypasses the cache and downloads directly into the
       * sandbox directory, no matter whether a suitable cache file is
       * available or not. The former directs the fetcher to download to
       * the file cache, then copy from there to the sandbox. Subsequent
       * fetch attempts with the same URI will omit downloading and copy
       * from the cache as long as the file is resident there. Cache files
       * may get evicted at any time, which then leads to renewed
       * downloading. See also "docs/fetcher.md" and
       * "docs/fetcher-cache-internals.md".
       * 
* * optional bool cache = 4; */ boolean hasCache(); /** *
       * If this field is "true", the fetcher cache will be used. If not,
       * fetching bypasses the cache and downloads directly into the
       * sandbox directory, no matter whether a suitable cache file is
       * available or not. The former directs the fetcher to download to
       * the file cache, then copy from there to the sandbox. Subsequent
       * fetch attempts with the same URI will omit downloading and copy
       * from the cache as long as the file is resident there. Cache files
       * may get evicted at any time, which then leads to renewed
       * downloading. See also "docs/fetcher.md" and
       * "docs/fetcher-cache-internals.md".
       * 
* * optional bool cache = 4; */ boolean getCache(); /** *
       * The fetcher's default behavior is to use the URI string's basename to
       * name the local copy. If this field is provided, the local copy will be
       * named with its value instead. If there is a directory component (which
       * must be a relative path), the local copy will be stored in that
       * subdirectory inside the sandbox.
       * 
* * optional string output_file = 5; */ boolean hasOutputFile(); /** *
       * The fetcher's default behavior is to use the URI string's basename to
       * name the local copy. If this field is provided, the local copy will be
       * named with its value instead. If there is a directory component (which
       * must be a relative path), the local copy will be stored in that
       * subdirectory inside the sandbox.
       * 
* * optional string output_file = 5; */ java.lang.String getOutputFile(); /** *
       * The fetcher's default behavior is to use the URI string's basename to
       * name the local copy. If this field is provided, the local copy will be
       * named with its value instead. If there is a directory component (which
       * must be a relative path), the local copy will be stored in that
       * subdirectory inside the sandbox.
       * 
* * optional string output_file = 5; */ com.google.protobuf.ByteString getOutputFileBytes(); } /** * Protobuf type {@code mesos.v1.CommandInfo.URI} */ public static final class URI extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CommandInfo.URI) URIOrBuilder { private static final long serialVersionUID = 0L; // Use URI.newBuilder() to construct. private URI(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private URI() { value_ = ""; executable_ = false; extract_ = true; cache_ = false; outputFile_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private URI( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } case 16: { bitField0_ |= 0x00000002; executable_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; extract_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; cache_ = input.readBool(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; outputFile_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_URI_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_URI_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CommandInfo.URI.class, org.apache.mesos.v1.Protos.CommandInfo.URI.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXECUTABLE_FIELD_NUMBER = 2; private boolean executable_; /** * optional bool executable = 2; */ public boolean hasExecutable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool executable = 2; */ public boolean getExecutable() { return executable_; } public static final int EXTRACT_FIELD_NUMBER = 3; private boolean extract_; /** *
       * In case the fetched file is recognized as an archive, extract
       * its contents into the sandbox. Note that a cached archive is
       * not copied from the cache to the sandbox in case extraction
       * originates from an archive in the cache.
       * 
* * optional bool extract = 3 [default = true]; */ public boolean hasExtract() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * In case the fetched file is recognized as an archive, extract
       * its contents into the sandbox. Note that a cached archive is
       * not copied from the cache to the sandbox in case extraction
       * originates from an archive in the cache.
       * 
* * optional bool extract = 3 [default = true]; */ public boolean getExtract() { return extract_; } public static final int CACHE_FIELD_NUMBER = 4; private boolean cache_; /** *
       * If this field is "true", the fetcher cache will be used. If not,
       * fetching bypasses the cache and downloads directly into the
       * sandbox directory, no matter whether a suitable cache file is
       * available or not. The former directs the fetcher to download to
       * the file cache, then copy from there to the sandbox. Subsequent
       * fetch attempts with the same URI will omit downloading and copy
       * from the cache as long as the file is resident there. Cache files
       * may get evicted at any time, which then leads to renewed
       * downloading. See also "docs/fetcher.md" and
       * "docs/fetcher-cache-internals.md".
       * 
* * optional bool cache = 4; */ public boolean hasCache() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * If this field is "true", the fetcher cache will be used. If not,
       * fetching bypasses the cache and downloads directly into the
       * sandbox directory, no matter whether a suitable cache file is
       * available or not. The former directs the fetcher to download to
       * the file cache, then copy from there to the sandbox. Subsequent
       * fetch attempts with the same URI will omit downloading and copy
       * from the cache as long as the file is resident there. Cache files
       * may get evicted at any time, which then leads to renewed
       * downloading. See also "docs/fetcher.md" and
       * "docs/fetcher-cache-internals.md".
       * 
* * optional bool cache = 4; */ public boolean getCache() { return cache_; } public static final int OUTPUT_FILE_FIELD_NUMBER = 5; private volatile java.lang.Object outputFile_; /** *
       * The fetcher's default behavior is to use the URI string's basename to
       * name the local copy. If this field is provided, the local copy will be
       * named with its value instead. If there is a directory component (which
       * must be a relative path), the local copy will be stored in that
       * subdirectory inside the sandbox.
       * 
* * optional string output_file = 5; */ public boolean hasOutputFile() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * The fetcher's default behavior is to use the URI string's basename to
       * name the local copy. If this field is provided, the local copy will be
       * named with its value instead. If there is a directory component (which
       * must be a relative path), the local copy will be stored in that
       * subdirectory inside the sandbox.
       * 
* * optional string output_file = 5; */ public java.lang.String getOutputFile() { java.lang.Object ref = outputFile_; 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()) { outputFile_ = s; } return s; } } /** *
       * The fetcher's default behavior is to use the URI string's basename to
       * name the local copy. If this field is provided, the local copy will be
       * named with its value instead. If there is a directory component (which
       * must be a relative path), the local copy will be stored in that
       * subdirectory inside the sandbox.
       * 
* * optional string output_file = 5; */ public com.google.protobuf.ByteString getOutputFileBytes() { java.lang.Object ref = outputFile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); outputFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, executable_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, extract_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, cache_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputFile_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, executable_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, extract_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, cache_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputFile_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CommandInfo.URI)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CommandInfo.URI other = (org.apache.mesos.v1.Protos.CommandInfo.URI) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && (hasExecutable() == other.hasExecutable()); if (hasExecutable()) { result = result && (getExecutable() == other.getExecutable()); } result = result && (hasExtract() == other.hasExtract()); if (hasExtract()) { result = result && (getExtract() == other.getExtract()); } result = result && (hasCache() == other.hasCache()); if (hasCache()) { result = result && (getCache() == other.getCache()); } result = result && (hasOutputFile() == other.hasOutputFile()); if (hasOutputFile()) { result = result && getOutputFile() .equals(other.getOutputFile()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasExecutable()) { hash = (37 * hash) + EXECUTABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExecutable()); } if (hasExtract()) { hash = (37 * hash) + EXTRACT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExtract()); } if (hasCache()) { hash = (37 * hash) + CACHE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCache()); } if (hasOutputFile()) { hash = (37 * hash) + OUTPUT_FILE_FIELD_NUMBER; hash = (53 * hash) + getOutputFile().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CommandInfo.URI 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.Protos.CommandInfo.URI parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CommandInfo.URI parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CommandInfo.URI prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CommandInfo.URI} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CommandInfo.URI) org.apache.mesos.v1.Protos.CommandInfo.URIOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_URI_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_URI_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CommandInfo.URI.class, org.apache.mesos.v1.Protos.CommandInfo.URI.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CommandInfo.URI.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); executable_ = false; bitField0_ = (bitField0_ & ~0x00000002); extract_ = true; bitField0_ = (bitField0_ & ~0x00000004); cache_ = false; bitField0_ = (bitField0_ & ~0x00000008); outputFile_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_URI_descriptor; } public org.apache.mesos.v1.Protos.CommandInfo.URI getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CommandInfo.URI.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CommandInfo.URI build() { org.apache.mesos.v1.Protos.CommandInfo.URI result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CommandInfo.URI buildPartial() { org.apache.mesos.v1.Protos.CommandInfo.URI result = new org.apache.mesos.v1.Protos.CommandInfo.URI(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.executable_ = executable_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.extract_ = extract_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.cache_ = cache_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.outputFile_ = outputFile_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CommandInfo.URI) { return mergeFrom((org.apache.mesos.v1.Protos.CommandInfo.URI)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CommandInfo.URI other) { if (other == org.apache.mesos.v1.Protos.CommandInfo.URI.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } if (other.hasExecutable()) { setExecutable(other.getExecutable()); } if (other.hasExtract()) { setExtract(other.getExtract()); } if (other.hasCache()) { setCache(other.getCache()); } if (other.hasOutputFile()) { bitField0_ |= 0x00000010; outputFile_ = other.outputFile_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.CommandInfo.URI parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CommandInfo.URI) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } private boolean executable_ ; /** * optional bool executable = 2; */ public boolean hasExecutable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool executable = 2; */ public boolean getExecutable() { return executable_; } /** * optional bool executable = 2; */ public Builder setExecutable(boolean value) { bitField0_ |= 0x00000002; executable_ = value; onChanged(); return this; } /** * optional bool executable = 2; */ public Builder clearExecutable() { bitField0_ = (bitField0_ & ~0x00000002); executable_ = false; onChanged(); return this; } private boolean extract_ = true; /** *
         * In case the fetched file is recognized as an archive, extract
         * its contents into the sandbox. Note that a cached archive is
         * not copied from the cache to the sandbox in case extraction
         * originates from an archive in the cache.
         * 
* * optional bool extract = 3 [default = true]; */ public boolean hasExtract() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * In case the fetched file is recognized as an archive, extract
         * its contents into the sandbox. Note that a cached archive is
         * not copied from the cache to the sandbox in case extraction
         * originates from an archive in the cache.
         * 
* * optional bool extract = 3 [default = true]; */ public boolean getExtract() { return extract_; } /** *
         * In case the fetched file is recognized as an archive, extract
         * its contents into the sandbox. Note that a cached archive is
         * not copied from the cache to the sandbox in case extraction
         * originates from an archive in the cache.
         * 
* * optional bool extract = 3 [default = true]; */ public Builder setExtract(boolean value) { bitField0_ |= 0x00000004; extract_ = value; onChanged(); return this; } /** *
         * In case the fetched file is recognized as an archive, extract
         * its contents into the sandbox. Note that a cached archive is
         * not copied from the cache to the sandbox in case extraction
         * originates from an archive in the cache.
         * 
* * optional bool extract = 3 [default = true]; */ public Builder clearExtract() { bitField0_ = (bitField0_ & ~0x00000004); extract_ = true; onChanged(); return this; } private boolean cache_ ; /** *
         * If this field is "true", the fetcher cache will be used. If not,
         * fetching bypasses the cache and downloads directly into the
         * sandbox directory, no matter whether a suitable cache file is
         * available or not. The former directs the fetcher to download to
         * the file cache, then copy from there to the sandbox. Subsequent
         * fetch attempts with the same URI will omit downloading and copy
         * from the cache as long as the file is resident there. Cache files
         * may get evicted at any time, which then leads to renewed
         * downloading. See also "docs/fetcher.md" and
         * "docs/fetcher-cache-internals.md".
         * 
* * optional bool cache = 4; */ public boolean hasCache() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
         * If this field is "true", the fetcher cache will be used. If not,
         * fetching bypasses the cache and downloads directly into the
         * sandbox directory, no matter whether a suitable cache file is
         * available or not. The former directs the fetcher to download to
         * the file cache, then copy from there to the sandbox. Subsequent
         * fetch attempts with the same URI will omit downloading and copy
         * from the cache as long as the file is resident there. Cache files
         * may get evicted at any time, which then leads to renewed
         * downloading. See also "docs/fetcher.md" and
         * "docs/fetcher-cache-internals.md".
         * 
* * optional bool cache = 4; */ public boolean getCache() { return cache_; } /** *
         * If this field is "true", the fetcher cache will be used. If not,
         * fetching bypasses the cache and downloads directly into the
         * sandbox directory, no matter whether a suitable cache file is
         * available or not. The former directs the fetcher to download to
         * the file cache, then copy from there to the sandbox. Subsequent
         * fetch attempts with the same URI will omit downloading and copy
         * from the cache as long as the file is resident there. Cache files
         * may get evicted at any time, which then leads to renewed
         * downloading. See also "docs/fetcher.md" and
         * "docs/fetcher-cache-internals.md".
         * 
* * optional bool cache = 4; */ public Builder setCache(boolean value) { bitField0_ |= 0x00000008; cache_ = value; onChanged(); return this; } /** *
         * If this field is "true", the fetcher cache will be used. If not,
         * fetching bypasses the cache and downloads directly into the
         * sandbox directory, no matter whether a suitable cache file is
         * available or not. The former directs the fetcher to download to
         * the file cache, then copy from there to the sandbox. Subsequent
         * fetch attempts with the same URI will omit downloading and copy
         * from the cache as long as the file is resident there. Cache files
         * may get evicted at any time, which then leads to renewed
         * downloading. See also "docs/fetcher.md" and
         * "docs/fetcher-cache-internals.md".
         * 
* * optional bool cache = 4; */ public Builder clearCache() { bitField0_ = (bitField0_ & ~0x00000008); cache_ = false; onChanged(); return this; } private java.lang.Object outputFile_ = ""; /** *
         * The fetcher's default behavior is to use the URI string's basename to
         * name the local copy. If this field is provided, the local copy will be
         * named with its value instead. If there is a directory component (which
         * must be a relative path), the local copy will be stored in that
         * subdirectory inside the sandbox.
         * 
* * optional string output_file = 5; */ public boolean hasOutputFile() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
         * The fetcher's default behavior is to use the URI string's basename to
         * name the local copy. If this field is provided, the local copy will be
         * named with its value instead. If there is a directory component (which
         * must be a relative path), the local copy will be stored in that
         * subdirectory inside the sandbox.
         * 
* * optional string output_file = 5; */ public java.lang.String getOutputFile() { java.lang.Object ref = outputFile_; 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()) { outputFile_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * The fetcher's default behavior is to use the URI string's basename to
         * name the local copy. If this field is provided, the local copy will be
         * named with its value instead. If there is a directory component (which
         * must be a relative path), the local copy will be stored in that
         * subdirectory inside the sandbox.
         * 
* * optional string output_file = 5; */ public com.google.protobuf.ByteString getOutputFileBytes() { java.lang.Object ref = outputFile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); outputFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The fetcher's default behavior is to use the URI string's basename to
         * name the local copy. If this field is provided, the local copy will be
         * named with its value instead. If there is a directory component (which
         * must be a relative path), the local copy will be stored in that
         * subdirectory inside the sandbox.
         * 
* * optional string output_file = 5; */ public Builder setOutputFile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; outputFile_ = value; onChanged(); return this; } /** *
         * The fetcher's default behavior is to use the URI string's basename to
         * name the local copy. If this field is provided, the local copy will be
         * named with its value instead. If there is a directory component (which
         * must be a relative path), the local copy will be stored in that
         * subdirectory inside the sandbox.
         * 
* * optional string output_file = 5; */ public Builder clearOutputFile() { bitField0_ = (bitField0_ & ~0x00000010); outputFile_ = getDefaultInstance().getOutputFile(); onChanged(); return this; } /** *
         * The fetcher's default behavior is to use the URI string's basename to
         * name the local copy. If this field is provided, the local copy will be
         * named with its value instead. If there is a directory component (which
         * must be a relative path), the local copy will be stored in that
         * subdirectory inside the sandbox.
         * 
* * optional string output_file = 5; */ public Builder setOutputFileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; outputFile_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CommandInfo.URI) } // @@protoc_insertion_point(class_scope:mesos.v1.CommandInfo.URI) private static final org.apache.mesos.v1.Protos.CommandInfo.URI DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CommandInfo.URI(); } public static org.apache.mesos.v1.Protos.CommandInfo.URI getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public URI parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new URI(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CommandInfo.URI getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int URIS_FIELD_NUMBER = 1; private java.util.List uris_; /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public java.util.List getUrisList() { return uris_; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public java.util.List getUrisOrBuilderList() { return uris_; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public int getUrisCount() { return uris_.size(); } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public org.apache.mesos.v1.Protos.CommandInfo.URI getUris(int index) { return uris_.get(index); } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public org.apache.mesos.v1.Protos.CommandInfo.URIOrBuilder getUrisOrBuilder( int index) { return uris_.get(index); } public static final int ENVIRONMENT_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Environment environment_; /** * optional .mesos.v1.Environment environment = 2; */ public boolean hasEnvironment() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Environment environment = 2; */ public org.apache.mesos.v1.Protos.Environment getEnvironment() { return environment_ == null ? org.apache.mesos.v1.Protos.Environment.getDefaultInstance() : environment_; } /** * optional .mesos.v1.Environment environment = 2; */ public org.apache.mesos.v1.Protos.EnvironmentOrBuilder getEnvironmentOrBuilder() { return environment_ == null ? org.apache.mesos.v1.Protos.Environment.getDefaultInstance() : environment_; } public static final int SHELL_FIELD_NUMBER = 6; private boolean shell_; /** *
     * There are two ways to specify the command:
     * 1) If 'shell == true', the command will be launched via shell
     *		(i.e., /bin/sh -c 'value'). The 'value' specified will be
     *		treated as the shell command. The 'arguments' will be ignored.
     * 2) If 'shell == false', the command will be launched by passing
     *		arguments to an executable. The 'value' specified will be
     *		treated as the filename of the executable. The 'arguments'
     *		will be treated as the arguments to the executable. This is
     *		similar to how POSIX exec families launch processes (i.e.,
     *		execlp(value, arguments(0), arguments(1), ...)).
     * NOTE: The field 'value' is changed from 'required' to 'optional'
     * in 0.20.0. It will only cause issues if a new framework is
     * connecting to an old master.
     * 
* * optional bool shell = 6 [default = true]; */ public boolean hasShell() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * There are two ways to specify the command:
     * 1) If 'shell == true', the command will be launched via shell
     *		(i.e., /bin/sh -c 'value'). The 'value' specified will be
     *		treated as the shell command. The 'arguments' will be ignored.
     * 2) If 'shell == false', the command will be launched by passing
     *		arguments to an executable. The 'value' specified will be
     *		treated as the filename of the executable. The 'arguments'
     *		will be treated as the arguments to the executable. This is
     *		similar to how POSIX exec families launch processes (i.e.,
     *		execlp(value, arguments(0), arguments(1), ...)).
     * NOTE: The field 'value' is changed from 'required' to 'optional'
     * in 0.20.0. It will only cause issues if a new framework is
     * connecting to an old master.
     * 
* * optional bool shell = 6 [default = true]; */ public boolean getShell() { return shell_; } public static final int VALUE_FIELD_NUMBER = 3; private volatile java.lang.Object value_; /** * optional string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * optional string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARGUMENTS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList arguments_; /** * repeated string arguments = 7; */ public com.google.protobuf.ProtocolStringList getArgumentsList() { return arguments_; } /** * repeated string arguments = 7; */ public int getArgumentsCount() { return arguments_.size(); } /** * repeated string arguments = 7; */ public java.lang.String getArguments(int index) { return arguments_.get(index); } /** * repeated string arguments = 7; */ public com.google.protobuf.ByteString getArgumentsBytes(int index) { return arguments_.getByteString(index); } public static final int USER_FIELD_NUMBER = 5; private volatile java.lang.Object user_; /** *
     * Enables executor and tasks to run as a specific user. If the user
     * field is present both in FrameworkInfo and here, the CommandInfo
     * user value takes precedence.
     * 
* * optional string user = 5; */ public boolean hasUser() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * Enables executor and tasks to run as a specific user. If the user
     * field is present both in FrameworkInfo and here, the CommandInfo
     * user value takes precedence.
     * 
* * optional string user = 5; */ public java.lang.String getUser() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { user_ = s; } return s; } } /** *
     * Enables executor and tasks to run as a specific user. If the user
     * field is present both in FrameworkInfo and here, the CommandInfo
     * user value takes precedence.
     * 
* * optional string user = 5; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 < getUrisCount(); i++) { if (!getUris(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasEnvironment()) { if (!getEnvironment().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < uris_.size(); i++) { output.writeMessage(1, uris_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(2, getEnvironment()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, user_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(6, shell_); } for (int i = 0; i < arguments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, arguments_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < uris_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, uris_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEnvironment()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, user_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, shell_); } { int dataSize = 0; for (int i = 0; i < arguments_.size(); i++) { dataSize += computeStringSizeNoTag(arguments_.getRaw(i)); } size += dataSize; size += 1 * getArgumentsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CommandInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CommandInfo other = (org.apache.mesos.v1.Protos.CommandInfo) obj; boolean result = true; result = result && getUrisList() .equals(other.getUrisList()); result = result && (hasEnvironment() == other.hasEnvironment()); if (hasEnvironment()) { result = result && getEnvironment() .equals(other.getEnvironment()); } result = result && (hasShell() == other.hasShell()); if (hasShell()) { result = result && (getShell() == other.getShell()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && getArgumentsList() .equals(other.getArgumentsList()); result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser() .equals(other.getUser()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getUrisCount() > 0) { hash = (37 * hash) + URIS_FIELD_NUMBER; hash = (53 * hash) + getUrisList().hashCode(); } if (hasEnvironment()) { hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + getEnvironment().hashCode(); } if (hasShell()) { hash = (37 * hash) + SHELL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getShell()); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (getArgumentsCount() > 0) { hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getArgumentsList().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CommandInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CommandInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CommandInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CommandInfo 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.Protos.CommandInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CommandInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CommandInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CommandInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CommandInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CommandInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CommandInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CommandInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CommandInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a command, executed via: '/bin/sh -c value'. Any URIs specified
     * are fetched before executing the command.  If the executable field for an
     * uri is set, executable file permission is set on the downloaded file.
     * Otherwise, if the downloaded file has a recognized archive extension
     * (currently [compressed] tar and zip) it is extracted into the executor's
     * working directory. This extraction can be disabled by setting `extract` to
     * false. In addition, any environment variables are set before executing
     * the command (so they can be used to "parameterize" your command).
     * 
* * Protobuf type {@code mesos.v1.CommandInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CommandInfo) org.apache.mesos.v1.Protos.CommandInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CommandInfo.class, org.apache.mesos.v1.Protos.CommandInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CommandInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUrisFieldBuilder(); getEnvironmentFieldBuilder(); } } public Builder clear() { super.clear(); if (urisBuilder_ == null) { uris_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { urisBuilder_.clear(); } if (environmentBuilder_ == null) { environment_ = null; } else { environmentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); shell_ = true; bitField0_ = (bitField0_ & ~0x00000004); value_ = ""; bitField0_ = (bitField0_ & ~0x00000008); arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); user_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CommandInfo_descriptor; } public org.apache.mesos.v1.Protos.CommandInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CommandInfo build() { org.apache.mesos.v1.Protos.CommandInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CommandInfo buildPartial() { org.apache.mesos.v1.Protos.CommandInfo result = new org.apache.mesos.v1.Protos.CommandInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (urisBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { uris_ = java.util.Collections.unmodifiableList(uris_); bitField0_ = (bitField0_ & ~0x00000001); } result.uris_ = uris_; } else { result.uris_ = urisBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (environmentBuilder_ == null) { result.environment_ = environment_; } else { result.environment_ = environmentBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.shell_ = shell_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.value_ = value_; if (((bitField0_ & 0x00000010) == 0x00000010)) { arguments_ = arguments_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.arguments_ = arguments_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.user_ = user_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CommandInfo) { return mergeFrom((org.apache.mesos.v1.Protos.CommandInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CommandInfo other) { if (other == org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance()) return this; if (urisBuilder_ == null) { if (!other.uris_.isEmpty()) { if (uris_.isEmpty()) { uris_ = other.uris_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUrisIsMutable(); uris_.addAll(other.uris_); } onChanged(); } } else { if (!other.uris_.isEmpty()) { if (urisBuilder_.isEmpty()) { urisBuilder_.dispose(); urisBuilder_ = null; uris_ = other.uris_; bitField0_ = (bitField0_ & ~0x00000001); urisBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUrisFieldBuilder() : null; } else { urisBuilder_.addAllMessages(other.uris_); } } } if (other.hasEnvironment()) { mergeEnvironment(other.getEnvironment()); } if (other.hasShell()) { setShell(other.getShell()); } if (other.hasValue()) { bitField0_ |= 0x00000008; value_ = other.value_; onChanged(); } if (!other.arguments_.isEmpty()) { if (arguments_.isEmpty()) { arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureArgumentsIsMutable(); arguments_.addAll(other.arguments_); } onChanged(); } if (other.hasUser()) { bitField0_ |= 0x00000020; user_ = other.user_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getUrisCount(); i++) { if (!getUris(i).isInitialized()) { return false; } } if (hasEnvironment()) { if (!getEnvironment().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.Protos.CommandInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CommandInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List uris_ = java.util.Collections.emptyList(); private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { uris_ = new java.util.ArrayList(uris_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CommandInfo.URI, org.apache.mesos.v1.Protos.CommandInfo.URI.Builder, org.apache.mesos.v1.Protos.CommandInfo.URIOrBuilder> urisBuilder_; /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public java.util.List getUrisList() { if (urisBuilder_ == null) { return java.util.Collections.unmodifiableList(uris_); } else { return urisBuilder_.getMessageList(); } } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public int getUrisCount() { if (urisBuilder_ == null) { return uris_.size(); } else { return urisBuilder_.getCount(); } } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public org.apache.mesos.v1.Protos.CommandInfo.URI getUris(int index) { if (urisBuilder_ == null) { return uris_.get(index); } else { return urisBuilder_.getMessage(index); } } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder setUris( int index, org.apache.mesos.v1.Protos.CommandInfo.URI value) { if (urisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); } else { urisBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder setUris( int index, org.apache.mesos.v1.Protos.CommandInfo.URI.Builder builderForValue) { if (urisBuilder_ == null) { ensureUrisIsMutable(); uris_.set(index, builderForValue.build()); onChanged(); } else { urisBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder addUris(org.apache.mesos.v1.Protos.CommandInfo.URI value) { if (urisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(value); onChanged(); } else { urisBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder addUris( int index, org.apache.mesos.v1.Protos.CommandInfo.URI value) { if (urisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(index, value); onChanged(); } else { urisBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder addUris( org.apache.mesos.v1.Protos.CommandInfo.URI.Builder builderForValue) { if (urisBuilder_ == null) { ensureUrisIsMutable(); uris_.add(builderForValue.build()); onChanged(); } else { urisBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder addUris( int index, org.apache.mesos.v1.Protos.CommandInfo.URI.Builder builderForValue) { if (urisBuilder_ == null) { ensureUrisIsMutable(); uris_.add(index, builderForValue.build()); onChanged(); } else { urisBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder addAllUris( java.lang.Iterable values) { if (urisBuilder_ == null) { ensureUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uris_); onChanged(); } else { urisBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder clearUris() { if (urisBuilder_ == null) { uris_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { urisBuilder_.clear(); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public Builder removeUris(int index) { if (urisBuilder_ == null) { ensureUrisIsMutable(); uris_.remove(index); onChanged(); } else { urisBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public org.apache.mesos.v1.Protos.CommandInfo.URI.Builder getUrisBuilder( int index) { return getUrisFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public org.apache.mesos.v1.Protos.CommandInfo.URIOrBuilder getUrisOrBuilder( int index) { if (urisBuilder_ == null) { return uris_.get(index); } else { return urisBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public java.util.List getUrisOrBuilderList() { if (urisBuilder_ != null) { return urisBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uris_); } } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public org.apache.mesos.v1.Protos.CommandInfo.URI.Builder addUrisBuilder() { return getUrisFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CommandInfo.URI.getDefaultInstance()); } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public org.apache.mesos.v1.Protos.CommandInfo.URI.Builder addUrisBuilder( int index) { return getUrisFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CommandInfo.URI.getDefaultInstance()); } /** * repeated .mesos.v1.CommandInfo.URI uris = 1; */ public java.util.List getUrisBuilderList() { return getUrisFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CommandInfo.URI, org.apache.mesos.v1.Protos.CommandInfo.URI.Builder, org.apache.mesos.v1.Protos.CommandInfo.URIOrBuilder> getUrisFieldBuilder() { if (urisBuilder_ == null) { urisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CommandInfo.URI, org.apache.mesos.v1.Protos.CommandInfo.URI.Builder, org.apache.mesos.v1.Protos.CommandInfo.URIOrBuilder>( uris_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); uris_ = null; } return urisBuilder_; } private org.apache.mesos.v1.Protos.Environment environment_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Environment, org.apache.mesos.v1.Protos.Environment.Builder, org.apache.mesos.v1.Protos.EnvironmentOrBuilder> environmentBuilder_; /** * optional .mesos.v1.Environment environment = 2; */ public boolean hasEnvironment() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.Environment environment = 2; */ public org.apache.mesos.v1.Protos.Environment getEnvironment() { if (environmentBuilder_ == null) { return environment_ == null ? org.apache.mesos.v1.Protos.Environment.getDefaultInstance() : environment_; } else { return environmentBuilder_.getMessage(); } } /** * optional .mesos.v1.Environment environment = 2; */ public Builder setEnvironment(org.apache.mesos.v1.Protos.Environment value) { if (environmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } environment_ = value; onChanged(); } else { environmentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Environment environment = 2; */ public Builder setEnvironment( org.apache.mesos.v1.Protos.Environment.Builder builderForValue) { if (environmentBuilder_ == null) { environment_ = builderForValue.build(); onChanged(); } else { environmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Environment environment = 2; */ public Builder mergeEnvironment(org.apache.mesos.v1.Protos.Environment value) { if (environmentBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && environment_ != null && environment_ != org.apache.mesos.v1.Protos.Environment.getDefaultInstance()) { environment_ = org.apache.mesos.v1.Protos.Environment.newBuilder(environment_).mergeFrom(value).buildPartial(); } else { environment_ = value; } onChanged(); } else { environmentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Environment environment = 2; */ public Builder clearEnvironment() { if (environmentBuilder_ == null) { environment_ = null; onChanged(); } else { environmentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.Environment environment = 2; */ public org.apache.mesos.v1.Protos.Environment.Builder getEnvironmentBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Environment environment = 2; */ public org.apache.mesos.v1.Protos.EnvironmentOrBuilder getEnvironmentOrBuilder() { if (environmentBuilder_ != null) { return environmentBuilder_.getMessageOrBuilder(); } else { return environment_ == null ? org.apache.mesos.v1.Protos.Environment.getDefaultInstance() : environment_; } } /** * optional .mesos.v1.Environment environment = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Environment, org.apache.mesos.v1.Protos.Environment.Builder, org.apache.mesos.v1.Protos.EnvironmentOrBuilder> getEnvironmentFieldBuilder() { if (environmentBuilder_ == null) { environmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Environment, org.apache.mesos.v1.Protos.Environment.Builder, org.apache.mesos.v1.Protos.EnvironmentOrBuilder>( getEnvironment(), getParentForChildren(), isClean()); environment_ = null; } return environmentBuilder_; } private boolean shell_ = true; /** *
       * There are two ways to specify the command:
       * 1) If 'shell == true', the command will be launched via shell
       *		(i.e., /bin/sh -c 'value'). The 'value' specified will be
       *		treated as the shell command. The 'arguments' will be ignored.
       * 2) If 'shell == false', the command will be launched by passing
       *		arguments to an executable. The 'value' specified will be
       *		treated as the filename of the executable. The 'arguments'
       *		will be treated as the arguments to the executable. This is
       *		similar to how POSIX exec families launch processes (i.e.,
       *		execlp(value, arguments(0), arguments(1), ...)).
       * NOTE: The field 'value' is changed from 'required' to 'optional'
       * in 0.20.0. It will only cause issues if a new framework is
       * connecting to an old master.
       * 
* * optional bool shell = 6 [default = true]; */ public boolean hasShell() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * There are two ways to specify the command:
       * 1) If 'shell == true', the command will be launched via shell
       *		(i.e., /bin/sh -c 'value'). The 'value' specified will be
       *		treated as the shell command. The 'arguments' will be ignored.
       * 2) If 'shell == false', the command will be launched by passing
       *		arguments to an executable. The 'value' specified will be
       *		treated as the filename of the executable. The 'arguments'
       *		will be treated as the arguments to the executable. This is
       *		similar to how POSIX exec families launch processes (i.e.,
       *		execlp(value, arguments(0), arguments(1), ...)).
       * NOTE: The field 'value' is changed from 'required' to 'optional'
       * in 0.20.0. It will only cause issues if a new framework is
       * connecting to an old master.
       * 
* * optional bool shell = 6 [default = true]; */ public boolean getShell() { return shell_; } /** *
       * There are two ways to specify the command:
       * 1) If 'shell == true', the command will be launched via shell
       *		(i.e., /bin/sh -c 'value'). The 'value' specified will be
       *		treated as the shell command. The 'arguments' will be ignored.
       * 2) If 'shell == false', the command will be launched by passing
       *		arguments to an executable. The 'value' specified will be
       *		treated as the filename of the executable. The 'arguments'
       *		will be treated as the arguments to the executable. This is
       *		similar to how POSIX exec families launch processes (i.e.,
       *		execlp(value, arguments(0), arguments(1), ...)).
       * NOTE: The field 'value' is changed from 'required' to 'optional'
       * in 0.20.0. It will only cause issues if a new framework is
       * connecting to an old master.
       * 
* * optional bool shell = 6 [default = true]; */ public Builder setShell(boolean value) { bitField0_ |= 0x00000004; shell_ = value; onChanged(); return this; } /** *
       * There are two ways to specify the command:
       * 1) If 'shell == true', the command will be launched via shell
       *		(i.e., /bin/sh -c 'value'). The 'value' specified will be
       *		treated as the shell command. The 'arguments' will be ignored.
       * 2) If 'shell == false', the command will be launched by passing
       *		arguments to an executable. The 'value' specified will be
       *		treated as the filename of the executable. The 'arguments'
       *		will be treated as the arguments to the executable. This is
       *		similar to how POSIX exec families launch processes (i.e.,
       *		execlp(value, arguments(0), arguments(1), ...)).
       * NOTE: The field 'value' is changed from 'required' to 'optional'
       * in 0.20.0. It will only cause issues if a new framework is
       * connecting to an old master.
       * 
* * optional bool shell = 6 [default = true]; */ public Builder clearShell() { bitField0_ = (bitField0_ & ~0x00000004); shell_ = true; onChanged(); return this; } private java.lang.Object value_ = ""; /** * optional string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string value = 3; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; value_ = value; onChanged(); return this; } /** * optional string value = 3; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000008); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * optional string value = 3; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; value_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgumentsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { arguments_ = new com.google.protobuf.LazyStringArrayList(arguments_); bitField0_ |= 0x00000010; } } /** * repeated string arguments = 7; */ public com.google.protobuf.ProtocolStringList getArgumentsList() { return arguments_.getUnmodifiableView(); } /** * repeated string arguments = 7; */ public int getArgumentsCount() { return arguments_.size(); } /** * repeated string arguments = 7; */ public java.lang.String getArguments(int index) { return arguments_.get(index); } /** * repeated string arguments = 7; */ public com.google.protobuf.ByteString getArgumentsBytes(int index) { return arguments_.getByteString(index); } /** * repeated string arguments = 7; */ public Builder setArguments( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.set(index, value); onChanged(); return this; } /** * repeated string arguments = 7; */ public Builder addArguments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(value); onChanged(); return this; } /** * repeated string arguments = 7; */ public Builder addAllArguments( java.lang.Iterable values) { ensureArgumentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, arguments_); onChanged(); return this; } /** * repeated string arguments = 7; */ public Builder clearArguments() { arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * repeated string arguments = 7; */ public Builder addArgumentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(value); onChanged(); return this; } private java.lang.Object user_ = ""; /** *
       * Enables executor and tasks to run as a specific user. If the user
       * field is present both in FrameworkInfo and here, the CommandInfo
       * user value takes precedence.
       * 
* * optional string user = 5; */ public boolean hasUser() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * Enables executor and tasks to run as a specific user. If the user
       * field is present both in FrameworkInfo and here, the CommandInfo
       * user value takes precedence.
       * 
* * optional string user = 5; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Enables executor and tasks to run as a specific user. If the user
       * field is present both in FrameworkInfo and here, the CommandInfo
       * user value takes precedence.
       * 
* * optional string user = 5; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Enables executor and tasks to run as a specific user. If the user
       * field is present both in FrameworkInfo and here, the CommandInfo
       * user value takes precedence.
       * 
* * optional string user = 5; */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; user_ = value; onChanged(); return this; } /** *
       * Enables executor and tasks to run as a specific user. If the user
       * field is present both in FrameworkInfo and here, the CommandInfo
       * user value takes precedence.
       * 
* * optional string user = 5; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000020); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** *
       * Enables executor and tasks to run as a specific user. If the user
       * field is present both in FrameworkInfo and here, the CommandInfo
       * user value takes precedence.
       * 
* * optional string user = 5; */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; user_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CommandInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.CommandInfo) private static final org.apache.mesos.v1.Protos.CommandInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CommandInfo(); } public static org.apache.mesos.v1.Protos.CommandInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommandInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommandInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CommandInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecutorInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ExecutorInfo) com.google.protobuf.MessageOrBuilder { /** *
     * For backwards compatibility, if this field is not set when using `LAUNCH`
     * operation, Mesos will infer the type by checking if `command` is set
     * (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using
     * `LAUNCH_GROUP` operation.
     * TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in
     * `LAUNCH` operation.
     * 
* * optional .mesos.v1.ExecutorInfo.Type type = 15; */ boolean hasType(); /** *
     * For backwards compatibility, if this field is not set when using `LAUNCH`
     * operation, Mesos will infer the type by checking if `command` is set
     * (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using
     * `LAUNCH_GROUP` operation.
     * TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in
     * `LAUNCH` operation.
     * 
* * optional .mesos.v1.ExecutorInfo.Type type = 15; */ org.apache.mesos.v1.Protos.ExecutorInfo.Type getType(); /** * required .mesos.v1.ExecutorID executor_id = 1; */ boolean hasExecutorId(); /** * required .mesos.v1.ExecutorID executor_id = 1; */ org.apache.mesos.v1.Protos.ExecutorID getExecutorId(); /** * required .mesos.v1.ExecutorID executor_id = 1; */ org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder(); /** *
     * TODO(benh): Make this required.
     * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ boolean hasFrameworkId(); /** *
     * TODO(benh): Make this required.
     * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ org.apache.mesos.v1.Protos.FrameworkID getFrameworkId(); /** *
     * TODO(benh): Make this required.
     * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder(); /** * optional .mesos.v1.CommandInfo command = 7; */ boolean hasCommand(); /** * optional .mesos.v1.CommandInfo command = 7; */ org.apache.mesos.v1.Protos.CommandInfo getCommand(); /** * optional .mesos.v1.CommandInfo command = 7; */ org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder(); /** *
     * Executor provided with a container will launch the container
     * with the executor's CommandInfo and we expect the container to
     * act as a Mesos executor.
     * 
* * optional .mesos.v1.ContainerInfo container = 11; */ boolean hasContainer(); /** *
     * Executor provided with a container will launch the container
     * with the executor's CommandInfo and we expect the container to
     * act as a Mesos executor.
     * 
* * optional .mesos.v1.ContainerInfo container = 11; */ org.apache.mesos.v1.Protos.ContainerInfo getContainer(); /** *
     * Executor provided with a container will launch the container
     * with the executor's CommandInfo and we expect the container to
     * act as a Mesos executor.
     * 
* * optional .mesos.v1.ContainerInfo container = 11; */ org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder(); /** * repeated .mesos.v1.Resource resources = 5; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 5; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 5; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 5; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 5; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); /** * optional string name = 9; */ boolean hasName(); /** * optional string name = 9; */ java.lang.String getName(); /** * optional string name = 9; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * 'source' is an identifier style string used by frameworks to
     * track the source of an executor. This is useful when it's
     * possible for different executor ids to be related semantically.
     * NOTE: 'source' is exposed alongside the resource usage of the
     * executor via JSON on the agent. This allows users to import usage
     * information into a time series database for monitoring.
     * This field is deprecated since 1.0. Please use labels for
     * free-form metadata instead.
     * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated boolean hasSource(); /** *
     * 'source' is an identifier style string used by frameworks to
     * track the source of an executor. This is useful when it's
     * possible for different executor ids to be related semantically.
     * NOTE: 'source' is exposed alongside the resource usage of the
     * executor via JSON on the agent. This allows users to import usage
     * information into a time series database for monitoring.
     * This field is deprecated since 1.0. Please use labels for
     * free-form metadata instead.
     * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated java.lang.String getSource(); /** *
     * 'source' is an identifier style string used by frameworks to
     * track the source of an executor. This is useful when it's
     * possible for different executor ids to be related semantically.
     * NOTE: 'source' is exposed alongside the resource usage of the
     * executor via JSON on the agent. This allows users to import usage
     * information into a time series database for monitoring.
     * This field is deprecated since 1.0. Please use labels for
     * free-form metadata instead.
     * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated com.google.protobuf.ByteString getSourceBytes(); /** *
     * This field can be used to pass arbitrary bytes to an executor.
     * 
* * optional bytes data = 4; */ boolean hasData(); /** *
     * This field can be used to pass arbitrary bytes to an executor.
     * 
* * optional bytes data = 4; */ com.google.protobuf.ByteString getData(); /** *
     * Service discovery information for the executor. It is not
     * interpreted or acted upon by Mesos. It is up to a service
     * discovery system to use this information as needed and to handle
     * executors without service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ boolean hasDiscovery(); /** *
     * Service discovery information for the executor. It is not
     * interpreted or acted upon by Mesos. It is up to a service
     * discovery system to use this information as needed and to handle
     * executors without service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery(); /** *
     * Service discovery information for the executor. It is not
     * interpreted or acted upon by Mesos. It is up to a service
     * discovery system to use this information as needed and to handle
     * executors without service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder(); /** *
     * When shutting down an executor the agent will wait in a
     * best-effort manner for the grace period specified here
     * before forcibly destroying the container. The executor
     * must not assume that it will always be allotted the full
     * grace period, as the agent may decide to allot a shorter
     * period and failures / forcible terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ boolean hasShutdownGracePeriod(); /** *
     * When shutting down an executor the agent will wait in a
     * best-effort manner for the grace period specified here
     * before forcibly destroying the container. The executor
     * must not assume that it will always be allotted the full
     * grace period, as the agent may decide to allot a shorter
     * period and failures / forcible terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ org.apache.mesos.v1.Protos.DurationInfo getShutdownGracePeriod(); /** *
     * When shutting down an executor the agent will wait in a
     * best-effort manner for the grace period specified here
     * before forcibly destroying the container. The executor
     * must not assume that it will always be allotted the full
     * grace period, as the agent may decide to allot a shorter
     * period and failures / forcible terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ org.apache.mesos.v1.Protos.DurationInfoOrBuilder getShutdownGracePeriodOrBuilder(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag executors with lightweight metadata.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 14; */ boolean hasLabels(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag executors with lightweight metadata.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 14; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag executors with lightweight metadata.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 14; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); } /** *
   **
   * Describes information about an executor.
   * 
* * Protobuf type {@code mesos.v1.ExecutorInfo} */ public static final class ExecutorInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ExecutorInfo) ExecutorInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ExecutorInfo.newBuilder() to construct. private ExecutorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecutorInfo() { type_ = 0; resources_ = java.util.Collections.emptyList(); name_ = ""; source_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExecutorInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 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 34: { bitField0_ |= 0x00000080; data_ = input.readBytes(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 58: { org.apache.mesos.v1.Protos.CommandInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CommandInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 66: { org.apache.mesos.v1.Protos.FrameworkID.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = frameworkId_.toBuilder(); } frameworkId_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(frameworkId_); frameworkId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; name_ = bs; break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; source_ = bs; break; } case 90: { org.apache.mesos.v1.Protos.ContainerInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = container_.toBuilder(); } container_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(container_); container_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 98: { org.apache.mesos.v1.Protos.DiscoveryInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = discovery_.toBuilder(); } discovery_ = input.readMessage(org.apache.mesos.v1.Protos.DiscoveryInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(discovery_); discovery_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 106: { org.apache.mesos.v1.Protos.DurationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = shutdownGracePeriod_.toBuilder(); } shutdownGracePeriod_ = input.readMessage(org.apache.mesos.v1.Protos.DurationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shutdownGracePeriod_); shutdownGracePeriod_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 114: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 120: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.ExecutorInfo.Type value = org.apache.mesos.v1.Protos.ExecutorInfo.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(15, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ExecutorInfo.class, org.apache.mesos.v1.Protos.ExecutorInfo.Builder.class); } /** * Protobuf enum {@code mesos.v1.ExecutorInfo.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** *
       * Mesos provides a simple built-in default executor that frameworks can
       * leverage to run shell commands and containers.
       * NOTES:
       * 1) `command` must not be set when using a default executor.
       * 2) Default executor only accepts a *single* `LAUNCH` or `LAUNCH_GROUP`
       *    operation.
       * 3) If `container` is set, `container.type` must be `MESOS`
       *    and `container.mesos.image` must not be set.
       * 
* * DEFAULT = 1; */ DEFAULT(1), /** *
       * For frameworks that need custom functionality to run tasks, a `CUSTOM`
       * executor can be used. Note that `command` must be set when using a
       * `CUSTOM` executor.
       * 
* * CUSTOM = 2; */ CUSTOM(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
       * Mesos provides a simple built-in default executor that frameworks can
       * leverage to run shell commands and containers.
       * NOTES:
       * 1) `command` must not be set when using a default executor.
       * 2) Default executor only accepts a *single* `LAUNCH` or `LAUNCH_GROUP`
       *    operation.
       * 3) If `container` is set, `container.type` must be `MESOS`
       *    and `container.mesos.image` must not be set.
       * 
* * DEFAULT = 1; */ public static final int DEFAULT_VALUE = 1; /** *
       * For frameworks that need custom functionality to run tasks, a `CUSTOM`
       * executor can be used. Note that `command` must be set when using a
       * `CUSTOM` executor.
       * 
* * CUSTOM = 2; */ public static final int CUSTOM_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return DEFAULT; case 2: return CUSTOM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.ExecutorInfo.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.ExecutorInfo.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 15; private int type_; /** *
     * For backwards compatibility, if this field is not set when using `LAUNCH`
     * operation, Mesos will infer the type by checking if `command` is set
     * (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using
     * `LAUNCH_GROUP` operation.
     * TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in
     * `LAUNCH` operation.
     * 
* * optional .mesos.v1.ExecutorInfo.Type type = 15; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * For backwards compatibility, if this field is not set when using `LAUNCH`
     * operation, Mesos will infer the type by checking if `command` is set
     * (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using
     * `LAUNCH_GROUP` operation.
     * TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in
     * `LAUNCH` operation.
     * 
* * optional .mesos.v1.ExecutorInfo.Type type = 15; */ public org.apache.mesos.v1.Protos.ExecutorInfo.Type getType() { org.apache.mesos.v1.Protos.ExecutorInfo.Type result = org.apache.mesos.v1.Protos.ExecutorInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.ExecutorInfo.Type.UNKNOWN : result; } public static final int EXECUTOR_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ExecutorID executorId_; /** * required .mesos.v1.ExecutorID executor_id = 1; */ public boolean hasExecutorId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } public static final int FRAMEWORK_ID_FIELD_NUMBER = 8; private org.apache.mesos.v1.Protos.FrameworkID frameworkId_; /** *
     * TODO(benh): Make this required.
     * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * TODO(benh): Make this required.
     * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } /** *
     * TODO(benh): Make this required.
     * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } public static final int COMMAND_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.CommandInfo command_; /** * optional .mesos.v1.CommandInfo command = 7; */ public boolean hasCommand() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } public static final int CONTAINER_FIELD_NUMBER = 11; private org.apache.mesos.v1.Protos.ContainerInfo container_; /** *
     * Executor provided with a container will launch the container
     * with the executor's CommandInfo and we expect the container to
     * act as a Mesos executor.
     * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public boolean hasContainer() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * Executor provided with a container will launch the container
     * with the executor's CommandInfo and we expect the container to
     * act as a Mesos executor.
     * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } /** *
     * Executor provided with a container will launch the container
     * with the executor's CommandInfo and we expect the container to
     * act as a Mesos executor.
     * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } public static final int RESOURCES_FIELD_NUMBER = 5; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 5; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int NAME_FIELD_NUMBER = 9; private volatile java.lang.Object name_; /** * optional string name = 9; */ public boolean hasName() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string name = 9; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * optional string name = 9; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_FIELD_NUMBER = 10; private volatile java.lang.Object source_; /** *
     * 'source' is an identifier style string used by frameworks to
     * track the source of an executor. This is useful when it's
     * possible for different executor ids to be related semantically.
     * NOTE: 'source' is exposed alongside the resource usage of the
     * executor via JSON on the agent. This allows users to import usage
     * information into a time series database for monitoring.
     * This field is deprecated since 1.0. Please use labels for
     * free-form metadata instead.
     * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public boolean hasSource() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * 'source' is an identifier style string used by frameworks to
     * track the source of an executor. This is useful when it's
     * possible for different executor ids to be related semantically.
     * NOTE: 'source' is exposed alongside the resource usage of the
     * executor via JSON on the agent. This allows users to import usage
     * information into a time series database for monitoring.
     * This field is deprecated since 1.0. Please use labels for
     * free-form metadata instead.
     * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public java.lang.String getSource() { java.lang.Object ref = source_; 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()) { source_ = s; } return s; } } /** *
     * 'source' is an identifier style string used by frameworks to
     * track the source of an executor. This is useful when it's
     * possible for different executor ids to be related semantically.
     * NOTE: 'source' is exposed alongside the resource usage of the
     * executor via JSON on the agent. This allows users to import usage
     * information into a time series database for monitoring.
     * This field is deprecated since 1.0. Please use labels for
     * free-form metadata instead.
     * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString data_; /** *
     * This field can be used to pass arbitrary bytes to an executor.
     * 
* * optional bytes data = 4; */ public boolean hasData() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     * This field can be used to pass arbitrary bytes to an executor.
     * 
* * optional bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } public static final int DISCOVERY_FIELD_NUMBER = 12; private org.apache.mesos.v1.Protos.DiscoveryInfo discovery_; /** *
     * Service discovery information for the executor. It is not
     * interpreted or acted upon by Mesos. It is up to a service
     * discovery system to use this information as needed and to handle
     * executors without service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public boolean hasDiscovery() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
     * Service discovery information for the executor. It is not
     * interpreted or acted upon by Mesos. It is up to a service
     * discovery system to use this information as needed and to handle
     * executors without service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery() { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } /** *
     * Service discovery information for the executor. It is not
     * interpreted or acted upon by Mesos. It is up to a service
     * discovery system to use this information as needed and to handle
     * executors without service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder() { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } public static final int SHUTDOWN_GRACE_PERIOD_FIELD_NUMBER = 13; private org.apache.mesos.v1.Protos.DurationInfo shutdownGracePeriod_; /** *
     * When shutting down an executor the agent will wait in a
     * best-effort manner for the grace period specified here
     * before forcibly destroying the container. The executor
     * must not assume that it will always be allotted the full
     * grace period, as the agent may decide to allot a shorter
     * period and failures / forcible terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public boolean hasShutdownGracePeriod() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
     * When shutting down an executor the agent will wait in a
     * best-effort manner for the grace period specified here
     * before forcibly destroying the container. The executor
     * must not assume that it will always be allotted the full
     * grace period, as the agent may decide to allot a shorter
     * period and failures / forcible terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public org.apache.mesos.v1.Protos.DurationInfo getShutdownGracePeriod() { return shutdownGracePeriod_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : shutdownGracePeriod_; } /** *
     * When shutting down an executor the agent will wait in a
     * best-effort manner for the grace period specified here
     * before forcibly destroying the container. The executor
     * must not assume that it will always be allotted the full
     * grace period, as the agent may decide to allot a shorter
     * period and failures / forcible terminations may occur.
     * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getShutdownGracePeriodOrBuilder() { return shutdownGracePeriod_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : shutdownGracePeriod_; } public static final int LABELS_FIELD_NUMBER = 14; private org.apache.mesos.v1.Protos.Labels labels_; /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag executors with lightweight metadata.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 14; */ public boolean hasLabels() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag executors with lightweight metadata.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 14; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag executors with lightweight metadata.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 14; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasExecutorId()) { memoizedIsInitialized = 0; return false; } if (!getExecutorId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasFrameworkId()) { if (!getFrameworkId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCommand()) { if (!getCommand().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasContainer()) { if (!getContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDiscovery()) { if (!getDiscovery().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasShutdownGracePeriod()) { if (!getShutdownGracePeriod().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(1, getExecutorId()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(4, data_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(5, resources_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(7, getCommand()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(8, getFrameworkId()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, name_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, source_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(11, getContainer()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(12, getDiscovery()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(13, getShutdownGracePeriod()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(14, getLabels()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(15, type_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getExecutorId()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, data_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, resources_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCommand()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getFrameworkId()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, name_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, source_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getContainer()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getDiscovery()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getShutdownGracePeriod()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getLabels()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(15, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ExecutorInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ExecutorInfo other = (org.apache.mesos.v1.Protos.ExecutorInfo) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasExecutorId() == other.hasExecutorId()); if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId()); } result = result && (hasFrameworkId() == other.hasFrameworkId()); if (hasFrameworkId()) { result = result && getFrameworkId() .equals(other.getFrameworkId()); } result = result && (hasCommand() == other.hasCommand()); if (hasCommand()) { result = result && getCommand() .equals(other.getCommand()); } result = result && (hasContainer() == other.hasContainer()); if (hasContainer()) { result = result && getContainer() .equals(other.getContainer()); } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource() .equals(other.getSource()); } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && (hasDiscovery() == other.hasDiscovery()); if (hasDiscovery()) { result = result && getDiscovery() .equals(other.getDiscovery()); } result = result && (hasShutdownGracePeriod() == other.hasShutdownGracePeriod()); if (hasShutdownGracePeriod()) { result = result && getShutdownGracePeriod() .equals(other.getShutdownGracePeriod()); } result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasExecutorId()) { hash = (37 * hash) + EXECUTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getExecutorId().hashCode(); } if (hasFrameworkId()) { hash = (37 * hash) + FRAMEWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getFrameworkId().hashCode(); } if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } if (hasContainer()) { hash = (37 * hash) + CONTAINER_FIELD_NUMBER; hash = (53 * hash) + getContainer().hashCode(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasDiscovery()) { hash = (37 * hash) + DISCOVERY_FIELD_NUMBER; hash = (53 * hash) + getDiscovery().hashCode(); } if (hasShutdownGracePeriod()) { hash = (37 * hash) + SHUTDOWN_GRACE_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getShutdownGracePeriod().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ExecutorInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ExecutorInfo 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.Protos.ExecutorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ExecutorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ExecutorInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes information about an executor.
     * 
* * Protobuf type {@code mesos.v1.ExecutorInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ExecutorInfo) org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ExecutorInfo.class, org.apache.mesos.v1.Protos.ExecutorInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ExecutorInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getExecutorIdFieldBuilder(); getFrameworkIdFieldBuilder(); getCommandFieldBuilder(); getContainerFieldBuilder(); getResourcesFieldBuilder(); getDiscoveryFieldBuilder(); getShutdownGracePeriodFieldBuilder(); getLabelsFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (executorIdBuilder_ == null) { executorId_ = null; } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (frameworkIdBuilder_ == null) { frameworkId_ = null; } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (commandBuilder_ == null) { command_ = null; } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (containerBuilder_ == null) { container_ = null; } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { resourcesBuilder_.clear(); } name_ = ""; bitField0_ = (bitField0_ & ~0x00000040); source_ = ""; bitField0_ = (bitField0_ & ~0x00000080); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); if (discoveryBuilder_ == null) { discovery_ = null; } else { discoveryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (shutdownGracePeriodBuilder_ == null) { shutdownGracePeriod_ = null; } else { shutdownGracePeriodBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ExecutorInfo_descriptor; } public org.apache.mesos.v1.Protos.ExecutorInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ExecutorInfo build() { org.apache.mesos.v1.Protos.ExecutorInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ExecutorInfo buildPartial() { org.apache.mesos.v1.Protos.ExecutorInfo result = new org.apache.mesos.v1.Protos.ExecutorInfo(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 (executorIdBuilder_ == null) { result.executorId_ = executorId_; } else { result.executorId_ = executorIdBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (frameworkIdBuilder_ == null) { result.frameworkId_ = frameworkId_; } else { result.frameworkId_ = frameworkIdBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (containerBuilder_ == null) { result.container_ = container_; } else { result.container_ = containerBuilder_.build(); } if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000020); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.name_ = name_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.source_ = source_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.data_ = data_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000100; } if (discoveryBuilder_ == null) { result.discovery_ = discovery_; } else { result.discovery_ = discoveryBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000200; } if (shutdownGracePeriodBuilder_ == null) { result.shutdownGracePeriod_ = shutdownGracePeriod_; } else { result.shutdownGracePeriod_ = shutdownGracePeriodBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000400; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ExecutorInfo) { return mergeFrom((org.apache.mesos.v1.Protos.ExecutorInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ExecutorInfo other) { if (other == org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasExecutorId()) { mergeExecutorId(other.getExecutorId()); } if (other.hasFrameworkId()) { mergeFrameworkId(other.getFrameworkId()); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (other.hasContainer()) { mergeContainer(other.getContainer()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000020); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (other.hasName()) { bitField0_ |= 0x00000040; name_ = other.name_; onChanged(); } if (other.hasSource()) { bitField0_ |= 0x00000080; source_ = other.source_; onChanged(); } if (other.hasData()) { setData(other.getData()); } if (other.hasDiscovery()) { mergeDiscovery(other.getDiscovery()); } if (other.hasShutdownGracePeriod()) { mergeShutdownGracePeriod(other.getShutdownGracePeriod()); } if (other.hasLabels()) { mergeLabels(other.getLabels()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasExecutorId()) { return false; } if (!getExecutorId().isInitialized()) { return false; } if (hasFrameworkId()) { if (!getFrameworkId().isInitialized()) { return false; } } if (hasCommand()) { if (!getCommand().isInitialized()) { return false; } } if (hasContainer()) { if (!getContainer().isInitialized()) { return false; } } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } if (hasDiscovery()) { if (!getDiscovery().isInitialized()) { return false; } } if (hasShutdownGracePeriod()) { if (!getShutdownGracePeriod().isInitialized()) { return false; } } if (hasLabels()) { if (!getLabels().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.Protos.ExecutorInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ExecutorInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** *
       * For backwards compatibility, if this field is not set when using `LAUNCH`
       * operation, Mesos will infer the type by checking if `command` is set
       * (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using
       * `LAUNCH_GROUP` operation.
       * TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in
       * `LAUNCH` operation.
       * 
* * optional .mesos.v1.ExecutorInfo.Type type = 15; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * For backwards compatibility, if this field is not set when using `LAUNCH`
       * operation, Mesos will infer the type by checking if `command` is set
       * (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using
       * `LAUNCH_GROUP` operation.
       * TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in
       * `LAUNCH` operation.
       * 
* * optional .mesos.v1.ExecutorInfo.Type type = 15; */ public org.apache.mesos.v1.Protos.ExecutorInfo.Type getType() { org.apache.mesos.v1.Protos.ExecutorInfo.Type result = org.apache.mesos.v1.Protos.ExecutorInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.ExecutorInfo.Type.UNKNOWN : result; } /** *
       * For backwards compatibility, if this field is not set when using `LAUNCH`
       * operation, Mesos will infer the type by checking if `command` is set
       * (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using
       * `LAUNCH_GROUP` operation.
       * TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in
       * `LAUNCH` operation.
       * 
* * optional .mesos.v1.ExecutorInfo.Type type = 15; */ public Builder setType(org.apache.mesos.v1.Protos.ExecutorInfo.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
       * For backwards compatibility, if this field is not set when using `LAUNCH`
       * operation, Mesos will infer the type by checking if `command` is set
       * (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using
       * `LAUNCH_GROUP` operation.
       * TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in
       * `LAUNCH` operation.
       * 
* * optional .mesos.v1.ExecutorInfo.Type type = 15; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.ExecutorID executorId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_; /** * required .mesos.v1.ExecutorID executor_id = 1; */ public boolean hasExecutorId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { if (executorIdBuilder_ == null) { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } else { return executorIdBuilder_.getMessage(); } } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public Builder setExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executorId_ = value; onChanged(); } else { executorIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && executorId_ != null && executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial(); } else { executorId_ = value; } onChanged(); } else { executorIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public Builder clearExecutorId() { if (executorIdBuilder_ == null) { executorId_ = null; onChanged(); } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExecutorIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ExecutorID executor_id = 1; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { if (executorIdBuilder_ != null) { return executorIdBuilder_.getMessageOrBuilder(); } else { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } } /** * required .mesos.v1.ExecutorID executor_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> getExecutorIdFieldBuilder() { if (executorIdBuilder_ == null) { executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>( getExecutorId(), getParentForChildren(), isClean()); executorId_ = null; } return executorIdBuilder_; } private org.apache.mesos.v1.Protos.FrameworkID frameworkId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_; /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { if (frameworkIdBuilder_ == null) { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } else { return frameworkIdBuilder_.getMessage(); } } /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ 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_ |= 0x00000004; return this; } /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public Builder setFrameworkId( org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) { if (frameworkIdBuilder_ == null) { frameworkId_ = builderForValue.build(); onChanged(); } else { frameworkIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) { if (frameworkIdBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && frameworkId_ != null && frameworkId_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial(); } else { frameworkId_ = value; } onChanged(); } else { frameworkIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public Builder clearFrameworkId() { if (frameworkIdBuilder_ == null) { frameworkId_ = null; onChanged(); } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFrameworkIdFieldBuilder().getBuilder(); } /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { if (frameworkIdBuilder_ != null) { return frameworkIdBuilder_.getMessageOrBuilder(); } else { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } } /** *
       * TODO(benh): Make this required.
       * 
* * optional .mesos.v1.FrameworkID framework_id = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> getFrameworkIdFieldBuilder() { if (frameworkIdBuilder_ == null) { frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>( getFrameworkId(), getParentForChildren(), isClean()); frameworkId_ = null; } return frameworkIdBuilder_; } private org.apache.mesos.v1.Protos.CommandInfo command_ = null; private com.google.protobuf.SingleFieldBuilderV3< 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 = 7; */ public boolean hasCommand() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { if (commandBuilder_ == null) { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } else { return commandBuilder_.getMessage(); } } /** * optional .mesos.v1.CommandInfo command = 7; */ 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_ |= 0x00000008; return this; } /** * optional .mesos.v1.CommandInfo command = 7; */ public Builder setCommand( org.apache.mesos.v1.Protos.CommandInfo.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.CommandInfo command = 7; */ public Builder mergeCommand(org.apache.mesos.v1.Protos.CommandInfo value) { if (commandBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && command_ != null && 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_ |= 0x00000008; return this; } /** * optional .mesos.v1.CommandInfo command = 7; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = null; onChanged(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo.Builder getCommandBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCommandFieldBuilder().getBuilder(); } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } } /** * optional .mesos.v1.CommandInfo command = 7; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder> containerBuilder_; /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public boolean hasContainer() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { if (containerBuilder_ == null) { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } else { return containerBuilder_.getMessage(); } } /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ 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_ |= 0x00000010; return this; } /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public Builder setContainer( org.apache.mesos.v1.Protos.ContainerInfo.Builder builderForValue) { if (containerBuilder_ == null) { container_ = builderForValue.build(); onChanged(); } else { containerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public Builder mergeContainer(org.apache.mesos.v1.Protos.ContainerInfo value) { if (containerBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && container_ != null && 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_ |= 0x00000010; return this; } /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public Builder clearContainer() { if (containerBuilder_ == null) { container_ = null; onChanged(); } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public org.apache.mesos.v1.Protos.ContainerInfo.Builder getContainerBuilder() { bitField0_ |= 0x00000010; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } } /** *
       * Executor provided with a container will launch the container
       * with the executor's CommandInfo and we expect the container to
       * act as a Mesos executor.
       * 
* * optional .mesos.v1.ContainerInfo container = 11; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 5; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.lang.Object name_ = ""; /** * optional string name = 9; */ public boolean hasName() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string name = 9; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 9; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 9; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; name_ = value; onChanged(); return this; } /** * optional string name = 9; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000040); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 9; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; name_ = value; onChanged(); return this; } private java.lang.Object source_ = ""; /** *
       * 'source' is an identifier style string used by frameworks to
       * track the source of an executor. This is useful when it's
       * possible for different executor ids to be related semantically.
       * NOTE: 'source' is exposed alongside the resource usage of the
       * executor via JSON on the agent. This allows users to import usage
       * information into a time series database for monitoring.
       * This field is deprecated since 1.0. Please use labels for
       * free-form metadata instead.
       * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public boolean hasSource() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       * 'source' is an identifier style string used by frameworks to
       * track the source of an executor. This is useful when it's
       * possible for different executor ids to be related semantically.
       * NOTE: 'source' is exposed alongside the resource usage of the
       * executor via JSON on the agent. This allows users to import usage
       * information into a time series database for monitoring.
       * This field is deprecated since 1.0. Please use labels for
       * free-form metadata instead.
       * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public java.lang.String getSource() { java.lang.Object ref = source_; 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()) { source_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * 'source' is an identifier style string used by frameworks to
       * track the source of an executor. This is useful when it's
       * possible for different executor ids to be related semantically.
       * NOTE: 'source' is exposed alongside the resource usage of the
       * executor via JSON on the agent. This allows users to import usage
       * information into a time series database for monitoring.
       * This field is deprecated since 1.0. Please use labels for
       * free-form metadata instead.
       * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 'source' is an identifier style string used by frameworks to
       * track the source of an executor. This is useful when it's
       * possible for different executor ids to be related semantically.
       * NOTE: 'source' is exposed alongside the resource usage of the
       * executor via JSON on the agent. This allows users to import usage
       * information into a time series database for monitoring.
       * This field is deprecated since 1.0. Please use labels for
       * free-form metadata instead.
       * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; source_ = value; onChanged(); return this; } /** *
       * 'source' is an identifier style string used by frameworks to
       * track the source of an executor. This is useful when it's
       * possible for different executor ids to be related semantically.
       * NOTE: 'source' is exposed alongside the resource usage of the
       * executor via JSON on the agent. This allows users to import usage
       * information into a time series database for monitoring.
       * This field is deprecated since 1.0. Please use labels for
       * free-form metadata instead.
       * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000080); source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** *
       * 'source' is an identifier style string used by frameworks to
       * track the source of an executor. This is useful when it's
       * possible for different executor ids to be related semantically.
       * NOTE: 'source' is exposed alongside the resource usage of the
       * executor via JSON on the agent. This allows users to import usage
       * information into a time series database for monitoring.
       * This field is deprecated since 1.0. Please use labels for
       * free-form metadata instead.
       * 
* * optional string source = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; source_ = value; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This field can be used to pass arbitrary bytes to an executor.
       * 
* * optional bytes data = 4; */ public boolean hasData() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * This field can be used to pass arbitrary bytes to an executor.
       * 
* * optional bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } /** *
       * This field can be used to pass arbitrary bytes to an executor.
       * 
* * optional bytes data = 4; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; data_ = value; onChanged(); return this; } /** *
       * This field can be used to pass arbitrary bytes to an executor.
       * 
* * optional bytes data = 4; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000100); data_ = getDefaultInstance().getData(); onChanged(); return this; } private org.apache.mesos.v1.Protos.DiscoveryInfo discovery_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder> discoveryBuilder_; /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public boolean hasDiscovery() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery() { if (discoveryBuilder_ == null) { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } else { return discoveryBuilder_.getMessage(); } } /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public Builder setDiscovery(org.apache.mesos.v1.Protos.DiscoveryInfo value) { if (discoveryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } discovery_ = value; onChanged(); } else { discoveryBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public Builder setDiscovery( org.apache.mesos.v1.Protos.DiscoveryInfo.Builder builderForValue) { if (discoveryBuilder_ == null) { discovery_ = builderForValue.build(); onChanged(); } else { discoveryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public Builder mergeDiscovery(org.apache.mesos.v1.Protos.DiscoveryInfo value) { if (discoveryBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && discovery_ != null && discovery_ != org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance()) { discovery_ = org.apache.mesos.v1.Protos.DiscoveryInfo.newBuilder(discovery_).mergeFrom(value).buildPartial(); } else { discovery_ = value; } onChanged(); } else { discoveryBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public Builder clearDiscovery() { if (discoveryBuilder_ == null) { discovery_ = null; onChanged(); } else { discoveryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfo.Builder getDiscoveryBuilder() { bitField0_ |= 0x00000200; onChanged(); return getDiscoveryFieldBuilder().getBuilder(); } /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder() { if (discoveryBuilder_ != null) { return discoveryBuilder_.getMessageOrBuilder(); } else { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } } /** *
       * Service discovery information for the executor. It is not
       * interpreted or acted upon by Mesos. It is up to a service
       * discovery system to use this information as needed and to handle
       * executors without service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder> getDiscoveryFieldBuilder() { if (discoveryBuilder_ == null) { discoveryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder>( getDiscovery(), getParentForChildren(), isClean()); discovery_ = null; } return discoveryBuilder_; } private org.apache.mesos.v1.Protos.DurationInfo shutdownGracePeriod_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> shutdownGracePeriodBuilder_; /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public boolean hasShutdownGracePeriod() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public org.apache.mesos.v1.Protos.DurationInfo getShutdownGracePeriod() { if (shutdownGracePeriodBuilder_ == null) { return shutdownGracePeriod_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : shutdownGracePeriod_; } else { return shutdownGracePeriodBuilder_.getMessage(); } } /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public Builder setShutdownGracePeriod(org.apache.mesos.v1.Protos.DurationInfo value) { if (shutdownGracePeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shutdownGracePeriod_ = value; onChanged(); } else { shutdownGracePeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public Builder setShutdownGracePeriod( org.apache.mesos.v1.Protos.DurationInfo.Builder builderForValue) { if (shutdownGracePeriodBuilder_ == null) { shutdownGracePeriod_ = builderForValue.build(); onChanged(); } else { shutdownGracePeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public Builder mergeShutdownGracePeriod(org.apache.mesos.v1.Protos.DurationInfo value) { if (shutdownGracePeriodBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && shutdownGracePeriod_ != null && shutdownGracePeriod_ != org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance()) { shutdownGracePeriod_ = org.apache.mesos.v1.Protos.DurationInfo.newBuilder(shutdownGracePeriod_).mergeFrom(value).buildPartial(); } else { shutdownGracePeriod_ = value; } onChanged(); } else { shutdownGracePeriodBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public Builder clearShutdownGracePeriod() { if (shutdownGracePeriodBuilder_ == null) { shutdownGracePeriod_ = null; onChanged(); } else { shutdownGracePeriodBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public org.apache.mesos.v1.Protos.DurationInfo.Builder getShutdownGracePeriodBuilder() { bitField0_ |= 0x00000400; onChanged(); return getShutdownGracePeriodFieldBuilder().getBuilder(); } /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getShutdownGracePeriodOrBuilder() { if (shutdownGracePeriodBuilder_ != null) { return shutdownGracePeriodBuilder_.getMessageOrBuilder(); } else { return shutdownGracePeriod_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : shutdownGracePeriod_; } } /** *
       * When shutting down an executor the agent will wait in a
       * best-effort manner for the grace period specified here
       * before forcibly destroying the container. The executor
       * must not assume that it will always be allotted the full
       * grace period, as the agent may decide to allot a shorter
       * period and failures / forcible terminations may occur.
       * 
* * optional .mesos.v1.DurationInfo shutdown_grace_period = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> getShutdownGracePeriodFieldBuilder() { if (shutdownGracePeriodBuilder_ == null) { shutdownGracePeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder>( getShutdownGracePeriod(), getParentForChildren(), isClean()); shutdownGracePeriod_ = null; } return shutdownGracePeriodBuilder_; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ public boolean hasLabels() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00000800; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag executors with lightweight metadata.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ExecutorInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.ExecutorInfo) private static final org.apache.mesos.v1.Protos.ExecutorInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ExecutorInfo(); } public static org.apache.mesos.v1.Protos.ExecutorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ExecutorInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExecutorInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ExecutorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DomainInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.DomainInfo) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ boolean hasFaultDomain(); /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ org.apache.mesos.v1.Protos.DomainInfo.FaultDomain getFaultDomain(); /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ org.apache.mesos.v1.Protos.DomainInfo.FaultDomainOrBuilder getFaultDomainOrBuilder(); } /** *
   **
   * Describes a domain. A domain is a collection of hosts that have
   * similar characteristics. Mesos currently only supports "fault
   * domains", which identify groups of hosts with similar failure
   * characteristics.
   * Frameworks can generally assume that network links between hosts in
   * the same fault domain have lower latency, higher bandwidth, and better
   * availability than network links between hosts in different domains.
   * Schedulers may prefer to place network-intensive workloads in the
   * same domain, as this may improve performance. Conversely, a single
   * failure that affects a host in a domain may be more likely to
   * affect other hosts in the same domain; hence, schedulers may prefer
   * to place workloads that require high availability in multiple
   * domains. (For example, all the hosts in a single rack might lose
   * power or network connectivity simultaneously.)
   * There are two kinds of fault domains: regions and zones. Regions
   * offer the highest degree of fault isolation, but network latency
   * between regions is typically high (typically >50 ms). Zones offer a
   * modest degree of fault isolation along with reasonably low network
   * latency (typically <10 ms).
   * The mapping from fault domains to physical infrastructure is up to
   * the operator to configure. In cloud environments, regions and zones
   * can be mapped to the "region" and "availability zone" concepts
   * exposed by most cloud providers, respectively. In on-premise
   * deployments, regions and zones can be mapped to data centers and
   * racks, respectively.
   * Both masters and agents can be configured with domains. Frameworks
   * can compare the domains of two hosts to determine if the hosts are
   * in the same zone, in different zones in the same region, or in
   * different regions. Note that all masters in a given Mesos cluster
   * must be in the same region.
   * Complex deployments may have additional levels of hierarchy: for example,
   * multiple racks might be grouped together into "halls" and multiple DCs in
   * the same geographical vicinity might be grouped together. As a convention,
   * the recommended way to represent additional levels of hierarchy is via dot-
   * separated labels in the existing zone and region fields. For example, the
   * fact that racks "abc" and "def" are in the same hall might be represented
   * using the zone names "rack-abc.hall-1" and "rack-def.hall-1", for example.
   * Software that is not aware of this additional structure will compare the
   * zone names for equality- hence, the two zones will be treated as different
   * (unrelated) zones. Software that is "hall-aware" can inspect the zone names
   * and make use of the additional hierarchy.
   * 
* * Protobuf type {@code mesos.v1.DomainInfo} */ public static final class DomainInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.DomainInfo) DomainInfoOrBuilder { private static final long serialVersionUID = 0L; // Use DomainInfo.newBuilder() to construct. private DomainInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DomainInfo() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DomainInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = faultDomain_.toBuilder(); } faultDomain_ = input.readMessage(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(faultDomain_); faultDomain_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DomainInfo.class, org.apache.mesos.v1.Protos.DomainInfo.Builder.class); } public interface FaultDomainOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.DomainInfo.FaultDomain) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ boolean hasRegion(); /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo getRegion(); /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfoOrBuilder getRegionOrBuilder(); /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ boolean hasZone(); /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo getZone(); /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfoOrBuilder getZoneOrBuilder(); } /** * Protobuf type {@code mesos.v1.DomainInfo.FaultDomain} */ public static final class FaultDomain extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.DomainInfo.FaultDomain) FaultDomainOrBuilder { private static final long serialVersionUID = 0L; // Use FaultDomain.newBuilder() to construct. private FaultDomain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FaultDomain() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FaultDomain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = zone_.toBuilder(); } zone_ = input.readMessage(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(zone_); zone_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.class, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.Builder.class); } public interface RegionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.DomainInfo.FaultDomain.RegionInfo) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code mesos.v1.DomainInfo.FaultDomain.RegionInfo} */ public static final class RegionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.DomainInfo.FaultDomain.RegionInfo) RegionInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RegionInfo.newBuilder() to construct. private RegionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionInfo() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_RegionInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_RegionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.class, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo other = (org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo 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.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.DomainInfo.FaultDomain.RegionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.DomainInfo.FaultDomain.RegionInfo) org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_RegionInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_RegionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.class, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_RegionInfo_descriptor; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo build() { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo buildPartial() { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo result = new org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo) { return mergeFrom((org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo other) { if (other == org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { 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.Protos.DomainInfo.FaultDomain.RegionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.DomainInfo.FaultDomain.RegionInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.DomainInfo.FaultDomain.RegionInfo) private static final org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo(); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ZoneInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.DomainInfo.FaultDomain.ZoneInfo) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code mesos.v1.DomainInfo.FaultDomain.ZoneInfo} */ public static final class ZoneInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.DomainInfo.FaultDomain.ZoneInfo) ZoneInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ZoneInfo.newBuilder() to construct. private ZoneInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ZoneInfo() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ZoneInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_ZoneInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_ZoneInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.class, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo other = (org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo 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.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.DomainInfo.FaultDomain.ZoneInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.DomainInfo.FaultDomain.ZoneInfo) org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_ZoneInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_ZoneInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.class, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_ZoneInfo_descriptor; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo build() { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo buildPartial() { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo result = new org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo) { return mergeFrom((org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo other) { if (other == org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { 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.Protos.DomainInfo.FaultDomain.ZoneInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.DomainInfo.FaultDomain.ZoneInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.DomainInfo.FaultDomain.ZoneInfo) private static final org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo(); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ZoneInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ZoneInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int REGION_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo region_; /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public boolean hasRegion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo getRegion() { return region_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.getDefaultInstance() : region_; } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfoOrBuilder getRegionOrBuilder() { return region_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.getDefaultInstance() : region_; } public static final int ZONE_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo zone_; /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public boolean hasZone() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo getZone() { return zone_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.getDefaultInstance() : zone_; } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfoOrBuilder getZoneOrBuilder() { return zone_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.getDefaultInstance() : zone_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRegion()) { memoizedIsInitialized = 0; return false; } if (!hasZone()) { memoizedIsInitialized = 0; return false; } if (!getRegion().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getZone().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getRegion()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getZone()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegion()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getZone()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.DomainInfo.FaultDomain)) { return super.equals(obj); } org.apache.mesos.v1.Protos.DomainInfo.FaultDomain other = (org.apache.mesos.v1.Protos.DomainInfo.FaultDomain) obj; boolean result = true; result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (hasZone() == other.hasZone()); if (hasZone()) { result = result && getZone() .equals(other.getZone()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } if (hasZone()) { hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain 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.Protos.DomainInfo.FaultDomain parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.DomainInfo.FaultDomain} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.DomainInfo.FaultDomain) org.apache.mesos.v1.Protos.DomainInfo.FaultDomainOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.class, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.Builder.class); } // Construct using org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRegionFieldBuilder(); getZoneFieldBuilder(); } } public Builder clear() { super.clear(); if (regionBuilder_ == null) { region_ = null; } else { regionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (zoneBuilder_ == null) { zone_ = null; } else { zoneBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_FaultDomain_descriptor; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.getDefaultInstance(); } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain build() { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain buildPartial() { org.apache.mesos.v1.Protos.DomainInfo.FaultDomain result = new org.apache.mesos.v1.Protos.DomainInfo.FaultDomain(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (zoneBuilder_ == null) { result.zone_ = zone_; } else { result.zone_ = zoneBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.DomainInfo.FaultDomain) { return mergeFrom((org.apache.mesos.v1.Protos.DomainInfo.FaultDomain)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain other) { if (other == org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.getDefaultInstance()) return this; if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.hasZone()) { mergeZone(other.getZone()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasRegion()) { return false; } if (!hasZone()) { return false; } if (!getRegion().isInitialized()) { return false; } if (!getZone().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.Protos.DomainInfo.FaultDomain parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.DomainInfo.FaultDomain) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfoOrBuilder> regionBuilder_; /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public boolean hasRegion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public Builder setRegion(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public Builder setRegion( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public Builder mergeRegion(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo value) { if (regionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && region_ != null && region_ != org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.getDefaultInstance()) { region_ = org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { regionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.Builder getRegionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfoOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.getDefaultInstance() : region_; } } /** * required .mesos.v1.DomainInfo.FaultDomain.RegionInfo region = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfoOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfo.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.RegionInfoOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } private org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo zone_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfoOrBuilder> zoneBuilder_; /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public boolean hasZone() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo getZone() { if (zoneBuilder_ == null) { return zone_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.getDefaultInstance() : zone_; } else { return zoneBuilder_.getMessage(); } } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public Builder setZone(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo value) { if (zoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } zone_ = value; onChanged(); } else { zoneBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public Builder setZone( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.Builder builderForValue) { if (zoneBuilder_ == null) { zone_ = builderForValue.build(); onChanged(); } else { zoneBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public Builder mergeZone(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo value) { if (zoneBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && zone_ != null && zone_ != org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.getDefaultInstance()) { zone_ = org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.newBuilder(zone_).mergeFrom(value).buildPartial(); } else { zone_ = value; } onChanged(); } else { zoneBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public Builder clearZone() { if (zoneBuilder_ == null) { zone_ = null; onChanged(); } else { zoneBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.Builder getZoneBuilder() { bitField0_ |= 0x00000002; onChanged(); return getZoneFieldBuilder().getBuilder(); } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfoOrBuilder getZoneOrBuilder() { if (zoneBuilder_ != null) { return zoneBuilder_.getMessageOrBuilder(); } else { return zone_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.getDefaultInstance() : zone_; } } /** * required .mesos.v1.DomainInfo.FaultDomain.ZoneInfo zone = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfoOrBuilder> getZoneFieldBuilder() { if (zoneBuilder_ == null) { zoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfo.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.ZoneInfoOrBuilder>( getZone(), getParentForChildren(), isClean()); zone_ = null; } return zoneBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.DomainInfo.FaultDomain) } // @@protoc_insertion_point(class_scope:mesos.v1.DomainInfo.FaultDomain) private static final org.apache.mesos.v1.Protos.DomainInfo.FaultDomain DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.DomainInfo.FaultDomain(); } public static org.apache.mesos.v1.Protos.DomainInfo.FaultDomain getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FaultDomain parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FaultDomain(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int FAULT_DOMAIN_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.DomainInfo.FaultDomain faultDomain_; /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public boolean hasFaultDomain() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain getFaultDomain() { return faultDomain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.getDefaultInstance() : faultDomain_; } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomainOrBuilder getFaultDomainOrBuilder() { return faultDomain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.getDefaultInstance() : faultDomain_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasFaultDomain()) { if (!getFaultDomain().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getFaultDomain()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFaultDomain()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.DomainInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.DomainInfo other = (org.apache.mesos.v1.Protos.DomainInfo) obj; boolean result = true; result = result && (hasFaultDomain() == other.hasFaultDomain()); if (hasFaultDomain()) { result = result && getFaultDomain() .equals(other.getFaultDomain()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFaultDomain()) { hash = (37 * hash) + FAULT_DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getFaultDomain().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.DomainInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo 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.Protos.DomainInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DomainInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DomainInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DomainInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.DomainInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a domain. A domain is a collection of hosts that have
     * similar characteristics. Mesos currently only supports "fault
     * domains", which identify groups of hosts with similar failure
     * characteristics.
     * Frameworks can generally assume that network links between hosts in
     * the same fault domain have lower latency, higher bandwidth, and better
     * availability than network links between hosts in different domains.
     * Schedulers may prefer to place network-intensive workloads in the
     * same domain, as this may improve performance. Conversely, a single
     * failure that affects a host in a domain may be more likely to
     * affect other hosts in the same domain; hence, schedulers may prefer
     * to place workloads that require high availability in multiple
     * domains. (For example, all the hosts in a single rack might lose
     * power or network connectivity simultaneously.)
     * There are two kinds of fault domains: regions and zones. Regions
     * offer the highest degree of fault isolation, but network latency
     * between regions is typically high (typically >50 ms). Zones offer a
     * modest degree of fault isolation along with reasonably low network
     * latency (typically <10 ms).
     * The mapping from fault domains to physical infrastructure is up to
     * the operator to configure. In cloud environments, regions and zones
     * can be mapped to the "region" and "availability zone" concepts
     * exposed by most cloud providers, respectively. In on-premise
     * deployments, regions and zones can be mapped to data centers and
     * racks, respectively.
     * Both masters and agents can be configured with domains. Frameworks
     * can compare the domains of two hosts to determine if the hosts are
     * in the same zone, in different zones in the same region, or in
     * different regions. Note that all masters in a given Mesos cluster
     * must be in the same region.
     * Complex deployments may have additional levels of hierarchy: for example,
     * multiple racks might be grouped together into "halls" and multiple DCs in
     * the same geographical vicinity might be grouped together. As a convention,
     * the recommended way to represent additional levels of hierarchy is via dot-
     * separated labels in the existing zone and region fields. For example, the
     * fact that racks "abc" and "def" are in the same hall might be represented
     * using the zone names "rack-abc.hall-1" and "rack-def.hall-1", for example.
     * Software that is not aware of this additional structure will compare the
     * zone names for equality- hence, the two zones will be treated as different
     * (unrelated) zones. Software that is "hall-aware" can inspect the zone names
     * and make use of the additional hierarchy.
     * 
* * Protobuf type {@code mesos.v1.DomainInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.DomainInfo) org.apache.mesos.v1.Protos.DomainInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DomainInfo.class, org.apache.mesos.v1.Protos.DomainInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.DomainInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFaultDomainFieldBuilder(); } } public Builder clear() { super.clear(); if (faultDomainBuilder_ == null) { faultDomain_ = null; } else { faultDomainBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DomainInfo_descriptor; } public org.apache.mesos.v1.Protos.DomainInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.DomainInfo build() { org.apache.mesos.v1.Protos.DomainInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.DomainInfo buildPartial() { org.apache.mesos.v1.Protos.DomainInfo result = new org.apache.mesos.v1.Protos.DomainInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (faultDomainBuilder_ == null) { result.faultDomain_ = faultDomain_; } else { result.faultDomain_ = faultDomainBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.DomainInfo) { return mergeFrom((org.apache.mesos.v1.Protos.DomainInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.DomainInfo other) { if (other == org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance()) return this; if (other.hasFaultDomain()) { mergeFaultDomain(other.getFaultDomain()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasFaultDomain()) { if (!getFaultDomain().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.Protos.DomainInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.DomainInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.DomainInfo.FaultDomain faultDomain_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomainOrBuilder> faultDomainBuilder_; /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public boolean hasFaultDomain() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain getFaultDomain() { if (faultDomainBuilder_ == null) { return faultDomain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.getDefaultInstance() : faultDomain_; } else { return faultDomainBuilder_.getMessage(); } } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public Builder setFaultDomain(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain value) { if (faultDomainBuilder_ == null) { if (value == null) { throw new NullPointerException(); } faultDomain_ = value; onChanged(); } else { faultDomainBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public Builder setFaultDomain( org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.Builder builderForValue) { if (faultDomainBuilder_ == null) { faultDomain_ = builderForValue.build(); onChanged(); } else { faultDomainBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public Builder mergeFaultDomain(org.apache.mesos.v1.Protos.DomainInfo.FaultDomain value) { if (faultDomainBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && faultDomain_ != null && faultDomain_ != org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.getDefaultInstance()) { faultDomain_ = org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.newBuilder(faultDomain_).mergeFrom(value).buildPartial(); } else { faultDomain_ = value; } onChanged(); } else { faultDomainBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public Builder clearFaultDomain() { if (faultDomainBuilder_ == null) { faultDomain_ = null; onChanged(); } else { faultDomainBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.Builder getFaultDomainBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFaultDomainFieldBuilder().getBuilder(); } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ public org.apache.mesos.v1.Protos.DomainInfo.FaultDomainOrBuilder getFaultDomainOrBuilder() { if (faultDomainBuilder_ != null) { return faultDomainBuilder_.getMessageOrBuilder(); } else { return faultDomain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.getDefaultInstance() : faultDomain_; } } /** * optional .mesos.v1.DomainInfo.FaultDomain fault_domain = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomainOrBuilder> getFaultDomainFieldBuilder() { if (faultDomainBuilder_ == null) { faultDomainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo.FaultDomain, org.apache.mesos.v1.Protos.DomainInfo.FaultDomain.Builder, org.apache.mesos.v1.Protos.DomainInfo.FaultDomainOrBuilder>( getFaultDomain(), getParentForChildren(), isClean()); faultDomain_ = null; } return faultDomainBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.DomainInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.DomainInfo) private static final org.apache.mesos.v1.Protos.DomainInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.DomainInfo(); } public static org.apache.mesos.v1.Protos.DomainInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DomainInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DomainInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.DomainInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MasterInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.MasterInfo) com.google.protobuf.MessageOrBuilder { /** * required string id = 1; */ boolean hasId(); /** * required string id = 1; */ java.lang.String getId(); /** * required string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** *
     * The IP address (only IPv4) as a packed 4-bytes integer,
     * stored in network order.  Deprecated, use `address.ip` instead.
     * 
* * required uint32 ip = 2; */ boolean hasIp(); /** *
     * The IP address (only IPv4) as a packed 4-bytes integer,
     * stored in network order.  Deprecated, use `address.ip` instead.
     * 
* * required uint32 ip = 2; */ int getIp(); /** *
     * The TCP port the Master is listening on for incoming
     * HTTP requests; deprecated, use `address.port` instead.
     * 
* * required uint32 port = 3 [default = 5050]; */ boolean hasPort(); /** *
     * The TCP port the Master is listening on for incoming
     * HTTP requests; deprecated, use `address.port` instead.
     * 
* * required uint32 port = 3 [default = 5050]; */ int getPort(); /** *
     * In the default implementation, this will contain information
     * about both the IP address, port and Master name; it should really
     * not be relied upon by external tooling/frameworks and be
     * considered an "internal" implementation field.
     * 
* * optional string pid = 4; */ boolean hasPid(); /** *
     * In the default implementation, this will contain information
     * about both the IP address, port and Master name; it should really
     * not be relied upon by external tooling/frameworks and be
     * considered an "internal" implementation field.
     * 
* * optional string pid = 4; */ java.lang.String getPid(); /** *
     * In the default implementation, this will contain information
     * about both the IP address, port and Master name; it should really
     * not be relied upon by external tooling/frameworks and be
     * considered an "internal" implementation field.
     * 
* * optional string pid = 4; */ com.google.protobuf.ByteString getPidBytes(); /** *
     * The server's hostname, if available; it may be unreliable
     * in environments where the DNS configuration does not resolve
     * internal hostnames (eg, some public cloud providers).
     * Deprecated, use `address.hostname` instead.
     * 
* * optional string hostname = 5; */ boolean hasHostname(); /** *
     * The server's hostname, if available; it may be unreliable
     * in environments where the DNS configuration does not resolve
     * internal hostnames (eg, some public cloud providers).
     * Deprecated, use `address.hostname` instead.
     * 
* * optional string hostname = 5; */ java.lang.String getHostname(); /** *
     * The server's hostname, if available; it may be unreliable
     * in environments where the DNS configuration does not resolve
     * internal hostnames (eg, some public cloud providers).
     * Deprecated, use `address.hostname` instead.
     * 
* * optional string hostname = 5; */ com.google.protobuf.ByteString getHostnameBytes(); /** *
     * The running Master version, as a string; taken from the
     * generated "master/version.hpp".
     * 
* * optional string version = 6; */ boolean hasVersion(); /** *
     * The running Master version, as a string; taken from the
     * generated "master/version.hpp".
     * 
* * optional string version = 6; */ java.lang.String getVersion(); /** *
     * The running Master version, as a string; taken from the
     * generated "master/version.hpp".
     * 
* * optional string version = 6; */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * The full IP address (supports both IPv4 and IPv6 formats)
     * and supersedes the use of `ip`, `port` and `hostname`.
     * Since Mesos 0.24.
     * 
* * optional .mesos.v1.Address address = 7; */ boolean hasAddress(); /** *
     * The full IP address (supports both IPv4 and IPv6 formats)
     * and supersedes the use of `ip`, `port` and `hostname`.
     * Since Mesos 0.24.
     * 
* * optional .mesos.v1.Address address = 7; */ org.apache.mesos.v1.Protos.Address getAddress(); /** *
     * The full IP address (supports both IPv4 and IPv6 formats)
     * and supersedes the use of `ip`, `port` and `hostname`.
     * Since Mesos 0.24.
     * 
* * optional .mesos.v1.Address address = 7; */ org.apache.mesos.v1.Protos.AddressOrBuilder getAddressOrBuilder(); /** *
     * The domain that this master belongs to. All masters in a Mesos
     * cluster should belong to the same region.
     * 
* * optional .mesos.v1.DomainInfo domain = 8; */ boolean hasDomain(); /** *
     * The domain that this master belongs to. All masters in a Mesos
     * cluster should belong to the same region.
     * 
* * optional .mesos.v1.DomainInfo domain = 8; */ org.apache.mesos.v1.Protos.DomainInfo getDomain(); /** *
     * The domain that this master belongs to. All masters in a Mesos
     * cluster should belong to the same region.
     * 
* * optional .mesos.v1.DomainInfo domain = 8; */ org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder(); /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ java.util.List getCapabilitiesList(); /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ org.apache.mesos.v1.Protos.MasterInfo.Capability getCapabilities(int index); /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ int getCapabilitiesCount(); /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ java.util.List getCapabilitiesOrBuilderList(); /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ org.apache.mesos.v1.Protos.MasterInfo.CapabilityOrBuilder getCapabilitiesOrBuilder( int index); } /** *
   **
   * Describes a master. This will probably have more fields in the
   * future which might be used, for example, to link a framework webui
   * to a master webui.
   * 
* * Protobuf type {@code mesos.v1.MasterInfo} */ public static final class MasterInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.MasterInfo) MasterInfoOrBuilder { private static final long serialVersionUID = 0L; // Use MasterInfo.newBuilder() to construct. private MasterInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MasterInfo() { id_ = ""; ip_ = 0; port_ = 5050; pid_ = ""; hostname_ = ""; version_ = ""; capabilities_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MasterInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; id_ = bs; break; } case 16: { bitField0_ |= 0x00000002; ip_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; port_ = input.readUInt32(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; pid_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; hostname_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; version_ = bs; break; } case 58: { org.apache.mesos.v1.Protos.Address.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = address_.toBuilder(); } address_ = input.readMessage(org.apache.mesos.v1.Protos.Address.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(address_); address_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { org.apache.mesos.v1.Protos.DomainInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = domain_.toBuilder(); } domain_ = input.readMessage(org.apache.mesos.v1.Protos.DomainInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(domain_); domain_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { capabilities_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } capabilities_.add( input.readMessage(org.apache.mesos.v1.Protos.MasterInfo.Capability.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { capabilities_ = java.util.Collections.unmodifiableList(capabilities_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MasterInfo.class, org.apache.mesos.v1.Protos.MasterInfo.Builder.class); } public interface CapabilityOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.MasterInfo.Capability) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.MasterInfo.Capability.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.MasterInfo.Capability.Type type = 1; */ org.apache.mesos.v1.Protos.MasterInfo.Capability.Type getType(); } /** * Protobuf type {@code mesos.v1.MasterInfo.Capability} */ public static final class Capability extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.MasterInfo.Capability) CapabilityOrBuilder { private static final long serialVersionUID = 0L; // Use Capability.newBuilder() to construct. private Capability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Capability() { type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Capability( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.MasterInfo.Capability.Type value = org.apache.mesos.v1.Protos.MasterInfo.Capability.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_Capability_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_Capability_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MasterInfo.Capability.class, org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder.class); } /** * Protobuf enum {@code mesos.v1.MasterInfo.Capability.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** *
         * The master can handle slaves whose state
         * changes after reregistering.
         * 
* * AGENT_UPDATE = 1; */ AGENT_UPDATE(1), /** *
         * The master can drain or deactivate agents when requested
         * via operator APIs.
         * 
* * AGENT_DRAINING = 2; */ AGENT_DRAINING(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
         * The master can handle slaves whose state
         * changes after reregistering.
         * 
* * AGENT_UPDATE = 1; */ public static final int AGENT_UPDATE_VALUE = 1; /** *
         * The master can drain or deactivate agents when requested
         * via operator APIs.
         * 
* * AGENT_DRAINING = 2; */ public static final int AGENT_DRAINING_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return AGENT_UPDATE; case 2: return AGENT_DRAINING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.MasterInfo.Capability.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.MasterInfo.Capability.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .mesos.v1.MasterInfo.Capability.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.MasterInfo.Capability.Type type = 1; */ public org.apache.mesos.v1.Protos.MasterInfo.Capability.Type getType() { org.apache.mesos.v1.Protos.MasterInfo.Capability.Type result = org.apache.mesos.v1.Protos.MasterInfo.Capability.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.MasterInfo.Capability.Type.UNKNOWN : result; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.MasterInfo.Capability)) { return super.equals(obj); } org.apache.mesos.v1.Protos.MasterInfo.Capability other = (org.apache.mesos.v1.Protos.MasterInfo.Capability) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability 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.Protos.MasterInfo.Capability parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.MasterInfo.Capability prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.MasterInfo.Capability} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.MasterInfo.Capability) org.apache.mesos.v1.Protos.MasterInfo.CapabilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_Capability_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_Capability_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MasterInfo.Capability.class, org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder.class); } // Construct using org.apache.mesos.v1.Protos.MasterInfo.Capability.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_Capability_descriptor; } public org.apache.mesos.v1.Protos.MasterInfo.Capability getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.MasterInfo.Capability.getDefaultInstance(); } public org.apache.mesos.v1.Protos.MasterInfo.Capability build() { org.apache.mesos.v1.Protos.MasterInfo.Capability result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.MasterInfo.Capability buildPartial() { org.apache.mesos.v1.Protos.MasterInfo.Capability result = new org.apache.mesos.v1.Protos.MasterInfo.Capability(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.MasterInfo.Capability) { return mergeFrom((org.apache.mesos.v1.Protos.MasterInfo.Capability)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.MasterInfo.Capability other) { if (other == org.apache.mesos.v1.Protos.MasterInfo.Capability.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.MasterInfo.Capability parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.MasterInfo.Capability) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * optional .mesos.v1.MasterInfo.Capability.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.MasterInfo.Capability.Type type = 1; */ public org.apache.mesos.v1.Protos.MasterInfo.Capability.Type getType() { org.apache.mesos.v1.Protos.MasterInfo.Capability.Type result = org.apache.mesos.v1.Protos.MasterInfo.Capability.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.MasterInfo.Capability.Type.UNKNOWN : result; } /** * optional .mesos.v1.MasterInfo.Capability.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.MasterInfo.Capability.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.MasterInfo.Capability.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.MasterInfo.Capability) } // @@protoc_insertion_point(class_scope:mesos.v1.MasterInfo.Capability) private static final org.apache.mesos.v1.Protos.MasterInfo.Capability DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.MasterInfo.Capability(); } public static org.apache.mesos.v1.Protos.MasterInfo.Capability getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Capability parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Capability(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.MasterInfo.Capability getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * required string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** * required string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IP_FIELD_NUMBER = 2; private int ip_; /** *
     * The IP address (only IPv4) as a packed 4-bytes integer,
     * stored in network order.  Deprecated, use `address.ip` instead.
     * 
* * required uint32 ip = 2; */ public boolean hasIp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * The IP address (only IPv4) as a packed 4-bytes integer,
     * stored in network order.  Deprecated, use `address.ip` instead.
     * 
* * required uint32 ip = 2; */ public int getIp() { return ip_; } public static final int PORT_FIELD_NUMBER = 3; private int port_; /** *
     * The TCP port the Master is listening on for incoming
     * HTTP requests; deprecated, use `address.port` instead.
     * 
* * required uint32 port = 3 [default = 5050]; */ public boolean hasPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * The TCP port the Master is listening on for incoming
     * HTTP requests; deprecated, use `address.port` instead.
     * 
* * required uint32 port = 3 [default = 5050]; */ public int getPort() { return port_; } public static final int PID_FIELD_NUMBER = 4; private volatile java.lang.Object pid_; /** *
     * In the default implementation, this will contain information
     * about both the IP address, port and Master name; it should really
     * not be relied upon by external tooling/frameworks and be
     * considered an "internal" implementation field.
     * 
* * optional string pid = 4; */ public boolean hasPid() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * In the default implementation, this will contain information
     * about both the IP address, port and Master name; it should really
     * not be relied upon by external tooling/frameworks and be
     * considered an "internal" implementation field.
     * 
* * optional string pid = 4; */ public java.lang.String getPid() { java.lang.Object ref = pid_; 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()) { pid_ = s; } return s; } } /** *
     * In the default implementation, this will contain information
     * about both the IP address, port and Master name; it should really
     * not be relied upon by external tooling/frameworks and be
     * considered an "internal" implementation field.
     * 
* * optional string pid = 4; */ public com.google.protobuf.ByteString getPidBytes() { java.lang.Object ref = pid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTNAME_FIELD_NUMBER = 5; private volatile java.lang.Object hostname_; /** *
     * The server's hostname, if available; it may be unreliable
     * in environments where the DNS configuration does not resolve
     * internal hostnames (eg, some public cloud providers).
     * Deprecated, use `address.hostname` instead.
     * 
* * optional string hostname = 5; */ public boolean hasHostname() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * The server's hostname, if available; it may be unreliable
     * in environments where the DNS configuration does not resolve
     * internal hostnames (eg, some public cloud providers).
     * Deprecated, use `address.hostname` instead.
     * 
* * optional string hostname = 5; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** *
     * The server's hostname, if available; it may be unreliable
     * in environments where the DNS configuration does not resolve
     * internal hostnames (eg, some public cloud providers).
     * Deprecated, use `address.hostname` instead.
     * 
* * optional string hostname = 5; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object version_; /** *
     * The running Master version, as a string; taken from the
     * generated "master/version.hpp".
     * 
* * optional string version = 6; */ public boolean hasVersion() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * The running Master version, as a string; taken from the
     * generated "master/version.hpp".
     * 
* * optional string version = 6; */ public java.lang.String getVersion() { java.lang.Object ref = version_; 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()) { version_ = s; } return s; } } /** *
     * The running Master version, as a string; taken from the
     * generated "master/version.hpp".
     * 
* * optional string version = 6; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.Address address_; /** *
     * The full IP address (supports both IPv4 and IPv6 formats)
     * and supersedes the use of `ip`, `port` and `hostname`.
     * Since Mesos 0.24.
     * 
* * optional .mesos.v1.Address address = 7; */ public boolean hasAddress() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * The full IP address (supports both IPv4 and IPv6 formats)
     * and supersedes the use of `ip`, `port` and `hostname`.
     * Since Mesos 0.24.
     * 
* * optional .mesos.v1.Address address = 7; */ public org.apache.mesos.v1.Protos.Address getAddress() { return address_ == null ? org.apache.mesos.v1.Protos.Address.getDefaultInstance() : address_; } /** *
     * The full IP address (supports both IPv4 and IPv6 formats)
     * and supersedes the use of `ip`, `port` and `hostname`.
     * Since Mesos 0.24.
     * 
* * optional .mesos.v1.Address address = 7; */ public org.apache.mesos.v1.Protos.AddressOrBuilder getAddressOrBuilder() { return address_ == null ? org.apache.mesos.v1.Protos.Address.getDefaultInstance() : address_; } public static final int DOMAIN_FIELD_NUMBER = 8; private org.apache.mesos.v1.Protos.DomainInfo domain_; /** *
     * The domain that this master belongs to. All masters in a Mesos
     * cluster should belong to the same region.
     * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public boolean hasDomain() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     * The domain that this master belongs to. All masters in a Mesos
     * cluster should belong to the same region.
     * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public org.apache.mesos.v1.Protos.DomainInfo getDomain() { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } /** *
     * The domain that this master belongs to. All masters in a Mesos
     * cluster should belong to the same region.
     * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder() { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } public static final int CAPABILITIES_FIELD_NUMBER = 9; private java.util.List capabilities_; /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public java.util.List getCapabilitiesList() { return capabilities_; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public java.util.List getCapabilitiesOrBuilderList() { return capabilities_; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public int getCapabilitiesCount() { return capabilities_.size(); } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public org.apache.mesos.v1.Protos.MasterInfo.Capability getCapabilities(int index) { return capabilities_.get(index); } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public org.apache.mesos.v1.Protos.MasterInfo.CapabilityOrBuilder getCapabilitiesOrBuilder( int index) { return capabilities_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasIp()) { memoizedIsInitialized = 0; return false; } if (!hasPort()) { memoizedIsInitialized = 0; return false; } if (hasAddress()) { if (!getAddress().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDomain()) { if (!getDomain().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, ip_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, port_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pid_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostname_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, getAddress()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, getDomain()); } for (int i = 0; i < capabilities_.size(); i++) { output.writeMessage(9, capabilities_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, ip_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, port_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pid_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostname_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAddress()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getDomain()); } for (int i = 0; i < capabilities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, capabilities_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.MasterInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.MasterInfo other = (org.apache.mesos.v1.Protos.MasterInfo) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasIp() == other.hasIp()); if (hasIp()) { result = result && (getIp() == other.getIp()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && (hasPid() == other.hasPid()); if (hasPid()) { result = result && getPid() .equals(other.getPid()); } result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname() .equals(other.getHostname()); } result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && getVersion() .equals(other.getVersion()); } result = result && (hasAddress() == other.hasAddress()); if (hasAddress()) { result = result && getAddress() .equals(other.getAddress()); } result = result && (hasDomain() == other.hasDomain()); if (hasDomain()) { result = result && getDomain() .equals(other.getDomain()); } result = result && getCapabilitiesList() .equals(other.getCapabilitiesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasIp()) { hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (hasPid()) { hash = (37 * hash) + PID_FIELD_NUMBER; hash = (53 * hash) + getPid().hashCode(); } if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } if (hasDomain()) { hash = (37 * hash) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); } if (getCapabilitiesCount() > 0) { hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getCapabilitiesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.MasterInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MasterInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MasterInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MasterInfo 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.Protos.MasterInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MasterInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MasterInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MasterInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MasterInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MasterInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MasterInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MasterInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.MasterInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a master. This will probably have more fields in the
     * future which might be used, for example, to link a framework webui
     * to a master webui.
     * 
* * Protobuf type {@code mesos.v1.MasterInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.MasterInfo) org.apache.mesos.v1.Protos.MasterInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MasterInfo.class, org.apache.mesos.v1.Protos.MasterInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.MasterInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAddressFieldBuilder(); getDomainFieldBuilder(); getCapabilitiesFieldBuilder(); } } public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); ip_ = 0; bitField0_ = (bitField0_ & ~0x00000002); port_ = 5050; bitField0_ = (bitField0_ & ~0x00000004); pid_ = ""; bitField0_ = (bitField0_ & ~0x00000008); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000010); version_ = ""; bitField0_ = (bitField0_ & ~0x00000020); if (addressBuilder_ == null) { address_ = null; } else { addressBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (domainBuilder_ == null) { domain_ = null; } else { domainBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (capabilitiesBuilder_ == null) { capabilities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { capabilitiesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MasterInfo_descriptor; } public org.apache.mesos.v1.Protos.MasterInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.MasterInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.MasterInfo build() { org.apache.mesos.v1.Protos.MasterInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.MasterInfo buildPartial() { org.apache.mesos.v1.Protos.MasterInfo result = new org.apache.mesos.v1.Protos.MasterInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.ip_ = ip_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.port_ = port_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.pid_ = pid_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.version_ = version_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (addressBuilder_ == null) { result.address_ = address_; } else { result.address_ = addressBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (domainBuilder_ == null) { result.domain_ = domain_; } else { result.domain_ = domainBuilder_.build(); } if (capabilitiesBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { capabilities_ = java.util.Collections.unmodifiableList(capabilities_); bitField0_ = (bitField0_ & ~0x00000100); } result.capabilities_ = capabilities_; } else { result.capabilities_ = capabilitiesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.MasterInfo) { return mergeFrom((org.apache.mesos.v1.Protos.MasterInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.MasterInfo other) { if (other == org.apache.mesos.v1.Protos.MasterInfo.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasIp()) { setIp(other.getIp()); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasPid()) { bitField0_ |= 0x00000008; pid_ = other.pid_; onChanged(); } if (other.hasHostname()) { bitField0_ |= 0x00000010; hostname_ = other.hostname_; onChanged(); } if (other.hasVersion()) { bitField0_ |= 0x00000020; version_ = other.version_; onChanged(); } if (other.hasAddress()) { mergeAddress(other.getAddress()); } if (other.hasDomain()) { mergeDomain(other.getDomain()); } if (capabilitiesBuilder_ == null) { if (!other.capabilities_.isEmpty()) { if (capabilities_.isEmpty()) { capabilities_ = other.capabilities_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureCapabilitiesIsMutable(); capabilities_.addAll(other.capabilities_); } onChanged(); } } else { if (!other.capabilities_.isEmpty()) { if (capabilitiesBuilder_.isEmpty()) { capabilitiesBuilder_.dispose(); capabilitiesBuilder_ = null; capabilities_ = other.capabilities_; bitField0_ = (bitField0_ & ~0x00000100); capabilitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCapabilitiesFieldBuilder() : null; } else { capabilitiesBuilder_.addAllMessages(other.capabilities_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasIp()) { return false; } if (!hasPort()) { return false; } if (hasAddress()) { if (!getAddress().isInitialized()) { return false; } } if (hasDomain()) { if (!getDomain().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.Protos.MasterInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.MasterInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * required string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * required string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private int ip_ ; /** *
       * The IP address (only IPv4) as a packed 4-bytes integer,
       * stored in network order.  Deprecated, use `address.ip` instead.
       * 
* * required uint32 ip = 2; */ public boolean hasIp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * The IP address (only IPv4) as a packed 4-bytes integer,
       * stored in network order.  Deprecated, use `address.ip` instead.
       * 
* * required uint32 ip = 2; */ public int getIp() { return ip_; } /** *
       * The IP address (only IPv4) as a packed 4-bytes integer,
       * stored in network order.  Deprecated, use `address.ip` instead.
       * 
* * required uint32 ip = 2; */ public Builder setIp(int value) { bitField0_ |= 0x00000002; ip_ = value; onChanged(); return this; } /** *
       * The IP address (only IPv4) as a packed 4-bytes integer,
       * stored in network order.  Deprecated, use `address.ip` instead.
       * 
* * required uint32 ip = 2; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000002); ip_ = 0; onChanged(); return this; } private int port_ = 5050; /** *
       * The TCP port the Master is listening on for incoming
       * HTTP requests; deprecated, use `address.port` instead.
       * 
* * required uint32 port = 3 [default = 5050]; */ public boolean hasPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * The TCP port the Master is listening on for incoming
       * HTTP requests; deprecated, use `address.port` instead.
       * 
* * required uint32 port = 3 [default = 5050]; */ public int getPort() { return port_; } /** *
       * The TCP port the Master is listening on for incoming
       * HTTP requests; deprecated, use `address.port` instead.
       * 
* * required uint32 port = 3 [default = 5050]; */ public Builder setPort(int value) { bitField0_ |= 0x00000004; port_ = value; onChanged(); return this; } /** *
       * The TCP port the Master is listening on for incoming
       * HTTP requests; deprecated, use `address.port` instead.
       * 
* * required uint32 port = 3 [default = 5050]; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000004); port_ = 5050; onChanged(); return this; } private java.lang.Object pid_ = ""; /** *
       * In the default implementation, this will contain information
       * about both the IP address, port and Master name; it should really
       * not be relied upon by external tooling/frameworks and be
       * considered an "internal" implementation field.
       * 
* * optional string pid = 4; */ public boolean hasPid() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * In the default implementation, this will contain information
       * about both the IP address, port and Master name; it should really
       * not be relied upon by external tooling/frameworks and be
       * considered an "internal" implementation field.
       * 
* * optional string pid = 4; */ public java.lang.String getPid() { java.lang.Object ref = pid_; 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()) { pid_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * In the default implementation, this will contain information
       * about both the IP address, port and Master name; it should really
       * not be relied upon by external tooling/frameworks and be
       * considered an "internal" implementation field.
       * 
* * optional string pid = 4; */ public com.google.protobuf.ByteString getPidBytes() { java.lang.Object ref = pid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * In the default implementation, this will contain information
       * about both the IP address, port and Master name; it should really
       * not be relied upon by external tooling/frameworks and be
       * considered an "internal" implementation field.
       * 
* * optional string pid = 4; */ public Builder setPid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; pid_ = value; onChanged(); return this; } /** *
       * In the default implementation, this will contain information
       * about both the IP address, port and Master name; it should really
       * not be relied upon by external tooling/frameworks and be
       * considered an "internal" implementation field.
       * 
* * optional string pid = 4; */ public Builder clearPid() { bitField0_ = (bitField0_ & ~0x00000008); pid_ = getDefaultInstance().getPid(); onChanged(); return this; } /** *
       * In the default implementation, this will contain information
       * about both the IP address, port and Master name; it should really
       * not be relied upon by external tooling/frameworks and be
       * considered an "internal" implementation field.
       * 
* * optional string pid = 4; */ public Builder setPidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; pid_ = value; onChanged(); return this; } private java.lang.Object hostname_ = ""; /** *
       * The server's hostname, if available; it may be unreliable
       * in environments where the DNS configuration does not resolve
       * internal hostnames (eg, some public cloud providers).
       * Deprecated, use `address.hostname` instead.
       * 
* * optional string hostname = 5; */ public boolean hasHostname() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * The server's hostname, if available; it may be unreliable
       * in environments where the DNS configuration does not resolve
       * internal hostnames (eg, some public cloud providers).
       * Deprecated, use `address.hostname` instead.
       * 
* * optional string hostname = 5; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The server's hostname, if available; it may be unreliable
       * in environments where the DNS configuration does not resolve
       * internal hostnames (eg, some public cloud providers).
       * Deprecated, use `address.hostname` instead.
       * 
* * optional string hostname = 5; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The server's hostname, if available; it may be unreliable
       * in environments where the DNS configuration does not resolve
       * internal hostnames (eg, some public cloud providers).
       * Deprecated, use `address.hostname` instead.
       * 
* * optional string hostname = 5; */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; hostname_ = value; onChanged(); return this; } /** *
       * The server's hostname, if available; it may be unreliable
       * in environments where the DNS configuration does not resolve
       * internal hostnames (eg, some public cloud providers).
       * Deprecated, use `address.hostname` instead.
       * 
* * optional string hostname = 5; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000010); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** *
       * The server's hostname, if available; it may be unreliable
       * in environments where the DNS configuration does not resolve
       * internal hostnames (eg, some public cloud providers).
       * Deprecated, use `address.hostname` instead.
       * 
* * optional string hostname = 5; */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; hostname_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
       * The running Master version, as a string; taken from the
       * generated "master/version.hpp".
       * 
* * optional string version = 6; */ public boolean hasVersion() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * The running Master version, as a string; taken from the
       * generated "master/version.hpp".
       * 
* * optional string version = 6; */ public java.lang.String getVersion() { java.lang.Object ref = version_; 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()) { version_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The running Master version, as a string; taken from the
       * generated "master/version.hpp".
       * 
* * optional string version = 6; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The running Master version, as a string; taken from the
       * generated "master/version.hpp".
       * 
* * optional string version = 6; */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; version_ = value; onChanged(); return this; } /** *
       * The running Master version, as a string; taken from the
       * generated "master/version.hpp".
       * 
* * optional string version = 6; */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000020); version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * The running Master version, as a string; taken from the
       * generated "master/version.hpp".
       * 
* * optional string version = 6; */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; version_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Address address_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Address, org.apache.mesos.v1.Protos.Address.Builder, org.apache.mesos.v1.Protos.AddressOrBuilder> addressBuilder_; /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ public boolean hasAddress() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ public org.apache.mesos.v1.Protos.Address getAddress() { if (addressBuilder_ == null) { return address_ == null ? org.apache.mesos.v1.Protos.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ public Builder setAddress(org.apache.mesos.v1.Protos.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ public Builder setAddress( org.apache.mesos.v1.Protos.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ public Builder mergeAddress(org.apache.mesos.v1.Protos.Address value) { if (addressBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && address_ != null && address_ != org.apache.mesos.v1.Protos.Address.getDefaultInstance()) { address_ = org.apache.mesos.v1.Protos.Address.newBuilder(address_).mergeFrom(value).buildPartial(); } else { address_ = value; } onChanged(); } else { addressBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = null; onChanged(); } else { addressBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ public org.apache.mesos.v1.Protos.Address.Builder getAddressBuilder() { bitField0_ |= 0x00000040; onChanged(); return getAddressFieldBuilder().getBuilder(); } /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ public org.apache.mesos.v1.Protos.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? org.apache.mesos.v1.Protos.Address.getDefaultInstance() : address_; } } /** *
       * The full IP address (supports both IPv4 and IPv6 formats)
       * and supersedes the use of `ip`, `port` and `hostname`.
       * Since Mesos 0.24.
       * 
* * optional .mesos.v1.Address address = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Address, org.apache.mesos.v1.Protos.Address.Builder, org.apache.mesos.v1.Protos.AddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Address, org.apache.mesos.v1.Protos.Address.Builder, org.apache.mesos.v1.Protos.AddressOrBuilder>( getAddress(), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } private org.apache.mesos.v1.Protos.DomainInfo domain_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder> domainBuilder_; /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public boolean hasDomain() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public org.apache.mesos.v1.Protos.DomainInfo getDomain() { if (domainBuilder_ == null) { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } else { return domainBuilder_.getMessage(); } } /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public Builder setDomain(org.apache.mesos.v1.Protos.DomainInfo value) { if (domainBuilder_ == null) { if (value == null) { throw new NullPointerException(); } domain_ = value; onChanged(); } else { domainBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public Builder setDomain( org.apache.mesos.v1.Protos.DomainInfo.Builder builderForValue) { if (domainBuilder_ == null) { domain_ = builderForValue.build(); onChanged(); } else { domainBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public Builder mergeDomain(org.apache.mesos.v1.Protos.DomainInfo value) { if (domainBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && domain_ != null && domain_ != org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance()) { domain_ = org.apache.mesos.v1.Protos.DomainInfo.newBuilder(domain_).mergeFrom(value).buildPartial(); } else { domain_ = value; } onChanged(); } else { domainBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public Builder clearDomain() { if (domainBuilder_ == null) { domain_ = null; onChanged(); } else { domainBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public org.apache.mesos.v1.Protos.DomainInfo.Builder getDomainBuilder() { bitField0_ |= 0x00000080; onChanged(); return getDomainFieldBuilder().getBuilder(); } /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ public org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder() { if (domainBuilder_ != null) { return domainBuilder_.getMessageOrBuilder(); } else { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } } /** *
       * The domain that this master belongs to. All masters in a Mesos
       * cluster should belong to the same region.
       * 
* * optional .mesos.v1.DomainInfo domain = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder> getDomainFieldBuilder() { if (domainBuilder_ == null) { domainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder>( getDomain(), getParentForChildren(), isClean()); domain_ = null; } return domainBuilder_; } private java.util.List capabilities_ = java.util.Collections.emptyList(); private void ensureCapabilitiesIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { capabilities_ = new java.util.ArrayList(capabilities_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.MasterInfo.Capability, org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder, org.apache.mesos.v1.Protos.MasterInfo.CapabilityOrBuilder> capabilitiesBuilder_; /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public java.util.List getCapabilitiesList() { if (capabilitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(capabilities_); } else { return capabilitiesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public int getCapabilitiesCount() { if (capabilitiesBuilder_ == null) { return capabilities_.size(); } else { return capabilitiesBuilder_.getCount(); } } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public org.apache.mesos.v1.Protos.MasterInfo.Capability getCapabilities(int index) { if (capabilitiesBuilder_ == null) { return capabilities_.get(index); } else { return capabilitiesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder setCapabilities( int index, org.apache.mesos.v1.Protos.MasterInfo.Capability value) { if (capabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.set(index, value); onChanged(); } else { capabilitiesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder setCapabilities( int index, org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder builderForValue) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); capabilities_.set(index, builderForValue.build()); onChanged(); } else { capabilitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder addCapabilities(org.apache.mesos.v1.Protos.MasterInfo.Capability value) { if (capabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.add(value); onChanged(); } else { capabilitiesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder addCapabilities( int index, org.apache.mesos.v1.Protos.MasterInfo.Capability value) { if (capabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.add(index, value); onChanged(); } else { capabilitiesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder addCapabilities( org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder builderForValue) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); capabilities_.add(builderForValue.build()); onChanged(); } else { capabilitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder addCapabilities( int index, org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder builderForValue) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); capabilities_.add(index, builderForValue.build()); onChanged(); } else { capabilitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder addAllCapabilities( java.lang.Iterable values) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, capabilities_); onChanged(); } else { capabilitiesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder clearCapabilities() { if (capabilitiesBuilder_ == null) { capabilities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { capabilitiesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public Builder removeCapabilities(int index) { if (capabilitiesBuilder_ == null) { ensureCapabilitiesIsMutable(); capabilities_.remove(index); onChanged(); } else { capabilitiesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder getCapabilitiesBuilder( int index) { return getCapabilitiesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public org.apache.mesos.v1.Protos.MasterInfo.CapabilityOrBuilder getCapabilitiesOrBuilder( int index) { if (capabilitiesBuilder_ == null) { return capabilities_.get(index); } else { return capabilitiesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public java.util.List getCapabilitiesOrBuilderList() { if (capabilitiesBuilder_ != null) { return capabilitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(capabilities_); } } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder addCapabilitiesBuilder() { return getCapabilitiesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.MasterInfo.Capability.getDefaultInstance()); } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder addCapabilitiesBuilder( int index) { return getCapabilitiesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.MasterInfo.Capability.getDefaultInstance()); } /** * repeated .mesos.v1.MasterInfo.Capability capabilities = 9; */ public java.util.List getCapabilitiesBuilderList() { return getCapabilitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.MasterInfo.Capability, org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder, org.apache.mesos.v1.Protos.MasterInfo.CapabilityOrBuilder> getCapabilitiesFieldBuilder() { if (capabilitiesBuilder_ == null) { capabilitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.MasterInfo.Capability, org.apache.mesos.v1.Protos.MasterInfo.Capability.Builder, org.apache.mesos.v1.Protos.MasterInfo.CapabilityOrBuilder>( capabilities_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); capabilities_ = null; } return capabilitiesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.MasterInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.MasterInfo) private static final org.apache.mesos.v1.Protos.MasterInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.MasterInfo(); } public static org.apache.mesos.v1.Protos.MasterInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MasterInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MasterInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.MasterInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AgentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.AgentInfo) com.google.protobuf.MessageOrBuilder { /** * required string hostname = 1; */ boolean hasHostname(); /** * required string hostname = 1; */ java.lang.String getHostname(); /** * required string hostname = 1; */ com.google.protobuf.ByteString getHostnameBytes(); /** * optional int32 port = 8 [default = 5051]; */ boolean hasPort(); /** * optional int32 port = 8 [default = 5051]; */ int getPort(); /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ java.util.List getResourcesList(); /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ int getResourcesCount(); /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ java.util.List getResourcesOrBuilderList(); /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); /** * repeated .mesos.v1.Attribute attributes = 5; */ java.util.List getAttributesList(); /** * repeated .mesos.v1.Attribute attributes = 5; */ org.apache.mesos.v1.Protos.Attribute getAttributes(int index); /** * repeated .mesos.v1.Attribute attributes = 5; */ int getAttributesCount(); /** * repeated .mesos.v1.Attribute attributes = 5; */ java.util.List getAttributesOrBuilderList(); /** * repeated .mesos.v1.Attribute attributes = 5; */ org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index); /** * optional .mesos.v1.AgentID id = 6; */ boolean hasId(); /** * optional .mesos.v1.AgentID id = 6; */ org.apache.mesos.v1.Protos.AgentID getId(); /** * optional .mesos.v1.AgentID id = 6; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getIdOrBuilder(); /** *
     * The domain that this agent belongs to. If the agent's region
     * differs from the master's region, it will not appear in resource
     * offers to frameworks that have not enabled the REGION_AWARE
     * capability.
     * 
* * optional .mesos.v1.DomainInfo domain = 10; */ boolean hasDomain(); /** *
     * The domain that this agent belongs to. If the agent's region
     * differs from the master's region, it will not appear in resource
     * offers to frameworks that have not enabled the REGION_AWARE
     * capability.
     * 
* * optional .mesos.v1.DomainInfo domain = 10; */ org.apache.mesos.v1.Protos.DomainInfo getDomain(); /** *
     * The domain that this agent belongs to. If the agent's region
     * differs from the master's region, it will not appear in resource
     * offers to frameworks that have not enabled the REGION_AWARE
     * capability.
     * 
* * optional .mesos.v1.DomainInfo domain = 10; */ org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder(); } /** *
   **
   * Describes an agent. Note that the 'id' field is only available
   * after an agent is registered with the master, and is made available
   * here to facilitate re-registration.
   * 
* * Protobuf type {@code mesos.v1.AgentInfo} */ public static final class AgentInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.AgentInfo) AgentInfoOrBuilder { private static final long serialVersionUID = 0L; // Use AgentInfo.newBuilder() to construct. private AgentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AgentInfo() { hostname_ = ""; port_ = 5051; resources_ = java.util.Collections.emptyList(); attributes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AgentInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; hostname_ = bs; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { attributes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } attributes_.add( input.readMessage(org.apache.mesos.v1.Protos.Attribute.PARSER, extensionRegistry)); break; } case 50: { org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 64: { bitField0_ |= 0x00000002; port_ = input.readInt32(); break; } case 82: { org.apache.mesos.v1.Protos.DomainInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = domain_.toBuilder(); } domain_ = input.readMessage(org.apache.mesos.v1.Protos.DomainInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(domain_); domain_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { resources_ = java.util.Collections.unmodifiableList(resources_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.AgentInfo.class, org.apache.mesos.v1.Protos.AgentInfo.Builder.class); } public interface CapabilityOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.AgentInfo.Capability) com.google.protobuf.MessageOrBuilder { /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.AgentInfo.Capability.Type type = 1; */ boolean hasType(); /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.AgentInfo.Capability.Type type = 1; */ org.apache.mesos.v1.Protos.AgentInfo.Capability.Type getType(); } /** * Protobuf type {@code mesos.v1.AgentInfo.Capability} */ public static final class Capability extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.AgentInfo.Capability) CapabilityOrBuilder { private static final long serialVersionUID = 0L; // Use Capability.newBuilder() to construct. private Capability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Capability() { type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Capability( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.AgentInfo.Capability.Type value = org.apache.mesos.v1.Protos.AgentInfo.Capability.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_Capability_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_Capability_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.AgentInfo.Capability.class, org.apache.mesos.v1.Protos.AgentInfo.Capability.Builder.class); } /** * Protobuf enum {@code mesos.v1.AgentInfo.Capability.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** *
         * This must be the first enum value in this list, to
         * ensure that if 'type' is not set, the default value
         * is UNKNOWN. This enables enum values to be added
         * in a backwards-compatible way. See: MESOS-4997.
         * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
         * This expresses the ability for the agent to be able
         * to launch tasks of a 'multi-role' framework.
         * 
* * MULTI_ROLE = 1; */ MULTI_ROLE(1), /** *
         * This expresses the ability for the agent to be able to launch
         * tasks, reserve resources, and create volumes using resources
         * allocated to a 'hierarchical-role'.
         * NOTE: This capability is required specifically for creating
         * volumes because a hierchical role includes '/' (slashes) in them.
         * Agents with this capability know to transform the '/' (slashes)
         * into ' ' (spaces).
         * 
* * HIERARCHICAL_ROLE = 2; */ HIERARCHICAL_ROLE(2), /** *
         * This capability has three effects for an agent.
         * (1) The format of the checkpointed resources, and
         *     the resources reported to master.
         *     These resources are reported in the "pre-reservation-refinement"
         *     format if none of the resources have refined reservations. If any
         *     of the resources have refined reservations, they are reported in
         *     the "post-reservation-refinement" format. The purpose is to allow
         *     downgrading of an agent as well as communication with a pre-1.4.0
         *     master until the reservation refinement feature is actually used.
         *     See the 'Resource Format' section for more details.
         * (2) The format of the resources reported by the HTTP endpoints.
         *     For resources reported by agent endpoints, the
         *     "pre-reservation-refinement" format is "injected" if possible.
         *     That is, resources without refined reservations will have the
         *     `Resource.role` and `Resource.reservation` set, whereas
         *     resources with refined reservations will not.
         *     See the 'Resource Format' section for more details.
         * (3) The ability for the agent to launch tasks, reserve resources, and
         *     create volumes using resources that have refined reservations.
         *     See `ReservationInfo.reservations` section for more details.
         * NOTE: Resources are said to have refined reservations if it uses the
         * `Resource.reservations` field, and `Resource.reservations_size() > 1`.
         * 
* * RESERVATION_REFINEMENT = 3; */ RESERVATION_REFINEMENT(3), /** *
         * This expresses the ability for the agent to handle resource
         * provider related operations. This includes the following:
         * (1) The ability to report resources that are provided by some
         *     local resource providers through the resource provider API.
         * (2) The ability to provide operation feedback. This also means
         *     that this capability is a prerequisite for full support of
         *     feedback for operations on agent default resources. If an
         *     agent has the mandatory AGENT_OPERATION_FEEDBACK capability
         *     set but not the RESOURCE_PROVIDER capability, then
         *     operations on agent default resources which request feedback
         *     will not be allowed.
         * 
* * RESOURCE_PROVIDER = 4; */ RESOURCE_PROVIDER(4), /** *
         * This expresses the capability for the agent to handle persistent volume
         * resize operations safely. This capability is turned on by default.
         * 
* * RESIZE_VOLUME = 5; */ RESIZE_VOLUME(5), /** *
         * This expresses the ability of the agent to handle operation feedback
         * for operations on agent default resources.
         * Note that full support for this feature also requires the
         * RESOURCE_PROVIDER capability; if you would like the agent to
         * handle feedback for operations on agent default resources, the
         * RESOURCE_PROVIDER capability should be set as well.
         * 
* * AGENT_OPERATION_FEEDBACK = 6; */ AGENT_OPERATION_FEEDBACK(6), /** *
         * This expresses the ability for the agent to automatically drain tasks
         * in preparation for operator maintenance. This capability is required.
         * 
* * AGENT_DRAINING = 7; */ AGENT_DRAINING(7), ; /** *
         * This must be the first enum value in this list, to
         * ensure that if 'type' is not set, the default value
         * is UNKNOWN. This enables enum values to be added
         * in a backwards-compatible way. See: MESOS-4997.
         * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
         * This expresses the ability for the agent to be able
         * to launch tasks of a 'multi-role' framework.
         * 
* * MULTI_ROLE = 1; */ public static final int MULTI_ROLE_VALUE = 1; /** *
         * This expresses the ability for the agent to be able to launch
         * tasks, reserve resources, and create volumes using resources
         * allocated to a 'hierarchical-role'.
         * NOTE: This capability is required specifically for creating
         * volumes because a hierchical role includes '/' (slashes) in them.
         * Agents with this capability know to transform the '/' (slashes)
         * into ' ' (spaces).
         * 
* * HIERARCHICAL_ROLE = 2; */ public static final int HIERARCHICAL_ROLE_VALUE = 2; /** *
         * This capability has three effects for an agent.
         * (1) The format of the checkpointed resources, and
         *     the resources reported to master.
         *     These resources are reported in the "pre-reservation-refinement"
         *     format if none of the resources have refined reservations. If any
         *     of the resources have refined reservations, they are reported in
         *     the "post-reservation-refinement" format. The purpose is to allow
         *     downgrading of an agent as well as communication with a pre-1.4.0
         *     master until the reservation refinement feature is actually used.
         *     See the 'Resource Format' section for more details.
         * (2) The format of the resources reported by the HTTP endpoints.
         *     For resources reported by agent endpoints, the
         *     "pre-reservation-refinement" format is "injected" if possible.
         *     That is, resources without refined reservations will have the
         *     `Resource.role` and `Resource.reservation` set, whereas
         *     resources with refined reservations will not.
         *     See the 'Resource Format' section for more details.
         * (3) The ability for the agent to launch tasks, reserve resources, and
         *     create volumes using resources that have refined reservations.
         *     See `ReservationInfo.reservations` section for more details.
         * NOTE: Resources are said to have refined reservations if it uses the
         * `Resource.reservations` field, and `Resource.reservations_size() > 1`.
         * 
* * RESERVATION_REFINEMENT = 3; */ public static final int RESERVATION_REFINEMENT_VALUE = 3; /** *
         * This expresses the ability for the agent to handle resource
         * provider related operations. This includes the following:
         * (1) The ability to report resources that are provided by some
         *     local resource providers through the resource provider API.
         * (2) The ability to provide operation feedback. This also means
         *     that this capability is a prerequisite for full support of
         *     feedback for operations on agent default resources. If an
         *     agent has the mandatory AGENT_OPERATION_FEEDBACK capability
         *     set but not the RESOURCE_PROVIDER capability, then
         *     operations on agent default resources which request feedback
         *     will not be allowed.
         * 
* * RESOURCE_PROVIDER = 4; */ public static final int RESOURCE_PROVIDER_VALUE = 4; /** *
         * This expresses the capability for the agent to handle persistent volume
         * resize operations safely. This capability is turned on by default.
         * 
* * RESIZE_VOLUME = 5; */ public static final int RESIZE_VOLUME_VALUE = 5; /** *
         * This expresses the ability of the agent to handle operation feedback
         * for operations on agent default resources.
         * Note that full support for this feature also requires the
         * RESOURCE_PROVIDER capability; if you would like the agent to
         * handle feedback for operations on agent default resources, the
         * RESOURCE_PROVIDER capability should be set as well.
         * 
* * AGENT_OPERATION_FEEDBACK = 6; */ public static final int AGENT_OPERATION_FEEDBACK_VALUE = 6; /** *
         * This expresses the ability for the agent to automatically drain tasks
         * in preparation for operator maintenance. This capability is required.
         * 
* * AGENT_DRAINING = 7; */ public static final int AGENT_DRAINING_VALUE = 7; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return MULTI_ROLE; case 2: return HIERARCHICAL_ROLE; case 3: return RESERVATION_REFINEMENT; case 4: return RESOURCE_PROVIDER; case 5: return RESIZE_VOLUME; case 6: return AGENT_OPERATION_FEEDBACK; case 7: return AGENT_DRAINING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.AgentInfo.Capability.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.AgentInfo.Capability.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.AgentInfo.Capability.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.AgentInfo.Capability.Type type = 1; */ public org.apache.mesos.v1.Protos.AgentInfo.Capability.Type getType() { org.apache.mesos.v1.Protos.AgentInfo.Capability.Type result = org.apache.mesos.v1.Protos.AgentInfo.Capability.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.AgentInfo.Capability.Type.UNKNOWN : result; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.AgentInfo.Capability)) { return super.equals(obj); } org.apache.mesos.v1.Protos.AgentInfo.Capability other = (org.apache.mesos.v1.Protos.AgentInfo.Capability) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability 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.Protos.AgentInfo.Capability parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.AgentInfo.Capability prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.AgentInfo.Capability} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.AgentInfo.Capability) org.apache.mesos.v1.Protos.AgentInfo.CapabilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_Capability_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_Capability_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.AgentInfo.Capability.class, org.apache.mesos.v1.Protos.AgentInfo.Capability.Builder.class); } // Construct using org.apache.mesos.v1.Protos.AgentInfo.Capability.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_Capability_descriptor; } public org.apache.mesos.v1.Protos.AgentInfo.Capability getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.AgentInfo.Capability.getDefaultInstance(); } public org.apache.mesos.v1.Protos.AgentInfo.Capability build() { org.apache.mesos.v1.Protos.AgentInfo.Capability result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.AgentInfo.Capability buildPartial() { org.apache.mesos.v1.Protos.AgentInfo.Capability result = new org.apache.mesos.v1.Protos.AgentInfo.Capability(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.AgentInfo.Capability) { return mergeFrom((org.apache.mesos.v1.Protos.AgentInfo.Capability)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.AgentInfo.Capability other) { if (other == org.apache.mesos.v1.Protos.AgentInfo.Capability.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.AgentInfo.Capability parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.AgentInfo.Capability) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.AgentInfo.Capability.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.AgentInfo.Capability.Type type = 1; */ public org.apache.mesos.v1.Protos.AgentInfo.Capability.Type getType() { org.apache.mesos.v1.Protos.AgentInfo.Capability.Type result = org.apache.mesos.v1.Protos.AgentInfo.Capability.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.AgentInfo.Capability.Type.UNKNOWN : result; } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.AgentInfo.Capability.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.AgentInfo.Capability.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.AgentInfo.Capability.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.AgentInfo.Capability) } // @@protoc_insertion_point(class_scope:mesos.v1.AgentInfo.Capability) private static final org.apache.mesos.v1.Protos.AgentInfo.Capability DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.AgentInfo.Capability(); } public static org.apache.mesos.v1.Protos.AgentInfo.Capability getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Capability parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Capability(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.AgentInfo.Capability getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int HOSTNAME_FIELD_NUMBER = 1; private volatile java.lang.Object hostname_; /** * required string hostname = 1; */ public boolean hasHostname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string hostname = 1; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** * required string hostname = 1; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 8; private int port_; /** * optional int32 port = 8 [default = 5051]; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 port = 8 [default = 5051]; */ public int getPort() { return port_; } public static final int RESOURCES_FIELD_NUMBER = 3; private java.util.List resources_; /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesList() { return resources_; } /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ public int getResourcesCount() { return resources_.size(); } /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** *
     * The configured resources at the agent. This does not include any
     * dynamic reservations or persistent volumes that may currently
     * exist at the agent.
     * 
* * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int ATTRIBUTES_FIELD_NUMBER = 5; private java.util.List attributes_; /** * repeated .mesos.v1.Attribute attributes = 5; */ public java.util.List getAttributesList() { return attributes_; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public java.util.List getAttributesOrBuilderList() { return attributes_; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public int getAttributesCount() { return attributes_.size(); } /** * repeated .mesos.v1.Attribute attributes = 5; */ public org.apache.mesos.v1.Protos.Attribute getAttributes(int index) { return attributes_.get(index); } /** * repeated .mesos.v1.Attribute attributes = 5; */ public org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index) { return attributes_.get(index); } public static final int ID_FIELD_NUMBER = 6; private org.apache.mesos.v1.Protos.AgentID id_; /** * optional .mesos.v1.AgentID id = 6; */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.AgentID id = 6; */ public org.apache.mesos.v1.Protos.AgentID getId() { return id_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : id_; } /** * optional .mesos.v1.AgentID id = 6; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getIdOrBuilder() { return id_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : id_; } public static final int DOMAIN_FIELD_NUMBER = 10; private org.apache.mesos.v1.Protos.DomainInfo domain_; /** *
     * The domain that this agent belongs to. If the agent's region
     * differs from the master's region, it will not appear in resource
     * offers to frameworks that have not enabled the REGION_AWARE
     * capability.
     * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public boolean hasDomain() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * The domain that this agent belongs to. If the agent's region
     * differs from the master's region, it will not appear in resource
     * offers to frameworks that have not enabled the REGION_AWARE
     * capability.
     * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public org.apache.mesos.v1.Protos.DomainInfo getDomain() { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } /** *
     * The domain that this agent belongs to. If the agent's region
     * differs from the master's region, it will not appear in resource
     * offers to frameworks that have not enabled the REGION_AWARE
     * capability.
     * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder() { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasHostname()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getAttributesCount(); i++) { if (!getAttributes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasId()) { if (!getId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDomain()) { if (!getDomain().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(3, resources_.get(i)); } for (int i = 0; i < attributes_.size(); i++) { output.writeMessage(5, attributes_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(6, getId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(8, port_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(10, getDomain()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, resources_.get(i)); } for (int i = 0; i < attributes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, attributes_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, port_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getDomain()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.AgentInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.AgentInfo other = (org.apache.mesos.v1.Protos.AgentInfo) obj; boolean result = true; result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname() .equals(other.getHostname()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && getAttributesList() .equals(other.getAttributesList()); result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasDomain() == other.hasDomain()); if (hasDomain()) { result = result && getDomain() .equals(other.getDomain()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (getAttributesCount() > 0) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributesList().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasDomain()) { hash = (37 * hash) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.AgentInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentInfo 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.Protos.AgentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.AgentInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.AgentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.AgentInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.AgentInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes an agent. Note that the 'id' field is only available
     * after an agent is registered with the master, and is made available
     * here to facilitate re-registration.
     * 
* * Protobuf type {@code mesos.v1.AgentInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.AgentInfo) org.apache.mesos.v1.Protos.AgentInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.AgentInfo.class, org.apache.mesos.v1.Protos.AgentInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.AgentInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); getAttributesFieldBuilder(); getIdFieldBuilder(); getDomainFieldBuilder(); } } public Builder clear() { super.clear(); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000001); port_ = 5051; bitField0_ = (bitField0_ & ~0x00000002); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { resourcesBuilder_.clear(); } if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { attributesBuilder_.clear(); } if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (domainBuilder_ == null) { domain_ = null; } else { domainBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_AgentInfo_descriptor; } public org.apache.mesos.v1.Protos.AgentInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.AgentInfo build() { org.apache.mesos.v1.Protos.AgentInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.AgentInfo buildPartial() { org.apache.mesos.v1.Protos.AgentInfo result = new org.apache.mesos.v1.Protos.AgentInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.port_ = port_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000004); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (attributesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); bitField0_ = (bitField0_ & ~0x00000008); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } if (domainBuilder_ == null) { result.domain_ = domain_; } else { result.domain_ = domainBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.AgentInfo) { return mergeFrom((org.apache.mesos.v1.Protos.AgentInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.AgentInfo other) { if (other == org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance()) return this; if (other.hasHostname()) { bitField0_ |= 0x00000001; hostname_ = other.hostname_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (attributesBuilder_ == null) { if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } } else { if (!other.attributes_.isEmpty()) { if (attributesBuilder_.isEmpty()) { attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000008); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() : null; } else { attributesBuilder_.addAllMessages(other.attributes_); } } } if (other.hasId()) { mergeId(other.getId()); } if (other.hasDomain()) { mergeDomain(other.getDomain()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasHostname()) { return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } for (int i = 0; i < getAttributesCount(); i++) { if (!getAttributes(i).isInitialized()) { return false; } } if (hasId()) { if (!getId().isInitialized()) { return false; } } if (hasDomain()) { if (!getDomain().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.Protos.AgentInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.AgentInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object hostname_ = ""; /** * required string hostname = 1; */ public boolean hasHostname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string hostname = 1; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string hostname = 1; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string hostname = 1; */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; hostname_ = value; onChanged(); return this; } /** * required string hostname = 1; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000001); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** * required string hostname = 1; */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; hostname_ = value; onChanged(); return this; } private int port_ = 5051; /** * optional int32 port = 8 [default = 5051]; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 port = 8 [default = 5051]; */ public int getPort() { return port_; } /** * optional int32 port = 8 [default = 5051]; */ public Builder setPort(int value) { bitField0_ |= 0x00000002; port_ = value; onChanged(); return this; } /** * optional int32 port = 8 [default = 5051]; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); port_ = 5051; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * The configured resources at the agent. This does not include any
       * dynamic reservations or persistent volumes that may currently
       * exist at the agent.
       * 
* * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { attributes_ = new java.util.ArrayList(attributes_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder> attributesBuilder_; /** * repeated .mesos.v1.Attribute attributes = 5; */ public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); } else { return attributesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Attribute attributes = 5; */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); } else { return attributesBuilder_.getCount(); } } /** * repeated .mesos.v1.Attribute attributes = 5; */ public org.apache.mesos.v1.Protos.Attribute getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder setAttributes( int index, org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.set(index, value); onChanged(); } else { attributesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder setAttributes( int index, org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.set(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder addAttributes(org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(value); onChanged(); } else { attributesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder addAttributes( int index, org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(index, value); onChanged(); } else { attributesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder addAttributes( org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder addAttributes( int index, org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributes_); onChanged(); } else { attributesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { attributesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.remove(index); onChanged(); } else { attributesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Attribute attributes = 5; */ public org.apache.mesos.v1.Protos.Attribute.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Attribute attributes = 5; */ public org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Attribute attributes = 5; */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributes_); } } /** * repeated .mesos.v1.Attribute attributes = 5; */ public org.apache.mesos.v1.Protos.Attribute.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Attribute.getDefaultInstance()); } /** * repeated .mesos.v1.Attribute attributes = 5; */ public org.apache.mesos.v1.Protos.Attribute.Builder addAttributesBuilder( int index) { return getAttributesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Attribute.getDefaultInstance()); } /** * repeated .mesos.v1.Attribute attributes = 5; */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder>( attributes_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } private org.apache.mesos.v1.Protos.AgentID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> idBuilder_; /** * optional .mesos.v1.AgentID id = 6; */ public boolean hasId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.AgentID id = 6; */ public org.apache.mesos.v1.Protos.AgentID getId() { if (idBuilder_ == null) { return id_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * optional .mesos.v1.AgentID id = 6; */ public Builder setId(org.apache.mesos.v1.Protos.AgentID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.AgentID id = 6; */ public Builder setId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.AgentID id = 6; */ public Builder mergeId(org.apache.mesos.v1.Protos.AgentID value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && id_ != null && id_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { id_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.AgentID id = 6; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.AgentID id = 6; */ public org.apache.mesos.v1.Protos.AgentID.Builder getIdBuilder() { bitField0_ |= 0x00000010; onChanged(); return getIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.AgentID id = 6; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : id_; } } /** * optional .mesos.v1.AgentID id = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private org.apache.mesos.v1.Protos.DomainInfo domain_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder> domainBuilder_; /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public boolean hasDomain() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public org.apache.mesos.v1.Protos.DomainInfo getDomain() { if (domainBuilder_ == null) { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } else { return domainBuilder_.getMessage(); } } /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public Builder setDomain(org.apache.mesos.v1.Protos.DomainInfo value) { if (domainBuilder_ == null) { if (value == null) { throw new NullPointerException(); } domain_ = value; onChanged(); } else { domainBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public Builder setDomain( org.apache.mesos.v1.Protos.DomainInfo.Builder builderForValue) { if (domainBuilder_ == null) { domain_ = builderForValue.build(); onChanged(); } else { domainBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public Builder mergeDomain(org.apache.mesos.v1.Protos.DomainInfo value) { if (domainBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && domain_ != null && domain_ != org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance()) { domain_ = org.apache.mesos.v1.Protos.DomainInfo.newBuilder(domain_).mergeFrom(value).buildPartial(); } else { domain_ = value; } onChanged(); } else { domainBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public Builder clearDomain() { if (domainBuilder_ == null) { domain_ = null; onChanged(); } else { domainBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public org.apache.mesos.v1.Protos.DomainInfo.Builder getDomainBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDomainFieldBuilder().getBuilder(); } /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ public org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder() { if (domainBuilder_ != null) { return domainBuilder_.getMessageOrBuilder(); } else { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } } /** *
       * The domain that this agent belongs to. If the agent's region
       * differs from the master's region, it will not appear in resource
       * offers to frameworks that have not enabled the REGION_AWARE
       * capability.
       * 
* * optional .mesos.v1.DomainInfo domain = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder> getDomainFieldBuilder() { if (domainBuilder_ == null) { domainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder>( getDomain(), getParentForChildren(), isClean()); domain_ = null; } return domainBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.AgentInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.AgentInfo) private static final org.apache.mesos.v1.Protos.AgentInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.AgentInfo(); } public static org.apache.mesos.v1.Protos.AgentInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AgentInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AgentInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.AgentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSIPluginContainerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CSIPluginContainerInfo) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ java.util.List getServicesList(); /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ int getServicesCount(); /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service getServices(int index); /** * 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(); /** * repeated .mesos.v1.Resource resources = 3; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 3; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 3; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 3; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 3; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); /** * optional .mesos.v1.ContainerInfo container = 4; */ boolean hasContainer(); /** * optional .mesos.v1.ContainerInfo container = 4; */ org.apache.mesos.v1.Protos.ContainerInfo getContainer(); /** * optional .mesos.v1.ContainerInfo container = 4; */ org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder(); } /** *
   **
   * Describes the container configuration to run a CSI plugin component.
   * 
* * Protobuf type {@code mesos.v1.CSIPluginContainerInfo} */ public static final class CSIPluginContainerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CSIPluginContainerInfo) CSIPluginContainerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CSIPluginContainerInfo.newBuilder() to construct. private CSIPluginContainerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIPluginContainerInfo() { services_ = java.util.Collections.emptyList(); resources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIPluginContainerInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service value = org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { services_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } services_.add(rawValue); } break; } case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service value = org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { services_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } services_.add(rawValue); } } input.popLimit(oldLimit); break; } case 18: { org.apache.mesos.v1.Protos.CommandInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CommandInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 34: { org.apache.mesos.v1.Protos.ContainerInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = container_.toBuilder(); } container_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(container_); container_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { services_ = java.util.Collections.unmodifiableList(services_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginContainerInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginContainerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CSIPluginContainerInfo.class, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder.class); } /** * Protobuf enum {@code mesos.v1.CSIPluginContainerInfo.Service} */ public enum Service implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * CONTROLLER_SERVICE = 1; */ CONTROLLER_SERVICE(1), /** * NODE_SERVICE = 2; */ NODE_SERVICE(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * CONTROLLER_SERVICE = 1; */ public static final int CONTROLLER_SERVICE_VALUE = 1; /** * NODE_SERVICE = 2; */ public static final int NODE_SERVICE_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Service valueOf(int value) { return forNumber(value); } public static Service forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return CONTROLLER_SERVICE; case 2: return NODE_SERVICE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Service> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Service findValueByNumber(int number) { return Service.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.CSIPluginContainerInfo.getDescriptor().getEnumTypes().get(0); } private static final Service[] VALUES = values(); public static Service valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Service(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.CSIPluginContainerInfo.Service) } private int bitField0_; public static final int SERVICES_FIELD_NUMBER = 1; private java.util.List services_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service> services_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service>() { public org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service convert(java.lang.Integer from) { org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service result = org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service.valueOf(from); return result == null ? org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service.UNKNOWN : result; } }; /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public java.util.List getServicesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service>(services_, services_converter_); } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public int getServicesCount() { return services_.size(); } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service getServices(int index) { return services_converter_.convert(services_.get(index)); } 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_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } public static final int RESOURCES_FIELD_NUMBER = 3; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 3; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int CONTAINER_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.ContainerInfo container_; /** * optional .mesos.v1.ContainerInfo container = 4; */ public boolean hasContainer() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.ContainerInfo container = 4; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } /** * optional .mesos.v1.ContainerInfo container = 4; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasCommand()) { if (!getCommand().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).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 { for (int i = 0; i < services_.size(); i++) { output.writeEnum(1, services_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(2, getCommand()); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(3, resources_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(4, getContainer()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < services_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(services_.get(i)); } size += dataSize; size += 1 * services_.size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCommand()); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, resources_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContainer()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CSIPluginContainerInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CSIPluginContainerInfo other = (org.apache.mesos.v1.Protos.CSIPluginContainerInfo) obj; boolean result = true; result = result && services_.equals(other.services_); result = result && (hasCommand() == other.hasCommand()); if (hasCommand()) { result = result && getCommand() .equals(other.getCommand()); } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && (hasContainer() == other.hasContainer()); if (hasContainer()) { result = result && getContainer() .equals(other.getContainer()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getServicesCount() > 0) { hash = (37 * hash) + SERVICES_FIELD_NUMBER; hash = (53 * hash) + services_.hashCode(); } if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (hasContainer()) { hash = (37 * hash) + CONTAINER_FIELD_NUMBER; hash = (53 * hash) + getContainer().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo 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.Protos.CSIPluginContainerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CSIPluginContainerInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes the container configuration to run a CSI plugin component.
     * 
* * Protobuf type {@code mesos.v1.CSIPluginContainerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CSIPluginContainerInfo) org.apache.mesos.v1.Protos.CSIPluginContainerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginContainerInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginContainerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CSIPluginContainerInfo.class, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CSIPluginContainerInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommandFieldBuilder(); getResourcesFieldBuilder(); getContainerFieldBuilder(); } } public Builder clear() { super.clear(); services_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (commandBuilder_ == null) { command_ = null; } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { resourcesBuilder_.clear(); } if (containerBuilder_ == null) { container_ = null; } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginContainerInfo_descriptor; } public org.apache.mesos.v1.Protos.CSIPluginContainerInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CSIPluginContainerInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CSIPluginContainerInfo build() { org.apache.mesos.v1.Protos.CSIPluginContainerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CSIPluginContainerInfo buildPartial() { org.apache.mesos.v1.Protos.CSIPluginContainerInfo result = new org.apache.mesos.v1.Protos.CSIPluginContainerInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { services_ = java.util.Collections.unmodifiableList(services_); bitField0_ = (bitField0_ & ~0x00000001); } result.services_ = services_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000004); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } if (containerBuilder_ == null) { result.container_ = container_; } else { result.container_ = containerBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CSIPluginContainerInfo) { return mergeFrom((org.apache.mesos.v1.Protos.CSIPluginContainerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CSIPluginContainerInfo other) { if (other == org.apache.mesos.v1.Protos.CSIPluginContainerInfo.getDefaultInstance()) return this; if (!other.services_.isEmpty()) { if (services_.isEmpty()) { services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureServicesIsMutable(); services_.addAll(other.services_); } onChanged(); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (other.hasContainer()) { mergeContainer(other.getContainer()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasCommand()) { if (!getCommand().isInitialized()) { return false; } } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).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.Protos.CSIPluginContainerInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CSIPluginContainerInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List services_ = java.util.Collections.emptyList(); private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { services_ = new java.util.ArrayList(services_); bitField0_ |= 0x00000001; } } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public java.util.List getServicesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service>(services_, services_converter_); } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public int getServicesCount() { return services_.size(); } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service getServices(int index) { return services_converter_.convert(services_.get(index)); } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public Builder setServices( int index, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service value) { if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public Builder addServices(org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service value) { if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.add(value.getNumber()); onChanged(); return this; } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public Builder addAllServices( java.lang.Iterable values) { ensureServicesIsMutable(); for (org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Service value : values) { services_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .mesos.v1.CSIPluginContainerInfo.Service services = 1; */ public Builder clearServices() { services_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private org.apache.mesos.v1.Protos.CommandInfo command_ = null; private com.google.protobuf.SingleFieldBuilderV3< 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_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : 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_ != null && 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_ = null; 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_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } } /** * optional .mesos.v1.CommandInfo command = 2; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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 java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 3; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private org.apache.mesos.v1.Protos.ContainerInfo container_ = null; private com.google.protobuf.SingleFieldBuilderV3< 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 = 4; */ public boolean hasContainer() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.ContainerInfo container = 4; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { if (containerBuilder_ == null) { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } else { return containerBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerInfo container = 4; */ 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_ |= 0x00000008; return this; } /** * optional .mesos.v1.ContainerInfo container = 4; */ public Builder setContainer( org.apache.mesos.v1.Protos.ContainerInfo.Builder builderForValue) { if (containerBuilder_ == null) { container_ = builderForValue.build(); onChanged(); } else { containerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.ContainerInfo container = 4; */ public Builder mergeContainer(org.apache.mesos.v1.Protos.ContainerInfo value) { if (containerBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && container_ != null && 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_ |= 0x00000008; return this; } /** * optional .mesos.v1.ContainerInfo container = 4; */ public Builder clearContainer() { if (containerBuilder_ == null) { container_ = null; onChanged(); } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.ContainerInfo container = 4; */ public org.apache.mesos.v1.Protos.ContainerInfo.Builder getContainerBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerInfo container = 4; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } } /** * optional .mesos.v1.ContainerInfo container = 4; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CSIPluginContainerInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.CSIPluginContainerInfo) private static final org.apache.mesos.v1.Protos.CSIPluginContainerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CSIPluginContainerInfo(); } public static org.apache.mesos.v1.Protos.CSIPluginContainerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CSIPluginContainerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIPluginContainerInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CSIPluginContainerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSIPluginInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CSIPluginInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The type of the CSI plugin. This uniquely identifies a CSI
     * implementation. For instance:
     *     org.apache.mesos.csi.test
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 1; */ boolean hasType(); /** *
     * The type of the CSI plugin. This uniquely identifies a CSI
     * implementation. For instance:
     *     org.apache.mesos.csi.test
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 1; */ java.lang.String getType(); /** *
     * The type of the CSI plugin. This uniquely identifies a CSI
     * implementation. For instance:
     *     org.apache.mesos.csi.test
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** *
     * The name of the CSI plugin. There could be multiple instances of a
     * type of CSI plugin within a Mesos cluster. The name field is used to
     * distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * The type and name together provide the means to uniquely identify a storage
     * backend and its resources in the cluster, so the operator should ensure
     * that the concatenation of type and name is unique in the cluster, and it
     * remains the same if the instance is migrated to another agent (e.g., there
     * is a change in the agent ID).
     * 
* * required string name = 2; */ boolean hasName(); /** *
     * The name of the CSI plugin. There could be multiple instances of a
     * type of CSI plugin within a Mesos cluster. The name field is used to
     * distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * The type and name together provide the means to uniquely identify a storage
     * backend and its resources in the cluster, so the operator should ensure
     * that the concatenation of type and name is unique in the cluster, and it
     * remains the same if the instance is migrated to another agent (e.g., there
     * is a change in the agent ID).
     * 
* * required string name = 2; */ java.lang.String getName(); /** *
     * The name of the CSI plugin. There could be multiple instances of a
     * type of CSI plugin within a Mesos cluster. The name field is used to
     * distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * The type and name together provide the means to uniquely identify a storage
     * backend and its resources in the cluster, so the operator should ensure
     * that the concatenation of type and name is unique in the cluster, and it
     * remains the same if the instance is migrated to another agent (e.g., there
     * is a change in the agent ID).
     * 
* * required string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ java.util.List getContainersList(); /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ org.apache.mesos.v1.Protos.CSIPluginContainerInfo getContainers(int index); /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ int getContainersCount(); /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ java.util.List getContainersOrBuilderList(); /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ org.apache.mesos.v1.Protos.CSIPluginContainerInfoOrBuilder getContainersOrBuilder( int index); } /** *
   **
   * Describes a CSI plugin.
   * 
* * Protobuf type {@code mesos.v1.CSIPluginInfo} */ public static final class CSIPluginInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CSIPluginInfo) CSIPluginInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CSIPluginInfo.newBuilder() to construct. private CSIPluginInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIPluginInfo() { type_ = ""; name_ = ""; containers_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIPluginInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { containers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } containers_.add( input.readMessage(org.apache.mesos.v1.Protos.CSIPluginContainerInfo.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 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.Protos.internal_static_mesos_v1_CSIPluginInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CSIPluginInfo.class, org.apache.mesos.v1.Protos.CSIPluginInfo.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** *
     * The type of the CSI plugin. This uniquely identifies a CSI
     * implementation. For instance:
     *     org.apache.mesos.csi.test
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * The type of the CSI plugin. This uniquely identifies a CSI
     * implementation. For instance:
     *     org.apache.mesos.csi.test
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** *
     * The type of the CSI plugin. This uniquely identifies a CSI
     * implementation. For instance:
     *     org.apache.mesos.csi.test
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * The name of the CSI plugin. There could be multiple instances of a
     * type of CSI plugin within a Mesos cluster. The name field is used to
     * distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * The type and name together provide the means to uniquely identify a storage
     * backend and its resources in the cluster, so the operator should ensure
     * that the concatenation of type and name is unique in the cluster, and it
     * remains the same if the instance is migrated to another agent (e.g., there
     * is a change in the agent ID).
     * 
* * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * The name of the CSI plugin. There could be multiple instances of a
     * type of CSI plugin within a Mesos cluster. The name field is used to
     * distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * The type and name together provide the means to uniquely identify a storage
     * backend and its resources in the cluster, so the operator should ensure
     * that the concatenation of type and name is unique in the cluster, and it
     * remains the same if the instance is migrated to another agent (e.g., there
     * is a change in the agent ID).
     * 
* * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
     * The name of the CSI plugin. There could be multiple instances of a
     * type of CSI plugin within a Mesos cluster. The name field is used to
     * distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * The type and name together provide the means to uniquely identify a storage
     * backend and its resources in the cluster, so the operator should ensure
     * that the concatenation of type and name is unique in the cluster, and it
     * remains the same if the instance is migrated to another agent (e.g., there
     * is a change in the agent ID).
     * 
* * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTAINERS_FIELD_NUMBER = 3; private java.util.List containers_; /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public java.util.List getContainersList() { return containers_; } /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public java.util.List getContainersOrBuilderList() { return containers_; } /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public int getContainersCount() { return containers_.size(); } /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfo getContainers(int index) { return containers_.get(index); } /** *
     * A list of container configurations to run CSI plugin components.
     * The controller service will be served by the first configuration
     * that contains `CONTROLLER_SERVICE`, and the node service will be
     * served by the first configuration that contains `NODE_SERVICE`.
     * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfoOrBuilder getContainersOrBuilder( int index) { return containers_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasName()) { memoizedIsInitialized = 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } for (int i = 0; i < containers_.size(); i++) { output.writeMessage(3, containers_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } for (int i = 0; i < containers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, containers_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CSIPluginInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CSIPluginInfo other = (org.apache.mesos.v1.Protos.CSIPluginInfo) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType() .equals(other.getType()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && getContainersList() .equals(other.getContainersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (getContainersCount() > 0) { hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; hash = (53 * hash) + getContainersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CSIPluginInfo 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.Protos.CSIPluginInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CSIPluginInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CSIPluginInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a CSI plugin.
     * 
* * Protobuf type {@code mesos.v1.CSIPluginInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CSIPluginInfo) org.apache.mesos.v1.Protos.CSIPluginInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CSIPluginInfo.class, org.apache.mesos.v1.Protos.CSIPluginInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CSIPluginInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getContainersFieldBuilder(); } } public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (containersBuilder_ == null) { containers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { containersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CSIPluginInfo_descriptor; } public org.apache.mesos.v1.Protos.CSIPluginInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CSIPluginInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CSIPluginInfo build() { org.apache.mesos.v1.Protos.CSIPluginInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CSIPluginInfo buildPartial() { org.apache.mesos.v1.Protos.CSIPluginInfo result = new org.apache.mesos.v1.Protos.CSIPluginInfo(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.name_ = name_; if (containersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { containers_ = java.util.Collections.unmodifiableList(containers_); bitField0_ = (bitField0_ & ~0x00000004); } result.containers_ = containers_; } else { result.containers_ = containersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CSIPluginInfo) { return mergeFrom((org.apache.mesos.v1.Protos.CSIPluginInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CSIPluginInfo other) { if (other == org.apache.mesos.v1.Protos.CSIPluginInfo.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (containersBuilder_ == null) { if (!other.containers_.isEmpty()) { if (containers_.isEmpty()) { containers_ = other.containers_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureContainersIsMutable(); containers_.addAll(other.containers_); } onChanged(); } } else { if (!other.containers_.isEmpty()) { if (containersBuilder_.isEmpty()) { containersBuilder_.dispose(); containersBuilder_ = null; containers_ = other.containers_; bitField0_ = (bitField0_ & ~0x00000004); containersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getContainersFieldBuilder() : null; } else { containersBuilder_.addAllMessages(other.containers_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (!hasName()) { return false; } 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.Protos.CSIPluginInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CSIPluginInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** *
       * The type of the CSI plugin. This uniquely identifies a CSI
       * implementation. For instance:
       *     org.apache.mesos.csi.test
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The type of the CSI plugin. This uniquely identifies a CSI
       * implementation. For instance:
       *     org.apache.mesos.csi.test
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The type of the CSI plugin. This uniquely identifies a CSI
       * implementation. For instance:
       *     org.apache.mesos.csi.test
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The type of the CSI plugin. This uniquely identifies a CSI
       * implementation. For instance:
       *     org.apache.mesos.csi.test
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 1; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** *
       * The type of the CSI plugin. This uniquely identifies a CSI
       * implementation. For instance:
       *     org.apache.mesos.csi.test
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * The type of the CSI plugin. This uniquely identifies a CSI
       * implementation. For instance:
       *     org.apache.mesos.csi.test
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 1; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * The name of the CSI plugin. There could be multiple instances of a
       * type of CSI plugin within a Mesos cluster. The name field is used to
       * distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * The type and name together provide the means to uniquely identify a storage
       * backend and its resources in the cluster, so the operator should ensure
       * that the concatenation of type and name is unique in the cluster, and it
       * remains the same if the instance is migrated to another agent (e.g., there
       * is a change in the agent ID).
       * 
* * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * The name of the CSI plugin. There could be multiple instances of a
       * type of CSI plugin within a Mesos cluster. The name field is used to
       * distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * The type and name together provide the means to uniquely identify a storage
       * backend and its resources in the cluster, so the operator should ensure
       * that the concatenation of type and name is unique in the cluster, and it
       * remains the same if the instance is migrated to another agent (e.g., there
       * is a change in the agent ID).
       * 
* * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the CSI plugin. There could be multiple instances of a
       * type of CSI plugin within a Mesos cluster. The name field is used to
       * distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * The type and name together provide the means to uniquely identify a storage
       * backend and its resources in the cluster, so the operator should ensure
       * that the concatenation of type and name is unique in the cluster, and it
       * remains the same if the instance is migrated to another agent (e.g., there
       * is a change in the agent ID).
       * 
* * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the CSI plugin. There could be multiple instances of a
       * type of CSI plugin within a Mesos cluster. The name field is used to
       * distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * The type and name together provide the means to uniquely identify a storage
       * backend and its resources in the cluster, so the operator should ensure
       * that the concatenation of type and name is unique in the cluster, and it
       * remains the same if the instance is migrated to another agent (e.g., there
       * is a change in the agent ID).
       * 
* * required string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** *
       * The name of the CSI plugin. There could be multiple instances of a
       * type of CSI plugin within a Mesos cluster. The name field is used to
       * distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * The type and name together provide the means to uniquely identify a storage
       * backend and its resources in the cluster, so the operator should ensure
       * that the concatenation of type and name is unique in the cluster, and it
       * remains the same if the instance is migrated to another agent (e.g., there
       * is a change in the agent ID).
       * 
* * required string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * The name of the CSI plugin. There could be multiple instances of a
       * type of CSI plugin within a Mesos cluster. The name field is used to
       * distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * The type and name together provide the means to uniquely identify a storage
       * backend and its resources in the cluster, so the operator should ensure
       * that the concatenation of type and name is unique in the cluster, and it
       * remains the same if the instance is migrated to another agent (e.g., there
       * is a change in the agent ID).
       * 
* * required string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.util.List containers_ = java.util.Collections.emptyList(); private void ensureContainersIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { containers_ = new java.util.ArrayList(containers_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CSIPluginContainerInfo, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder, org.apache.mesos.v1.Protos.CSIPluginContainerInfoOrBuilder> containersBuilder_; /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public java.util.List getContainersList() { if (containersBuilder_ == null) { return java.util.Collections.unmodifiableList(containers_); } else { return containersBuilder_.getMessageList(); } } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public int getContainersCount() { if (containersBuilder_ == null) { return containers_.size(); } else { return containersBuilder_.getCount(); } } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfo getContainers(int index) { if (containersBuilder_ == null) { return containers_.get(index); } else { return containersBuilder_.getMessage(index); } } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public Builder setContainers( int index, org.apache.mesos.v1.Protos.CSIPluginContainerInfo value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.set(index, value); onChanged(); } else { containersBuilder_.setMessage(index, value); } return this; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public Builder setContainers( int index, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.set(index, builderForValue.build()); onChanged(); } else { containersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public Builder addContainers(org.apache.mesos.v1.Protos.CSIPluginContainerInfo value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.add(value); onChanged(); } else { containersBuilder_.addMessage(value); } return this; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public Builder addContainers( int index, org.apache.mesos.v1.Protos.CSIPluginContainerInfo value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.add(index, value); onChanged(); } else { containersBuilder_.addMessage(index, value); } return this; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public Builder addContainers( org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.add(builderForValue.build()); onChanged(); } else { containersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public Builder addContainers( int index, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.add(index, builderForValue.build()); onChanged(); } else { containersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ 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; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public Builder clearContainers() { if (containersBuilder_ == null) { containers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { containersBuilder_.clear(); } return this; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public Builder removeContainers(int index) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.remove(index); onChanged(); } else { containersBuilder_.remove(index); } return this; } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder getContainersBuilder( int index) { return getContainersFieldBuilder().getBuilder(index); } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfoOrBuilder getContainersOrBuilder( int index) { if (containersBuilder_ == null) { return containers_.get(index); } else { return containersBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public java.util.List getContainersOrBuilderList() { if (containersBuilder_ != null) { return containersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containers_); } } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder addContainersBuilder() { return getContainersFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CSIPluginContainerInfo.getDefaultInstance()); } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder addContainersBuilder( int index) { return getContainersFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.getDefaultInstance()); } /** *
       * A list of container configurations to run CSI plugin components.
       * The controller service will be served by the first configuration
       * that contains `CONTROLLER_SERVICE`, and the node service will be
       * served by the first configuration that contains `NODE_SERVICE`.
       * 
* * repeated .mesos.v1.CSIPluginContainerInfo containers = 3; */ public java.util.List getContainersBuilderList() { return getContainersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CSIPluginContainerInfo, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder, org.apache.mesos.v1.Protos.CSIPluginContainerInfoOrBuilder> getContainersFieldBuilder() { if (containersBuilder_ == null) { containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CSIPluginContainerInfo, org.apache.mesos.v1.Protos.CSIPluginContainerInfo.Builder, org.apache.mesos.v1.Protos.CSIPluginContainerInfoOrBuilder>( containers_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); containers_ = null; } return containersBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CSIPluginInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.CSIPluginInfo) private static final org.apache.mesos.v1.Protos.CSIPluginInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CSIPluginInfo(); } public static org.apache.mesos.v1.Protos.CSIPluginInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CSIPluginInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIPluginInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CSIPluginInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceProviderInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ResourceProviderInfo) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.ResourceProviderID id = 1; */ boolean hasId(); /** * optional .mesos.v1.ResourceProviderID id = 1; */ org.apache.mesos.v1.Protos.ResourceProviderID getId(); /** * optional .mesos.v1.ResourceProviderID id = 1; */ org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getIdOrBuilder(); /** * repeated .mesos.v1.Attribute attributes = 2; */ java.util.List getAttributesList(); /** * repeated .mesos.v1.Attribute attributes = 2; */ org.apache.mesos.v1.Protos.Attribute getAttributes(int index); /** * repeated .mesos.v1.Attribute attributes = 2; */ int getAttributesCount(); /** * repeated .mesos.v1.Attribute attributes = 2; */ java.util.List getAttributesOrBuilderList(); /** * repeated .mesos.v1.Attribute attributes = 2; */ org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index); /** *
     * The type of the resource provider. This uniquely identifies a
     * resource provider implementation. For instance:
     *     org.apache.mesos.rp.local.storage
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 3; */ boolean hasType(); /** *
     * The type of the resource provider. This uniquely identifies a
     * resource provider implementation. For instance:
     *     org.apache.mesos.rp.local.storage
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 3; */ java.lang.String getType(); /** *
     * The type of the resource provider. This uniquely identifies a
     * resource provider implementation. For instance:
     *     org.apache.mesos.rp.local.storage
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 3; */ com.google.protobuf.ByteString getTypeBytes(); /** *
     * The name of the resource provider. There could be multiple
     * instances of a type of resource provider. The name field is used
     * to distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * 
* * required string name = 4; */ boolean hasName(); /** *
     * The name of the resource provider. There could be multiple
     * instances of a type of resource provider. The name field is used
     * to distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * 
* * required string name = 4; */ java.lang.String getName(); /** *
     * The name of the resource provider. There could be multiple
     * instances of a type of resource provider. The name field is used
     * to distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * 
* * required string name = 4; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ java.util.List getDefaultReservationsList(); /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ org.apache.mesos.v1.Protos.Resource.ReservationInfo getDefaultReservations(int index); /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ int getDefaultReservationsCount(); /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ java.util.List getDefaultReservationsOrBuilderList(); /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getDefaultReservationsOrBuilder( int index); /** *
     * EXPERIMENTAL.
     * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ boolean hasStorage(); /** *
     * EXPERIMENTAL.
     * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage getStorage(); /** *
     * EXPERIMENTAL.
     * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ org.apache.mesos.v1.Protos.ResourceProviderInfo.StorageOrBuilder getStorageOrBuilder(); } /** *
   **
   * Describes a resource provider. Note that the 'id' field is only available
   * after a resource provider is registered with the master, and is made
   * available here to facilitate re-registration.
   * 
* * Protobuf type {@code mesos.v1.ResourceProviderInfo} */ public static final class ResourceProviderInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ResourceProviderInfo) ResourceProviderInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceProviderInfo.newBuilder() to construct. private ResourceProviderInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceProviderInfo() { attributes_ = java.util.Collections.emptyList(); type_ = ""; name_ = ""; defaultReservations_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceProviderInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.ResourceProviderID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.apache.mesos.v1.Protos.ResourceProviderID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attributes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } attributes_.add( input.readMessage(org.apache.mesos.v1.Protos.Attribute.PARSER, extensionRegistry)); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; type_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; name_ = bs; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { defaultReservations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } defaultReservations_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.ReservationInfo.PARSER, extensionRegistry)); break; } case 50: { org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = storage_.toBuilder(); } storage_ = input.readMessage(org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(storage_); storage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { defaultReservations_ = java.util.Collections.unmodifiableList(defaultReservations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceProviderInfo.class, org.apache.mesos.v1.Protos.ResourceProviderInfo.Builder.class); } public interface StorageOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ResourceProviderInfo.Storage) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ boolean hasPlugin(); /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ org.apache.mesos.v1.Protos.CSIPluginInfo getPlugin(); /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ org.apache.mesos.v1.Protos.CSIPluginInfoOrBuilder getPluginOrBuilder(); /** *
       * Amount of time to wait after the resource provider finishes reconciling
       * existing volumes and storage pools against the CSI plugin to start the
       * next reconciliation. A non-positive value means that no reconciliation
       * will happen after startup.
       * 
* * optional double reconciliation_interval_seconds = 2; */ boolean hasReconciliationIntervalSeconds(); /** *
       * Amount of time to wait after the resource provider finishes reconciling
       * existing volumes and storage pools against the CSI plugin to start the
       * next reconciliation. A non-positive value means that no reconciliation
       * will happen after startup.
       * 
* * optional double reconciliation_interval_seconds = 2; */ double getReconciliationIntervalSeconds(); } /** *
     * Storage resource provider related information.
     * 
* * Protobuf type {@code mesos.v1.ResourceProviderInfo.Storage} */ public static final class Storage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ResourceProviderInfo.Storage) StorageOrBuilder { private static final long serialVersionUID = 0L; // Use Storage.newBuilder() to construct. private Storage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Storage() { reconciliationIntervalSeconds_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Storage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.CSIPluginInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = plugin_.toBuilder(); } plugin_ = input.readMessage(org.apache.mesos.v1.Protos.CSIPluginInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(plugin_); plugin_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 17: { bitField0_ |= 0x00000002; reconciliationIntervalSeconds_ = input.readDouble(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_Storage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_Storage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.class, org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.Builder.class); } private int bitField0_; public static final int PLUGIN_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.CSIPluginInfo plugin_; /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public boolean hasPlugin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public org.apache.mesos.v1.Protos.CSIPluginInfo getPlugin() { return plugin_ == null ? org.apache.mesos.v1.Protos.CSIPluginInfo.getDefaultInstance() : plugin_; } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public org.apache.mesos.v1.Protos.CSIPluginInfoOrBuilder getPluginOrBuilder() { return plugin_ == null ? org.apache.mesos.v1.Protos.CSIPluginInfo.getDefaultInstance() : plugin_; } public static final int RECONCILIATION_INTERVAL_SECONDS_FIELD_NUMBER = 2; private double reconciliationIntervalSeconds_; /** *
       * Amount of time to wait after the resource provider finishes reconciling
       * existing volumes and storage pools against the CSI plugin to start the
       * next reconciliation. A non-positive value means that no reconciliation
       * will happen after startup.
       * 
* * optional double reconciliation_interval_seconds = 2; */ public boolean hasReconciliationIntervalSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Amount of time to wait after the resource provider finishes reconciling
       * existing volumes and storage pools against the CSI plugin to start the
       * next reconciliation. A non-positive value means that no reconciliation
       * will happen after startup.
       * 
* * optional double reconciliation_interval_seconds = 2; */ public double getReconciliationIntervalSeconds() { return reconciliationIntervalSeconds_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPlugin()) { memoizedIsInitialized = 0; return false; } if (!getPlugin().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPlugin()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeDouble(2, reconciliationIntervalSeconds_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPlugin()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, reconciliationIntervalSeconds_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage other = (org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage) obj; boolean result = true; result = result && (hasPlugin() == other.hasPlugin()); if (hasPlugin()) { result = result && getPlugin() .equals(other.getPlugin()); } result = result && (hasReconciliationIntervalSeconds() == other.hasReconciliationIntervalSeconds()); if (hasReconciliationIntervalSeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getReconciliationIntervalSeconds()) == java.lang.Double.doubleToLongBits( other.getReconciliationIntervalSeconds())); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPlugin()) { hash = (37 * hash) + PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getPlugin().hashCode(); } if (hasReconciliationIntervalSeconds()) { hash = (37 * hash) + RECONCILIATION_INTERVAL_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getReconciliationIntervalSeconds())); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage 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.Protos.ResourceProviderInfo.Storage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Storage resource provider related information.
       * 
* * Protobuf type {@code mesos.v1.ResourceProviderInfo.Storage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ResourceProviderInfo.Storage) org.apache.mesos.v1.Protos.ResourceProviderInfo.StorageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_Storage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_Storage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.class, org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPluginFieldBuilder(); } } public Builder clear() { super.clear(); if (pluginBuilder_ == null) { plugin_ = null; } else { pluginBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); reconciliationIntervalSeconds_ = 0D; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_Storage_descriptor; } public org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage build() { org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage buildPartial() { org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage result = new org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (pluginBuilder_ == null) { result.plugin_ = plugin_; } else { result.plugin_ = pluginBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.reconciliationIntervalSeconds_ = reconciliationIntervalSeconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage) { return mergeFrom((org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage other) { if (other == org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.getDefaultInstance()) return this; if (other.hasPlugin()) { mergePlugin(other.getPlugin()); } if (other.hasReconciliationIntervalSeconds()) { setReconciliationIntervalSeconds(other.getReconciliationIntervalSeconds()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPlugin()) { return false; } if (!getPlugin().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.Protos.ResourceProviderInfo.Storage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.CSIPluginInfo plugin_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CSIPluginInfo, org.apache.mesos.v1.Protos.CSIPluginInfo.Builder, org.apache.mesos.v1.Protos.CSIPluginInfoOrBuilder> pluginBuilder_; /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public boolean hasPlugin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public org.apache.mesos.v1.Protos.CSIPluginInfo getPlugin() { if (pluginBuilder_ == null) { return plugin_ == null ? org.apache.mesos.v1.Protos.CSIPluginInfo.getDefaultInstance() : plugin_; } else { return pluginBuilder_.getMessage(); } } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public Builder setPlugin(org.apache.mesos.v1.Protos.CSIPluginInfo value) { if (pluginBuilder_ == null) { if (value == null) { throw new NullPointerException(); } plugin_ = value; onChanged(); } else { pluginBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public Builder setPlugin( org.apache.mesos.v1.Protos.CSIPluginInfo.Builder builderForValue) { if (pluginBuilder_ == null) { plugin_ = builderForValue.build(); onChanged(); } else { pluginBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public Builder mergePlugin(org.apache.mesos.v1.Protos.CSIPluginInfo value) { if (pluginBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && plugin_ != null && plugin_ != org.apache.mesos.v1.Protos.CSIPluginInfo.getDefaultInstance()) { plugin_ = org.apache.mesos.v1.Protos.CSIPluginInfo.newBuilder(plugin_).mergeFrom(value).buildPartial(); } else { plugin_ = value; } onChanged(); } else { pluginBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public Builder clearPlugin() { if (pluginBuilder_ == null) { plugin_ = null; onChanged(); } else { pluginBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public org.apache.mesos.v1.Protos.CSIPluginInfo.Builder getPluginBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPluginFieldBuilder().getBuilder(); } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ public org.apache.mesos.v1.Protos.CSIPluginInfoOrBuilder getPluginOrBuilder() { if (pluginBuilder_ != null) { return pluginBuilder_.getMessageOrBuilder(); } else { return plugin_ == null ? org.apache.mesos.v1.Protos.CSIPluginInfo.getDefaultInstance() : plugin_; } } /** * required .mesos.v1.CSIPluginInfo plugin = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CSIPluginInfo, org.apache.mesos.v1.Protos.CSIPluginInfo.Builder, org.apache.mesos.v1.Protos.CSIPluginInfoOrBuilder> getPluginFieldBuilder() { if (pluginBuilder_ == null) { pluginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CSIPluginInfo, org.apache.mesos.v1.Protos.CSIPluginInfo.Builder, org.apache.mesos.v1.Protos.CSIPluginInfoOrBuilder>( getPlugin(), getParentForChildren(), isClean()); plugin_ = null; } return pluginBuilder_; } private double reconciliationIntervalSeconds_ ; /** *
         * Amount of time to wait after the resource provider finishes reconciling
         * existing volumes and storage pools against the CSI plugin to start the
         * next reconciliation. A non-positive value means that no reconciliation
         * will happen after startup.
         * 
* * optional double reconciliation_interval_seconds = 2; */ public boolean hasReconciliationIntervalSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Amount of time to wait after the resource provider finishes reconciling
         * existing volumes and storage pools against the CSI plugin to start the
         * next reconciliation. A non-positive value means that no reconciliation
         * will happen after startup.
         * 
* * optional double reconciliation_interval_seconds = 2; */ public double getReconciliationIntervalSeconds() { return reconciliationIntervalSeconds_; } /** *
         * Amount of time to wait after the resource provider finishes reconciling
         * existing volumes and storage pools against the CSI plugin to start the
         * next reconciliation. A non-positive value means that no reconciliation
         * will happen after startup.
         * 
* * optional double reconciliation_interval_seconds = 2; */ public Builder setReconciliationIntervalSeconds(double value) { bitField0_ |= 0x00000002; reconciliationIntervalSeconds_ = value; onChanged(); return this; } /** *
         * Amount of time to wait after the resource provider finishes reconciling
         * existing volumes and storage pools against the CSI plugin to start the
         * next reconciliation. A non-positive value means that no reconciliation
         * will happen after startup.
         * 
* * optional double reconciliation_interval_seconds = 2; */ public Builder clearReconciliationIntervalSeconds() { bitField0_ = (bitField0_ & ~0x00000002); reconciliationIntervalSeconds_ = 0D; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ResourceProviderInfo.Storage) } // @@protoc_insertion_point(class_scope:mesos.v1.ResourceProviderInfo.Storage) private static final org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage(); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Storage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Storage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ResourceProviderID id_; /** * optional .mesos.v1.ResourceProviderID id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public org.apache.mesos.v1.Protos.ResourceProviderID getId() { return id_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : id_; } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getIdOrBuilder() { return id_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : id_; } public static final int ATTRIBUTES_FIELD_NUMBER = 2; private java.util.List attributes_; /** * repeated .mesos.v1.Attribute attributes = 2; */ public java.util.List getAttributesList() { return attributes_; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public java.util.List getAttributesOrBuilderList() { return attributes_; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public int getAttributesCount() { return attributes_.size(); } /** * repeated .mesos.v1.Attribute attributes = 2; */ public org.apache.mesos.v1.Protos.Attribute getAttributes(int index) { return attributes_.get(index); } /** * repeated .mesos.v1.Attribute attributes = 2; */ public org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index) { return attributes_.get(index); } public static final int TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object type_; /** *
     * The type of the resource provider. This uniquely identifies a
     * resource provider implementation. For instance:
     *     org.apache.mesos.rp.local.storage
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * The type of the resource provider. This uniquely identifies a
     * resource provider implementation. For instance:
     *     org.apache.mesos.rp.local.storage
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 3; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** *
     * The type of the resource provider. This uniquely identifies a
     * resource provider implementation. For instance:
     *     org.apache.mesos.rp.local.storage
     * Please follow to Java package naming convention
     * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
     * to avoid conflicts on type names.
     * 
* * required string type = 3; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * The name of the resource provider. There could be multiple
     * instances of a type of resource provider. The name field is used
     * to distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * 
* * required string name = 4; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * The name of the resource provider. There could be multiple
     * instances of a type of resource provider. The name field is used
     * to distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * 
* * required string name = 4; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
     * The name of the resource provider. There could be multiple
     * instances of a type of resource provider. The name field is used
     * to distinguish these instances. It should be a legal Java identifier
     * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
     * to avoid conflicts on concatenation of type and name.
     * 
* * required string name = 4; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_RESERVATIONS_FIELD_NUMBER = 5; private java.util.List defaultReservations_; /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public java.util.List getDefaultReservationsList() { return defaultReservations_; } /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public java.util.List getDefaultReservationsOrBuilderList() { return defaultReservations_; } /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public int getDefaultReservationsCount() { return defaultReservations_.size(); } /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo getDefaultReservations(int index) { return defaultReservations_.get(index); } /** *
     * The stack of default reservations. If this field is not empty, it
     * indicates that resources from this resource provider are reserved
     * by default, except for the resources that have been reserved or
     * unreserved through operations. The first `ReservationInfo`
     * may have type `STATIC` or `DYNAMIC`, but the rest must have
     * `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The
     * new reservation's role must be a child of the current one.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getDefaultReservationsOrBuilder( int index) { return defaultReservations_.get(index); } public static final int STORAGE_FIELD_NUMBER = 6; private org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage storage_; /** *
     * EXPERIMENTAL.
     * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public boolean hasStorage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * EXPERIMENTAL.
     * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage getStorage() { return storage_ == null ? org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.getDefaultInstance() : storage_; } /** *
     * EXPERIMENTAL.
     * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public org.apache.mesos.v1.Protos.ResourceProviderInfo.StorageOrBuilder getStorageOrBuilder() { return storage_ == null ? org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.getDefaultInstance() : storage_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasName()) { memoizedIsInitialized = 0; return false; } if (hasId()) { if (!getId().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getAttributesCount(); i++) { if (!getAttributes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getDefaultReservationsCount(); i++) { if (!getDefaultReservations(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasStorage()) { if (!getStorage().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getId()); } for (int i = 0; i < attributes_.size(); i++) { output.writeMessage(2, attributes_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } for (int i = 0; i < defaultReservations_.size(); i++) { output.writeMessage(5, defaultReservations_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(6, getStorage()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } for (int i = 0; i < attributes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, attributes_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } for (int i = 0; i < defaultReservations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, defaultReservations_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getStorage()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ResourceProviderInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ResourceProviderInfo other = (org.apache.mesos.v1.Protos.ResourceProviderInfo) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && getAttributesList() .equals(other.getAttributesList()); result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType() .equals(other.getType()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && getDefaultReservationsList() .equals(other.getDefaultReservationsList()); result = result && (hasStorage() == other.hasStorage()); if (hasStorage()) { result = result && getStorage() .equals(other.getStorage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (getAttributesCount() > 0) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributesList().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (getDefaultReservationsCount() > 0) { hash = (37 * hash) + DEFAULT_RESERVATIONS_FIELD_NUMBER; hash = (53 * hash) + getDefaultReservationsList().hashCode(); } if (hasStorage()) { hash = (37 * hash) + STORAGE_FIELD_NUMBER; hash = (53 * hash) + getStorage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo 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.Protos.ResourceProviderInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ResourceProviderInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a resource provider. Note that the 'id' field is only available
     * after a resource provider is registered with the master, and is made
     * available here to facilitate re-registration.
     * 
* * Protobuf type {@code mesos.v1.ResourceProviderInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ResourceProviderInfo) org.apache.mesos.v1.Protos.ResourceProviderInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceProviderInfo.class, org.apache.mesos.v1.Protos.ResourceProviderInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ResourceProviderInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdFieldBuilder(); getAttributesFieldBuilder(); getDefaultReservationsFieldBuilder(); getStorageFieldBuilder(); } } public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { attributesBuilder_.clear(); } type_ = ""; bitField0_ = (bitField0_ & ~0x00000004); name_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (defaultReservationsBuilder_ == null) { defaultReservations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { defaultReservationsBuilder_.clear(); } if (storageBuilder_ == null) { storage_ = null; } else { storageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceProviderInfo_descriptor; } public org.apache.mesos.v1.Protos.ResourceProviderInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ResourceProviderInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ResourceProviderInfo build() { org.apache.mesos.v1.Protos.ResourceProviderInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ResourceProviderInfo buildPartial() { org.apache.mesos.v1.Protos.ResourceProviderInfo result = new org.apache.mesos.v1.Protos.ResourceProviderInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (attributesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); bitField0_ = (bitField0_ & ~0x00000002); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; if (defaultReservationsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { defaultReservations_ = java.util.Collections.unmodifiableList(defaultReservations_); bitField0_ = (bitField0_ & ~0x00000010); } result.defaultReservations_ = defaultReservations_; } else { result.defaultReservations_ = defaultReservationsBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } if (storageBuilder_ == null) { result.storage_ = storage_; } else { result.storage_ = storageBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ResourceProviderInfo) { return mergeFrom((org.apache.mesos.v1.Protos.ResourceProviderInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ResourceProviderInfo other) { if (other == org.apache.mesos.v1.Protos.ResourceProviderInfo.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (attributesBuilder_ == null) { if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } } else { if (!other.attributes_.isEmpty()) { if (attributesBuilder_.isEmpty()) { attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000002); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() : null; } else { attributesBuilder_.addAllMessages(other.attributes_); } } } if (other.hasType()) { bitField0_ |= 0x00000004; type_ = other.type_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000008; name_ = other.name_; onChanged(); } if (defaultReservationsBuilder_ == null) { if (!other.defaultReservations_.isEmpty()) { if (defaultReservations_.isEmpty()) { defaultReservations_ = other.defaultReservations_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureDefaultReservationsIsMutable(); defaultReservations_.addAll(other.defaultReservations_); } onChanged(); } } else { if (!other.defaultReservations_.isEmpty()) { if (defaultReservationsBuilder_.isEmpty()) { defaultReservationsBuilder_.dispose(); defaultReservationsBuilder_ = null; defaultReservations_ = other.defaultReservations_; bitField0_ = (bitField0_ & ~0x00000010); defaultReservationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDefaultReservationsFieldBuilder() : null; } else { defaultReservationsBuilder_.addAllMessages(other.defaultReservations_); } } } if (other.hasStorage()) { mergeStorage(other.getStorage()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (!hasName()) { return false; } if (hasId()) { if (!getId().isInitialized()) { return false; } } for (int i = 0; i < getAttributesCount(); i++) { if (!getAttributes(i).isInitialized()) { return false; } } for (int i = 0; i < getDefaultReservationsCount(); i++) { if (!getDefaultReservations(i).isInitialized()) { return false; } } if (hasStorage()) { if (!getStorage().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.Protos.ResourceProviderInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ResourceProviderInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.ResourceProviderID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder> idBuilder_; /** * optional .mesos.v1.ResourceProviderID id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public org.apache.mesos.v1.Protos.ResourceProviderID getId() { if (idBuilder_ == null) { return id_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public Builder setId(org.apache.mesos.v1.Protos.ResourceProviderID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public Builder setId( org.apache.mesos.v1.Protos.ResourceProviderID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public Builder mergeId(org.apache.mesos.v1.Protos.ResourceProviderID value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && id_ != null && id_ != org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance()) { id_ = org.apache.mesos.v1.Protos.ResourceProviderID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public org.apache.mesos.v1.Protos.ResourceProviderID.Builder getIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ResourceProviderID id = 1; */ public org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : id_; } } /** * optional .mesos.v1.ResourceProviderID id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { attributes_ = new java.util.ArrayList(attributes_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder> attributesBuilder_; /** * repeated .mesos.v1.Attribute attributes = 2; */ public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); } else { return attributesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Attribute attributes = 2; */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); } else { return attributesBuilder_.getCount(); } } /** * repeated .mesos.v1.Attribute attributes = 2; */ public org.apache.mesos.v1.Protos.Attribute getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder setAttributes( int index, org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.set(index, value); onChanged(); } else { attributesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder setAttributes( int index, org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.set(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder addAttributes(org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(value); onChanged(); } else { attributesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder addAttributes( int index, org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(index, value); onChanged(); } else { attributesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder addAttributes( org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder addAttributes( int index, org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributes_); onChanged(); } else { attributesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { attributesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.remove(index); onChanged(); } else { attributesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Attribute attributes = 2; */ public org.apache.mesos.v1.Protos.Attribute.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Attribute attributes = 2; */ public org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Attribute attributes = 2; */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributes_); } } /** * repeated .mesos.v1.Attribute attributes = 2; */ public org.apache.mesos.v1.Protos.Attribute.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Attribute.getDefaultInstance()); } /** * repeated .mesos.v1.Attribute attributes = 2; */ public org.apache.mesos.v1.Protos.Attribute.Builder addAttributesBuilder( int index) { return getAttributesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Attribute.getDefaultInstance()); } /** * repeated .mesos.v1.Attribute attributes = 2; */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder>( attributes_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } private java.lang.Object type_ = ""; /** *
       * The type of the resource provider. This uniquely identifies a
       * resource provider implementation. For instance:
       *     org.apache.mesos.rp.local.storage
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * The type of the resource provider. This uniquely identifies a
       * resource provider implementation. For instance:
       *     org.apache.mesos.rp.local.storage
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 3; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The type of the resource provider. This uniquely identifies a
       * resource provider implementation. For instance:
       *     org.apache.mesos.rp.local.storage
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 3; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The type of the resource provider. This uniquely identifies a
       * resource provider implementation. For instance:
       *     org.apache.mesos.rp.local.storage
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 3; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** *
       * The type of the resource provider. This uniquely identifies a
       * resource provider implementation. For instance:
       *     org.apache.mesos.rp.local.storage
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * The type of the resource provider. This uniquely identifies a
       * resource provider implementation. For instance:
       *     org.apache.mesos.rp.local.storage
       * Please follow to Java package naming convention
       * (https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
       * to avoid conflicts on type names.
       * 
* * required string type = 3; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * The name of the resource provider. There could be multiple
       * instances of a type of resource provider. The name field is used
       * to distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * 
* * required string name = 4; */ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * The name of the resource provider. There could be multiple
       * instances of a type of resource provider. The name field is used
       * to distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * 
* * required string name = 4; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the resource provider. There could be multiple
       * instances of a type of resource provider. The name field is used
       * to distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * 
* * required string name = 4; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the resource provider. There could be multiple
       * instances of a type of resource provider. The name field is used
       * to distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * 
* * required string name = 4; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; name_ = value; onChanged(); return this; } /** *
       * The name of the resource provider. There could be multiple
       * instances of a type of resource provider. The name field is used
       * to distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * 
* * required string name = 4; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000008); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * The name of the resource provider. There could be multiple
       * instances of a type of resource provider. The name field is used
       * to distinguish these instances. It should be a legal Java identifier
       * (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html)
       * to avoid conflicts on concatenation of type and name.
       * 
* * required string name = 4; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; name_ = value; onChanged(); return this; } private java.util.List defaultReservations_ = java.util.Collections.emptyList(); private void ensureDefaultReservationsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { defaultReservations_ = new java.util.ArrayList(defaultReservations_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder> defaultReservationsBuilder_; /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public java.util.List getDefaultReservationsList() { if (defaultReservationsBuilder_ == null) { return java.util.Collections.unmodifiableList(defaultReservations_); } else { return defaultReservationsBuilder_.getMessageList(); } } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public int getDefaultReservationsCount() { if (defaultReservationsBuilder_ == null) { return defaultReservations_.size(); } else { return defaultReservationsBuilder_.getCount(); } } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo getDefaultReservations(int index) { if (defaultReservationsBuilder_ == null) { return defaultReservations_.get(index); } else { return defaultReservationsBuilder_.getMessage(index); } } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder setDefaultReservations( int index, org.apache.mesos.v1.Protos.Resource.ReservationInfo value) { if (defaultReservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefaultReservationsIsMutable(); defaultReservations_.set(index, value); onChanged(); } else { defaultReservationsBuilder_.setMessage(index, value); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder setDefaultReservations( int index, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder builderForValue) { if (defaultReservationsBuilder_ == null) { ensureDefaultReservationsIsMutable(); defaultReservations_.set(index, builderForValue.build()); onChanged(); } else { defaultReservationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder addDefaultReservations(org.apache.mesos.v1.Protos.Resource.ReservationInfo value) { if (defaultReservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefaultReservationsIsMutable(); defaultReservations_.add(value); onChanged(); } else { defaultReservationsBuilder_.addMessage(value); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder addDefaultReservations( int index, org.apache.mesos.v1.Protos.Resource.ReservationInfo value) { if (defaultReservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefaultReservationsIsMutable(); defaultReservations_.add(index, value); onChanged(); } else { defaultReservationsBuilder_.addMessage(index, value); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder addDefaultReservations( org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder builderForValue) { if (defaultReservationsBuilder_ == null) { ensureDefaultReservationsIsMutable(); defaultReservations_.add(builderForValue.build()); onChanged(); } else { defaultReservationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder addDefaultReservations( int index, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder builderForValue) { if (defaultReservationsBuilder_ == null) { ensureDefaultReservationsIsMutable(); defaultReservations_.add(index, builderForValue.build()); onChanged(); } else { defaultReservationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder addAllDefaultReservations( java.lang.Iterable values) { if (defaultReservationsBuilder_ == null) { ensureDefaultReservationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, defaultReservations_); onChanged(); } else { defaultReservationsBuilder_.addAllMessages(values); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder clearDefaultReservations() { if (defaultReservationsBuilder_ == null) { defaultReservations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { defaultReservationsBuilder_.clear(); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public Builder removeDefaultReservations(int index) { if (defaultReservationsBuilder_ == null) { ensureDefaultReservationsIsMutable(); defaultReservations_.remove(index); onChanged(); } else { defaultReservationsBuilder_.remove(index); } return this; } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder getDefaultReservationsBuilder( int index) { return getDefaultReservationsFieldBuilder().getBuilder(index); } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getDefaultReservationsOrBuilder( int index) { if (defaultReservationsBuilder_ == null) { return defaultReservations_.get(index); } else { return defaultReservationsBuilder_.getMessageOrBuilder(index); } } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public java.util.List getDefaultReservationsOrBuilderList() { if (defaultReservationsBuilder_ != null) { return defaultReservationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(defaultReservations_); } } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder addDefaultReservationsBuilder() { return getDefaultReservationsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance()); } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder addDefaultReservationsBuilder( int index) { return getDefaultReservationsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance()); } /** *
       * The stack of default reservations. If this field is not empty, it
       * indicates that resources from this resource provider are reserved
       * by default, except for the resources that have been reserved or
       * unreserved through operations. The first `ReservationInfo`
       * may have type `STATIC` or `DYNAMIC`, but the rest must have
       * `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The
       * new reservation's role must be a child of the current one.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo default_reservations = 5; */ public java.util.List getDefaultReservationsBuilderList() { return getDefaultReservationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder> getDefaultReservationsFieldBuilder() { if (defaultReservationsBuilder_ == null) { defaultReservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder>( defaultReservations_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); defaultReservations_ = null; } return defaultReservationsBuilder_; } private org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage storage_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage, org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.Builder, org.apache.mesos.v1.Protos.ResourceProviderInfo.StorageOrBuilder> storageBuilder_; /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public boolean hasStorage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage getStorage() { if (storageBuilder_ == null) { return storage_ == null ? org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.getDefaultInstance() : storage_; } else { return storageBuilder_.getMessage(); } } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public Builder setStorage(org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage value) { if (storageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storage_ = value; onChanged(); } else { storageBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public Builder setStorage( org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.Builder builderForValue) { if (storageBuilder_ == null) { storage_ = builderForValue.build(); onChanged(); } else { storageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public Builder mergeStorage(org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage value) { if (storageBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && storage_ != null && storage_ != org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.getDefaultInstance()) { storage_ = org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.newBuilder(storage_).mergeFrom(value).buildPartial(); } else { storage_ = value; } onChanged(); } else { storageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public Builder clearStorage() { if (storageBuilder_ == null) { storage_ = null; onChanged(); } else { storageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.Builder getStorageBuilder() { bitField0_ |= 0x00000020; onChanged(); return getStorageFieldBuilder().getBuilder(); } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ public org.apache.mesos.v1.Protos.ResourceProviderInfo.StorageOrBuilder getStorageOrBuilder() { if (storageBuilder_ != null) { return storageBuilder_.getMessageOrBuilder(); } else { return storage_ == null ? org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.getDefaultInstance() : storage_; } } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.ResourceProviderInfo.Storage storage = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage, org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.Builder, org.apache.mesos.v1.Protos.ResourceProviderInfo.StorageOrBuilder> getStorageFieldBuilder() { if (storageBuilder_ == null) { storageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage, org.apache.mesos.v1.Protos.ResourceProviderInfo.Storage.Builder, org.apache.mesos.v1.Protos.ResourceProviderInfo.StorageOrBuilder>( getStorage(), getParentForChildren(), isClean()); storage_ = null; } return storageBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ResourceProviderInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.ResourceProviderInfo) private static final org.apache.mesos.v1.Protos.ResourceProviderInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ResourceProviderInfo(); } public static org.apache.mesos.v1.Protos.ResourceProviderInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResourceProviderInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceProviderInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ResourceProviderInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Value) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.Value.Type type = 1; */ boolean hasType(); /** * required .mesos.v1.Value.Type type = 1; */ org.apache.mesos.v1.Protos.Value.Type getType(); /** * optional .mesos.v1.Value.Scalar scalar = 2; */ boolean hasScalar(); /** * optional .mesos.v1.Value.Scalar scalar = 2; */ org.apache.mesos.v1.Protos.Value.Scalar getScalar(); /** * optional .mesos.v1.Value.Scalar scalar = 2; */ org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder(); /** * optional .mesos.v1.Value.Ranges ranges = 3; */ boolean hasRanges(); /** * optional .mesos.v1.Value.Ranges ranges = 3; */ org.apache.mesos.v1.Protos.Value.Ranges getRanges(); /** * optional .mesos.v1.Value.Ranges ranges = 3; */ org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder(); /** * optional .mesos.v1.Value.Set set = 4; */ boolean hasSet(); /** * optional .mesos.v1.Value.Set set = 4; */ org.apache.mesos.v1.Protos.Value.Set getSet(); /** * optional .mesos.v1.Value.Set set = 4; */ org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder(); /** * optional .mesos.v1.Value.Text text = 5; */ boolean hasText(); /** * optional .mesos.v1.Value.Text text = 5; */ org.apache.mesos.v1.Protos.Value.Text getText(); /** * optional .mesos.v1.Value.Text text = 5; */ org.apache.mesos.v1.Protos.Value.TextOrBuilder getTextOrBuilder(); } /** *
   **
   * Describes an Attribute or Resource "value". A value is described
   * using the standard protocol buffer "union" trick.
   * 
* * Protobuf type {@code mesos.v1.Value} */ public static final class Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Value) ValueOrBuilder { private static final long serialVersionUID = 0L; // Use Value.newBuilder() to construct. private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Value() { type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Value( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Value.Type value = org.apache.mesos.v1.Protos.Value.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { org.apache.mesos.v1.Protos.Value.Scalar.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = scalar_.toBuilder(); } scalar_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Scalar.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scalar_); scalar_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.Value.Ranges.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = ranges_.toBuilder(); } ranges_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Ranges.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ranges_); ranges_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.Protos.Value.Set.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = set_.toBuilder(); } set_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Set.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(set_); set_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { org.apache.mesos.v1.Protos.Value.Text.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = text_.toBuilder(); } text_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Text.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(text_); text_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.class, org.apache.mesos.v1.Protos.Value.Builder.class); } /** * Protobuf enum {@code mesos.v1.Value.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * SCALAR = 0; */ SCALAR(0), /** * RANGES = 1; */ RANGES(1), /** * SET = 2; */ SET(2), /** * TEXT = 3; */ TEXT(3), ; /** * SCALAR = 0; */ public static final int SCALAR_VALUE = 0; /** * RANGES = 1; */ public static final int RANGES_VALUE = 1; /** * SET = 2; */ public static final int SET_VALUE = 2; /** * TEXT = 3; */ public static final int TEXT_VALUE = 3; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return SCALAR; case 1: return RANGES; case 2: return SET; case 3: return TEXT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Value.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Value.Type) } public interface ScalarOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Value.Scalar) com.google.protobuf.MessageOrBuilder { /** *
       * Scalar values are represented using floating point. To reduce
       * the chance of unpredictable floating point behavior due to
       * roundoff error, Mesos only supports three decimal digits of
       * precision for scalar resource values. That is, floating point
       * values are converted to a fixed point format that supports
       * three decimal digits of precision, and then converted back to
       * floating point on output. Any additional precision in scalar
       * resource values is discarded (via rounding).
       * 
* * required double value = 1; */ boolean hasValue(); /** *
       * Scalar values are represented using floating point. To reduce
       * the chance of unpredictable floating point behavior due to
       * roundoff error, Mesos only supports three decimal digits of
       * precision for scalar resource values. That is, floating point
       * values are converted to a fixed point format that supports
       * three decimal digits of precision, and then converted back to
       * floating point on output. Any additional precision in scalar
       * resource values is discarded (via rounding).
       * 
* * required double value = 1; */ double getValue(); } /** * Protobuf type {@code mesos.v1.Value.Scalar} */ public static final class Scalar extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Value.Scalar) ScalarOrBuilder { private static final long serialVersionUID = 0L; // Use Scalar.newBuilder() to construct. private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Scalar() { value_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Scalar( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { bitField0_ |= 0x00000001; value_ = input.readDouble(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Scalar_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Scalar_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Scalar.class, org.apache.mesos.v1.Protos.Value.Scalar.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private double value_; /** *
       * Scalar values are represented using floating point. To reduce
       * the chance of unpredictable floating point behavior due to
       * roundoff error, Mesos only supports three decimal digits of
       * precision for scalar resource values. That is, floating point
       * values are converted to a fixed point format that supports
       * three decimal digits of precision, and then converted back to
       * floating point on output. Any additional precision in scalar
       * resource values is discarded (via rounding).
       * 
* * required double value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Scalar values are represented using floating point. To reduce
       * the chance of unpredictable floating point behavior due to
       * roundoff error, Mesos only supports three decimal digits of
       * precision for scalar resource values. That is, floating point
       * values are converted to a fixed point format that supports
       * three decimal digits of precision, and then converted back to
       * floating point on output. Any additional precision in scalar
       * resource values is discarded (via rounding).
       * 
* * required double value = 1; */ public double getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeDouble(1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Value.Scalar)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Value.Scalar other = (org.apache.mesos.v1.Protos.Value.Scalar) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && ( java.lang.Double.doubleToLongBits(getValue()) == java.lang.Double.doubleToLongBits( other.getValue())); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Value.Scalar parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Scalar parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Scalar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Scalar 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.Protos.Value.Scalar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Scalar parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Scalar parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Scalar parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Scalar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Scalar parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Scalar parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Scalar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Value.Scalar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Value.Scalar} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Value.Scalar) org.apache.mesos.v1.Protos.Value.ScalarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Scalar_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Scalar_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Scalar.class, org.apache.mesos.v1.Protos.Value.Scalar.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Value.Scalar.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Scalar_descriptor; } public org.apache.mesos.v1.Protos.Value.Scalar getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Value.Scalar build() { org.apache.mesos.v1.Protos.Value.Scalar result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Value.Scalar buildPartial() { org.apache.mesos.v1.Protos.Value.Scalar result = new org.apache.mesos.v1.Protos.Value.Scalar(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Value.Scalar) { return mergeFrom((org.apache.mesos.v1.Protos.Value.Scalar)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Value.Scalar other) { if (other == org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.Value.Scalar parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Value.Scalar) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double value_ ; /** *
         * Scalar values are represented using floating point. To reduce
         * the chance of unpredictable floating point behavior due to
         * roundoff error, Mesos only supports three decimal digits of
         * precision for scalar resource values. That is, floating point
         * values are converted to a fixed point format that supports
         * three decimal digits of precision, and then converted back to
         * floating point on output. Any additional precision in scalar
         * resource values is discarded (via rounding).
         * 
* * required double value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Scalar values are represented using floating point. To reduce
         * the chance of unpredictable floating point behavior due to
         * roundoff error, Mesos only supports three decimal digits of
         * precision for scalar resource values. That is, floating point
         * values are converted to a fixed point format that supports
         * three decimal digits of precision, and then converted back to
         * floating point on output. Any additional precision in scalar
         * resource values is discarded (via rounding).
         * 
* * required double value = 1; */ public double getValue() { return value_; } /** *
         * Scalar values are represented using floating point. To reduce
         * the chance of unpredictable floating point behavior due to
         * roundoff error, Mesos only supports three decimal digits of
         * precision for scalar resource values. That is, floating point
         * values are converted to a fixed point format that supports
         * three decimal digits of precision, and then converted back to
         * floating point on output. Any additional precision in scalar
         * resource values is discarded (via rounding).
         * 
* * required double value = 1; */ public Builder setValue(double value) { bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** *
         * Scalar values are represented using floating point. To reduce
         * the chance of unpredictable floating point behavior due to
         * roundoff error, Mesos only supports three decimal digits of
         * precision for scalar resource values. That is, floating point
         * values are converted to a fixed point format that supports
         * three decimal digits of precision, and then converted back to
         * floating point on output. Any additional precision in scalar
         * resource values is discarded (via rounding).
         * 
* * required double value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0D; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Value.Scalar) } // @@protoc_insertion_point(class_scope:mesos.v1.Value.Scalar) private static final org.apache.mesos.v1.Protos.Value.Scalar DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Value.Scalar(); } public static org.apache.mesos.v1.Protos.Value.Scalar getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Scalar parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Scalar(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Value.Scalar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RangeOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Value.Range) com.google.protobuf.MessageOrBuilder { /** * required uint64 begin = 1; */ boolean hasBegin(); /** * required uint64 begin = 1; */ long getBegin(); /** * required uint64 end = 2; */ boolean hasEnd(); /** * required uint64 end = 2; */ long getEnd(); } /** * Protobuf type {@code mesos.v1.Value.Range} */ public static final class Range extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Value.Range) RangeOrBuilder { private static final long serialVersionUID = 0L; // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Range() { begin_ = 0L; end_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Range( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; begin_ = input.readUInt64(); break; } case 16: { bitField0_ |= 0x00000002; end_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Range_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Range.class, org.apache.mesos.v1.Protos.Value.Range.Builder.class); } private int bitField0_; public static final int BEGIN_FIELD_NUMBER = 1; private long begin_; /** * required uint64 begin = 1; */ public boolean hasBegin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint64 begin = 1; */ public long getBegin() { return begin_; } public static final int END_FIELD_NUMBER = 2; private long end_; /** * required uint64 end = 2; */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint64 end = 2; */ public long getEnd() { return end_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBegin()) { memoizedIsInitialized = 0; return false; } if (!hasEnd()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt64(1, begin_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, end_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, begin_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Value.Range)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Value.Range other = (org.apache.mesos.v1.Protos.Value.Range) obj; boolean result = true; result = result && (hasBegin() == other.hasBegin()); if (hasBegin()) { result = result && (getBegin() == other.getBegin()); } result = result && (hasEnd() == other.hasEnd()); if (hasEnd()) { result = result && (getEnd() == other.getEnd()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBegin()) { hash = (37 * hash) + BEGIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBegin()); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnd()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Value.Range parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Range parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Range parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Range 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.Protos.Value.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Range parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Range parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Range parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Range parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Range parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Range parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Range parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Value.Range prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Value.Range} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Value.Range) org.apache.mesos.v1.Protos.Value.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Range_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Range.class, org.apache.mesos.v1.Protos.Value.Range.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Value.Range.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); begin_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); end_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Range_descriptor; } public org.apache.mesos.v1.Protos.Value.Range getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Value.Range.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Value.Range build() { org.apache.mesos.v1.Protos.Value.Range result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Value.Range buildPartial() { org.apache.mesos.v1.Protos.Value.Range result = new org.apache.mesos.v1.Protos.Value.Range(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.begin_ = begin_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.end_ = end_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Value.Range) { return mergeFrom((org.apache.mesos.v1.Protos.Value.Range)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Value.Range other) { if (other == org.apache.mesos.v1.Protos.Value.Range.getDefaultInstance()) return this; if (other.hasBegin()) { setBegin(other.getBegin()); } if (other.hasEnd()) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasBegin()) { return false; } if (!hasEnd()) { 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.Protos.Value.Range parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Value.Range) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long begin_ ; /** * required uint64 begin = 1; */ public boolean hasBegin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint64 begin = 1; */ public long getBegin() { return begin_; } /** * required uint64 begin = 1; */ public Builder setBegin(long value) { bitField0_ |= 0x00000001; begin_ = value; onChanged(); return this; } /** * required uint64 begin = 1; */ public Builder clearBegin() { bitField0_ = (bitField0_ & ~0x00000001); begin_ = 0L; onChanged(); return this; } private long end_ ; /** * required uint64 end = 2; */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint64 end = 2; */ public long getEnd() { return end_; } /** * required uint64 end = 2; */ public Builder setEnd(long value) { bitField0_ |= 0x00000002; end_ = value; onChanged(); return this; } /** * required uint64 end = 2; */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Value.Range) } // @@protoc_insertion_point(class_scope:mesos.v1.Value.Range) private static final org.apache.mesos.v1.Protos.Value.Range DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Value.Range(); } public static org.apache.mesos.v1.Protos.Value.Range getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Range parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Range(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Value.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RangesOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Value.Ranges) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Value.Range range = 1; */ java.util.List getRangeList(); /** * repeated .mesos.v1.Value.Range range = 1; */ org.apache.mesos.v1.Protos.Value.Range getRange(int index); /** * repeated .mesos.v1.Value.Range range = 1; */ int getRangeCount(); /** * repeated .mesos.v1.Value.Range range = 1; */ java.util.List getRangeOrBuilderList(); /** * repeated .mesos.v1.Value.Range range = 1; */ org.apache.mesos.v1.Protos.Value.RangeOrBuilder getRangeOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.Value.Ranges} */ public static final class Ranges extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Value.Ranges) RangesOrBuilder { private static final long serialVersionUID = 0L; // Use Ranges.newBuilder() to construct. private Ranges(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Ranges() { range_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Ranges( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { range_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } range_.add( input.readMessage(org.apache.mesos.v1.Protos.Value.Range.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { range_ = java.util.Collections.unmodifiableList(range_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Ranges_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Ranges_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Ranges.class, org.apache.mesos.v1.Protos.Value.Ranges.Builder.class); } public static final int RANGE_FIELD_NUMBER = 1; private java.util.List range_; /** * repeated .mesos.v1.Value.Range range = 1; */ public java.util.List getRangeList() { return range_; } /** * repeated .mesos.v1.Value.Range range = 1; */ public java.util.List getRangeOrBuilderList() { return range_; } /** * repeated .mesos.v1.Value.Range range = 1; */ public int getRangeCount() { return range_.size(); } /** * repeated .mesos.v1.Value.Range range = 1; */ public org.apache.mesos.v1.Protos.Value.Range getRange(int index) { return range_.get(index); } /** * repeated .mesos.v1.Value.Range range = 1; */ public org.apache.mesos.v1.Protos.Value.RangeOrBuilder getRangeOrBuilder( int index) { return range_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getRangeCount(); i++) { if (!getRange(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < range_.size(); i++) { output.writeMessage(1, range_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < range_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, range_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Value.Ranges)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Value.Ranges other = (org.apache.mesos.v1.Protos.Value.Ranges) obj; boolean result = true; result = result && getRangeList() .equals(other.getRangeList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRangeCount() > 0) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRangeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Value.Ranges parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Ranges parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Ranges parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Ranges 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.Protos.Value.Ranges parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Ranges parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Ranges parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Ranges parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Ranges parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Ranges parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Ranges parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Ranges parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Value.Ranges prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Value.Ranges} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Value.Ranges) org.apache.mesos.v1.Protos.Value.RangesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Ranges_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Ranges_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Ranges.class, org.apache.mesos.v1.Protos.Value.Ranges.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Value.Ranges.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRangeFieldBuilder(); } } public Builder clear() { super.clear(); if (rangeBuilder_ == null) { range_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rangeBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Ranges_descriptor; } public org.apache.mesos.v1.Protos.Value.Ranges getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Value.Ranges build() { org.apache.mesos.v1.Protos.Value.Ranges result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Value.Ranges buildPartial() { org.apache.mesos.v1.Protos.Value.Ranges result = new org.apache.mesos.v1.Protos.Value.Ranges(this); int from_bitField0_ = bitField0_; if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { range_ = java.util.Collections.unmodifiableList(range_); bitField0_ = (bitField0_ & ~0x00000001); } result.range_ = range_; } else { result.range_ = rangeBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Value.Ranges) { return mergeFrom((org.apache.mesos.v1.Protos.Value.Ranges)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Value.Ranges other) { if (other == org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance()) return this; if (rangeBuilder_ == null) { if (!other.range_.isEmpty()) { if (range_.isEmpty()) { range_ = other.range_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRangeIsMutable(); range_.addAll(other.range_); } onChanged(); } } else { if (!other.range_.isEmpty()) { if (rangeBuilder_.isEmpty()) { rangeBuilder_.dispose(); rangeBuilder_ = null; range_ = other.range_; bitField0_ = (bitField0_ & ~0x00000001); rangeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangeFieldBuilder() : null; } else { rangeBuilder_.addAllMessages(other.range_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getRangeCount(); i++) { if (!getRange(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.Protos.Value.Ranges parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Value.Ranges) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List range_ = java.util.Collections.emptyList(); private void ensureRangeIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { range_ = new java.util.ArrayList(range_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Range, org.apache.mesos.v1.Protos.Value.Range.Builder, org.apache.mesos.v1.Protos.Value.RangeOrBuilder> rangeBuilder_; /** * repeated .mesos.v1.Value.Range range = 1; */ public java.util.List getRangeList() { if (rangeBuilder_ == null) { return java.util.Collections.unmodifiableList(range_); } else { return rangeBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Value.Range range = 1; */ public int getRangeCount() { if (rangeBuilder_ == null) { return range_.size(); } else { return rangeBuilder_.getCount(); } } /** * repeated .mesos.v1.Value.Range range = 1; */ public org.apache.mesos.v1.Protos.Value.Range getRange(int index) { if (rangeBuilder_ == null) { return range_.get(index); } else { return rangeBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder setRange( int index, org.apache.mesos.v1.Protos.Value.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangeIsMutable(); range_.set(index, value); onChanged(); } else { rangeBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder setRange( int index, org.apache.mesos.v1.Protos.Value.Range.Builder builderForValue) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.set(index, builderForValue.build()); onChanged(); } else { rangeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder addRange(org.apache.mesos.v1.Protos.Value.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangeIsMutable(); range_.add(value); onChanged(); } else { rangeBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder addRange( int index, org.apache.mesos.v1.Protos.Value.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangeIsMutable(); range_.add(index, value); onChanged(); } else { rangeBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder addRange( org.apache.mesos.v1.Protos.Value.Range.Builder builderForValue) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.add(builderForValue.build()); onChanged(); } else { rangeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder addRange( int index, org.apache.mesos.v1.Protos.Value.Range.Builder builderForValue) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.add(index, builderForValue.build()); onChanged(); } else { rangeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder addAllRange( java.lang.Iterable values) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, range_); onChanged(); } else { rangeBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder clearRange() { if (rangeBuilder_ == null) { range_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rangeBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public Builder removeRange(int index) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.remove(index); onChanged(); } else { rangeBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Value.Range range = 1; */ public org.apache.mesos.v1.Protos.Value.Range.Builder getRangeBuilder( int index) { return getRangeFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Value.Range range = 1; */ public org.apache.mesos.v1.Protos.Value.RangeOrBuilder getRangeOrBuilder( int index) { if (rangeBuilder_ == null) { return range_.get(index); } else { return rangeBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Value.Range range = 1; */ public java.util.List getRangeOrBuilderList() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(range_); } } /** * repeated .mesos.v1.Value.Range range = 1; */ public org.apache.mesos.v1.Protos.Value.Range.Builder addRangeBuilder() { return getRangeFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Value.Range.getDefaultInstance()); } /** * repeated .mesos.v1.Value.Range range = 1; */ public org.apache.mesos.v1.Protos.Value.Range.Builder addRangeBuilder( int index) { return getRangeFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Value.Range.getDefaultInstance()); } /** * repeated .mesos.v1.Value.Range range = 1; */ public java.util.List getRangeBuilderList() { return getRangeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Range, org.apache.mesos.v1.Protos.Value.Range.Builder, org.apache.mesos.v1.Protos.Value.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Range, org.apache.mesos.v1.Protos.Value.Range.Builder, org.apache.mesos.v1.Protos.Value.RangeOrBuilder>( range_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Value.Ranges) } // @@protoc_insertion_point(class_scope:mesos.v1.Value.Ranges) private static final org.apache.mesos.v1.Protos.Value.Ranges DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Value.Ranges(); } public static org.apache.mesos.v1.Protos.Value.Ranges getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Ranges parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Ranges(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Value.Ranges getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Value.Set) com.google.protobuf.MessageOrBuilder { /** * repeated string item = 1; */ java.util.List getItemList(); /** * repeated string item = 1; */ int getItemCount(); /** * repeated string item = 1; */ java.lang.String getItem(int index); /** * repeated string item = 1; */ com.google.protobuf.ByteString getItemBytes(int index); } /** * Protobuf type {@code mesos.v1.Value.Set} */ public static final class Set extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Value.Set) SetOrBuilder { private static final long serialVersionUID = 0L; // Use Set.newBuilder() to construct. private Set(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Set() { item_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Set( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { item_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } item_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { item_ = item_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Set_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Set_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Set.class, org.apache.mesos.v1.Protos.Value.Set.Builder.class); } public static final int ITEM_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList item_; /** * repeated string item = 1; */ public com.google.protobuf.ProtocolStringList getItemList() { return item_; } /** * repeated string item = 1; */ public int getItemCount() { return item_.size(); } /** * repeated string item = 1; */ public java.lang.String getItem(int index) { return item_.get(index); } /** * repeated string item = 1; */ public com.google.protobuf.ByteString getItemBytes(int index) { return item_.getByteString(index); } 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 { for (int i = 0; i < item_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, item_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < item_.size(); i++) { dataSize += computeStringSizeNoTag(item_.getRaw(i)); } size += dataSize; size += 1 * getItemList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Value.Set)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Value.Set other = (org.apache.mesos.v1.Protos.Value.Set) obj; boolean result = true; result = result && getItemList() .equals(other.getItemList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getItemCount() > 0) { hash = (37 * hash) + ITEM_FIELD_NUMBER; hash = (53 * hash) + getItemList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Value.Set parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Set parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Set parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Set 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.Protos.Value.Set parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Set parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Set parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Set parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Set parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Set parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Set parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Set parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Value.Set prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Value.Set} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Value.Set) org.apache.mesos.v1.Protos.Value.SetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Set_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Set_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Set.class, org.apache.mesos.v1.Protos.Value.Set.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Value.Set.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); item_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Set_descriptor; } public org.apache.mesos.v1.Protos.Value.Set getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Value.Set build() { org.apache.mesos.v1.Protos.Value.Set result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Value.Set buildPartial() { org.apache.mesos.v1.Protos.Value.Set result = new org.apache.mesos.v1.Protos.Value.Set(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { item_ = item_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.item_ = item_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Value.Set) { return mergeFrom((org.apache.mesos.v1.Protos.Value.Set)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Value.Set other) { if (other == org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance()) return this; if (!other.item_.isEmpty()) { if (item_.isEmpty()) { item_ = other.item_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemIsMutable(); item_.addAll(other.item_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Value.Set parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Value.Set) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList item_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureItemIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { item_ = new com.google.protobuf.LazyStringArrayList(item_); bitField0_ |= 0x00000001; } } /** * repeated string item = 1; */ public com.google.protobuf.ProtocolStringList getItemList() { return item_.getUnmodifiableView(); } /** * repeated string item = 1; */ public int getItemCount() { return item_.size(); } /** * repeated string item = 1; */ public java.lang.String getItem(int index) { return item_.get(index); } /** * repeated string item = 1; */ public com.google.protobuf.ByteString getItemBytes(int index) { return item_.getByteString(index); } /** * repeated string item = 1; */ public Builder setItem( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureItemIsMutable(); item_.set(index, value); onChanged(); return this; } /** * repeated string item = 1; */ public Builder addItem( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureItemIsMutable(); item_.add(value); onChanged(); return this; } /** * repeated string item = 1; */ public Builder addAllItem( java.lang.Iterable values) { ensureItemIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, item_); onChanged(); return this; } /** * repeated string item = 1; */ public Builder clearItem() { item_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string item = 1; */ public Builder addItemBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureItemIsMutable(); item_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Value.Set) } // @@protoc_insertion_point(class_scope:mesos.v1.Value.Set) private static final org.apache.mesos.v1.Protos.Value.Set DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Value.Set(); } public static org.apache.mesos.v1.Protos.Value.Set getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Set parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Set(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Value.Set getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TextOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Value.Text) com.google.protobuf.MessageOrBuilder { /** * required string value = 1; */ boolean hasValue(); /** * required string value = 1; */ java.lang.String getValue(); /** * required string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code mesos.v1.Value.Text} */ public static final class Text extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Value.Text) TextOrBuilder { private static final long serialVersionUID = 0L; // Use Text.newBuilder() to construct. private Text(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Text() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Text( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Text_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Text.class, org.apache.mesos.v1.Protos.Value.Text.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Value.Text)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Value.Text other = (org.apache.mesos.v1.Protos.Value.Text) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Value.Text parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Text parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Text parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Text 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.Protos.Value.Text parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value.Text parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Text parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Text parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Text parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Text parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value.Text parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value.Text parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Value.Text prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Value.Text} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Value.Text) org.apache.mesos.v1.Protos.Value.TextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Text_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.Text.class, org.apache.mesos.v1.Protos.Value.Text.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Value.Text.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_Text_descriptor; } public org.apache.mesos.v1.Protos.Value.Text getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Value.Text build() { org.apache.mesos.v1.Protos.Value.Text result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Value.Text buildPartial() { org.apache.mesos.v1.Protos.Value.Text result = new org.apache.mesos.v1.Protos.Value.Text(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Value.Text) { return mergeFrom((org.apache.mesos.v1.Protos.Value.Text)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Value.Text other) { if (other == org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.Value.Text parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Value.Text) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * required string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Value.Text) } // @@protoc_insertion_point(class_scope:mesos.v1.Value.Text) private static final org.apache.mesos.v1.Protos.Value.Text DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Value.Text(); } public static org.apache.mesos.v1.Protos.Value.Text getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Text parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Text(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Value.Text getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required .mesos.v1.Value.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Value.Type type = 1; */ public org.apache.mesos.v1.Protos.Value.Type getType() { org.apache.mesos.v1.Protos.Value.Type result = org.apache.mesos.v1.Protos.Value.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Value.Type.SCALAR : result; } public static final int SCALAR_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Value.Scalar scalar_; /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public boolean hasScalar() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public org.apache.mesos.v1.Protos.Value.Scalar getScalar() { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } public static final int RANGES_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Value.Ranges ranges_; /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public boolean hasRanges() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public org.apache.mesos.v1.Protos.Value.Ranges getRanges() { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder() { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } public static final int SET_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Value.Set set_; /** * optional .mesos.v1.Value.Set set = 4; */ public boolean hasSet() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Value.Set set = 4; */ public org.apache.mesos.v1.Protos.Value.Set getSet() { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } /** * optional .mesos.v1.Value.Set set = 4; */ public org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder() { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } public static final int TEXT_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.Value.Text text_; /** * optional .mesos.v1.Value.Text text = 5; */ public boolean hasText() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.Text getText() { return text_ == null ? org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance() : text_; } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.TextOrBuilder getTextOrBuilder() { return text_ == null ? org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance() : text_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasScalar()) { if (!getScalar().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasRanges()) { if (!getRanges().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasText()) { if (!getText().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getScalar()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getRanges()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getSet()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getText()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getScalar()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRanges()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSet()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getText()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Value)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Value other = (org.apache.mesos.v1.Protos.Value) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasScalar() == other.hasScalar()); if (hasScalar()) { result = result && getScalar() .equals(other.getScalar()); } result = result && (hasRanges() == other.hasRanges()); if (hasRanges()) { result = result && getRanges() .equals(other.getRanges()); } result = result && (hasSet() == other.hasSet()); if (hasSet()) { result = result && getSet() .equals(other.getSet()); } result = result && (hasText() == other.hasText()); if (hasText()) { result = result && getText() .equals(other.getText()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasScalar()) { hash = (37 * hash) + SCALAR_FIELD_NUMBER; hash = (53 * hash) + getScalar().hashCode(); } if (hasRanges()) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRanges().hashCode(); } if (hasSet()) { hash = (37 * hash) + SET_FIELD_NUMBER; hash = (53 * hash) + getSet().hashCode(); } if (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Value parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value 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.Protos.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Value prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes an Attribute or Resource "value". A value is described
     * using the standard protocol buffer "union" trick.
     * 
* * Protobuf type {@code mesos.v1.Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Value) org.apache.mesos.v1.Protos.ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Value.class, org.apache.mesos.v1.Protos.Value.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Value.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getScalarFieldBuilder(); getRangesFieldBuilder(); getSetFieldBuilder(); getTextFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (scalarBuilder_ == null) { scalar_ = null; } else { scalarBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (rangesBuilder_ == null) { ranges_ = null; } else { rangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (setBuilder_ == null) { set_ = null; } else { setBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (textBuilder_ == null) { text_ = null; } else { textBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Value_descriptor; } public org.apache.mesos.v1.Protos.Value getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Value.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Value build() { org.apache.mesos.v1.Protos.Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Value buildPartial() { org.apache.mesos.v1.Protos.Value result = new org.apache.mesos.v1.Protos.Value(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 (scalarBuilder_ == null) { result.scalar_ = scalar_; } else { result.scalar_ = scalarBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (rangesBuilder_ == null) { result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (setBuilder_ == null) { result.set_ = set_; } else { result.set_ = setBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (textBuilder_ == null) { result.text_ = text_; } else { result.text_ = textBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Value) { return mergeFrom((org.apache.mesos.v1.Protos.Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Value other) { if (other == org.apache.mesos.v1.Protos.Value.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasScalar()) { mergeScalar(other.getScalar()); } if (other.hasRanges()) { mergeRanges(other.getRanges()); } if (other.hasSet()) { mergeSet(other.getSet()); } if (other.hasText()) { mergeText(other.getText()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (hasScalar()) { if (!getScalar().isInitialized()) { return false; } } if (hasRanges()) { if (!getRanges().isInitialized()) { return false; } } if (hasText()) { if (!getText().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.Protos.Value parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Value) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * required .mesos.v1.Value.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Value.Type type = 1; */ public org.apache.mesos.v1.Protos.Value.Type getType() { org.apache.mesos.v1.Protos.Value.Type result = org.apache.mesos.v1.Protos.Value.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Value.Type.SCALAR : result; } /** * required .mesos.v1.Value.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.Value.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * required .mesos.v1.Value.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.Value.Scalar scalar_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder> scalarBuilder_; /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public boolean hasScalar() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public org.apache.mesos.v1.Protos.Value.Scalar getScalar() { if (scalarBuilder_ == null) { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } else { return scalarBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public Builder setScalar(org.apache.mesos.v1.Protos.Value.Scalar value) { if (scalarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scalar_ = value; onChanged(); } else { scalarBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public Builder setScalar( org.apache.mesos.v1.Protos.Value.Scalar.Builder builderForValue) { if (scalarBuilder_ == null) { scalar_ = builderForValue.build(); onChanged(); } else { scalarBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public Builder mergeScalar(org.apache.mesos.v1.Protos.Value.Scalar value) { if (scalarBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && scalar_ != null && scalar_ != org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance()) { scalar_ = org.apache.mesos.v1.Protos.Value.Scalar.newBuilder(scalar_).mergeFrom(value).buildPartial(); } else { scalar_ = value; } onChanged(); } else { scalarBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public Builder clearScalar() { if (scalarBuilder_ == null) { scalar_ = null; onChanged(); } else { scalarBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public org.apache.mesos.v1.Protos.Value.Scalar.Builder getScalarBuilder() { bitField0_ |= 0x00000002; onChanged(); return getScalarFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ public org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { if (scalarBuilder_ != null) { return scalarBuilder_.getMessageOrBuilder(); } else { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } } /** * optional .mesos.v1.Value.Scalar scalar = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder> getScalarFieldBuilder() { if (scalarBuilder_ == null) { scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder>( getScalar(), getParentForChildren(), isClean()); scalar_ = null; } return scalarBuilder_; } private org.apache.mesos.v1.Protos.Value.Ranges ranges_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder> rangesBuilder_; /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public boolean hasRanges() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public org.apache.mesos.v1.Protos.Value.Ranges getRanges() { if (rangesBuilder_ == null) { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } else { return rangesBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public Builder setRanges(org.apache.mesos.v1.Protos.Value.Ranges value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ranges_ = value; onChanged(); } else { rangesBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public Builder setRanges( org.apache.mesos.v1.Protos.Value.Ranges.Builder builderForValue) { if (rangesBuilder_ == null) { ranges_ = builderForValue.build(); onChanged(); } else { rangesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public Builder mergeRanges(org.apache.mesos.v1.Protos.Value.Ranges value) { if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && ranges_ != null && ranges_ != org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance()) { ranges_ = org.apache.mesos.v1.Protos.Value.Ranges.newBuilder(ranges_).mergeFrom(value).buildPartial(); } else { ranges_ = value; } onChanged(); } else { rangesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = null; onChanged(); } else { rangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public org.apache.mesos.v1.Protos.Value.Ranges.Builder getRangesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRangesFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ public org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilder(); } else { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } } /** * optional .mesos.v1.Value.Ranges ranges = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder>( getRanges(), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } private org.apache.mesos.v1.Protos.Value.Set set_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder> setBuilder_; /** * optional .mesos.v1.Value.Set set = 4; */ public boolean hasSet() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Value.Set set = 4; */ public org.apache.mesos.v1.Protos.Value.Set getSet() { if (setBuilder_ == null) { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } else { return setBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Set set = 4; */ public Builder setSet(org.apache.mesos.v1.Protos.Value.Set value) { if (setBuilder_ == null) { if (value == null) { throw new NullPointerException(); } set_ = value; onChanged(); } else { setBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Set set = 4; */ public Builder setSet( org.apache.mesos.v1.Protos.Value.Set.Builder builderForValue) { if (setBuilder_ == null) { set_ = builderForValue.build(); onChanged(); } else { setBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Set set = 4; */ public Builder mergeSet(org.apache.mesos.v1.Protos.Value.Set value) { if (setBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && set_ != null && set_ != org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance()) { set_ = org.apache.mesos.v1.Protos.Value.Set.newBuilder(set_).mergeFrom(value).buildPartial(); } else { set_ = value; } onChanged(); } else { setBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Set set = 4; */ public Builder clearSet() { if (setBuilder_ == null) { set_ = null; onChanged(); } else { setBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.Value.Set set = 4; */ public org.apache.mesos.v1.Protos.Value.Set.Builder getSetBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSetFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Set set = 4; */ public org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder() { if (setBuilder_ != null) { return setBuilder_.getMessageOrBuilder(); } else { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } } /** * optional .mesos.v1.Value.Set set = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder> getSetFieldBuilder() { if (setBuilder_ == null) { setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder>( getSet(), getParentForChildren(), isClean()); set_ = null; } return setBuilder_; } private org.apache.mesos.v1.Protos.Value.Text text_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Text, org.apache.mesos.v1.Protos.Value.Text.Builder, org.apache.mesos.v1.Protos.Value.TextOrBuilder> textBuilder_; /** * optional .mesos.v1.Value.Text text = 5; */ public boolean hasText() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.Text getText() { if (textBuilder_ == null) { return text_ == null ? org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance() : text_; } else { return textBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Text text = 5; */ public Builder setText(org.apache.mesos.v1.Protos.Value.Text value) { if (textBuilder_ == null) { if (value == null) { throw new NullPointerException(); } text_ = value; onChanged(); } else { textBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Text text = 5; */ public Builder setText( org.apache.mesos.v1.Protos.Value.Text.Builder builderForValue) { if (textBuilder_ == null) { text_ = builderForValue.build(); onChanged(); } else { textBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Text text = 5; */ public Builder mergeText(org.apache.mesos.v1.Protos.Value.Text value) { if (textBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && text_ != null && text_ != org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance()) { text_ = org.apache.mesos.v1.Protos.Value.Text.newBuilder(text_).mergeFrom(value).buildPartial(); } else { text_ = value; } onChanged(); } else { textBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Text text = 5; */ public Builder clearText() { if (textBuilder_ == null) { text_ = null; onChanged(); } else { textBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.Text.Builder getTextBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTextFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.TextOrBuilder getTextOrBuilder() { if (textBuilder_ != null) { return textBuilder_.getMessageOrBuilder(); } else { return text_ == null ? org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance() : text_; } } /** * optional .mesos.v1.Value.Text text = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Text, org.apache.mesos.v1.Protos.Value.Text.Builder, org.apache.mesos.v1.Protos.Value.TextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Text, org.apache.mesos.v1.Protos.Value.Text.Builder, org.apache.mesos.v1.Protos.Value.TextOrBuilder>( getText(), getParentForChildren(), isClean()); text_ = null; } return textBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Value) } // @@protoc_insertion_point(class_scope:mesos.v1.Value) private static final org.apache.mesos.v1.Protos.Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Value(); } public static org.apache.mesos.v1.Protos.Value getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Value(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Attribute) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required .mesos.v1.Value.Type type = 2; */ boolean hasType(); /** * required .mesos.v1.Value.Type type = 2; */ org.apache.mesos.v1.Protos.Value.Type getType(); /** * optional .mesos.v1.Value.Scalar scalar = 3; */ boolean hasScalar(); /** * optional .mesos.v1.Value.Scalar scalar = 3; */ org.apache.mesos.v1.Protos.Value.Scalar getScalar(); /** * optional .mesos.v1.Value.Scalar scalar = 3; */ org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder(); /** * optional .mesos.v1.Value.Ranges ranges = 4; */ boolean hasRanges(); /** * optional .mesos.v1.Value.Ranges ranges = 4; */ org.apache.mesos.v1.Protos.Value.Ranges getRanges(); /** * optional .mesos.v1.Value.Ranges ranges = 4; */ org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder(); /** * optional .mesos.v1.Value.Set set = 6; */ boolean hasSet(); /** * optional .mesos.v1.Value.Set set = 6; */ org.apache.mesos.v1.Protos.Value.Set getSet(); /** * optional .mesos.v1.Value.Set set = 6; */ org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder(); /** * optional .mesos.v1.Value.Text text = 5; */ boolean hasText(); /** * optional .mesos.v1.Value.Text text = 5; */ org.apache.mesos.v1.Protos.Value.Text getText(); /** * optional .mesos.v1.Value.Text text = 5; */ org.apache.mesos.v1.Protos.Value.TextOrBuilder getTextOrBuilder(); } /** *
   **
   * Describes an attribute that can be set on a machine. For now,
   * attributes and resources share the same "value" type, but this may
   * change in the future and attributes may only be string based.
   * 
* * Protobuf type {@code mesos.v1.Attribute} */ public static final class Attribute extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Attribute) AttributeOrBuilder { private static final long serialVersionUID = 0L; // Use Attribute.newBuilder() to construct. private Attribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Attribute() { name_ = ""; type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Attribute( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 16: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Value.Type value = org.apache.mesos.v1.Protos.Value.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; type_ = rawValue; } break; } case 26: { org.apache.mesos.v1.Protos.Value.Scalar.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = scalar_.toBuilder(); } scalar_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Scalar.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scalar_); scalar_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.Protos.Value.Ranges.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = ranges_.toBuilder(); } ranges_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Ranges.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ranges_); ranges_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { org.apache.mesos.v1.Protos.Value.Text.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = text_.toBuilder(); } text_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Text.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(text_); text_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 50: { org.apache.mesos.v1.Protos.Value.Set.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = set_.toBuilder(); } set_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Set.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(set_); set_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Attribute_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Attribute.class, org.apache.mesos.v1.Protos.Attribute.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * required .mesos.v1.Value.Type type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.Value.Type type = 2; */ public org.apache.mesos.v1.Protos.Value.Type getType() { org.apache.mesos.v1.Protos.Value.Type result = org.apache.mesos.v1.Protos.Value.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Value.Type.SCALAR : result; } public static final int SCALAR_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Value.Scalar scalar_; /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public boolean hasScalar() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.Scalar getScalar() { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } public static final int RANGES_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Value.Ranges ranges_; /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public boolean hasRanges() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.Ranges getRanges() { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder() { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } public static final int SET_FIELD_NUMBER = 6; private org.apache.mesos.v1.Protos.Value.Set set_; /** * optional .mesos.v1.Value.Set set = 6; */ public boolean hasSet() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Value.Set set = 6; */ public org.apache.mesos.v1.Protos.Value.Set getSet() { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } /** * optional .mesos.v1.Value.Set set = 6; */ public org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder() { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } public static final int TEXT_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.Value.Text text_; /** * optional .mesos.v1.Value.Text text = 5; */ public boolean hasText() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.Text getText() { return text_ == null ? org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance() : text_; } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.TextOrBuilder getTextOrBuilder() { return text_ == null ? org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance() : text_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasScalar()) { if (!getScalar().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasRanges()) { if (!getRanges().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasText()) { if (!getText().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getScalar()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getRanges()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(5, getText()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(6, getSet()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getScalar()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRanges()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getText()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Attribute)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Attribute other = (org.apache.mesos.v1.Protos.Attribute) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasScalar() == other.hasScalar()); if (hasScalar()) { result = result && getScalar() .equals(other.getScalar()); } result = result && (hasRanges() == other.hasRanges()); if (hasRanges()) { result = result && getRanges() .equals(other.getRanges()); } result = result && (hasSet() == other.hasSet()); if (hasSet()) { result = result && getSet() .equals(other.getSet()); } result = result && (hasText() == other.hasText()); if (hasText()) { result = result && getText() .equals(other.getText()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasScalar()) { hash = (37 * hash) + SCALAR_FIELD_NUMBER; hash = (53 * hash) + getScalar().hashCode(); } if (hasRanges()) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRanges().hashCode(); } if (hasSet()) { hash = (37 * hash) + SET_FIELD_NUMBER; hash = (53 * hash) + getSet().hashCode(); } if (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Attribute parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Attribute parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Attribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Attribute 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.Protos.Attribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Attribute parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Attribute parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Attribute parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Attribute parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Attribute parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Attribute parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Attribute prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes an attribute that can be set on a machine. For now,
     * attributes and resources share the same "value" type, but this may
     * change in the future and attributes may only be string based.
     * 
* * Protobuf type {@code mesos.v1.Attribute} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Attribute) org.apache.mesos.v1.Protos.AttributeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Attribute_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Attribute.class, org.apache.mesos.v1.Protos.Attribute.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Attribute.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getScalarFieldBuilder(); getRangesFieldBuilder(); getSetFieldBuilder(); getTextFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (scalarBuilder_ == null) { scalar_ = null; } else { scalarBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (rangesBuilder_ == null) { ranges_ = null; } else { rangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (setBuilder_ == null) { set_ = null; } else { setBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (textBuilder_ == null) { text_ = null; } else { textBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Attribute_descriptor; } public org.apache.mesos.v1.Protos.Attribute getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Attribute.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Attribute build() { org.apache.mesos.v1.Protos.Attribute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Attribute buildPartial() { org.apache.mesos.v1.Protos.Attribute result = new org.apache.mesos.v1.Protos.Attribute(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (scalarBuilder_ == null) { result.scalar_ = scalar_; } else { result.scalar_ = scalarBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (rangesBuilder_ == null) { result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (setBuilder_ == null) { result.set_ = set_; } else { result.set_ = setBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (textBuilder_ == null) { result.text_ = text_; } else { result.text_ = textBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Attribute) { return mergeFrom((org.apache.mesos.v1.Protos.Attribute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Attribute other) { if (other == org.apache.mesos.v1.Protos.Attribute.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasScalar()) { mergeScalar(other.getScalar()); } if (other.hasRanges()) { mergeRanges(other.getRanges()); } if (other.hasSet()) { mergeSet(other.getSet()); } if (other.hasText()) { mergeText(other.getText()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasType()) { return false; } if (hasScalar()) { if (!getScalar().isInitialized()) { return false; } } if (hasRanges()) { if (!getRanges().isInitialized()) { return false; } } if (hasText()) { if (!getText().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.Protos.Attribute parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Attribute) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private int type_ = 0; /** * required .mesos.v1.Value.Type type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.Value.Type type = 2; */ public org.apache.mesos.v1.Protos.Value.Type getType() { org.apache.mesos.v1.Protos.Value.Type result = org.apache.mesos.v1.Protos.Value.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Value.Type.SCALAR : result; } /** * required .mesos.v1.Value.Type type = 2; */ public Builder setType(org.apache.mesos.v1.Protos.Value.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** * required .mesos.v1.Value.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.Value.Scalar scalar_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder> scalarBuilder_; /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public boolean hasScalar() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.Scalar getScalar() { if (scalarBuilder_ == null) { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } else { return scalarBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public Builder setScalar(org.apache.mesos.v1.Protos.Value.Scalar value) { if (scalarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scalar_ = value; onChanged(); } else { scalarBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public Builder setScalar( org.apache.mesos.v1.Protos.Value.Scalar.Builder builderForValue) { if (scalarBuilder_ == null) { scalar_ = builderForValue.build(); onChanged(); } else { scalarBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public Builder mergeScalar(org.apache.mesos.v1.Protos.Value.Scalar value) { if (scalarBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && scalar_ != null && scalar_ != org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance()) { scalar_ = org.apache.mesos.v1.Protos.Value.Scalar.newBuilder(scalar_).mergeFrom(value).buildPartial(); } else { scalar_ = value; } onChanged(); } else { scalarBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public Builder clearScalar() { if (scalarBuilder_ == null) { scalar_ = null; onChanged(); } else { scalarBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.Scalar.Builder getScalarBuilder() { bitField0_ |= 0x00000004; onChanged(); return getScalarFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { if (scalarBuilder_ != null) { return scalarBuilder_.getMessageOrBuilder(); } else { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder> getScalarFieldBuilder() { if (scalarBuilder_ == null) { scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder>( getScalar(), getParentForChildren(), isClean()); scalar_ = null; } return scalarBuilder_; } private org.apache.mesos.v1.Protos.Value.Ranges ranges_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder> rangesBuilder_; /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public boolean hasRanges() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.Ranges getRanges() { if (rangesBuilder_ == null) { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } else { return rangesBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public Builder setRanges(org.apache.mesos.v1.Protos.Value.Ranges value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ranges_ = value; onChanged(); } else { rangesBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public Builder setRanges( org.apache.mesos.v1.Protos.Value.Ranges.Builder builderForValue) { if (rangesBuilder_ == null) { ranges_ = builderForValue.build(); onChanged(); } else { rangesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public Builder mergeRanges(org.apache.mesos.v1.Protos.Value.Ranges value) { if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && ranges_ != null && ranges_ != org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance()) { ranges_ = org.apache.mesos.v1.Protos.Value.Ranges.newBuilder(ranges_).mergeFrom(value).buildPartial(); } else { ranges_ = value; } onChanged(); } else { rangesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = null; onChanged(); } else { rangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.Ranges.Builder getRangesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRangesFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilder(); } else { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder>( getRanges(), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } private org.apache.mesos.v1.Protos.Value.Set set_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder> setBuilder_; /** * optional .mesos.v1.Value.Set set = 6; */ public boolean hasSet() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Value.Set set = 6; */ public org.apache.mesos.v1.Protos.Value.Set getSet() { if (setBuilder_ == null) { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } else { return setBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Set set = 6; */ public Builder setSet(org.apache.mesos.v1.Protos.Value.Set value) { if (setBuilder_ == null) { if (value == null) { throw new NullPointerException(); } set_ = value; onChanged(); } else { setBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Set set = 6; */ public Builder setSet( org.apache.mesos.v1.Protos.Value.Set.Builder builderForValue) { if (setBuilder_ == null) { set_ = builderForValue.build(); onChanged(); } else { setBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Set set = 6; */ public Builder mergeSet(org.apache.mesos.v1.Protos.Value.Set value) { if (setBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && set_ != null && set_ != org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance()) { set_ = org.apache.mesos.v1.Protos.Value.Set.newBuilder(set_).mergeFrom(value).buildPartial(); } else { set_ = value; } onChanged(); } else { setBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Set set = 6; */ public Builder clearSet() { if (setBuilder_ == null) { set_ = null; onChanged(); } else { setBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.Value.Set set = 6; */ public org.apache.mesos.v1.Protos.Value.Set.Builder getSetBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSetFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Set set = 6; */ public org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder() { if (setBuilder_ != null) { return setBuilder_.getMessageOrBuilder(); } else { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } } /** * optional .mesos.v1.Value.Set set = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder> getSetFieldBuilder() { if (setBuilder_ == null) { setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder>( getSet(), getParentForChildren(), isClean()); set_ = null; } return setBuilder_; } private org.apache.mesos.v1.Protos.Value.Text text_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Text, org.apache.mesos.v1.Protos.Value.Text.Builder, org.apache.mesos.v1.Protos.Value.TextOrBuilder> textBuilder_; /** * optional .mesos.v1.Value.Text text = 5; */ public boolean hasText() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.Text getText() { if (textBuilder_ == null) { return text_ == null ? org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance() : text_; } else { return textBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Text text = 5; */ public Builder setText(org.apache.mesos.v1.Protos.Value.Text value) { if (textBuilder_ == null) { if (value == null) { throw new NullPointerException(); } text_ = value; onChanged(); } else { textBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Value.Text text = 5; */ public Builder setText( org.apache.mesos.v1.Protos.Value.Text.Builder builderForValue) { if (textBuilder_ == null) { text_ = builderForValue.build(); onChanged(); } else { textBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Value.Text text = 5; */ public Builder mergeText(org.apache.mesos.v1.Protos.Value.Text value) { if (textBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && text_ != null && text_ != org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance()) { text_ = org.apache.mesos.v1.Protos.Value.Text.newBuilder(text_).mergeFrom(value).buildPartial(); } else { text_ = value; } onChanged(); } else { textBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Value.Text text = 5; */ public Builder clearText() { if (textBuilder_ == null) { text_ = null; onChanged(); } else { textBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.Text.Builder getTextBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTextFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Text text = 5; */ public org.apache.mesos.v1.Protos.Value.TextOrBuilder getTextOrBuilder() { if (textBuilder_ != null) { return textBuilder_.getMessageOrBuilder(); } else { return text_ == null ? org.apache.mesos.v1.Protos.Value.Text.getDefaultInstance() : text_; } } /** * optional .mesos.v1.Value.Text text = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Text, org.apache.mesos.v1.Protos.Value.Text.Builder, org.apache.mesos.v1.Protos.Value.TextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Text, org.apache.mesos.v1.Protos.Value.Text.Builder, org.apache.mesos.v1.Protos.Value.TextOrBuilder>( getText(), getParentForChildren(), isClean()); text_ = null; } return textBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Attribute) } // @@protoc_insertion_point(class_scope:mesos.v1.Attribute) private static final org.apache.mesos.v1.Protos.Attribute DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Attribute(); } public static org.apache.mesos.v1.Protos.Attribute getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Attribute parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Attribute(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Attribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource) com.google.protobuf.MessageOrBuilder { /** *
     * Specified if the resource comes from a particular resource provider.
     * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ boolean hasProviderId(); /** *
     * Specified if the resource comes from a particular resource provider.
     * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ org.apache.mesos.v1.Protos.ResourceProviderID getProviderId(); /** *
     * Specified if the resource comes from a particular resource provider.
     * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getProviderIdOrBuilder(); /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required .mesos.v1.Value.Type type = 2; */ boolean hasType(); /** * required .mesos.v1.Value.Type type = 2; */ org.apache.mesos.v1.Protos.Value.Type getType(); /** * optional .mesos.v1.Value.Scalar scalar = 3; */ boolean hasScalar(); /** * optional .mesos.v1.Value.Scalar scalar = 3; */ org.apache.mesos.v1.Protos.Value.Scalar getScalar(); /** * optional .mesos.v1.Value.Scalar scalar = 3; */ org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder(); /** * optional .mesos.v1.Value.Ranges ranges = 4; */ boolean hasRanges(); /** * optional .mesos.v1.Value.Ranges ranges = 4; */ org.apache.mesos.v1.Protos.Value.Ranges getRanges(); /** * optional .mesos.v1.Value.Ranges ranges = 4; */ org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder(); /** * optional .mesos.v1.Value.Set set = 5; */ boolean hasSet(); /** * optional .mesos.v1.Value.Set set = 5; */ org.apache.mesos.v1.Protos.Value.Set getSet(); /** * optional .mesos.v1.Value.Set set = 5; */ org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder(); /** *
     * The role that this resource is reserved for. If "*", this indicates
     * that the resource is unreserved. Otherwise, the resource will only
     * be offered to frameworks that belong to this role.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated boolean hasRole(); /** *
     * The role that this resource is reserved for. If "*", this indicates
     * that the resource is unreserved. Otherwise, the resource will only
     * be offered to frameworks that belong to this role.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated java.lang.String getRole(); /** *
     * The role that this resource is reserved for. If "*", this indicates
     * that the resource is unreserved. Otherwise, the resource will only
     * be offered to frameworks that belong to this role.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated com.google.protobuf.ByteString getRoleBytes(); /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ boolean hasAllocationInfo(); /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ org.apache.mesos.v1.Protos.Resource.AllocationInfo getAllocationInfo(); /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder(); /** *
     * If this is set, this resource was dynamically reserved by an
     * operator or a framework. Otherwise, this resource is either unreserved
     * or statically reserved by an operator via the --resources flag.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ boolean hasReservation(); /** *
     * If this is set, this resource was dynamically reserved by an
     * operator or a framework. Otherwise, this resource is either unreserved
     * or statically reserved by an operator via the --resources flag.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ org.apache.mesos.v1.Protos.Resource.ReservationInfo getReservation(); /** *
     * If this is set, this resource was dynamically reserved by an
     * operator or a framework. Otherwise, this resource is either unreserved
     * or statically reserved by an operator via the --resources flag.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getReservationOrBuilder(); /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ java.util.List getReservationsList(); /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ org.apache.mesos.v1.Protos.Resource.ReservationInfo getReservations(int index); /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ int getReservationsCount(); /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ java.util.List getReservationsOrBuilderList(); /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getReservationsOrBuilder( int index); /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ boolean hasDisk(); /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ org.apache.mesos.v1.Protos.Resource.DiskInfo getDisk(); /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ org.apache.mesos.v1.Protos.Resource.DiskInfoOrBuilder getDiskOrBuilder(); /** *
     * If this is set, the resources are revocable, i.e., any tasks or
     * executors launched using these resources could get preempted or
     * throttled at any time. This could be used by frameworks to run
     * best effort tasks that do not need strict uptime or performance
     * guarantees. Note that if this is set, 'disk' or 'reservation'
     * cannot be set.
     * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ boolean hasRevocable(); /** *
     * If this is set, the resources are revocable, i.e., any tasks or
     * executors launched using these resources could get preempted or
     * throttled at any time. This could be used by frameworks to run
     * best effort tasks that do not need strict uptime or performance
     * guarantees. Note that if this is set, 'disk' or 'reservation'
     * cannot be set.
     * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ org.apache.mesos.v1.Protos.Resource.RevocableInfo getRevocable(); /** *
     * If this is set, the resources are revocable, i.e., any tasks or
     * executors launched using these resources could get preempted or
     * throttled at any time. This could be used by frameworks to run
     * best effort tasks that do not need strict uptime or performance
     * guarantees. Note that if this is set, 'disk' or 'reservation'
     * cannot be set.
     * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ org.apache.mesos.v1.Protos.Resource.RevocableInfoOrBuilder getRevocableOrBuilder(); /** *
     * If this is set, the resources are shared, i.e. multiple tasks
     * can be launched using this resource and all of them shall refer
     * to the same physical resource on the cluster. Note that only
     * persistent volumes can be shared currently.
     * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ boolean hasShared(); /** *
     * If this is set, the resources are shared, i.e. multiple tasks
     * can be launched using this resource and all of them shall refer
     * to the same physical resource on the cluster. Note that only
     * persistent volumes can be shared currently.
     * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ org.apache.mesos.v1.Protos.Resource.SharedInfo getShared(); /** *
     * If this is set, the resources are shared, i.e. multiple tasks
     * can be launched using this resource and all of them shall refer
     * to the same physical resource on the cluster. Note that only
     * persistent volumes can be shared currently.
     * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ org.apache.mesos.v1.Protos.Resource.SharedInfoOrBuilder getSharedOrBuilder(); } /** *
   **
   * Describes a resource from a resource provider. The `name` field is
   * a string like "cpus" or "mem" that indicates which kind of resource
   * this is; the rest of the fields describe the properties of the
   * resource. A resource can take on one of three types: scalar
   * (double), a list of finite and discrete ranges (e.g., [1-10,
   * 20-30]), or a set of items. A resource is described using the
   * standard protocol buffer "union" trick.
   * Note that "disk" and "mem" resources are scalar values expressed in
   * megabytes. Fractional "cpus" values are allowed (e.g., "0.5"),
   * which correspond to partial shares of a CPU.
   * 
* * Protobuf type {@code mesos.v1.Resource} */ public static final class Resource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource) ResourceOrBuilder { private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Resource() { name_ = ""; type_ = 0; role_ = "*"; reservations_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 16: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Value.Type value = org.apache.mesos.v1.Protos.Value.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000004; type_ = rawValue; } break; } case 26: { org.apache.mesos.v1.Protos.Value.Scalar.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = scalar_.toBuilder(); } scalar_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Scalar.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scalar_); scalar_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 34: { org.apache.mesos.v1.Protos.Value.Ranges.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = ranges_.toBuilder(); } ranges_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Ranges.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ranges_); ranges_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 42: { org.apache.mesos.v1.Protos.Value.Set.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = set_.toBuilder(); } set_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Set.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(set_); set_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; role_ = bs; break; } case 58: { org.apache.mesos.v1.Protos.Resource.DiskInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = disk_.toBuilder(); } disk_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.DiskInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(disk_); disk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 66: { org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = reservation_.toBuilder(); } reservation_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.ReservationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reservation_); reservation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 74: { org.apache.mesos.v1.Protos.Resource.RevocableInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = revocable_.toBuilder(); } revocable_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.RevocableInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(revocable_); revocable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 82: { org.apache.mesos.v1.Protos.Resource.SharedInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = shared_.toBuilder(); } shared_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.SharedInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shared_); shared_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 90: { org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = allocationInfo_.toBuilder(); } allocationInfo_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.AllocationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allocationInfo_); allocationInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 98: { org.apache.mesos.v1.Protos.ResourceProviderID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = providerId_.toBuilder(); } providerId_ = input.readMessage(org.apache.mesos.v1.Protos.ResourceProviderID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(providerId_); providerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 106: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { reservations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } reservations_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.ReservationInfo.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { reservations_ = java.util.Collections.unmodifiableList(reservations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.class, org.apache.mesos.v1.Protos.Resource.Builder.class); } public interface AllocationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.AllocationInfo) com.google.protobuf.MessageOrBuilder { /** *
       * If set, this resource is allocated to a role. Note that in the
       * future, this may be unset and the scheduler may be responsible
       * for allocating to one of its roles.
       * 
* * optional string role = 1; */ boolean hasRole(); /** *
       * If set, this resource is allocated to a role. Note that in the
       * future, this may be unset and the scheduler may be responsible
       * for allocating to one of its roles.
       * 
* * optional string role = 1; */ java.lang.String getRole(); /** *
       * If set, this resource is allocated to a role. Note that in the
       * future, this may be unset and the scheduler may be responsible
       * for allocating to one of its roles.
       * 
* * optional string role = 1; */ com.google.protobuf.ByteString getRoleBytes(); } /** *
     * This was initially introduced to support MULTI_ROLE capable
     * frameworks. Frameworks that are not MULTI_ROLE capable can
     * continue to assume that the offered resources are allocated
     * to their role.
     * 
* * Protobuf type {@code mesos.v1.Resource.AllocationInfo} */ public static final class AllocationInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.AllocationInfo) AllocationInfoOrBuilder { private static final long serialVersionUID = 0L; // Use AllocationInfo.newBuilder() to construct. private AllocationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllocationInfo() { role_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AllocationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; role_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_AllocationInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_AllocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.AllocationInfo.class, org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder.class); } private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; private volatile java.lang.Object role_; /** *
       * If set, this resource is allocated to a role. Note that in the
       * future, this may be unset and the scheduler may be responsible
       * for allocating to one of its roles.
       * 
* * optional string role = 1; */ public boolean hasRole() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * If set, this resource is allocated to a role. Note that in the
       * future, this may be unset and the scheduler may be responsible
       * for allocating to one of its roles.
       * 
* * optional string role = 1; */ public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } } /** *
       * If set, this resource is allocated to a role. Note that in the
       * future, this may be unset and the scheduler may be responsible
       * for allocating to one of its roles.
       * 
* * optional string role = 1; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.AllocationInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.AllocationInfo other = (org.apache.mesos.v1.Protos.Resource.AllocationInfo) obj; boolean result = true; result = result && (hasRole() == other.hasRole()); if (hasRole()) { result = result && getRole() .equals(other.getRole()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRole()) { hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo 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.Protos.Resource.AllocationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.AllocationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * This was initially introduced to support MULTI_ROLE capable
       * frameworks. Frameworks that are not MULTI_ROLE capable can
       * continue to assume that the offered resources are allocated
       * to their role.
       * 
* * Protobuf type {@code mesos.v1.Resource.AllocationInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.AllocationInfo) org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_AllocationInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_AllocationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.AllocationInfo.class, org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.AllocationInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); role_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_AllocationInfo_descriptor; } public org.apache.mesos.v1.Protos.Resource.AllocationInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.AllocationInfo build() { org.apache.mesos.v1.Protos.Resource.AllocationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.AllocationInfo buildPartial() { org.apache.mesos.v1.Protos.Resource.AllocationInfo result = new org.apache.mesos.v1.Protos.Resource.AllocationInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.role_ = role_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.AllocationInfo) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.AllocationInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.AllocationInfo other) { if (other == org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance()) return this; if (other.hasRole()) { bitField0_ |= 0x00000001; role_ = other.role_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Resource.AllocationInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.AllocationInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object role_ = ""; /** *
         * If set, this resource is allocated to a role. Note that in the
         * future, this may be unset and the scheduler may be responsible
         * for allocating to one of its roles.
         * 
* * optional string role = 1; */ public boolean hasRole() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * If set, this resource is allocated to a role. Note that in the
         * future, this may be unset and the scheduler may be responsible
         * for allocating to one of its roles.
         * 
* * optional string role = 1; */ public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * If set, this resource is allocated to a role. Note that in the
         * future, this may be unset and the scheduler may be responsible
         * for allocating to one of its roles.
         * 
* * optional string role = 1; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * If set, this resource is allocated to a role. Note that in the
         * future, this may be unset and the scheduler may be responsible
         * for allocating to one of its roles.
         * 
* * optional string role = 1; */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; role_ = value; onChanged(); return this; } /** *
         * If set, this resource is allocated to a role. Note that in the
         * future, this may be unset and the scheduler may be responsible
         * for allocating to one of its roles.
         * 
* * optional string role = 1; */ public Builder clearRole() { bitField0_ = (bitField0_ & ~0x00000001); role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** *
         * If set, this resource is allocated to a role. Note that in the
         * future, this may be unset and the scheduler may be responsible
         * for allocating to one of its roles.
         * 
* * optional string role = 1; */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; role_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.AllocationInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.AllocationInfo) private static final org.apache.mesos.v1.Protos.Resource.AllocationInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.AllocationInfo(); } public static org.apache.mesos.v1.Protos.Resource.AllocationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AllocationInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AllocationInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.AllocationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReservationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.ReservationInfo) com.google.protobuf.MessageOrBuilder { /** *
       * The type of this reservation.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional .mesos.v1.Resource.ReservationInfo.Type type = 4; */ boolean hasType(); /** *
       * The type of this reservation.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional .mesos.v1.Resource.ReservationInfo.Type type = 4; */ org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type getType(); /** *
       * The role to which this reservation is made for.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional string role = 3; */ boolean hasRole(); /** *
       * The role to which this reservation is made for.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional string role = 3; */ java.lang.String getRole(); /** *
       * The role to which this reservation is made for.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional string role = 3; */ com.google.protobuf.ByteString getRoleBytes(); /** *
       * Indicates the principal, if any, of the framework or operator
       * that reserved this resource. If reserved by a framework, the
       * field should match the `FrameworkInfo.principal`. It is used in
       * conjunction with the `UnreserveResources` ACL to determine
       * whether the entity attempting to unreserve this resource is
       * permitted to do so.
       * 
* * optional string principal = 1; */ boolean hasPrincipal(); /** *
       * Indicates the principal, if any, of the framework or operator
       * that reserved this resource. If reserved by a framework, the
       * field should match the `FrameworkInfo.principal`. It is used in
       * conjunction with the `UnreserveResources` ACL to determine
       * whether the entity attempting to unreserve this resource is
       * permitted to do so.
       * 
* * optional string principal = 1; */ java.lang.String getPrincipal(); /** *
       * Indicates the principal, if any, of the framework or operator
       * that reserved this resource. If reserved by a framework, the
       * field should match the `FrameworkInfo.principal`. It is used in
       * conjunction with the `UnreserveResources` ACL to determine
       * whether the entity attempting to unreserve this resource is
       * permitted to do so.
       * 
* * optional string principal = 1; */ com.google.protobuf.ByteString getPrincipalBytes(); /** *
       * Labels are free-form key value pairs that can be used to
       * associate arbitrary metadata with a reserved resource.  For
       * example, frameworks can use labels to identify the intended
       * purpose for a portion of the resources the framework has
       * reserved at a given agent. Labels should not contain duplicate
       * key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 2; */ boolean hasLabels(); /** *
       * Labels are free-form key value pairs that can be used to
       * associate arbitrary metadata with a reserved resource.  For
       * example, frameworks can use labels to identify the intended
       * purpose for a portion of the resources the framework has
       * reserved at a given agent. Labels should not contain duplicate
       * key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 2; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** *
       * Labels are free-form key value pairs that can be used to
       * associate arbitrary metadata with a reserved resource.  For
       * example, frameworks can use labels to identify the intended
       * purpose for a portion of the resources the framework has
       * reserved at a given agent. Labels should not contain duplicate
       * key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 2; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); } /** *
     * Describes a reservation. A static reservation is set by the operator on
     * the command-line and they are immutable without agent restart. A dynamic
     * reservation is made by an operator via the '/reserve' HTTP endpoint
     * or by a framework via the offer cycle by sending back an
     * 'Offer::Operation::Reserve' message.
     * NOTE: We currently do not allow frameworks with role "*" to make dynamic
     * reservations.
     * 
* * Protobuf type {@code mesos.v1.Resource.ReservationInfo} */ public static final class ReservationInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.ReservationInfo) ReservationInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ReservationInfo.newBuilder() to construct. private ReservationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReservationInfo() { type_ = 0; role_ = ""; principal_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReservationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; principal_ = bs; break; } case 18: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; role_ = bs; break; } case 32: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type value = org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_ReservationInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_ReservationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.ReservationInfo.class, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder.class); } /** * Protobuf enum {@code mesos.v1.Resource.ReservationInfo.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * STATIC = 1; */ STATIC(1), /** * DYNAMIC = 2; */ DYNAMIC(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * STATIC = 1; */ public static final int STATIC_VALUE = 1; /** * DYNAMIC = 2; */ public static final int DYNAMIC_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return STATIC; case 2: return DYNAMIC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Resource.ReservationInfo.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 4; private int type_; /** *
       * The type of this reservation.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional .mesos.v1.Resource.ReservationInfo.Type type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The type of this reservation.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional .mesos.v1.Resource.ReservationInfo.Type type = 4; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type getType() { org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type result = org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type.UNKNOWN : result; } public static final int ROLE_FIELD_NUMBER = 3; private volatile java.lang.Object role_; /** *
       * The role to which this reservation is made for.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional string role = 3; */ public boolean hasRole() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * The role to which this reservation is made for.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional string role = 3; */ public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } } /** *
       * The role to which this reservation is made for.
       * NOTE: This field must not be set for `Resource.reservation`.
       *       See the 'Resource Format' section for more details.
       * 
* * optional string role = 3; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRINCIPAL_FIELD_NUMBER = 1; private volatile java.lang.Object principal_; /** *
       * Indicates the principal, if any, of the framework or operator
       * that reserved this resource. If reserved by a framework, the
       * field should match the `FrameworkInfo.principal`. It is used in
       * conjunction with the `UnreserveResources` ACL to determine
       * whether the entity attempting to unreserve this resource is
       * permitted to do so.
       * 
* * optional string principal = 1; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Indicates the principal, if any, of the framework or operator
       * that reserved this resource. If reserved by a framework, the
       * field should match the `FrameworkInfo.principal`. It is used in
       * conjunction with the `UnreserveResources` ACL to determine
       * whether the entity attempting to unreserve this resource is
       * permitted to do so.
       * 
* * optional string principal = 1; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } } /** *
       * Indicates the principal, if any, of the framework or operator
       * that reserved this resource. If reserved by a framework, the
       * field should match the `FrameworkInfo.principal`. It is used in
       * conjunction with the `UnreserveResources` ACL to determine
       * whether the entity attempting to unreserve this resource is
       * permitted to do so.
       * 
* * optional string principal = 1; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Labels labels_; /** *
       * Labels are free-form key value pairs that can be used to
       * associate arbitrary metadata with a reserved resource.  For
       * example, frameworks can use labels to identify the intended
       * purpose for a portion of the resources the framework has
       * reserved at a given agent. Labels should not contain duplicate
       * key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 2; */ public boolean hasLabels() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * Labels are free-form key value pairs that can be used to
       * associate arbitrary metadata with a reserved resource.  For
       * example, frameworks can use labels to identify the intended
       * purpose for a portion of the resources the framework has
       * reserved at a given agent. Labels should not contain duplicate
       * key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 2; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** *
       * Labels are free-form key value pairs that can be used to
       * associate arbitrary metadata with a reserved resource.  For
       * example, frameworks can use labels to identify the intended
       * purpose for a portion of the resources the framework has
       * reserved at a given agent. Labels should not contain duplicate
       * key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 2; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principal_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(2, getLabels()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, role_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(4, type_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principal_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLabels()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, role_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.ReservationInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.ReservationInfo other = (org.apache.mesos.v1.Protos.Resource.ReservationInfo) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasRole() == other.hasRole()); if (hasRole()) { result = result && getRole() .equals(other.getRole()); } result = result && (hasPrincipal() == other.hasPrincipal()); if (hasPrincipal()) { result = result && getPrincipal() .equals(other.getPrincipal()); } result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasRole()) { hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); } if (hasPrincipal()) { hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo 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.Protos.Resource.ReservationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.ReservationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes a reservation. A static reservation is set by the operator on
       * the command-line and they are immutable without agent restart. A dynamic
       * reservation is made by an operator via the '/reserve' HTTP endpoint
       * or by a framework via the offer cycle by sending back an
       * 'Offer::Operation::Reserve' message.
       * NOTE: We currently do not allow frameworks with role "*" to make dynamic
       * reservations.
       * 
* * Protobuf type {@code mesos.v1.Resource.ReservationInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.ReservationInfo) org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_ReservationInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_ReservationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.ReservationInfo.class, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.ReservationInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLabelsFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); role_ = ""; bitField0_ = (bitField0_ & ~0x00000002); principal_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_ReservationInfo_descriptor; } public org.apache.mesos.v1.Protos.Resource.ReservationInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.ReservationInfo build() { org.apache.mesos.v1.Protos.Resource.ReservationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.ReservationInfo buildPartial() { org.apache.mesos.v1.Protos.Resource.ReservationInfo result = new org.apache.mesos.v1.Protos.Resource.ReservationInfo(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.role_ = role_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.principal_ = principal_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.ReservationInfo) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.ReservationInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.ReservationInfo other) { if (other == org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasRole()) { bitField0_ |= 0x00000002; role_ = other.role_; onChanged(); } if (other.hasPrincipal()) { bitField0_ |= 0x00000004; principal_ = other.principal_; onChanged(); } if (other.hasLabels()) { mergeLabels(other.getLabels()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasLabels()) { if (!getLabels().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.Protos.Resource.ReservationInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.ReservationInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** *
         * The type of this reservation.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional .mesos.v1.Resource.ReservationInfo.Type type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * The type of this reservation.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional .mesos.v1.Resource.ReservationInfo.Type type = 4; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type getType() { org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type result = org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type.UNKNOWN : result; } /** *
         * The type of this reservation.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional .mesos.v1.Resource.ReservationInfo.Type type = 4; */ public Builder setType(org.apache.mesos.v1.Protos.Resource.ReservationInfo.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
         * The type of this reservation.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional .mesos.v1.Resource.ReservationInfo.Type type = 4; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private java.lang.Object role_ = ""; /** *
         * The role to which this reservation is made for.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional string role = 3; */ public boolean hasRole() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * The role to which this reservation is made for.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional string role = 3; */ public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * The role to which this reservation is made for.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional string role = 3; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The role to which this reservation is made for.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional string role = 3; */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; role_ = value; onChanged(); return this; } /** *
         * The role to which this reservation is made for.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional string role = 3; */ public Builder clearRole() { bitField0_ = (bitField0_ & ~0x00000002); role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** *
         * The role to which this reservation is made for.
         * NOTE: This field must not be set for `Resource.reservation`.
         *       See the 'Resource Format' section for more details.
         * 
* * optional string role = 3; */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; role_ = value; onChanged(); return this; } private java.lang.Object principal_ = ""; /** *
         * Indicates the principal, if any, of the framework or operator
         * that reserved this resource. If reserved by a framework, the
         * field should match the `FrameworkInfo.principal`. It is used in
         * conjunction with the `UnreserveResources` ACL to determine
         * whether the entity attempting to unreserve this resource is
         * permitted to do so.
         * 
* * optional string principal = 1; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Indicates the principal, if any, of the framework or operator
         * that reserved this resource. If reserved by a framework, the
         * field should match the `FrameworkInfo.principal`. It is used in
         * conjunction with the `UnreserveResources` ACL to determine
         * whether the entity attempting to unreserve this resource is
         * permitted to do so.
         * 
* * optional string principal = 1; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * Indicates the principal, if any, of the framework or operator
         * that reserved this resource. If reserved by a framework, the
         * field should match the `FrameworkInfo.principal`. It is used in
         * conjunction with the `UnreserveResources` ACL to determine
         * whether the entity attempting to unreserve this resource is
         * permitted to do so.
         * 
* * optional string principal = 1; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Indicates the principal, if any, of the framework or operator
         * that reserved this resource. If reserved by a framework, the
         * field should match the `FrameworkInfo.principal`. It is used in
         * conjunction with the `UnreserveResources` ACL to determine
         * whether the entity attempting to unreserve this resource is
         * permitted to do so.
         * 
* * optional string principal = 1; */ public Builder setPrincipal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; principal_ = value; onChanged(); return this; } /** *
         * Indicates the principal, if any, of the framework or operator
         * that reserved this resource. If reserved by a framework, the
         * field should match the `FrameworkInfo.principal`. It is used in
         * conjunction with the `UnreserveResources` ACL to determine
         * whether the entity attempting to unreserve this resource is
         * permitted to do so.
         * 
* * optional string principal = 1; */ public Builder clearPrincipal() { bitField0_ = (bitField0_ & ~0x00000004); principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** *
         * Indicates the principal, if any, of the framework or operator
         * that reserved this resource. If reserved by a framework, the
         * field should match the `FrameworkInfo.principal`. It is used in
         * conjunction with the `UnreserveResources` ACL to determine
         * whether the entity attempting to unreserve this resource is
         * permitted to do so.
         * 
* * optional string principal = 1; */ public Builder setPrincipalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; principal_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ public boolean hasLabels() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** *
         * Labels are free-form key value pairs that can be used to
         * associate arbitrary metadata with a reserved resource.  For
         * example, frameworks can use labels to identify the intended
         * purpose for a portion of the resources the framework has
         * reserved at a given agent. Labels should not contain duplicate
         * key-value pairs.
         * 
* * optional .mesos.v1.Labels labels = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.ReservationInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.ReservationInfo) private static final org.apache.mesos.v1.Protos.Resource.ReservationInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.ReservationInfo(); } public static org.apache.mesos.v1.Protos.Resource.ReservationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReservationInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReservationInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.ReservationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiskInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.DiskInfo) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ boolean hasPersistence(); /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getPersistence(); /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder getPersistenceOrBuilder(); /** *
       * Describes how this disk resource will be mounted in the
       * container. If not set, the disk resource will be used as the
       * sandbox. Otherwise, it will be mounted according to the
       * 'container_path' inside 'volume'. The 'host_path' inside
       * 'volume' is ignored.
       * NOTE: If 'volume' is set but 'persistence' is not set, the
       * volume will be automatically garbage collected after
       * task/executor terminates. Currently, if 'persistence' is set,
       * 'volume' must be set.
       * 
* * optional .mesos.v1.Volume volume = 2; */ boolean hasVolume(); /** *
       * Describes how this disk resource will be mounted in the
       * container. If not set, the disk resource will be used as the
       * sandbox. Otherwise, it will be mounted according to the
       * 'container_path' inside 'volume'. The 'host_path' inside
       * 'volume' is ignored.
       * NOTE: If 'volume' is set but 'persistence' is not set, the
       * volume will be automatically garbage collected after
       * task/executor terminates. Currently, if 'persistence' is set,
       * 'volume' must be set.
       * 
* * optional .mesos.v1.Volume volume = 2; */ org.apache.mesos.v1.Protos.Volume getVolume(); /** *
       * Describes how this disk resource will be mounted in the
       * container. If not set, the disk resource will be used as the
       * sandbox. Otherwise, it will be mounted according to the
       * 'container_path' inside 'volume'. The 'host_path' inside
       * 'volume' is ignored.
       * NOTE: If 'volume' is set but 'persistence' is not set, the
       * volume will be automatically garbage collected after
       * task/executor terminates. Currently, if 'persistence' is set,
       * 'volume' must be set.
       * 
* * optional .mesos.v1.Volume volume = 2; */ org.apache.mesos.v1.Protos.VolumeOrBuilder getVolumeOrBuilder(); /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ boolean hasSource(); /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getSource(); /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder getSourceOrBuilder(); } /** * Protobuf type {@code mesos.v1.Resource.DiskInfo} */ public static final class DiskInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.DiskInfo) DiskInfoOrBuilder { private static final long serialVersionUID = 0L; // Use DiskInfo.newBuilder() to construct. private DiskInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiskInfo() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiskInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = persistence_.toBuilder(); } persistence_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(persistence_); persistence_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.Volume.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = volume_.toBuilder(); } volume_ = input.readMessage(org.apache.mesos.v1.Protos.Volume.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(volume_); volume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Builder.class); } public interface PersistenceOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.DiskInfo.Persistence) com.google.protobuf.MessageOrBuilder { /** *
         * A unique ID for the persistent disk volume. This ID must be
         * unique per role on each agent. Although it is possible to use
         * the same ID on different agents in the cluster and to reuse
         * IDs after a volume with that ID has been destroyed, both
         * practices are discouraged.
         * 
* * required string id = 1; */ boolean hasId(); /** *
         * A unique ID for the persistent disk volume. This ID must be
         * unique per role on each agent. Although it is possible to use
         * the same ID on different agents in the cluster and to reuse
         * IDs after a volume with that ID has been destroyed, both
         * practices are discouraged.
         * 
* * required string id = 1; */ java.lang.String getId(); /** *
         * A unique ID for the persistent disk volume. This ID must be
         * unique per role on each agent. Although it is possible to use
         * the same ID on different agents in the cluster and to reuse
         * IDs after a volume with that ID has been destroyed, both
         * practices are discouraged.
         * 
* * required string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** *
         * This field indicates the principal of the operator or
         * framework that created this volume. It is used in conjunction
         * with the "destroy" ACL to determine whether an entity
         * attempting to destroy the volume is permitted to do so.
         * NOTE: This field should match the FrameworkInfo.principal of
         * the framework that created the volume.
         * 
* * optional string principal = 2; */ boolean hasPrincipal(); /** *
         * This field indicates the principal of the operator or
         * framework that created this volume. It is used in conjunction
         * with the "destroy" ACL to determine whether an entity
         * attempting to destroy the volume is permitted to do so.
         * NOTE: This field should match the FrameworkInfo.principal of
         * the framework that created the volume.
         * 
* * optional string principal = 2; */ java.lang.String getPrincipal(); /** *
         * This field indicates the principal of the operator or
         * framework that created this volume. It is used in conjunction
         * with the "destroy" ACL to determine whether an entity
         * attempting to destroy the volume is permitted to do so.
         * NOTE: This field should match the FrameworkInfo.principal of
         * the framework that created the volume.
         * 
* * optional string principal = 2; */ com.google.protobuf.ByteString getPrincipalBytes(); } /** *
       * Describes a persistent disk volume.
       * A persistent disk volume will not be automatically garbage
       * collected if the task/executor/agent terminates, but will be
       * re-offered to the framework(s) belonging to the 'role'.
       * NOTE: Currently, we do not allow persistent disk volumes
       * without a reservation (i.e., 'role' cannot be '*').
       * 
* * Protobuf type {@code mesos.v1.Resource.DiskInfo.Persistence} */ public static final class Persistence extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.DiskInfo.Persistence) PersistenceOrBuilder { private static final long serialVersionUID = 0L; // Use Persistence.newBuilder() to construct. private Persistence(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Persistence() { id_ = ""; principal_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Persistence( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; id_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; principal_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Persistence_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Persistence_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
         * A unique ID for the persistent disk volume. This ID must be
         * unique per role on each agent. Although it is possible to use
         * the same ID on different agents in the cluster and to reuse
         * IDs after a volume with that ID has been destroyed, both
         * practices are discouraged.
         * 
* * required string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * A unique ID for the persistent disk volume. This ID must be
         * unique per role on each agent. Although it is possible to use
         * the same ID on different agents in the cluster and to reuse
         * IDs after a volume with that ID has been destroyed, both
         * practices are discouraged.
         * 
* * required string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** *
         * A unique ID for the persistent disk volume. This ID must be
         * unique per role on each agent. Although it is possible to use
         * the same ID on different agents in the cluster and to reuse
         * IDs after a volume with that ID has been destroyed, both
         * practices are discouraged.
         * 
* * required string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRINCIPAL_FIELD_NUMBER = 2; private volatile java.lang.Object principal_; /** *
         * This field indicates the principal of the operator or
         * framework that created this volume. It is used in conjunction
         * with the "destroy" ACL to determine whether an entity
         * attempting to destroy the volume is permitted to do so.
         * NOTE: This field should match the FrameworkInfo.principal of
         * the framework that created the volume.
         * 
* * optional string principal = 2; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * This field indicates the principal of the operator or
         * framework that created this volume. It is used in conjunction
         * with the "destroy" ACL to determine whether an entity
         * attempting to destroy the volume is permitted to do so.
         * NOTE: This field should match the FrameworkInfo.principal of
         * the framework that created the volume.
         * 
* * optional string principal = 2; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } } /** *
         * This field indicates the principal of the operator or
         * framework that created this volume. It is used in conjunction
         * with the "destroy" ACL to determine whether an entity
         * attempting to destroy the volume is permitted to do so.
         * NOTE: This field should match the FrameworkInfo.principal of
         * the framework that created the volume.
         * 
* * optional string principal = 2; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence other = (org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasPrincipal() == other.hasPrincipal()); if (hasPrincipal()) { result = result && getPrincipal() .equals(other.getPrincipal()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasPrincipal()) { hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence 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.Protos.Resource.DiskInfo.Persistence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Describes a persistent disk volume.
         * A persistent disk volume will not be automatically garbage
         * collected if the task/executor/agent terminates, but will be
         * re-offered to the framework(s) belonging to the 'role'.
         * NOTE: Currently, we do not allow persistent disk volumes
         * without a reservation (i.e., 'role' cannot be '*').
         * 
* * Protobuf type {@code mesos.v1.Resource.DiskInfo.Persistence} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.DiskInfo.Persistence) org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Persistence_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Persistence_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); principal_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Persistence_descriptor; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence build() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence buildPartial() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence result = new org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.principal_ = principal_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence other) { if (other == org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasPrincipal()) { bitField0_ |= 0x00000002; principal_ = other.principal_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasId()) { 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.Protos.Resource.DiskInfo.Persistence parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
           * A unique ID for the persistent disk volume. This ID must be
           * unique per role on each agent. Although it is possible to use
           * the same ID on different agents in the cluster and to reuse
           * IDs after a volume with that ID has been destroyed, both
           * practices are discouraged.
           * 
* * required string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
           * A unique ID for the persistent disk volume. This ID must be
           * unique per role on each agent. Although it is possible to use
           * the same ID on different agents in the cluster and to reuse
           * IDs after a volume with that ID has been destroyed, both
           * practices are discouraged.
           * 
* * required string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * A unique ID for the persistent disk volume. This ID must be
           * unique per role on each agent. Although it is possible to use
           * the same ID on different agents in the cluster and to reuse
           * IDs after a volume with that ID has been destroyed, both
           * practices are discouraged.
           * 
* * required string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * A unique ID for the persistent disk volume. This ID must be
           * unique per role on each agent. Although it is possible to use
           * the same ID on different agents in the cluster and to reuse
           * IDs after a volume with that ID has been destroyed, both
           * practices are discouraged.
           * 
* * required string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** *
           * A unique ID for the persistent disk volume. This ID must be
           * unique per role on each agent. Although it is possible to use
           * the same ID on different agents in the cluster and to reuse
           * IDs after a volume with that ID has been destroyed, both
           * practices are discouraged.
           * 
* * required string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
           * A unique ID for the persistent disk volume. This ID must be
           * unique per role on each agent. Although it is possible to use
           * the same ID on different agents in the cluster and to reuse
           * IDs after a volume with that ID has been destroyed, both
           * practices are discouraged.
           * 
* * required string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object principal_ = ""; /** *
           * This field indicates the principal of the operator or
           * framework that created this volume. It is used in conjunction
           * with the "destroy" ACL to determine whether an entity
           * attempting to destroy the volume is permitted to do so.
           * NOTE: This field should match the FrameworkInfo.principal of
           * the framework that created the volume.
           * 
* * optional string principal = 2; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
           * This field indicates the principal of the operator or
           * framework that created this volume. It is used in conjunction
           * with the "destroy" ACL to determine whether an entity
           * attempting to destroy the volume is permitted to do so.
           * NOTE: This field should match the FrameworkInfo.principal of
           * the framework that created the volume.
           * 
* * optional string principal = 2; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * This field indicates the principal of the operator or
           * framework that created this volume. It is used in conjunction
           * with the "destroy" ACL to determine whether an entity
           * attempting to destroy the volume is permitted to do so.
           * NOTE: This field should match the FrameworkInfo.principal of
           * the framework that created the volume.
           * 
* * optional string principal = 2; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * This field indicates the principal of the operator or
           * framework that created this volume. It is used in conjunction
           * with the "destroy" ACL to determine whether an entity
           * attempting to destroy the volume is permitted to do so.
           * NOTE: This field should match the FrameworkInfo.principal of
           * the framework that created the volume.
           * 
* * optional string principal = 2; */ public Builder setPrincipal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; principal_ = value; onChanged(); return this; } /** *
           * This field indicates the principal of the operator or
           * framework that created this volume. It is used in conjunction
           * with the "destroy" ACL to determine whether an entity
           * attempting to destroy the volume is permitted to do so.
           * NOTE: This field should match the FrameworkInfo.principal of
           * the framework that created the volume.
           * 
* * optional string principal = 2; */ public Builder clearPrincipal() { bitField0_ = (bitField0_ & ~0x00000002); principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** *
           * This field indicates the principal of the operator or
           * framework that created this volume. It is used in conjunction
           * with the "destroy" ACL to determine whether an entity
           * attempting to destroy the volume is permitted to do so.
           * NOTE: This field should match the FrameworkInfo.principal of
           * the framework that created the volume.
           * 
* * optional string principal = 2; */ public Builder setPrincipalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; principal_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.DiskInfo.Persistence) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.DiskInfo.Persistence) private static final org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence(); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Persistence parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Persistence(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.DiskInfo.Source) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.Resource.DiskInfo.Source.Type type = 1; */ boolean hasType(); /** * required .mesos.v1.Resource.DiskInfo.Source.Type type = 1; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type getType(); /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ boolean hasPath(); /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path getPath(); /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PathOrBuilder getPathOrBuilder(); /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ boolean hasMount(); /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount getMount(); /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.MountOrBuilder getMountOrBuilder(); /** *
         * The vendor of this source. If present, this field provides the means to
         * uniquely identify the storage backend of this source in the cluster.
         * 
* * optional string vendor = 7; */ boolean hasVendor(); /** *
         * The vendor of this source. If present, this field provides the means to
         * uniquely identify the storage backend of this source in the cluster.
         * 
* * optional string vendor = 7; */ java.lang.String getVendor(); /** *
         * The vendor of this source. If present, this field provides the means to
         * uniquely identify the storage backend of this source in the cluster.
         * 
* * optional string vendor = 7; */ com.google.protobuf.ByteString getVendorBytes(); /** *
         * The identifier of this source. This field maps onto CSI volume IDs and
         * is not expected to be set by frameworks. If both `vendor` and `id` are
         * present, these two fields together provide the means to uniquely
         * identify this source in the cluster.
         * 
* * optional string id = 4; */ boolean hasId(); /** *
         * The identifier of this source. This field maps onto CSI volume IDs and
         * is not expected to be set by frameworks. If both `vendor` and `id` are
         * present, these two fields together provide the means to uniquely
         * identify this source in the cluster.
         * 
* * optional string id = 4; */ java.lang.String getId(); /** *
         * The identifier of this source. This field maps onto CSI volume IDs and
         * is not expected to be set by frameworks. If both `vendor` and `id` are
         * present, these two fields together provide the means to uniquely
         * identify this source in the cluster.
         * 
* * optional string id = 4; */ com.google.protobuf.ByteString getIdBytes(); /** *
         * Additional metadata for this source. This field maps onto CSI volume
         * context. Frameworks should neither alter this field, nor expect this
         * field to remain unchanged.
         * 
* * optional .mesos.v1.Labels metadata = 5; */ boolean hasMetadata(); /** *
         * Additional metadata for this source. This field maps onto CSI volume
         * context. Frameworks should neither alter this field, nor expect this
         * field to remain unchanged.
         * 
* * optional .mesos.v1.Labels metadata = 5; */ org.apache.mesos.v1.Protos.Labels getMetadata(); /** *
         * Additional metadata for this source. This field maps onto CSI volume
         * context. Frameworks should neither alter this field, nor expect this
         * field to remain unchanged.
         * 
* * optional .mesos.v1.Labels metadata = 5; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getMetadataOrBuilder(); /** *
         * This field serves as an indirection to a set of storage
         * vendor specific disk parameters which describe the properties
         * of the disk. The operator will setup mappings between a
         * profile name to a set of vendor specific disk parameters. And
         * the framework will do disk selection based on profile names,
         * instead of vendor specific disk parameters.
         * Also see the DiskProfileAdaptor module.
         * 
* * optional string profile = 6; */ boolean hasProfile(); /** *
         * This field serves as an indirection to a set of storage
         * vendor specific disk parameters which describe the properties
         * of the disk. The operator will setup mappings between a
         * profile name to a set of vendor specific disk parameters. And
         * the framework will do disk selection based on profile names,
         * instead of vendor specific disk parameters.
         * Also see the DiskProfileAdaptor module.
         * 
* * optional string profile = 6; */ java.lang.String getProfile(); /** *
         * This field serves as an indirection to a set of storage
         * vendor specific disk parameters which describe the properties
         * of the disk. The operator will setup mappings between a
         * profile name to a set of vendor specific disk parameters. And
         * the framework will do disk selection based on profile names,
         * instead of vendor specific disk parameters.
         * Also see the DiskProfileAdaptor module.
         * 
* * optional string profile = 6; */ com.google.protobuf.ByteString getProfileBytes(); } /** *
       * Describes where a disk originates from.
       * 
* * Protobuf type {@code mesos.v1.Resource.DiskInfo.Source} */ public static final class Source extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.DiskInfo.Source) SourceOrBuilder { private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Source() { type_ = 0; vendor_ = ""; id_ = ""; profile_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type value = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = path_.toBuilder(); } path_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(path_); path_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = mount_.toBuilder(); } mount_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mount_); mount_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; id_ = bs; break; } case 42: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; profile_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; vendor_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder.class); } /** * Protobuf enum {@code mesos.v1.Resource.DiskInfo.Source.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * PATH = 1; */ PATH(1), /** * MOUNT = 2; */ MOUNT(2), /** * BLOCK = 3; */ BLOCK(3), /** * RAW = 4; */ RAW(4), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * PATH = 1; */ public static final int PATH_VALUE = 1; /** * MOUNT = 2; */ public static final int MOUNT_VALUE = 2; /** * BLOCK = 3; */ public static final int BLOCK_VALUE = 3; /** * RAW = 4; */ public static final int RAW_VALUE = 4; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return PATH; case 2: return MOUNT; case 3: return BLOCK; case 4: return RAW; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Resource.DiskInfo.Source.Type) } public interface PathOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.DiskInfo.Source.Path) com.google.protobuf.MessageOrBuilder { /** *
           * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ boolean hasRoot(); /** *
           * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ java.lang.String getRoot(); /** *
           * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ com.google.protobuf.ByteString getRootBytes(); } /** *
         * A folder that can be located on a separate disk device. This
         * can be shared and carved up as necessary between frameworks.
         * 
* * Protobuf type {@code mesos.v1.Resource.DiskInfo.Source.Path} */ public static final class Path extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.DiskInfo.Source.Path) PathOrBuilder { private static final long serialVersionUID = 0L; // Use Path.newBuilder() to construct. private Path(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Path() { root_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Path( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; root_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Path_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Path_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.Builder.class); } private int bitField0_; public static final int ROOT_FIELD_NUMBER = 1; private volatile java.lang.Object root_; /** *
           * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ public boolean hasRoot() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
           * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ public java.lang.String getRoot() { java.lang.Object ref = root_; 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()) { root_ = s; } return s; } } /** *
           * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ public com.google.protobuf.ByteString getRootBytes() { java.lang.Object ref = root_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); root_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, root_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, root_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path other = (org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path) obj; boolean result = true; result = result && (hasRoot() == other.hasRoot()); if (hasRoot()) { result = result && getRoot() .equals(other.getRoot()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRoot()) { hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path 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.Protos.Resource.DiskInfo.Source.Path parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
           * A folder that can be located on a separate disk device. This
           * can be shared and carved up as necessary between frameworks.
           * 
* * Protobuf type {@code mesos.v1.Resource.DiskInfo.Source.Path} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.DiskInfo.Source.Path) org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PathOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Path_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Path_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); root_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Path_descriptor; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path build() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path buildPartial() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path result = new org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.root_ = root_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path other) { if (other == org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.getDefaultInstance()) return this; if (other.hasRoot()) { bitField0_ |= 0x00000001; root_ = other.root_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Resource.DiskInfo.Source.Path parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object root_ = ""; /** *
             * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public boolean hasRoot() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
             * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public java.lang.String getRoot() { java.lang.Object ref = root_; 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()) { root_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
             * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public com.google.protobuf.ByteString getRootBytes() { java.lang.Object ref = root_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); root_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
             * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public Builder setRoot( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; root_ = value; onChanged(); return this; } /** *
             * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public Builder clearRoot() { bitField0_ = (bitField0_ & ~0x00000001); root_ = getDefaultInstance().getRoot(); onChanged(); return this; } /** *
             * Path to the folder (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public Builder setRootBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; root_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.DiskInfo.Source.Path) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.DiskInfo.Source.Path) private static final org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path(); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Path parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Path(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MountOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.DiskInfo.Source.Mount) com.google.protobuf.MessageOrBuilder { /** *
           * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ boolean hasRoot(); /** *
           * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ java.lang.String getRoot(); /** *
           * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ com.google.protobuf.ByteString getRootBytes(); } /** *
         * A mounted file-system set up by the Agent administrator. This
         * can only be used exclusively: a framework cannot accept a
         * partial amount of this disk.
         * 
* * Protobuf type {@code mesos.v1.Resource.DiskInfo.Source.Mount} */ public static final class Mount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.DiskInfo.Source.Mount) MountOrBuilder { private static final long serialVersionUID = 0L; // Use Mount.newBuilder() to construct. private Mount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Mount() { root_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Mount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; root_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Mount_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Mount_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.Builder.class); } private int bitField0_; public static final int ROOT_FIELD_NUMBER = 1; private volatile java.lang.Object root_; /** *
           * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ public boolean hasRoot() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
           * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ public java.lang.String getRoot() { java.lang.Object ref = root_; 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()) { root_ = s; } return s; } } /** *
           * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
           * relative path, it is relative to the agent work directory.
           * 
* * optional string root = 1; */ public com.google.protobuf.ByteString getRootBytes() { java.lang.Object ref = root_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); root_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, root_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, root_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount other = (org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount) obj; boolean result = true; result = result && (hasRoot() == other.hasRoot()); if (hasRoot()) { result = result && getRoot() .equals(other.getRoot()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRoot()) { hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount 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.Protos.Resource.DiskInfo.Source.Mount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
           * A mounted file-system set up by the Agent administrator. This
           * can only be used exclusively: a framework cannot accept a
           * partial amount of this disk.
           * 
* * Protobuf type {@code mesos.v1.Resource.DiskInfo.Source.Mount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.DiskInfo.Source.Mount) org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.MountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Mount_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Mount_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); root_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_Mount_descriptor; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount build() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount buildPartial() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount result = new org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.root_ = root_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount other) { if (other == org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.getDefaultInstance()) return this; if (other.hasRoot()) { bitField0_ |= 0x00000001; root_ = other.root_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Resource.DiskInfo.Source.Mount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object root_ = ""; /** *
             * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public boolean hasRoot() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
             * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public java.lang.String getRoot() { java.lang.Object ref = root_; 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()) { root_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
             * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public com.google.protobuf.ByteString getRootBytes() { java.lang.Object ref = root_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); root_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
             * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public Builder setRoot( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; root_ = value; onChanged(); return this; } /** *
             * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public Builder clearRoot() { bitField0_ = (bitField0_ & ~0x00000001); root_ = getDefaultInstance().getRoot(); onChanged(); return this; } /** *
             * Path to mount point (e.g., /mnt/raid/disk0). If the path is a
             * relative path, it is relative to the agent work directory.
             * 
* * optional string root = 1; */ public Builder setRootBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; root_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.DiskInfo.Source.Mount) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.DiskInfo.Source.Mount) private static final org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount(); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Mount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Mount(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required .mesos.v1.Resource.DiskInfo.Source.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Resource.DiskInfo.Source.Type type = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type getType() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type result = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.UNKNOWN : result; } public static final int PATH_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path path_; /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path getPath() { return path_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.getDefaultInstance() : path_; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PathOrBuilder getPathOrBuilder() { return path_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.getDefaultInstance() : path_; } public static final int MOUNT_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount mount_; /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public boolean hasMount() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount getMount() { return mount_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.getDefaultInstance() : mount_; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.MountOrBuilder getMountOrBuilder() { return mount_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.getDefaultInstance() : mount_; } public static final int VENDOR_FIELD_NUMBER = 7; private volatile java.lang.Object vendor_; /** *
         * The vendor of this source. If present, this field provides the means to
         * uniquely identify the storage backend of this source in the cluster.
         * 
* * optional string vendor = 7; */ public boolean hasVendor() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
         * The vendor of this source. If present, this field provides the means to
         * uniquely identify the storage backend of this source in the cluster.
         * 
* * optional string vendor = 7; */ public java.lang.String getVendor() { java.lang.Object ref = vendor_; 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()) { vendor_ = s; } return s; } } /** *
         * The vendor of this source. If present, this field provides the means to
         * uniquely identify the storage backend of this source in the cluster.
         * 
* * optional string vendor = 7; */ public com.google.protobuf.ByteString getVendorBytes() { java.lang.Object ref = vendor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); vendor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 4; private volatile java.lang.Object id_; /** *
         * The identifier of this source. This field maps onto CSI volume IDs and
         * is not expected to be set by frameworks. If both `vendor` and `id` are
         * present, these two fields together provide the means to uniquely
         * identify this source in the cluster.
         * 
* * optional string id = 4; */ public boolean hasId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
         * The identifier of this source. This field maps onto CSI volume IDs and
         * is not expected to be set by frameworks. If both `vendor` and `id` are
         * present, these two fields together provide the means to uniquely
         * identify this source in the cluster.
         * 
* * optional string id = 4; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** *
         * The identifier of this source. This field maps onto CSI volume IDs and
         * is not expected to be set by frameworks. If both `vendor` and `id` are
         * present, these two fields together provide the means to uniquely
         * identify this source in the cluster.
         * 
* * optional string id = 4; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METADATA_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.Labels metadata_; /** *
         * Additional metadata for this source. This field maps onto CSI volume
         * context. Frameworks should neither alter this field, nor expect this
         * field to remain unchanged.
         * 
* * optional .mesos.v1.Labels metadata = 5; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
         * Additional metadata for this source. This field maps onto CSI volume
         * context. Frameworks should neither alter this field, nor expect this
         * field to remain unchanged.
         * 
* * optional .mesos.v1.Labels metadata = 5; */ public org.apache.mesos.v1.Protos.Labels getMetadata() { return metadata_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : metadata_; } /** *
         * Additional metadata for this source. This field maps onto CSI volume
         * context. Frameworks should neither alter this field, nor expect this
         * field to remain unchanged.
         * 
* * optional .mesos.v1.Labels metadata = 5; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getMetadataOrBuilder() { return metadata_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : metadata_; } public static final int PROFILE_FIELD_NUMBER = 6; private volatile java.lang.Object profile_; /** *
         * This field serves as an indirection to a set of storage
         * vendor specific disk parameters which describe the properties
         * of the disk. The operator will setup mappings between a
         * profile name to a set of vendor specific disk parameters. And
         * the framework will do disk selection based on profile names,
         * instead of vendor specific disk parameters.
         * Also see the DiskProfileAdaptor module.
         * 
* * optional string profile = 6; */ public boolean hasProfile() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
         * This field serves as an indirection to a set of storage
         * vendor specific disk parameters which describe the properties
         * of the disk. The operator will setup mappings between a
         * profile name to a set of vendor specific disk parameters. And
         * the framework will do disk selection based on profile names,
         * instead of vendor specific disk parameters.
         * Also see the DiskProfileAdaptor module.
         * 
* * optional string profile = 6; */ public java.lang.String getProfile() { java.lang.Object ref = profile_; 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()) { profile_ = s; } return s; } } /** *
         * This field serves as an indirection to a set of storage
         * vendor specific disk parameters which describe the properties
         * of the disk. The operator will setup mappings between a
         * profile name to a set of vendor specific disk parameters. And
         * the framework will do disk selection based on profile names,
         * instead of vendor specific disk parameters.
         * Also see the DiskProfileAdaptor module.
         * 
* * optional string profile = 6; */ public com.google.protobuf.ByteString getProfileBytes() { java.lang.Object ref = profile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); profile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasMetadata()) { if (!getMetadata().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getPath()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getMount()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, id_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(5, getMetadata()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, profile_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, vendor_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPath()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMount()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, id_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMetadata()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, profile_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vendor_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo.Source)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.DiskInfo.Source other = (org.apache.mesos.v1.Protos.Resource.DiskInfo.Source) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); } result = result && (hasMount() == other.hasMount()); if (hasMount()) { result = result && getMount() .equals(other.getMount()); } result = result && (hasVendor() == other.hasVendor()); if (hasVendor()) { result = result && getVendor() .equals(other.getVendor()); } result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata() .equals(other.getMetadata()); } result = result && (hasProfile() == other.hasProfile()); if (hasProfile()) { result = result && getProfile() .equals(other.getProfile()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasMount()) { hash = (37 * hash) + MOUNT_FIELD_NUMBER; hash = (53 * hash) + getMount().hashCode(); } if (hasVendor()) { hash = (37 * hash) + VENDOR_FIELD_NUMBER; hash = (53 * hash) + getVendor().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (hasProfile()) { hash = (37 * hash) + PROFILE_FIELD_NUMBER; hash = (53 * hash) + getProfile().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source 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.Protos.Resource.DiskInfo.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Describes where a disk originates from.
         * 
* * Protobuf type {@code mesos.v1.Resource.DiskInfo.Source} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.DiskInfo.Source) org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPathFieldBuilder(); getMountFieldBuilder(); getMetadataFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (pathBuilder_ == null) { path_ = null; } else { pathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (mountBuilder_ == null) { mount_ = null; } else { mountBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); vendor_ = ""; bitField0_ = (bitField0_ & ~0x00000008); id_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); profile_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_Source_descriptor; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source build() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source buildPartial() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source result = new org.apache.mesos.v1.Protos.Resource.DiskInfo.Source(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 (pathBuilder_ == null) { result.path_ = path_; } else { result.path_ = pathBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (mountBuilder_ == null) { result.mount_ = mount_; } else { result.mount_ = mountBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.vendor_ = vendor_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.id_ = id_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.profile_ = profile_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo.Source) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.DiskInfo.Source)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source other) { if (other == org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasPath()) { mergePath(other.getPath()); } if (other.hasMount()) { mergeMount(other.getMount()); } if (other.hasVendor()) { bitField0_ |= 0x00000008; vendor_ = other.vendor_; onChanged(); } if (other.hasId()) { bitField0_ |= 0x00000010; id_ = other.id_; onChanged(); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasProfile()) { bitField0_ |= 0x00000040; profile_ = other.profile_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (hasMetadata()) { if (!getMetadata().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.Protos.Resource.DiskInfo.Source parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.DiskInfo.Source) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * required .mesos.v1.Resource.DiskInfo.Source.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Resource.DiskInfo.Source.Type type = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type getType() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type result = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.UNKNOWN : result; } /** * required .mesos.v1.Resource.DiskInfo.Source.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * required .mesos.v1.Resource.DiskInfo.Source.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path path_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PathOrBuilder> pathBuilder_; /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path getPath() { if (pathBuilder_ == null) { return path_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.getDefaultInstance() : path_; } else { return pathBuilder_.getMessage(); } } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public Builder setPath(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path value) { if (pathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } path_ = value; onChanged(); } else { pathBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public Builder setPath( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.Builder builderForValue) { if (pathBuilder_ == null) { path_ = builderForValue.build(); onChanged(); } else { pathBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public Builder mergePath(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path value) { if (pathBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && path_ != null && path_ != org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.getDefaultInstance()) { path_ = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.newBuilder(path_).mergeFrom(value).buildPartial(); } else { path_ = value; } onChanged(); } else { pathBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public Builder clearPath() { if (pathBuilder_ == null) { path_ = null; onChanged(); } else { pathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.Builder getPathBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPathFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PathOrBuilder getPathOrBuilder() { if (pathBuilder_ != null) { return pathBuilder_.getMessageOrBuilder(); } else { return path_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.getDefaultInstance() : path_; } } /** * optional .mesos.v1.Resource.DiskInfo.Source.Path path = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PathOrBuilder> getPathFieldBuilder() { if (pathBuilder_ == null) { pathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Path.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PathOrBuilder>( getPath(), getParentForChildren(), isClean()); path_ = null; } return pathBuilder_; } private org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount mount_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.MountOrBuilder> mountBuilder_; /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public boolean hasMount() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount getMount() { if (mountBuilder_ == null) { return mount_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.getDefaultInstance() : mount_; } else { return mountBuilder_.getMessage(); } } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public Builder setMount(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount value) { if (mountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mount_ = value; onChanged(); } else { mountBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public Builder setMount( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.Builder builderForValue) { if (mountBuilder_ == null) { mount_ = builderForValue.build(); onChanged(); } else { mountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public Builder mergeMount(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount value) { if (mountBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && mount_ != null && mount_ != org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.getDefaultInstance()) { mount_ = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.newBuilder(mount_).mergeFrom(value).buildPartial(); } else { mount_ = value; } onChanged(); } else { mountBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public Builder clearMount() { if (mountBuilder_ == null) { mount_ = null; onChanged(); } else { mountBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.Builder getMountBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMountFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.MountOrBuilder getMountOrBuilder() { if (mountBuilder_ != null) { return mountBuilder_.getMessageOrBuilder(); } else { return mount_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.getDefaultInstance() : mount_; } } /** * optional .mesos.v1.Resource.DiskInfo.Source.Mount mount = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.MountOrBuilder> getMountFieldBuilder() { if (mountBuilder_ == null) { mountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Mount.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.MountOrBuilder>( getMount(), getParentForChildren(), isClean()); mount_ = null; } return mountBuilder_; } private java.lang.Object vendor_ = ""; /** *
           * The vendor of this source. If present, this field provides the means to
           * uniquely identify the storage backend of this source in the cluster.
           * 
* * optional string vendor = 7; */ public boolean hasVendor() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
           * The vendor of this source. If present, this field provides the means to
           * uniquely identify the storage backend of this source in the cluster.
           * 
* * optional string vendor = 7; */ public java.lang.String getVendor() { java.lang.Object ref = vendor_; 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()) { vendor_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * The vendor of this source. If present, this field provides the means to
           * uniquely identify the storage backend of this source in the cluster.
           * 
* * optional string vendor = 7; */ public com.google.protobuf.ByteString getVendorBytes() { java.lang.Object ref = vendor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); vendor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * The vendor of this source. If present, this field provides the means to
           * uniquely identify the storage backend of this source in the cluster.
           * 
* * optional string vendor = 7; */ public Builder setVendor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; vendor_ = value; onChanged(); return this; } /** *
           * The vendor of this source. If present, this field provides the means to
           * uniquely identify the storage backend of this source in the cluster.
           * 
* * optional string vendor = 7; */ public Builder clearVendor() { bitField0_ = (bitField0_ & ~0x00000008); vendor_ = getDefaultInstance().getVendor(); onChanged(); return this; } /** *
           * The vendor of this source. If present, this field provides the means to
           * uniquely identify the storage backend of this source in the cluster.
           * 
* * optional string vendor = 7; */ public Builder setVendorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; vendor_ = value; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
           * The identifier of this source. This field maps onto CSI volume IDs and
           * is not expected to be set by frameworks. If both `vendor` and `id` are
           * present, these two fields together provide the means to uniquely
           * identify this source in the cluster.
           * 
* * optional string id = 4; */ public boolean hasId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
           * The identifier of this source. This field maps onto CSI volume IDs and
           * is not expected to be set by frameworks. If both `vendor` and `id` are
           * present, these two fields together provide the means to uniquely
           * identify this source in the cluster.
           * 
* * optional string id = 4; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * The identifier of this source. This field maps onto CSI volume IDs and
           * is not expected to be set by frameworks. If both `vendor` and `id` are
           * present, these two fields together provide the means to uniquely
           * identify this source in the cluster.
           * 
* * optional string id = 4; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * The identifier of this source. This field maps onto CSI volume IDs and
           * is not expected to be set by frameworks. If both `vendor` and `id` are
           * present, these two fields together provide the means to uniquely
           * identify this source in the cluster.
           * 
* * optional string id = 4; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; id_ = value; onChanged(); return this; } /** *
           * The identifier of this source. This field maps onto CSI volume IDs and
           * is not expected to be set by frameworks. If both `vendor` and `id` are
           * present, these two fields together provide the means to uniquely
           * identify this source in the cluster.
           * 
* * optional string id = 4; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000010); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
           * The identifier of this source. This field maps onto CSI volume IDs and
           * is not expected to be set by frameworks. If both `vendor` and `id` are
           * present, these two fields together provide the means to uniquely
           * identify this source in the cluster.
           * 
* * optional string id = 4; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; id_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Labels metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> metadataBuilder_; /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ public org.apache.mesos.v1.Protos.Labels getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ public Builder setMetadata(org.apache.mesos.v1.Protos.Labels value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ public Builder setMetadata( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ public Builder mergeMetadata(org.apache.mesos.v1.Protos.Labels value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && metadata_ != null && metadata_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { metadata_ = org.apache.mesos.v1.Protos.Labels.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ public org.apache.mesos.v1.Protos.Labels.Builder getMetadataBuilder() { bitField0_ |= 0x00000020; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : metadata_; } } /** *
           * Additional metadata for this source. This field maps onto CSI volume
           * context. Frameworks should neither alter this field, nor expect this
           * field to remain unchanged.
           * 
* * optional .mesos.v1.Labels metadata = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private java.lang.Object profile_ = ""; /** *
           * This field serves as an indirection to a set of storage
           * vendor specific disk parameters which describe the properties
           * of the disk. The operator will setup mappings between a
           * profile name to a set of vendor specific disk parameters. And
           * the framework will do disk selection based on profile names,
           * instead of vendor specific disk parameters.
           * Also see the DiskProfileAdaptor module.
           * 
* * optional string profile = 6; */ public boolean hasProfile() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
           * This field serves as an indirection to a set of storage
           * vendor specific disk parameters which describe the properties
           * of the disk. The operator will setup mappings between a
           * profile name to a set of vendor specific disk parameters. And
           * the framework will do disk selection based on profile names,
           * instead of vendor specific disk parameters.
           * Also see the DiskProfileAdaptor module.
           * 
* * optional string profile = 6; */ public java.lang.String getProfile() { java.lang.Object ref = profile_; 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()) { profile_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * This field serves as an indirection to a set of storage
           * vendor specific disk parameters which describe the properties
           * of the disk. The operator will setup mappings between a
           * profile name to a set of vendor specific disk parameters. And
           * the framework will do disk selection based on profile names,
           * instead of vendor specific disk parameters.
           * Also see the DiskProfileAdaptor module.
           * 
* * optional string profile = 6; */ public com.google.protobuf.ByteString getProfileBytes() { java.lang.Object ref = profile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); profile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * This field serves as an indirection to a set of storage
           * vendor specific disk parameters which describe the properties
           * of the disk. The operator will setup mappings between a
           * profile name to a set of vendor specific disk parameters. And
           * the framework will do disk selection based on profile names,
           * instead of vendor specific disk parameters.
           * Also see the DiskProfileAdaptor module.
           * 
* * optional string profile = 6; */ public Builder setProfile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; profile_ = value; onChanged(); return this; } /** *
           * This field serves as an indirection to a set of storage
           * vendor specific disk parameters which describe the properties
           * of the disk. The operator will setup mappings between a
           * profile name to a set of vendor specific disk parameters. And
           * the framework will do disk selection based on profile names,
           * instead of vendor specific disk parameters.
           * Also see the DiskProfileAdaptor module.
           * 
* * optional string profile = 6; */ public Builder clearProfile() { bitField0_ = (bitField0_ & ~0x00000040); profile_ = getDefaultInstance().getProfile(); onChanged(); return this; } /** *
           * This field serves as an indirection to a set of storage
           * vendor specific disk parameters which describe the properties
           * of the disk. The operator will setup mappings between a
           * profile name to a set of vendor specific disk parameters. And
           * the framework will do disk selection based on profile names,
           * instead of vendor specific disk parameters.
           * Also see the DiskProfileAdaptor module.
           * 
* * optional string profile = 6; */ public Builder setProfileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; profile_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.DiskInfo.Source) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.DiskInfo.Source) private static final org.apache.mesos.v1.Protos.Resource.DiskInfo.Source DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.DiskInfo.Source(); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Source parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Source(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int PERSISTENCE_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence persistence_; /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public boolean hasPersistence() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getPersistence() { return persistence_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance() : persistence_; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder getPersistenceOrBuilder() { return persistence_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance() : persistence_; } public static final int VOLUME_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Volume volume_; /** *
       * Describes how this disk resource will be mounted in the
       * container. If not set, the disk resource will be used as the
       * sandbox. Otherwise, it will be mounted according to the
       * 'container_path' inside 'volume'. The 'host_path' inside
       * 'volume' is ignored.
       * NOTE: If 'volume' is set but 'persistence' is not set, the
       * volume will be automatically garbage collected after
       * task/executor terminates. Currently, if 'persistence' is set,
       * 'volume' must be set.
       * 
* * optional .mesos.v1.Volume volume = 2; */ public boolean hasVolume() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Describes how this disk resource will be mounted in the
       * container. If not set, the disk resource will be used as the
       * sandbox. Otherwise, it will be mounted according to the
       * 'container_path' inside 'volume'. The 'host_path' inside
       * 'volume' is ignored.
       * NOTE: If 'volume' is set but 'persistence' is not set, the
       * volume will be automatically garbage collected after
       * task/executor terminates. Currently, if 'persistence' is set,
       * 'volume' must be set.
       * 
* * optional .mesos.v1.Volume volume = 2; */ public org.apache.mesos.v1.Protos.Volume getVolume() { return volume_ == null ? org.apache.mesos.v1.Protos.Volume.getDefaultInstance() : volume_; } /** *
       * Describes how this disk resource will be mounted in the
       * container. If not set, the disk resource will be used as the
       * sandbox. Otherwise, it will be mounted according to the
       * 'container_path' inside 'volume'. The 'host_path' inside
       * 'volume' is ignored.
       * NOTE: If 'volume' is set but 'persistence' is not set, the
       * volume will be automatically garbage collected after
       * task/executor terminates. Currently, if 'persistence' is set,
       * 'volume' must be set.
       * 
* * optional .mesos.v1.Volume volume = 2; */ public org.apache.mesos.v1.Protos.VolumeOrBuilder getVolumeOrBuilder() { return volume_ == null ? org.apache.mesos.v1.Protos.Volume.getDefaultInstance() : volume_; } public static final int SOURCE_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Resource.DiskInfo.Source source_; /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public boolean hasSource() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getSource() { return source_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance() : source_; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder getSourceOrBuilder() { return source_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance() : source_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasPersistence()) { if (!getPersistence().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasVolume()) { if (!getVolume().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasSource()) { if (!getSource().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPersistence()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getVolume()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getSource()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPersistence()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getVolume()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.DiskInfo other = (org.apache.mesos.v1.Protos.Resource.DiskInfo) obj; boolean result = true; result = result && (hasPersistence() == other.hasPersistence()); if (hasPersistence()) { result = result && getPersistence() .equals(other.getPersistence()); } result = result && (hasVolume() == other.hasVolume()); if (hasVolume()) { result = result && getVolume() .equals(other.getVolume()); } result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource() .equals(other.getSource()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPersistence()) { hash = (37 * hash) + PERSISTENCE_FIELD_NUMBER; hash = (53 * hash) + getPersistence().hashCode(); } if (hasVolume()) { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo 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.Protos.Resource.DiskInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.DiskInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Resource.DiskInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.DiskInfo) org.apache.mesos.v1.Protos.Resource.DiskInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.DiskInfo.class, org.apache.mesos.v1.Protos.Resource.DiskInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.DiskInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPersistenceFieldBuilder(); getVolumeFieldBuilder(); getSourceFieldBuilder(); } } public Builder clear() { super.clear(); if (persistenceBuilder_ == null) { persistence_ = null; } else { persistenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (volumeBuilder_ == null) { volume_ = null; } else { volumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_DiskInfo_descriptor; } public org.apache.mesos.v1.Protos.Resource.DiskInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.DiskInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.DiskInfo build() { org.apache.mesos.v1.Protos.Resource.DiskInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.DiskInfo buildPartial() { org.apache.mesos.v1.Protos.Resource.DiskInfo result = new org.apache.mesos.v1.Protos.Resource.DiskInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (persistenceBuilder_ == null) { result.persistence_ = persistence_; } else { result.persistence_ = persistenceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (volumeBuilder_ == null) { result.volume_ = volume_; } else { result.volume_ = volumeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.DiskInfo) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.DiskInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.DiskInfo other) { if (other == org.apache.mesos.v1.Protos.Resource.DiskInfo.getDefaultInstance()) return this; if (other.hasPersistence()) { mergePersistence(other.getPersistence()); } if (other.hasVolume()) { mergeVolume(other.getVolume()); } if (other.hasSource()) { mergeSource(other.getSource()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasPersistence()) { if (!getPersistence().isInitialized()) { return false; } } if (hasVolume()) { if (!getVolume().isInitialized()) { return false; } } if (hasSource()) { if (!getSource().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.Protos.Resource.DiskInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.DiskInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence persistence_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence, org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder> persistenceBuilder_; /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public boolean hasPersistence() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getPersistence() { if (persistenceBuilder_ == null) { return persistence_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance() : persistence_; } else { return persistenceBuilder_.getMessage(); } } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public Builder setPersistence(org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence value) { if (persistenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } persistence_ = value; onChanged(); } else { persistenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public Builder setPersistence( org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder builderForValue) { if (persistenceBuilder_ == null) { persistence_ = builderForValue.build(); onChanged(); } else { persistenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public Builder mergePersistence(org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence value) { if (persistenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && persistence_ != null && persistence_ != org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance()) { persistence_ = org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.newBuilder(persistence_).mergeFrom(value).buildPartial(); } else { persistence_ = value; } onChanged(); } else { persistenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public Builder clearPersistence() { if (persistenceBuilder_ == null) { persistence_ = null; onChanged(); } else { persistenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder getPersistenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPersistenceFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder getPersistenceOrBuilder() { if (persistenceBuilder_ != null) { return persistenceBuilder_.getMessageOrBuilder(); } else { return persistence_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance() : persistence_; } } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence, org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder> getPersistenceFieldBuilder() { if (persistenceBuilder_ == null) { persistenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence, org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder>( getPersistence(), getParentForChildren(), isClean()); persistence_ = null; } return persistenceBuilder_; } private org.apache.mesos.v1.Protos.Volume volume_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume, org.apache.mesos.v1.Protos.Volume.Builder, org.apache.mesos.v1.Protos.VolumeOrBuilder> volumeBuilder_; /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ public boolean hasVolume() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ public org.apache.mesos.v1.Protos.Volume getVolume() { if (volumeBuilder_ == null) { return volume_ == null ? org.apache.mesos.v1.Protos.Volume.getDefaultInstance() : volume_; } else { return volumeBuilder_.getMessage(); } } /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ public Builder setVolume(org.apache.mesos.v1.Protos.Volume value) { if (volumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } volume_ = value; onChanged(); } else { volumeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ public Builder setVolume( org.apache.mesos.v1.Protos.Volume.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); } else { volumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ public Builder mergeVolume(org.apache.mesos.v1.Protos.Volume value) { if (volumeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && volume_ != null && volume_ != org.apache.mesos.v1.Protos.Volume.getDefaultInstance()) { volume_ = org.apache.mesos.v1.Protos.Volume.newBuilder(volume_).mergeFrom(value).buildPartial(); } else { volume_ = value; } onChanged(); } else { volumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ public Builder clearVolume() { if (volumeBuilder_ == null) { volume_ = null; onChanged(); } else { volumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ public org.apache.mesos.v1.Protos.Volume.Builder getVolumeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ public org.apache.mesos.v1.Protos.VolumeOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { return volume_ == null ? org.apache.mesos.v1.Protos.Volume.getDefaultInstance() : volume_; } } /** *
         * Describes how this disk resource will be mounted in the
         * container. If not set, the disk resource will be used as the
         * sandbox. Otherwise, it will be mounted according to the
         * 'container_path' inside 'volume'. The 'host_path' inside
         * 'volume' is ignored.
         * NOTE: If 'volume' is set but 'persistence' is not set, the
         * volume will be automatically garbage collected after
         * task/executor terminates. Currently, if 'persistence' is set,
         * 'volume' must be set.
         * 
* * optional .mesos.v1.Volume volume = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume, org.apache.mesos.v1.Protos.Volume.Builder, org.apache.mesos.v1.Protos.VolumeOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume, org.apache.mesos.v1.Protos.Volume.Builder, org.apache.mesos.v1.Protos.VolumeOrBuilder>( getVolume(), getParentForChildren(), isClean()); volume_ = null; } return volumeBuilder_; } private org.apache.mesos.v1.Protos.Resource.DiskInfo.Source source_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder> sourceBuilder_; /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public boolean hasSource() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public Builder setSource(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public Builder setSource( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public Builder mergeSource(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && source_ != null && source_ != org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance()) { source_ = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder getSourceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance() : source_; } } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.DiskInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.DiskInfo) private static final org.apache.mesos.v1.Protos.Resource.DiskInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.DiskInfo(); } public static org.apache.mesos.v1.Protos.Resource.DiskInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DiskInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiskInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.DiskInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RevocableInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.RevocableInfo) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code mesos.v1.Resource.RevocableInfo} */ public static final class RevocableInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.RevocableInfo) RevocableInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RevocableInfo.newBuilder() to construct. private RevocableInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RevocableInfo() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RevocableInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_RevocableInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_RevocableInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.RevocableInfo.class, org.apache.mesos.v1.Protos.Resource.RevocableInfo.Builder.class); } 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 { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.RevocableInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.RevocableInfo other = (org.apache.mesos.v1.Protos.Resource.RevocableInfo) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo 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.Protos.Resource.RevocableInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.RevocableInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Resource.RevocableInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.RevocableInfo) org.apache.mesos.v1.Protos.Resource.RevocableInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_RevocableInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_RevocableInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.RevocableInfo.class, org.apache.mesos.v1.Protos.Resource.RevocableInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.RevocableInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_RevocableInfo_descriptor; } public org.apache.mesos.v1.Protos.Resource.RevocableInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.RevocableInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.RevocableInfo build() { org.apache.mesos.v1.Protos.Resource.RevocableInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.RevocableInfo buildPartial() { org.apache.mesos.v1.Protos.Resource.RevocableInfo result = new org.apache.mesos.v1.Protos.Resource.RevocableInfo(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.RevocableInfo) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.RevocableInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.RevocableInfo other) { if (other == org.apache.mesos.v1.Protos.Resource.RevocableInfo.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Resource.RevocableInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.RevocableInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.RevocableInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.RevocableInfo) private static final org.apache.mesos.v1.Protos.Resource.RevocableInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.RevocableInfo(); } public static org.apache.mesos.v1.Protos.Resource.RevocableInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RevocableInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RevocableInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.RevocableInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SharedInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Resource.SharedInfo) com.google.protobuf.MessageOrBuilder { } /** *
     * Allow the resource to be shared across tasks.
     * 
* * Protobuf type {@code mesos.v1.Resource.SharedInfo} */ public static final class SharedInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Resource.SharedInfo) SharedInfoOrBuilder { private static final long serialVersionUID = 0L; // Use SharedInfo.newBuilder() to construct. private SharedInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SharedInfo() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SharedInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_SharedInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_SharedInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.SharedInfo.class, org.apache.mesos.v1.Protos.Resource.SharedInfo.Builder.class); } 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 { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource.SharedInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource.SharedInfo other = (org.apache.mesos.v1.Protos.Resource.SharedInfo) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo 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.Protos.Resource.SharedInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource.SharedInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Allow the resource to be shared across tasks.
       * 
* * Protobuf type {@code mesos.v1.Resource.SharedInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource.SharedInfo) org.apache.mesos.v1.Protos.Resource.SharedInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_SharedInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_SharedInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.SharedInfo.class, org.apache.mesos.v1.Protos.Resource.SharedInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.SharedInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_SharedInfo_descriptor; } public org.apache.mesos.v1.Protos.Resource.SharedInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.SharedInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource.SharedInfo build() { org.apache.mesos.v1.Protos.Resource.SharedInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource.SharedInfo buildPartial() { org.apache.mesos.v1.Protos.Resource.SharedInfo result = new org.apache.mesos.v1.Protos.Resource.SharedInfo(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource.SharedInfo) { return mergeFrom((org.apache.mesos.v1.Protos.Resource.SharedInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource.SharedInfo other) { if (other == org.apache.mesos.v1.Protos.Resource.SharedInfo.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Resource.SharedInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource.SharedInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource.SharedInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource.SharedInfo) private static final org.apache.mesos.v1.Protos.Resource.SharedInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource.SharedInfo(); } public static org.apache.mesos.v1.Protos.Resource.SharedInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SharedInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SharedInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource.SharedInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int PROVIDER_ID_FIELD_NUMBER = 12; private org.apache.mesos.v1.Protos.ResourceProviderID providerId_; /** *
     * Specified if the resource comes from a particular resource provider.
     * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public boolean hasProviderId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Specified if the resource comes from a particular resource provider.
     * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public org.apache.mesos.v1.Protos.ResourceProviderID getProviderId() { return providerId_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : providerId_; } /** *
     * Specified if the resource comes from a particular resource provider.
     * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getProviderIdOrBuilder() { return providerId_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : providerId_; } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * required .mesos.v1.Value.Type type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.Value.Type type = 2; */ public org.apache.mesos.v1.Protos.Value.Type getType() { org.apache.mesos.v1.Protos.Value.Type result = org.apache.mesos.v1.Protos.Value.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Value.Type.SCALAR : result; } public static final int SCALAR_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Value.Scalar scalar_; /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public boolean hasScalar() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.Scalar getScalar() { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } public static final int RANGES_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Value.Ranges ranges_; /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public boolean hasRanges() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.Ranges getRanges() { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder() { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } public static final int SET_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.Value.Set set_; /** * optional .mesos.v1.Value.Set set = 5; */ public boolean hasSet() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.Value.Set set = 5; */ public org.apache.mesos.v1.Protos.Value.Set getSet() { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } /** * optional .mesos.v1.Value.Set set = 5; */ public org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder() { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } public static final int ROLE_FIELD_NUMBER = 6; private volatile java.lang.Object role_; /** *
     * The role that this resource is reserved for. If "*", this indicates
     * that the resource is unreserved. Otherwise, the resource will only
     * be offered to frameworks that belong to this role.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public boolean hasRole() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * The role that this resource is reserved for. If "*", this indicates
     * that the resource is unreserved. Otherwise, the resource will only
     * be offered to frameworks that belong to this role.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } } /** *
     * The role that this resource is reserved for. If "*", this indicates
     * that the resource is unreserved. Otherwise, the resource will only
     * be offered to frameworks that belong to this role.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALLOCATION_INFO_FIELD_NUMBER = 11; private org.apache.mesos.v1.Protos.Resource.AllocationInfo allocationInfo_; /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public boolean hasAllocationInfo() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfo getAllocationInfo() { return allocationInfo_ == null ? org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance() : allocationInfo_; } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder() { return allocationInfo_ == null ? org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance() : allocationInfo_; } public static final int RESERVATION_FIELD_NUMBER = 8; private org.apache.mesos.v1.Protos.Resource.ReservationInfo reservation_; /** *
     * If this is set, this resource was dynamically reserved by an
     * operator or a framework. Otherwise, this resource is either unreserved
     * or statically reserved by an operator via the --resources flag.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public boolean hasReservation() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
     * If this is set, this resource was dynamically reserved by an
     * operator or a framework. Otherwise, this resource is either unreserved
     * or statically reserved by an operator via the --resources flag.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo getReservation() { return reservation_ == null ? org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance() : reservation_; } /** *
     * If this is set, this resource was dynamically reserved by an
     * operator or a framework. Otherwise, this resource is either unreserved
     * or statically reserved by an operator via the --resources flag.
     * NOTE: Frameworks must not set this field if `reservations` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate once `reservations` is no longer experimental.
     * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getReservationOrBuilder() { return reservation_ == null ? org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance() : reservation_; } public static final int RESERVATIONS_FIELD_NUMBER = 13; private java.util.List reservations_; /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public java.util.List getReservationsList() { return reservations_; } /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public java.util.List getReservationsOrBuilderList() { return reservations_; } /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public int getReservationsCount() { return reservations_.size(); } /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo getReservations(int index) { return reservations_.get(index); } /** *
     * The stack of reservations. If this field is empty, it indicates that this
     * resource is unreserved. Otherwise, the resource is reserved. The first
     * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
     * have `DYNAMIC`. One can create a new reservation on top of an existing
     * one by pushing a new `ReservationInfo` to the back. The last
     * `ReservationInfo` in this stack is the "current" reservation. The new
     * reservation's role must be a child of the current reservation's role.
     * NOTE: Frameworks must not set this field if `reservation` is set.
     *       See the 'Resource Format' section for more details.
     * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
     * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getReservationsOrBuilder( int index) { return reservations_.get(index); } public static final int DISK_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.Resource.DiskInfo disk_; /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public boolean hasDisk() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo getDisk() { return disk_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.getDefaultInstance() : disk_; } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public org.apache.mesos.v1.Protos.Resource.DiskInfoOrBuilder getDiskOrBuilder() { return disk_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.getDefaultInstance() : disk_; } public static final int REVOCABLE_FIELD_NUMBER = 9; private org.apache.mesos.v1.Protos.Resource.RevocableInfo revocable_; /** *
     * If this is set, the resources are revocable, i.e., any tasks or
     * executors launched using these resources could get preempted or
     * throttled at any time. This could be used by frameworks to run
     * best effort tasks that do not need strict uptime or performance
     * guarantees. Note that if this is set, 'disk' or 'reservation'
     * cannot be set.
     * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public boolean hasRevocable() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
     * If this is set, the resources are revocable, i.e., any tasks or
     * executors launched using these resources could get preempted or
     * throttled at any time. This could be used by frameworks to run
     * best effort tasks that do not need strict uptime or performance
     * guarantees. Note that if this is set, 'disk' or 'reservation'
     * cannot be set.
     * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public org.apache.mesos.v1.Protos.Resource.RevocableInfo getRevocable() { return revocable_ == null ? org.apache.mesos.v1.Protos.Resource.RevocableInfo.getDefaultInstance() : revocable_; } /** *
     * If this is set, the resources are revocable, i.e., any tasks or
     * executors launched using these resources could get preempted or
     * throttled at any time. This could be used by frameworks to run
     * best effort tasks that do not need strict uptime or performance
     * guarantees. Note that if this is set, 'disk' or 'reservation'
     * cannot be set.
     * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public org.apache.mesos.v1.Protos.Resource.RevocableInfoOrBuilder getRevocableOrBuilder() { return revocable_ == null ? org.apache.mesos.v1.Protos.Resource.RevocableInfo.getDefaultInstance() : revocable_; } public static final int SHARED_FIELD_NUMBER = 10; private org.apache.mesos.v1.Protos.Resource.SharedInfo shared_; /** *
     * If this is set, the resources are shared, i.e. multiple tasks
     * can be launched using this resource and all of them shall refer
     * to the same physical resource on the cluster. Note that only
     * persistent volumes can be shared currently.
     * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public boolean hasShared() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
     * If this is set, the resources are shared, i.e. multiple tasks
     * can be launched using this resource and all of them shall refer
     * to the same physical resource on the cluster. Note that only
     * persistent volumes can be shared currently.
     * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public org.apache.mesos.v1.Protos.Resource.SharedInfo getShared() { return shared_ == null ? org.apache.mesos.v1.Protos.Resource.SharedInfo.getDefaultInstance() : shared_; } /** *
     * If this is set, the resources are shared, i.e. multiple tasks
     * can be launched using this resource and all of them shall refer
     * to the same physical resource on the cluster. Note that only
     * persistent volumes can be shared currently.
     * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public org.apache.mesos.v1.Protos.Resource.SharedInfoOrBuilder getSharedOrBuilder() { return shared_ == null ? org.apache.mesos.v1.Protos.Resource.SharedInfo.getDefaultInstance() : shared_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasProviderId()) { if (!getProviderId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasScalar()) { if (!getScalar().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasRanges()) { if (!getRanges().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasReservation()) { if (!getReservation().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getReservationsCount(); i++) { if (!getReservations(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDisk()) { if (!getDisk().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(2, type_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(3, getScalar()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(4, getRanges()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(5, getSet()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, role_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(7, getDisk()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(8, getReservation()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(9, getRevocable()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(10, getShared()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(11, getAllocationInfo()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(12, getProviderId()); } for (int i = 0; i < reservations_.size(); i++) { output.writeMessage(13, reservations_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getScalar()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRanges()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSet()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, role_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getDisk()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getReservation()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRevocable()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getShared()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getAllocationInfo()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getProviderId()); } for (int i = 0; i < reservations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, reservations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Resource)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Resource other = (org.apache.mesos.v1.Protos.Resource) obj; boolean result = true; result = result && (hasProviderId() == other.hasProviderId()); if (hasProviderId()) { result = result && getProviderId() .equals(other.getProviderId()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasScalar() == other.hasScalar()); if (hasScalar()) { result = result && getScalar() .equals(other.getScalar()); } result = result && (hasRanges() == other.hasRanges()); if (hasRanges()) { result = result && getRanges() .equals(other.getRanges()); } result = result && (hasSet() == other.hasSet()); if (hasSet()) { result = result && getSet() .equals(other.getSet()); } result = result && (hasRole() == other.hasRole()); if (hasRole()) { result = result && getRole() .equals(other.getRole()); } result = result && (hasAllocationInfo() == other.hasAllocationInfo()); if (hasAllocationInfo()) { result = result && getAllocationInfo() .equals(other.getAllocationInfo()); } result = result && (hasReservation() == other.hasReservation()); if (hasReservation()) { result = result && getReservation() .equals(other.getReservation()); } result = result && getReservationsList() .equals(other.getReservationsList()); result = result && (hasDisk() == other.hasDisk()); if (hasDisk()) { result = result && getDisk() .equals(other.getDisk()); } result = result && (hasRevocable() == other.hasRevocable()); if (hasRevocable()) { result = result && getRevocable() .equals(other.getRevocable()); } result = result && (hasShared() == other.hasShared()); if (hasShared()) { result = result && getShared() .equals(other.getShared()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProviderId()) { hash = (37 * hash) + PROVIDER_ID_FIELD_NUMBER; hash = (53 * hash) + getProviderId().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasScalar()) { hash = (37 * hash) + SCALAR_FIELD_NUMBER; hash = (53 * hash) + getScalar().hashCode(); } if (hasRanges()) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRanges().hashCode(); } if (hasSet()) { hash = (37 * hash) + SET_FIELD_NUMBER; hash = (53 * hash) + getSet().hashCode(); } if (hasRole()) { hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); } if (hasAllocationInfo()) { hash = (37 * hash) + ALLOCATION_INFO_FIELD_NUMBER; hash = (53 * hash) + getAllocationInfo().hashCode(); } if (hasReservation()) { hash = (37 * hash) + RESERVATION_FIELD_NUMBER; hash = (53 * hash) + getReservation().hashCode(); } if (getReservationsCount() > 0) { hash = (37 * hash) + RESERVATIONS_FIELD_NUMBER; hash = (53 * hash) + getReservationsList().hashCode(); } if (hasDisk()) { hash = (37 * hash) + DISK_FIELD_NUMBER; hash = (53 * hash) + getDisk().hashCode(); } if (hasRevocable()) { hash = (37 * hash) + REVOCABLE_FIELD_NUMBER; hash = (53 * hash) + getRevocable().hashCode(); } if (hasShared()) { hash = (37 * hash) + SHARED_FIELD_NUMBER; hash = (53 * hash) + getShared().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Resource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource 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.Protos.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Resource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Resource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Resource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a resource from a resource provider. The `name` field is
     * a string like "cpus" or "mem" that indicates which kind of resource
     * this is; the rest of the fields describe the properties of the
     * resource. A resource can take on one of three types: scalar
     * (double), a list of finite and discrete ranges (e.g., [1-10,
     * 20-30]), or a set of items. A resource is described using the
     * standard protocol buffer "union" trick.
     * Note that "disk" and "mem" resources are scalar values expressed in
     * megabytes. Fractional "cpus" values are allowed (e.g., "0.5"),
     * which correspond to partial shares of a CPU.
     * 
* * Protobuf type {@code mesos.v1.Resource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Resource) org.apache.mesos.v1.Protos.ResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Resource.class, org.apache.mesos.v1.Protos.Resource.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Resource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getProviderIdFieldBuilder(); getScalarFieldBuilder(); getRangesFieldBuilder(); getSetFieldBuilder(); getAllocationInfoFieldBuilder(); getReservationFieldBuilder(); getReservationsFieldBuilder(); getDiskFieldBuilder(); getRevocableFieldBuilder(); getSharedFieldBuilder(); } } public Builder clear() { super.clear(); if (providerIdBuilder_ == null) { providerId_ = null; } else { providerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (scalarBuilder_ == null) { scalar_ = null; } else { scalarBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (rangesBuilder_ == null) { ranges_ = null; } else { rangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (setBuilder_ == null) { set_ = null; } else { setBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); role_ = "*"; bitField0_ = (bitField0_ & ~0x00000040); if (allocationInfoBuilder_ == null) { allocationInfo_ = null; } else { allocationInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (reservationBuilder_ == null) { reservation_ = null; } else { reservationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (reservationsBuilder_ == null) { reservations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { reservationsBuilder_.clear(); } if (diskBuilder_ == null) { disk_ = null; } else { diskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (revocableBuilder_ == null) { revocable_ = null; } else { revocableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (sharedBuilder_ == null) { shared_ = null; } else { sharedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Resource_descriptor; } public org.apache.mesos.v1.Protos.Resource getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Resource.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Resource build() { org.apache.mesos.v1.Protos.Resource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Resource buildPartial() { org.apache.mesos.v1.Protos.Resource result = new org.apache.mesos.v1.Protos.Resource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (providerIdBuilder_ == null) { result.providerId_ = providerId_; } else { result.providerId_ = providerIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (scalarBuilder_ == null) { result.scalar_ = scalar_; } else { result.scalar_ = scalarBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (rangesBuilder_ == null) { result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (setBuilder_ == null) { result.set_ = set_; } else { result.set_ = setBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.role_ = role_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (allocationInfoBuilder_ == null) { result.allocationInfo_ = allocationInfo_; } else { result.allocationInfo_ = allocationInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (reservationBuilder_ == null) { result.reservation_ = reservation_; } else { result.reservation_ = reservationBuilder_.build(); } if (reservationsBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { reservations_ = java.util.Collections.unmodifiableList(reservations_); bitField0_ = (bitField0_ & ~0x00000200); } result.reservations_ = reservations_; } else { result.reservations_ = reservationsBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000200; } if (diskBuilder_ == null) { result.disk_ = disk_; } else { result.disk_ = diskBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000400; } if (revocableBuilder_ == null) { result.revocable_ = revocable_; } else { result.revocable_ = revocableBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000800; } if (sharedBuilder_ == null) { result.shared_ = shared_; } else { result.shared_ = sharedBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Resource) { return mergeFrom((org.apache.mesos.v1.Protos.Resource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Resource other) { if (other == org.apache.mesos.v1.Protos.Resource.getDefaultInstance()) return this; if (other.hasProviderId()) { mergeProviderId(other.getProviderId()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasScalar()) { mergeScalar(other.getScalar()); } if (other.hasRanges()) { mergeRanges(other.getRanges()); } if (other.hasSet()) { mergeSet(other.getSet()); } if (other.hasRole()) { bitField0_ |= 0x00000040; role_ = other.role_; onChanged(); } if (other.hasAllocationInfo()) { mergeAllocationInfo(other.getAllocationInfo()); } if (other.hasReservation()) { mergeReservation(other.getReservation()); } if (reservationsBuilder_ == null) { if (!other.reservations_.isEmpty()) { if (reservations_.isEmpty()) { reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureReservationsIsMutable(); reservations_.addAll(other.reservations_); } onChanged(); } } else { if (!other.reservations_.isEmpty()) { if (reservationsBuilder_.isEmpty()) { reservationsBuilder_.dispose(); reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000200); reservationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReservationsFieldBuilder() : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } } } if (other.hasDisk()) { mergeDisk(other.getDisk()); } if (other.hasRevocable()) { mergeRevocable(other.getRevocable()); } if (other.hasShared()) { mergeShared(other.getShared()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasType()) { return false; } if (hasProviderId()) { if (!getProviderId().isInitialized()) { return false; } } if (hasScalar()) { if (!getScalar().isInitialized()) { return false; } } if (hasRanges()) { if (!getRanges().isInitialized()) { return false; } } if (hasReservation()) { if (!getReservation().isInitialized()) { return false; } } for (int i = 0; i < getReservationsCount(); i++) { if (!getReservations(i).isInitialized()) { return false; } } if (hasDisk()) { if (!getDisk().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.Protos.Resource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.ResourceProviderID providerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder> providerIdBuilder_; /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public boolean hasProviderId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public org.apache.mesos.v1.Protos.ResourceProviderID getProviderId() { if (providerIdBuilder_ == null) { return providerId_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : providerId_; } else { return providerIdBuilder_.getMessage(); } } /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public Builder setProviderId(org.apache.mesos.v1.Protos.ResourceProviderID value) { if (providerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } providerId_ = value; onChanged(); } else { providerIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public Builder setProviderId( org.apache.mesos.v1.Protos.ResourceProviderID.Builder builderForValue) { if (providerIdBuilder_ == null) { providerId_ = builderForValue.build(); onChanged(); } else { providerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public Builder mergeProviderId(org.apache.mesos.v1.Protos.ResourceProviderID value) { if (providerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && providerId_ != null && providerId_ != org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance()) { providerId_ = org.apache.mesos.v1.Protos.ResourceProviderID.newBuilder(providerId_).mergeFrom(value).buildPartial(); } else { providerId_ = value; } onChanged(); } else { providerIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public Builder clearProviderId() { if (providerIdBuilder_ == null) { providerId_ = null; onChanged(); } else { providerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public org.apache.mesos.v1.Protos.ResourceProviderID.Builder getProviderIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getProviderIdFieldBuilder().getBuilder(); } /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ public org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getProviderIdOrBuilder() { if (providerIdBuilder_ != null) { return providerIdBuilder_.getMessageOrBuilder(); } else { return providerId_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : providerId_; } } /** *
       * Specified if the resource comes from a particular resource provider.
       * 
* * optional .mesos.v1.ResourceProviderID provider_id = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder> getProviderIdFieldBuilder() { if (providerIdBuilder_ == null) { providerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder>( getProviderId(), getParentForChildren(), isClean()); providerId_ = null; } return providerIdBuilder_; } private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private int type_ = 0; /** * required .mesos.v1.Value.Type type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.Value.Type type = 2; */ public org.apache.mesos.v1.Protos.Value.Type getType() { org.apache.mesos.v1.Protos.Value.Type result = org.apache.mesos.v1.Protos.Value.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Value.Type.SCALAR : result; } /** * required .mesos.v1.Value.Type type = 2; */ public Builder setType(org.apache.mesos.v1.Protos.Value.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value.getNumber(); onChanged(); return this; } /** * required .mesos.v1.Value.Type type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.Value.Scalar scalar_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder> scalarBuilder_; /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public boolean hasScalar() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.Scalar getScalar() { if (scalarBuilder_ == null) { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } else { return scalarBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public Builder setScalar(org.apache.mesos.v1.Protos.Value.Scalar value) { if (scalarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scalar_ = value; onChanged(); } else { scalarBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public Builder setScalar( org.apache.mesos.v1.Protos.Value.Scalar.Builder builderForValue) { if (scalarBuilder_ == null) { scalar_ = builderForValue.build(); onChanged(); } else { scalarBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public Builder mergeScalar(org.apache.mesos.v1.Protos.Value.Scalar value) { if (scalarBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && scalar_ != null && scalar_ != org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance()) { scalar_ = org.apache.mesos.v1.Protos.Value.Scalar.newBuilder(scalar_).mergeFrom(value).buildPartial(); } else { scalar_ = value; } onChanged(); } else { scalarBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public Builder clearScalar() { if (scalarBuilder_ == null) { scalar_ = null; onChanged(); } else { scalarBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.Scalar.Builder getScalarBuilder() { bitField0_ |= 0x00000008; onChanged(); return getScalarFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ public org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { if (scalarBuilder_ != null) { return scalarBuilder_.getMessageOrBuilder(); } else { return scalar_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : scalar_; } } /** * optional .mesos.v1.Value.Scalar scalar = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder> getScalarFieldBuilder() { if (scalarBuilder_ == null) { scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder>( getScalar(), getParentForChildren(), isClean()); scalar_ = null; } return scalarBuilder_; } private org.apache.mesos.v1.Protos.Value.Ranges ranges_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder> rangesBuilder_; /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public boolean hasRanges() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.Ranges getRanges() { if (rangesBuilder_ == null) { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } else { return rangesBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public Builder setRanges(org.apache.mesos.v1.Protos.Value.Ranges value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ranges_ = value; onChanged(); } else { rangesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public Builder setRanges( org.apache.mesos.v1.Protos.Value.Ranges.Builder builderForValue) { if (rangesBuilder_ == null) { ranges_ = builderForValue.build(); onChanged(); } else { rangesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public Builder mergeRanges(org.apache.mesos.v1.Protos.Value.Ranges value) { if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && ranges_ != null && ranges_ != org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance()) { ranges_ = org.apache.mesos.v1.Protos.Value.Ranges.newBuilder(ranges_).mergeFrom(value).buildPartial(); } else { ranges_ = value; } onChanged(); } else { rangesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = null; onChanged(); } else { rangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.Ranges.Builder getRangesBuilder() { bitField0_ |= 0x00000010; onChanged(); return getRangesFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ public org.apache.mesos.v1.Protos.Value.RangesOrBuilder getRangesOrBuilder() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilder(); } else { return ranges_ == null ? org.apache.mesos.v1.Protos.Value.Ranges.getDefaultInstance() : ranges_; } } /** * optional .mesos.v1.Value.Ranges ranges = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Ranges, org.apache.mesos.v1.Protos.Value.Ranges.Builder, org.apache.mesos.v1.Protos.Value.RangesOrBuilder>( getRanges(), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } private org.apache.mesos.v1.Protos.Value.Set set_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder> setBuilder_; /** * optional .mesos.v1.Value.Set set = 5; */ public boolean hasSet() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.Value.Set set = 5; */ public org.apache.mesos.v1.Protos.Value.Set getSet() { if (setBuilder_ == null) { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } else { return setBuilder_.getMessage(); } } /** * optional .mesos.v1.Value.Set set = 5; */ public Builder setSet(org.apache.mesos.v1.Protos.Value.Set value) { if (setBuilder_ == null) { if (value == null) { throw new NullPointerException(); } set_ = value; onChanged(); } else { setBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Value.Set set = 5; */ public Builder setSet( org.apache.mesos.v1.Protos.Value.Set.Builder builderForValue) { if (setBuilder_ == null) { set_ = builderForValue.build(); onChanged(); } else { setBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Value.Set set = 5; */ public Builder mergeSet(org.apache.mesos.v1.Protos.Value.Set value) { if (setBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && set_ != null && set_ != org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance()) { set_ = org.apache.mesos.v1.Protos.Value.Set.newBuilder(set_).mergeFrom(value).buildPartial(); } else { set_ = value; } onChanged(); } else { setBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Value.Set set = 5; */ public Builder clearSet() { if (setBuilder_ == null) { set_ = null; onChanged(); } else { setBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .mesos.v1.Value.Set set = 5; */ public org.apache.mesos.v1.Protos.Value.Set.Builder getSetBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSetFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Value.Set set = 5; */ public org.apache.mesos.v1.Protos.Value.SetOrBuilder getSetOrBuilder() { if (setBuilder_ != null) { return setBuilder_.getMessageOrBuilder(); } else { return set_ == null ? org.apache.mesos.v1.Protos.Value.Set.getDefaultInstance() : set_; } } /** * optional .mesos.v1.Value.Set set = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder> getSetFieldBuilder() { if (setBuilder_ == null) { setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Set, org.apache.mesos.v1.Protos.Value.Set.Builder, org.apache.mesos.v1.Protos.Value.SetOrBuilder>( getSet(), getParentForChildren(), isClean()); set_ = null; } return setBuilder_; } private java.lang.Object role_ = "*"; /** *
       * The role that this resource is reserved for. If "*", this indicates
       * that the resource is unreserved. Otherwise, the resource will only
       * be offered to frameworks that belong to this role.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public boolean hasRole() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * The role that this resource is reserved for. If "*", this indicates
       * that the resource is unreserved. Otherwise, the resource will only
       * be offered to frameworks that belong to this role.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The role that this resource is reserved for. If "*", this indicates
       * that the resource is unreserved. Otherwise, the resource will only
       * be offered to frameworks that belong to this role.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The role that this resource is reserved for. If "*", this indicates
       * that the resource is unreserved. Otherwise, the resource will only
       * be offered to frameworks that belong to this role.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; role_ = value; onChanged(); return this; } /** *
       * The role that this resource is reserved for. If "*", this indicates
       * that the resource is unreserved. Otherwise, the resource will only
       * be offered to frameworks that belong to this role.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public Builder clearRole() { bitField0_ = (bitField0_ & ~0x00000040); role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** *
       * The role that this resource is reserved for. If "*", this indicates
       * that the resource is unreserved. Otherwise, the resource will only
       * be offered to frameworks that belong to this role.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional string role = 6 [default = "*", deprecated = true]; */ @java.lang.Deprecated public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; role_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Resource.AllocationInfo allocationInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.AllocationInfo, org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder, org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder> allocationInfoBuilder_; /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public boolean hasAllocationInfo() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfo getAllocationInfo() { if (allocationInfoBuilder_ == null) { return allocationInfo_ == null ? org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance() : allocationInfo_; } else { return allocationInfoBuilder_.getMessage(); } } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public Builder setAllocationInfo(org.apache.mesos.v1.Protos.Resource.AllocationInfo value) { if (allocationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allocationInfo_ = value; onChanged(); } else { allocationInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public Builder setAllocationInfo( org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder builderForValue) { if (allocationInfoBuilder_ == null) { allocationInfo_ = builderForValue.build(); onChanged(); } else { allocationInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public Builder mergeAllocationInfo(org.apache.mesos.v1.Protos.Resource.AllocationInfo value) { if (allocationInfoBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && allocationInfo_ != null && allocationInfo_ != org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance()) { allocationInfo_ = org.apache.mesos.v1.Protos.Resource.AllocationInfo.newBuilder(allocationInfo_).mergeFrom(value).buildPartial(); } else { allocationInfo_ = value; } onChanged(); } else { allocationInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public Builder clearAllocationInfo() { if (allocationInfoBuilder_ == null) { allocationInfo_ = null; onChanged(); } else { allocationInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder getAllocationInfoBuilder() { bitField0_ |= 0x00000080; onChanged(); return getAllocationInfoFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder() { if (allocationInfoBuilder_ != null) { return allocationInfoBuilder_.getMessageOrBuilder(); } else { return allocationInfo_ == null ? org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance() : allocationInfo_; } } /** * optional .mesos.v1.Resource.AllocationInfo allocation_info = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.AllocationInfo, org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder, org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder> getAllocationInfoFieldBuilder() { if (allocationInfoBuilder_ == null) { allocationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.AllocationInfo, org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder, org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder>( getAllocationInfo(), getParentForChildren(), isClean()); allocationInfo_ = null; } return allocationInfoBuilder_; } private org.apache.mesos.v1.Protos.Resource.ReservationInfo reservation_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder> reservationBuilder_; /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public boolean hasReservation() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo getReservation() { if (reservationBuilder_ == null) { return reservation_ == null ? org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance() : reservation_; } else { return reservationBuilder_.getMessage(); } } /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public Builder setReservation(org.apache.mesos.v1.Protos.Resource.ReservationInfo value) { if (reservationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reservation_ = value; onChanged(); } else { reservationBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public Builder setReservation( org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder builderForValue) { if (reservationBuilder_ == null) { reservation_ = builderForValue.build(); onChanged(); } else { reservationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public Builder mergeReservation(org.apache.mesos.v1.Protos.Resource.ReservationInfo value) { if (reservationBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && reservation_ != null && reservation_ != org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance()) { reservation_ = org.apache.mesos.v1.Protos.Resource.ReservationInfo.newBuilder(reservation_).mergeFrom(value).buildPartial(); } else { reservation_ = value; } onChanged(); } else { reservationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public Builder clearReservation() { if (reservationBuilder_ == null) { reservation_ = null; onChanged(); } else { reservationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder getReservationBuilder() { bitField0_ |= 0x00000100; onChanged(); return getReservationFieldBuilder().getBuilder(); } /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getReservationOrBuilder() { if (reservationBuilder_ != null) { return reservationBuilder_.getMessageOrBuilder(); } else { return reservation_ == null ? org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance() : reservation_; } } /** *
       * If this is set, this resource was dynamically reserved by an
       * operator or a framework. Otherwise, this resource is either unreserved
       * or statically reserved by an operator via the --resources flag.
       * NOTE: Frameworks must not set this field if `reservations` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate once `reservations` is no longer experimental.
       * 
* * optional .mesos.v1.Resource.ReservationInfo reservation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder> getReservationFieldBuilder() { if (reservationBuilder_ == null) { reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder>( getReservation(), getParentForChildren(), isClean()); reservation_ = null; } return reservationBuilder_; } private java.util.List reservations_ = java.util.Collections.emptyList(); private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { reservations_ = new java.util.ArrayList(reservations_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder> reservationsBuilder_; /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public java.util.List getReservationsList() { if (reservationsBuilder_ == null) { return java.util.Collections.unmodifiableList(reservations_); } else { return reservationsBuilder_.getMessageList(); } } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public int getReservationsCount() { if (reservationsBuilder_ == null) { return reservations_.size(); } else { return reservationsBuilder_.getCount(); } } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo getReservations(int index) { if (reservationsBuilder_ == null) { return reservations_.get(index); } else { return reservationsBuilder_.getMessage(index); } } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder setReservations( int index, org.apache.mesos.v1.Protos.Resource.ReservationInfo value) { if (reservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservationsIsMutable(); reservations_.set(index, value); onChanged(); } else { reservationsBuilder_.setMessage(index, value); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder setReservations( int index, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.set(index, builderForValue.build()); onChanged(); } else { reservationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder addReservations(org.apache.mesos.v1.Protos.Resource.ReservationInfo value) { if (reservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservationsIsMutable(); reservations_.add(value); onChanged(); } else { reservationsBuilder_.addMessage(value); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder addReservations( int index, org.apache.mesos.v1.Protos.Resource.ReservationInfo value) { if (reservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReservationsIsMutable(); reservations_.add(index, value); onChanged(); } else { reservationsBuilder_.addMessage(index, value); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder addReservations( org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.add(builderForValue.build()); onChanged(); } else { reservationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder addReservations( int index, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.add(index, builderForValue.build()); onChanged(); } else { reservationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder addAllReservations( java.lang.Iterable values) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reservations_); onChanged(); } else { reservationsBuilder_.addAllMessages(values); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder clearReservations() { if (reservationsBuilder_ == null) { reservations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { reservationsBuilder_.clear(); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public Builder removeReservations(int index) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.remove(index); onChanged(); } else { reservationsBuilder_.remove(index); } return this; } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder getReservationsBuilder( int index) { return getReservationsFieldBuilder().getBuilder(index); } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder getReservationsOrBuilder( int index) { if (reservationsBuilder_ == null) { return reservations_.get(index); } else { return reservationsBuilder_.getMessageOrBuilder(index); } } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public java.util.List getReservationsOrBuilderList() { if (reservationsBuilder_ != null) { return reservationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reservations_); } } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder addReservationsBuilder() { return getReservationsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance()); } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder addReservationsBuilder( int index) { return getReservationsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.ReservationInfo.getDefaultInstance()); } /** *
       * The stack of reservations. If this field is empty, it indicates that this
       * resource is unreserved. Otherwise, the resource is reserved. The first
       * `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
       * have `DYNAMIC`. One can create a new reservation on top of an existing
       * one by pushing a new `ReservationInfo` to the back. The last
       * `ReservationInfo` in this stack is the "current" reservation. The new
       * reservation's role must be a child of the current reservation's role.
       * NOTE: Frameworks must not set this field if `reservation` is set.
       *       See the 'Resource Format' section for more details.
       * TODO(mpark): Deprecate `role` and `reservation` once this is stable.
       * 
* * repeated .mesos.v1.Resource.ReservationInfo reservations = 13; */ public java.util.List getReservationsBuilderList() { return getReservationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder> getReservationsFieldBuilder() { if (reservationsBuilder_ == null) { reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.ReservationInfo, org.apache.mesos.v1.Protos.Resource.ReservationInfo.Builder, org.apache.mesos.v1.Protos.Resource.ReservationInfoOrBuilder>( reservations_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); reservations_ = null; } return reservationsBuilder_; } private org.apache.mesos.v1.Protos.Resource.DiskInfo disk_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo, org.apache.mesos.v1.Protos.Resource.DiskInfo.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfoOrBuilder> diskBuilder_; /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public boolean hasDisk() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo getDisk() { if (diskBuilder_ == null) { return disk_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.getDefaultInstance() : disk_; } else { return diskBuilder_.getMessage(); } } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public Builder setDisk(org.apache.mesos.v1.Protos.Resource.DiskInfo value) { if (diskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } disk_ = value; onChanged(); } else { diskBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public Builder setDisk( org.apache.mesos.v1.Protos.Resource.DiskInfo.Builder builderForValue) { if (diskBuilder_ == null) { disk_ = builderForValue.build(); onChanged(); } else { diskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public Builder mergeDisk(org.apache.mesos.v1.Protos.Resource.DiskInfo value) { if (diskBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && disk_ != null && disk_ != org.apache.mesos.v1.Protos.Resource.DiskInfo.getDefaultInstance()) { disk_ = org.apache.mesos.v1.Protos.Resource.DiskInfo.newBuilder(disk_).mergeFrom(value).buildPartial(); } else { disk_ = value; } onChanged(); } else { diskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public Builder clearDisk() { if (diskBuilder_ == null) { disk_ = null; onChanged(); } else { diskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Builder getDiskBuilder() { bitField0_ |= 0x00000400; onChanged(); return getDiskFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ public org.apache.mesos.v1.Protos.Resource.DiskInfoOrBuilder getDiskOrBuilder() { if (diskBuilder_ != null) { return diskBuilder_.getMessageOrBuilder(); } else { return disk_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.getDefaultInstance() : disk_; } } /** * optional .mesos.v1.Resource.DiskInfo disk = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo, org.apache.mesos.v1.Protos.Resource.DiskInfo.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfoOrBuilder> getDiskFieldBuilder() { if (diskBuilder_ == null) { diskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo, org.apache.mesos.v1.Protos.Resource.DiskInfo.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfoOrBuilder>( getDisk(), getParentForChildren(), isClean()); disk_ = null; } return diskBuilder_; } private org.apache.mesos.v1.Protos.Resource.RevocableInfo revocable_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.RevocableInfo, org.apache.mesos.v1.Protos.Resource.RevocableInfo.Builder, org.apache.mesos.v1.Protos.Resource.RevocableInfoOrBuilder> revocableBuilder_; /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public boolean hasRevocable() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public org.apache.mesos.v1.Protos.Resource.RevocableInfo getRevocable() { if (revocableBuilder_ == null) { return revocable_ == null ? org.apache.mesos.v1.Protos.Resource.RevocableInfo.getDefaultInstance() : revocable_; } else { return revocableBuilder_.getMessage(); } } /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public Builder setRevocable(org.apache.mesos.v1.Protos.Resource.RevocableInfo value) { if (revocableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } revocable_ = value; onChanged(); } else { revocableBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public Builder setRevocable( org.apache.mesos.v1.Protos.Resource.RevocableInfo.Builder builderForValue) { if (revocableBuilder_ == null) { revocable_ = builderForValue.build(); onChanged(); } else { revocableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public Builder mergeRevocable(org.apache.mesos.v1.Protos.Resource.RevocableInfo value) { if (revocableBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && revocable_ != null && revocable_ != org.apache.mesos.v1.Protos.Resource.RevocableInfo.getDefaultInstance()) { revocable_ = org.apache.mesos.v1.Protos.Resource.RevocableInfo.newBuilder(revocable_).mergeFrom(value).buildPartial(); } else { revocable_ = value; } onChanged(); } else { revocableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public Builder clearRevocable() { if (revocableBuilder_ == null) { revocable_ = null; onChanged(); } else { revocableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public org.apache.mesos.v1.Protos.Resource.RevocableInfo.Builder getRevocableBuilder() { bitField0_ |= 0x00000800; onChanged(); return getRevocableFieldBuilder().getBuilder(); } /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ public org.apache.mesos.v1.Protos.Resource.RevocableInfoOrBuilder getRevocableOrBuilder() { if (revocableBuilder_ != null) { return revocableBuilder_.getMessageOrBuilder(); } else { return revocable_ == null ? org.apache.mesos.v1.Protos.Resource.RevocableInfo.getDefaultInstance() : revocable_; } } /** *
       * If this is set, the resources are revocable, i.e., any tasks or
       * executors launched using these resources could get preempted or
       * throttled at any time. This could be used by frameworks to run
       * best effort tasks that do not need strict uptime or performance
       * guarantees. Note that if this is set, 'disk' or 'reservation'
       * cannot be set.
       * 
* * optional .mesos.v1.Resource.RevocableInfo revocable = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.RevocableInfo, org.apache.mesos.v1.Protos.Resource.RevocableInfo.Builder, org.apache.mesos.v1.Protos.Resource.RevocableInfoOrBuilder> getRevocableFieldBuilder() { if (revocableBuilder_ == null) { revocableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.RevocableInfo, org.apache.mesos.v1.Protos.Resource.RevocableInfo.Builder, org.apache.mesos.v1.Protos.Resource.RevocableInfoOrBuilder>( getRevocable(), getParentForChildren(), isClean()); revocable_ = null; } return revocableBuilder_; } private org.apache.mesos.v1.Protos.Resource.SharedInfo shared_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.SharedInfo, org.apache.mesos.v1.Protos.Resource.SharedInfo.Builder, org.apache.mesos.v1.Protos.Resource.SharedInfoOrBuilder> sharedBuilder_; /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public boolean hasShared() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public org.apache.mesos.v1.Protos.Resource.SharedInfo getShared() { if (sharedBuilder_ == null) { return shared_ == null ? org.apache.mesos.v1.Protos.Resource.SharedInfo.getDefaultInstance() : shared_; } else { return sharedBuilder_.getMessage(); } } /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public Builder setShared(org.apache.mesos.v1.Protos.Resource.SharedInfo value) { if (sharedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shared_ = value; onChanged(); } else { sharedBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public Builder setShared( org.apache.mesos.v1.Protos.Resource.SharedInfo.Builder builderForValue) { if (sharedBuilder_ == null) { shared_ = builderForValue.build(); onChanged(); } else { sharedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public Builder mergeShared(org.apache.mesos.v1.Protos.Resource.SharedInfo value) { if (sharedBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && shared_ != null && shared_ != org.apache.mesos.v1.Protos.Resource.SharedInfo.getDefaultInstance()) { shared_ = org.apache.mesos.v1.Protos.Resource.SharedInfo.newBuilder(shared_).mergeFrom(value).buildPartial(); } else { shared_ = value; } onChanged(); } else { sharedBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public Builder clearShared() { if (sharedBuilder_ == null) { shared_ = null; onChanged(); } else { sharedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public org.apache.mesos.v1.Protos.Resource.SharedInfo.Builder getSharedBuilder() { bitField0_ |= 0x00001000; onChanged(); return getSharedFieldBuilder().getBuilder(); } /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ public org.apache.mesos.v1.Protos.Resource.SharedInfoOrBuilder getSharedOrBuilder() { if (sharedBuilder_ != null) { return sharedBuilder_.getMessageOrBuilder(); } else { return shared_ == null ? org.apache.mesos.v1.Protos.Resource.SharedInfo.getDefaultInstance() : shared_; } } /** *
       * If this is set, the resources are shared, i.e. multiple tasks
       * can be launched using this resource and all of them shall refer
       * to the same physical resource on the cluster. Note that only
       * persistent volumes can be shared currently.
       * 
* * optional .mesos.v1.Resource.SharedInfo shared = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.SharedInfo, org.apache.mesos.v1.Protos.Resource.SharedInfo.Builder, org.apache.mesos.v1.Protos.Resource.SharedInfoOrBuilder> getSharedFieldBuilder() { if (sharedBuilder_ == null) { sharedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.SharedInfo, org.apache.mesos.v1.Protos.Resource.SharedInfo.Builder, org.apache.mesos.v1.Protos.Resource.SharedInfoOrBuilder>( getShared(), getParentForChildren(), isClean()); shared_ = null; } return sharedBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Resource) } // @@protoc_insertion_point(class_scope:mesos.v1.Resource) private static final org.apache.mesos.v1.Protos.Resource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Resource(); } public static org.apache.mesos.v1.Protos.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Resource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Resource(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TrafficControlStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TrafficControlStatistics) com.google.protobuf.MessageOrBuilder { /** * required string id = 1; */ boolean hasId(); /** * required string id = 1; */ java.lang.String getId(); /** * required string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** * optional uint64 backlog = 2; */ boolean hasBacklog(); /** * optional uint64 backlog = 2; */ long getBacklog(); /** * optional uint64 bytes = 3; */ boolean hasBytes(); /** * optional uint64 bytes = 3; */ long getBytes(); /** * optional uint64 drops = 4; */ boolean hasDrops(); /** * optional uint64 drops = 4; */ long getDrops(); /** * optional uint64 overlimits = 5; */ boolean hasOverlimits(); /** * optional uint64 overlimits = 5; */ long getOverlimits(); /** * optional uint64 packets = 6; */ boolean hasPackets(); /** * optional uint64 packets = 6; */ long getPackets(); /** * optional uint64 qlen = 7; */ boolean hasQlen(); /** * optional uint64 qlen = 7; */ long getQlen(); /** * optional uint64 ratebps = 8; */ boolean hasRatebps(); /** * optional uint64 ratebps = 8; */ long getRatebps(); /** * optional uint64 ratepps = 9; */ boolean hasRatepps(); /** * optional uint64 ratepps = 9; */ long getRatepps(); /** * optional uint64 requeues = 10; */ boolean hasRequeues(); /** * optional uint64 requeues = 10; */ long getRequeues(); } /** *
   **
   * When the network bandwidth caps are enabled and the container
   * is over its limit, outbound packets may be either delayed or
   * dropped completely either because it exceeds the maximum bandwidth
   * allocation for a single container (the cap) or because the combined
   * network traffic of multiple containers on the host exceeds the
   * transmit capacity of the host (the share). We can report the
   * following statistics for each of these conditions exported directly
   * from the Linux Traffic Control Queueing Discipline.
   * id         : name of the limiter, e.g. 'tx_bw_cap'
   * backlog    : number of packets currently delayed
   * bytes      : total bytes seen
   * drops      : number of packets dropped in total
   * overlimits : number of packets which exceeded allocation
   * packets    : total packets seen
   * qlen       : number of packets currently queued
   * rate_bps   : throughput in bytes/sec
   * rate_pps   : throughput in packets/sec
   * requeues   : number of times a packet has been delayed due to
   *              locking or device contention issues
   * More information on the operation of Linux Traffic Control can be
   * found at http://www.lartc.org/lartc.html.
   * 
* * Protobuf type {@code mesos.v1.TrafficControlStatistics} */ public static final class TrafficControlStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TrafficControlStatistics) TrafficControlStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use TrafficControlStatistics.newBuilder() to construct. private TrafficControlStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TrafficControlStatistics() { id_ = ""; backlog_ = 0L; bytes_ = 0L; drops_ = 0L; overlimits_ = 0L; packets_ = 0L; qlen_ = 0L; ratebps_ = 0L; ratepps_ = 0L; requeues_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TrafficControlStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; id_ = bs; break; } case 16: { bitField0_ |= 0x00000002; backlog_ = input.readUInt64(); break; } case 24: { bitField0_ |= 0x00000004; bytes_ = input.readUInt64(); break; } case 32: { bitField0_ |= 0x00000008; drops_ = input.readUInt64(); break; } case 40: { bitField0_ |= 0x00000010; overlimits_ = input.readUInt64(); break; } case 48: { bitField0_ |= 0x00000020; packets_ = input.readUInt64(); break; } case 56: { bitField0_ |= 0x00000040; qlen_ = input.readUInt64(); break; } case 64: { bitField0_ |= 0x00000080; ratebps_ = input.readUInt64(); break; } case 72: { bitField0_ |= 0x00000100; ratepps_ = input.readUInt64(); break; } case 80: { bitField0_ |= 0x00000200; requeues_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TrafficControlStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TrafficControlStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TrafficControlStatistics.class, org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * required string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** * required string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BACKLOG_FIELD_NUMBER = 2; private long backlog_; /** * optional uint64 backlog = 2; */ public boolean hasBacklog() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint64 backlog = 2; */ public long getBacklog() { return backlog_; } public static final int BYTES_FIELD_NUMBER = 3; private long bytes_; /** * optional uint64 bytes = 3; */ public boolean hasBytes() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 bytes = 3; */ public long getBytes() { return bytes_; } public static final int DROPS_FIELD_NUMBER = 4; private long drops_; /** * optional uint64 drops = 4; */ public boolean hasDrops() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 drops = 4; */ public long getDrops() { return drops_; } public static final int OVERLIMITS_FIELD_NUMBER = 5; private long overlimits_; /** * optional uint64 overlimits = 5; */ public boolean hasOverlimits() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint64 overlimits = 5; */ public long getOverlimits() { return overlimits_; } public static final int PACKETS_FIELD_NUMBER = 6; private long packets_; /** * optional uint64 packets = 6; */ public boolean hasPackets() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint64 packets = 6; */ public long getPackets() { return packets_; } public static final int QLEN_FIELD_NUMBER = 7; private long qlen_; /** * optional uint64 qlen = 7; */ public boolean hasQlen() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 qlen = 7; */ public long getQlen() { return qlen_; } public static final int RATEBPS_FIELD_NUMBER = 8; private long ratebps_; /** * optional uint64 ratebps = 8; */ public boolean hasRatebps() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint64 ratebps = 8; */ public long getRatebps() { return ratebps_; } public static final int RATEPPS_FIELD_NUMBER = 9; private long ratepps_; /** * optional uint64 ratepps = 9; */ public boolean hasRatepps() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint64 ratepps = 9; */ public long getRatepps() { return ratepps_; } public static final int REQUEUES_FIELD_NUMBER = 10; private long requeues_; /** * optional uint64 requeues = 10; */ public boolean hasRequeues() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint64 requeues = 10; */ public long getRequeues() { return requeues_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, backlog_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, bytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, drops_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt64(5, overlimits_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt64(6, packets_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt64(7, qlen_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt64(8, ratebps_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt64(9, ratepps_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt64(10, requeues_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, backlog_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, bytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, drops_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, overlimits_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, packets_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, qlen_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, ratebps_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, ratepps_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, requeues_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TrafficControlStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TrafficControlStatistics other = (org.apache.mesos.v1.Protos.TrafficControlStatistics) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasBacklog() == other.hasBacklog()); if (hasBacklog()) { result = result && (getBacklog() == other.getBacklog()); } result = result && (hasBytes() == other.hasBytes()); if (hasBytes()) { result = result && (getBytes() == other.getBytes()); } result = result && (hasDrops() == other.hasDrops()); if (hasDrops()) { result = result && (getDrops() == other.getDrops()); } result = result && (hasOverlimits() == other.hasOverlimits()); if (hasOverlimits()) { result = result && (getOverlimits() == other.getOverlimits()); } result = result && (hasPackets() == other.hasPackets()); if (hasPackets()) { result = result && (getPackets() == other.getPackets()); } result = result && (hasQlen() == other.hasQlen()); if (hasQlen()) { result = result && (getQlen() == other.getQlen()); } result = result && (hasRatebps() == other.hasRatebps()); if (hasRatebps()) { result = result && (getRatebps() == other.getRatebps()); } result = result && (hasRatepps() == other.hasRatepps()); if (hasRatepps()) { result = result && (getRatepps() == other.getRatepps()); } result = result && (hasRequeues() == other.hasRequeues()); if (hasRequeues()) { result = result && (getRequeues() == other.getRequeues()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasBacklog()) { hash = (37 * hash) + BACKLOG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBacklog()); } if (hasBytes()) { hash = (37 * hash) + BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytes()); } if (hasDrops()) { hash = (37 * hash) + DROPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDrops()); } if (hasOverlimits()) { hash = (37 * hash) + OVERLIMITS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOverlimits()); } if (hasPackets()) { hash = (37 * hash) + PACKETS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPackets()); } if (hasQlen()) { hash = (37 * hash) + QLEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getQlen()); } if (hasRatebps()) { hash = (37 * hash) + RATEBPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRatebps()); } if (hasRatepps()) { hash = (37 * hash) + RATEPPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRatepps()); } if (hasRequeues()) { hash = (37 * hash) + REQUEUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequeues()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics 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.Protos.TrafficControlStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TrafficControlStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * When the network bandwidth caps are enabled and the container
     * is over its limit, outbound packets may be either delayed or
     * dropped completely either because it exceeds the maximum bandwidth
     * allocation for a single container (the cap) or because the combined
     * network traffic of multiple containers on the host exceeds the
     * transmit capacity of the host (the share). We can report the
     * following statistics for each of these conditions exported directly
     * from the Linux Traffic Control Queueing Discipline.
     * id         : name of the limiter, e.g. 'tx_bw_cap'
     * backlog    : number of packets currently delayed
     * bytes      : total bytes seen
     * drops      : number of packets dropped in total
     * overlimits : number of packets which exceeded allocation
     * packets    : total packets seen
     * qlen       : number of packets currently queued
     * rate_bps   : throughput in bytes/sec
     * rate_pps   : throughput in packets/sec
     * requeues   : number of times a packet has been delayed due to
     *              locking or device contention issues
     * More information on the operation of Linux Traffic Control can be
     * found at http://www.lartc.org/lartc.html.
     * 
* * Protobuf type {@code mesos.v1.TrafficControlStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TrafficControlStatistics) org.apache.mesos.v1.Protos.TrafficControlStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TrafficControlStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TrafficControlStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TrafficControlStatistics.class, org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TrafficControlStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); backlog_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); bytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); drops_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); overlimits_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); packets_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); qlen_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); ratebps_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); ratepps_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); requeues_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TrafficControlStatistics_descriptor; } public org.apache.mesos.v1.Protos.TrafficControlStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TrafficControlStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TrafficControlStatistics build() { org.apache.mesos.v1.Protos.TrafficControlStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TrafficControlStatistics buildPartial() { org.apache.mesos.v1.Protos.TrafficControlStatistics result = new org.apache.mesos.v1.Protos.TrafficControlStatistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.backlog_ = backlog_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.bytes_ = bytes_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.drops_ = drops_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.overlimits_ = overlimits_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.packets_ = packets_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.qlen_ = qlen_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.ratebps_ = ratebps_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.ratepps_ = ratepps_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.requeues_ = requeues_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TrafficControlStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.TrafficControlStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TrafficControlStatistics other) { if (other == org.apache.mesos.v1.Protos.TrafficControlStatistics.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasBacklog()) { setBacklog(other.getBacklog()); } if (other.hasBytes()) { setBytes(other.getBytes()); } if (other.hasDrops()) { setDrops(other.getDrops()); } if (other.hasOverlimits()) { setOverlimits(other.getOverlimits()); } if (other.hasPackets()) { setPackets(other.getPackets()); } if (other.hasQlen()) { setQlen(other.getQlen()); } if (other.hasRatebps()) { setRatebps(other.getRatebps()); } if (other.hasRatepps()) { setRatepps(other.getRatepps()); } if (other.hasRequeues()) { setRequeues(other.getRequeues()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasId()) { 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.Protos.TrafficControlStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TrafficControlStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * required string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * required string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private long backlog_ ; /** * optional uint64 backlog = 2; */ public boolean hasBacklog() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint64 backlog = 2; */ public long getBacklog() { return backlog_; } /** * optional uint64 backlog = 2; */ public Builder setBacklog(long value) { bitField0_ |= 0x00000002; backlog_ = value; onChanged(); return this; } /** * optional uint64 backlog = 2; */ public Builder clearBacklog() { bitField0_ = (bitField0_ & ~0x00000002); backlog_ = 0L; onChanged(); return this; } private long bytes_ ; /** * optional uint64 bytes = 3; */ public boolean hasBytes() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 bytes = 3; */ public long getBytes() { return bytes_; } /** * optional uint64 bytes = 3; */ public Builder setBytes(long value) { bitField0_ |= 0x00000004; bytes_ = value; onChanged(); return this; } /** * optional uint64 bytes = 3; */ public Builder clearBytes() { bitField0_ = (bitField0_ & ~0x00000004); bytes_ = 0L; onChanged(); return this; } private long drops_ ; /** * optional uint64 drops = 4; */ public boolean hasDrops() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 drops = 4; */ public long getDrops() { return drops_; } /** * optional uint64 drops = 4; */ public Builder setDrops(long value) { bitField0_ |= 0x00000008; drops_ = value; onChanged(); return this; } /** * optional uint64 drops = 4; */ public Builder clearDrops() { bitField0_ = (bitField0_ & ~0x00000008); drops_ = 0L; onChanged(); return this; } private long overlimits_ ; /** * optional uint64 overlimits = 5; */ public boolean hasOverlimits() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint64 overlimits = 5; */ public long getOverlimits() { return overlimits_; } /** * optional uint64 overlimits = 5; */ public Builder setOverlimits(long value) { bitField0_ |= 0x00000010; overlimits_ = value; onChanged(); return this; } /** * optional uint64 overlimits = 5; */ public Builder clearOverlimits() { bitField0_ = (bitField0_ & ~0x00000010); overlimits_ = 0L; onChanged(); return this; } private long packets_ ; /** * optional uint64 packets = 6; */ public boolean hasPackets() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint64 packets = 6; */ public long getPackets() { return packets_; } /** * optional uint64 packets = 6; */ public Builder setPackets(long value) { bitField0_ |= 0x00000020; packets_ = value; onChanged(); return this; } /** * optional uint64 packets = 6; */ public Builder clearPackets() { bitField0_ = (bitField0_ & ~0x00000020); packets_ = 0L; onChanged(); return this; } private long qlen_ ; /** * optional uint64 qlen = 7; */ public boolean hasQlen() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 qlen = 7; */ public long getQlen() { return qlen_; } /** * optional uint64 qlen = 7; */ public Builder setQlen(long value) { bitField0_ |= 0x00000040; qlen_ = value; onChanged(); return this; } /** * optional uint64 qlen = 7; */ public Builder clearQlen() { bitField0_ = (bitField0_ & ~0x00000040); qlen_ = 0L; onChanged(); return this; } private long ratebps_ ; /** * optional uint64 ratebps = 8; */ public boolean hasRatebps() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint64 ratebps = 8; */ public long getRatebps() { return ratebps_; } /** * optional uint64 ratebps = 8; */ public Builder setRatebps(long value) { bitField0_ |= 0x00000080; ratebps_ = value; onChanged(); return this; } /** * optional uint64 ratebps = 8; */ public Builder clearRatebps() { bitField0_ = (bitField0_ & ~0x00000080); ratebps_ = 0L; onChanged(); return this; } private long ratepps_ ; /** * optional uint64 ratepps = 9; */ public boolean hasRatepps() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint64 ratepps = 9; */ public long getRatepps() { return ratepps_; } /** * optional uint64 ratepps = 9; */ public Builder setRatepps(long value) { bitField0_ |= 0x00000100; ratepps_ = value; onChanged(); return this; } /** * optional uint64 ratepps = 9; */ public Builder clearRatepps() { bitField0_ = (bitField0_ & ~0x00000100); ratepps_ = 0L; onChanged(); return this; } private long requeues_ ; /** * optional uint64 requeues = 10; */ public boolean hasRequeues() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint64 requeues = 10; */ public long getRequeues() { return requeues_; } /** * optional uint64 requeues = 10; */ public Builder setRequeues(long value) { bitField0_ |= 0x00000200; requeues_ = value; onChanged(); return this; } /** * optional uint64 requeues = 10; */ public Builder clearRequeues() { bitField0_ = (bitField0_ & ~0x00000200); requeues_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TrafficControlStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.TrafficControlStatistics) private static final org.apache.mesos.v1.Protos.TrafficControlStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TrafficControlStatistics(); } public static org.apache.mesos.v1.Protos.TrafficControlStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TrafficControlStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TrafficControlStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TrafficControlStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IpStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.IpStatistics) com.google.protobuf.MessageOrBuilder { /** * optional int64 Forwarding = 1; */ boolean hasForwarding(); /** * optional int64 Forwarding = 1; */ long getForwarding(); /** * optional int64 DefaultTTL = 2; */ boolean hasDefaultTTL(); /** * optional int64 DefaultTTL = 2; */ long getDefaultTTL(); /** * optional int64 InReceives = 3; */ boolean hasInReceives(); /** * optional int64 InReceives = 3; */ long getInReceives(); /** * optional int64 InHdrErrors = 4; */ boolean hasInHdrErrors(); /** * optional int64 InHdrErrors = 4; */ long getInHdrErrors(); /** * optional int64 InAddrErrors = 5; */ boolean hasInAddrErrors(); /** * optional int64 InAddrErrors = 5; */ long getInAddrErrors(); /** * optional int64 ForwDatagrams = 6; */ boolean hasForwDatagrams(); /** * optional int64 ForwDatagrams = 6; */ long getForwDatagrams(); /** * optional int64 InUnknownProtos = 7; */ boolean hasInUnknownProtos(); /** * optional int64 InUnknownProtos = 7; */ long getInUnknownProtos(); /** * optional int64 InDiscards = 8; */ boolean hasInDiscards(); /** * optional int64 InDiscards = 8; */ long getInDiscards(); /** * optional int64 InDelivers = 9; */ boolean hasInDelivers(); /** * optional int64 InDelivers = 9; */ long getInDelivers(); /** * optional int64 OutRequests = 10; */ boolean hasOutRequests(); /** * optional int64 OutRequests = 10; */ long getOutRequests(); /** * optional int64 OutDiscards = 11; */ boolean hasOutDiscards(); /** * optional int64 OutDiscards = 11; */ long getOutDiscards(); /** * optional int64 OutNoRoutes = 12; */ boolean hasOutNoRoutes(); /** * optional int64 OutNoRoutes = 12; */ long getOutNoRoutes(); /** * optional int64 ReasmTimeout = 13; */ boolean hasReasmTimeout(); /** * optional int64 ReasmTimeout = 13; */ long getReasmTimeout(); /** * optional int64 ReasmReqds = 14; */ boolean hasReasmReqds(); /** * optional int64 ReasmReqds = 14; */ long getReasmReqds(); /** * optional int64 ReasmOKs = 15; */ boolean hasReasmOKs(); /** * optional int64 ReasmOKs = 15; */ long getReasmOKs(); /** * optional int64 ReasmFails = 16; */ boolean hasReasmFails(); /** * optional int64 ReasmFails = 16; */ long getReasmFails(); /** * optional int64 FragOKs = 17; */ boolean hasFragOKs(); /** * optional int64 FragOKs = 17; */ long getFragOKs(); /** * optional int64 FragFails = 18; */ boolean hasFragFails(); /** * optional int64 FragFails = 18; */ long getFragFails(); /** * optional int64 FragCreates = 19; */ boolean hasFragCreates(); /** * optional int64 FragCreates = 19; */ long getFragCreates(); } /** * Protobuf type {@code mesos.v1.IpStatistics} */ public static final class IpStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.IpStatistics) IpStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use IpStatistics.newBuilder() to construct. private IpStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IpStatistics() { forwarding_ = 0L; defaultTTL_ = 0L; inReceives_ = 0L; inHdrErrors_ = 0L; inAddrErrors_ = 0L; forwDatagrams_ = 0L; inUnknownProtos_ = 0L; inDiscards_ = 0L; inDelivers_ = 0L; outRequests_ = 0L; outDiscards_ = 0L; outNoRoutes_ = 0L; reasmTimeout_ = 0L; reasmReqds_ = 0L; reasmOKs_ = 0L; reasmFails_ = 0L; fragOKs_ = 0L; fragFails_ = 0L; fragCreates_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IpStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; forwarding_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; defaultTTL_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; inReceives_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; inHdrErrors_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; inAddrErrors_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000020; forwDatagrams_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000040; inUnknownProtos_ = input.readInt64(); break; } case 64: { bitField0_ |= 0x00000080; inDiscards_ = input.readInt64(); break; } case 72: { bitField0_ |= 0x00000100; inDelivers_ = input.readInt64(); break; } case 80: { bitField0_ |= 0x00000200; outRequests_ = input.readInt64(); break; } case 88: { bitField0_ |= 0x00000400; outDiscards_ = input.readInt64(); break; } case 96: { bitField0_ |= 0x00000800; outNoRoutes_ = input.readInt64(); break; } case 104: { bitField0_ |= 0x00001000; reasmTimeout_ = input.readInt64(); break; } case 112: { bitField0_ |= 0x00002000; reasmReqds_ = input.readInt64(); break; } case 120: { bitField0_ |= 0x00004000; reasmOKs_ = input.readInt64(); break; } case 128: { bitField0_ |= 0x00008000; reasmFails_ = input.readInt64(); break; } case 136: { bitField0_ |= 0x00010000; fragOKs_ = input.readInt64(); break; } case 144: { bitField0_ |= 0x00020000; fragFails_ = input.readInt64(); break; } case 152: { bitField0_ |= 0x00040000; fragCreates_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IpStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IpStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.IpStatistics.class, org.apache.mesos.v1.Protos.IpStatistics.Builder.class); } private int bitField0_; public static final int FORWARDING_FIELD_NUMBER = 1; private long forwarding_; /** * optional int64 Forwarding = 1; */ public boolean hasForwarding() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 Forwarding = 1; */ public long getForwarding() { return forwarding_; } public static final int DEFAULTTTL_FIELD_NUMBER = 2; private long defaultTTL_; /** * optional int64 DefaultTTL = 2; */ public boolean hasDefaultTTL() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 DefaultTTL = 2; */ public long getDefaultTTL() { return defaultTTL_; } public static final int INRECEIVES_FIELD_NUMBER = 3; private long inReceives_; /** * optional int64 InReceives = 3; */ public boolean hasInReceives() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 InReceives = 3; */ public long getInReceives() { return inReceives_; } public static final int INHDRERRORS_FIELD_NUMBER = 4; private long inHdrErrors_; /** * optional int64 InHdrErrors = 4; */ public boolean hasInHdrErrors() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 InHdrErrors = 4; */ public long getInHdrErrors() { return inHdrErrors_; } public static final int INADDRERRORS_FIELD_NUMBER = 5; private long inAddrErrors_; /** * optional int64 InAddrErrors = 5; */ public boolean hasInAddrErrors() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 InAddrErrors = 5; */ public long getInAddrErrors() { return inAddrErrors_; } public static final int FORWDATAGRAMS_FIELD_NUMBER = 6; private long forwDatagrams_; /** * optional int64 ForwDatagrams = 6; */ public boolean hasForwDatagrams() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 ForwDatagrams = 6; */ public long getForwDatagrams() { return forwDatagrams_; } public static final int INUNKNOWNPROTOS_FIELD_NUMBER = 7; private long inUnknownProtos_; /** * optional int64 InUnknownProtos = 7; */ public boolean hasInUnknownProtos() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 InUnknownProtos = 7; */ public long getInUnknownProtos() { return inUnknownProtos_; } public static final int INDISCARDS_FIELD_NUMBER = 8; private long inDiscards_; /** * optional int64 InDiscards = 8; */ public boolean hasInDiscards() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 InDiscards = 8; */ public long getInDiscards() { return inDiscards_; } public static final int INDELIVERS_FIELD_NUMBER = 9; private long inDelivers_; /** * optional int64 InDelivers = 9; */ public boolean hasInDelivers() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int64 InDelivers = 9; */ public long getInDelivers() { return inDelivers_; } public static final int OUTREQUESTS_FIELD_NUMBER = 10; private long outRequests_; /** * optional int64 OutRequests = 10; */ public boolean hasOutRequests() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 OutRequests = 10; */ public long getOutRequests() { return outRequests_; } public static final int OUTDISCARDS_FIELD_NUMBER = 11; private long outDiscards_; /** * optional int64 OutDiscards = 11; */ public boolean hasOutDiscards() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 OutDiscards = 11; */ public long getOutDiscards() { return outDiscards_; } public static final int OUTNOROUTES_FIELD_NUMBER = 12; private long outNoRoutes_; /** * optional int64 OutNoRoutes = 12; */ public boolean hasOutNoRoutes() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int64 OutNoRoutes = 12; */ public long getOutNoRoutes() { return outNoRoutes_; } public static final int REASMTIMEOUT_FIELD_NUMBER = 13; private long reasmTimeout_; /** * optional int64 ReasmTimeout = 13; */ public boolean hasReasmTimeout() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int64 ReasmTimeout = 13; */ public long getReasmTimeout() { return reasmTimeout_; } public static final int REASMREQDS_FIELD_NUMBER = 14; private long reasmReqds_; /** * optional int64 ReasmReqds = 14; */ public boolean hasReasmReqds() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 ReasmReqds = 14; */ public long getReasmReqds() { return reasmReqds_; } public static final int REASMOKS_FIELD_NUMBER = 15; private long reasmOKs_; /** * optional int64 ReasmOKs = 15; */ public boolean hasReasmOKs() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int64 ReasmOKs = 15; */ public long getReasmOKs() { return reasmOKs_; } public static final int REASMFAILS_FIELD_NUMBER = 16; private long reasmFails_; /** * optional int64 ReasmFails = 16; */ public boolean hasReasmFails() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int64 ReasmFails = 16; */ public long getReasmFails() { return reasmFails_; } public static final int FRAGOKS_FIELD_NUMBER = 17; private long fragOKs_; /** * optional int64 FragOKs = 17; */ public boolean hasFragOKs() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional int64 FragOKs = 17; */ public long getFragOKs() { return fragOKs_; } public static final int FRAGFAILS_FIELD_NUMBER = 18; private long fragFails_; /** * optional int64 FragFails = 18; */ public boolean hasFragFails() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional int64 FragFails = 18; */ public long getFragFails() { return fragFails_; } public static final int FRAGCREATES_FIELD_NUMBER = 19; private long fragCreates_; /** * optional int64 FragCreates = 19; */ public boolean hasFragCreates() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional int64 FragCreates = 19; */ public long getFragCreates() { return fragCreates_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, forwarding_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, defaultTTL_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, inReceives_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, inHdrErrors_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, inAddrErrors_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, forwDatagrams_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, inUnknownProtos_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt64(8, inDiscards_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt64(9, inDelivers_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt64(10, outRequests_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt64(11, outDiscards_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt64(12, outNoRoutes_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt64(13, reasmTimeout_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt64(14, reasmReqds_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeInt64(15, reasmOKs_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeInt64(16, reasmFails_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeInt64(17, fragOKs_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeInt64(18, fragFails_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeInt64(19, fragCreates_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, forwarding_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, defaultTTL_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, inReceives_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, inHdrErrors_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, inAddrErrors_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, forwDatagrams_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, inUnknownProtos_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, inDiscards_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, inDelivers_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, outRequests_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, outDiscards_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, outNoRoutes_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, reasmTimeout_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, reasmReqds_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, reasmOKs_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, reasmFails_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(17, fragOKs_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, fragFails_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, fragCreates_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.IpStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.IpStatistics other = (org.apache.mesos.v1.Protos.IpStatistics) obj; boolean result = true; result = result && (hasForwarding() == other.hasForwarding()); if (hasForwarding()) { result = result && (getForwarding() == other.getForwarding()); } result = result && (hasDefaultTTL() == other.hasDefaultTTL()); if (hasDefaultTTL()) { result = result && (getDefaultTTL() == other.getDefaultTTL()); } result = result && (hasInReceives() == other.hasInReceives()); if (hasInReceives()) { result = result && (getInReceives() == other.getInReceives()); } result = result && (hasInHdrErrors() == other.hasInHdrErrors()); if (hasInHdrErrors()) { result = result && (getInHdrErrors() == other.getInHdrErrors()); } result = result && (hasInAddrErrors() == other.hasInAddrErrors()); if (hasInAddrErrors()) { result = result && (getInAddrErrors() == other.getInAddrErrors()); } result = result && (hasForwDatagrams() == other.hasForwDatagrams()); if (hasForwDatagrams()) { result = result && (getForwDatagrams() == other.getForwDatagrams()); } result = result && (hasInUnknownProtos() == other.hasInUnknownProtos()); if (hasInUnknownProtos()) { result = result && (getInUnknownProtos() == other.getInUnknownProtos()); } result = result && (hasInDiscards() == other.hasInDiscards()); if (hasInDiscards()) { result = result && (getInDiscards() == other.getInDiscards()); } result = result && (hasInDelivers() == other.hasInDelivers()); if (hasInDelivers()) { result = result && (getInDelivers() == other.getInDelivers()); } result = result && (hasOutRequests() == other.hasOutRequests()); if (hasOutRequests()) { result = result && (getOutRequests() == other.getOutRequests()); } result = result && (hasOutDiscards() == other.hasOutDiscards()); if (hasOutDiscards()) { result = result && (getOutDiscards() == other.getOutDiscards()); } result = result && (hasOutNoRoutes() == other.hasOutNoRoutes()); if (hasOutNoRoutes()) { result = result && (getOutNoRoutes() == other.getOutNoRoutes()); } result = result && (hasReasmTimeout() == other.hasReasmTimeout()); if (hasReasmTimeout()) { result = result && (getReasmTimeout() == other.getReasmTimeout()); } result = result && (hasReasmReqds() == other.hasReasmReqds()); if (hasReasmReqds()) { result = result && (getReasmReqds() == other.getReasmReqds()); } result = result && (hasReasmOKs() == other.hasReasmOKs()); if (hasReasmOKs()) { result = result && (getReasmOKs() == other.getReasmOKs()); } result = result && (hasReasmFails() == other.hasReasmFails()); if (hasReasmFails()) { result = result && (getReasmFails() == other.getReasmFails()); } result = result && (hasFragOKs() == other.hasFragOKs()); if (hasFragOKs()) { result = result && (getFragOKs() == other.getFragOKs()); } result = result && (hasFragFails() == other.hasFragFails()); if (hasFragFails()) { result = result && (getFragFails() == other.getFragFails()); } result = result && (hasFragCreates() == other.hasFragCreates()); if (hasFragCreates()) { result = result && (getFragCreates() == other.getFragCreates()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasForwarding()) { hash = (37 * hash) + FORWARDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getForwarding()); } if (hasDefaultTTL()) { hash = (37 * hash) + DEFAULTTTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDefaultTTL()); } if (hasInReceives()) { hash = (37 * hash) + INRECEIVES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInReceives()); } if (hasInHdrErrors()) { hash = (37 * hash) + INHDRERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInHdrErrors()); } if (hasInAddrErrors()) { hash = (37 * hash) + INADDRERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInAddrErrors()); } if (hasForwDatagrams()) { hash = (37 * hash) + FORWDATAGRAMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getForwDatagrams()); } if (hasInUnknownProtos()) { hash = (37 * hash) + INUNKNOWNPROTOS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInUnknownProtos()); } if (hasInDiscards()) { hash = (37 * hash) + INDISCARDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInDiscards()); } if (hasInDelivers()) { hash = (37 * hash) + INDELIVERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInDelivers()); } if (hasOutRequests()) { hash = (37 * hash) + OUTREQUESTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutRequests()); } if (hasOutDiscards()) { hash = (37 * hash) + OUTDISCARDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutDiscards()); } if (hasOutNoRoutes()) { hash = (37 * hash) + OUTNOROUTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutNoRoutes()); } if (hasReasmTimeout()) { hash = (37 * hash) + REASMTIMEOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReasmTimeout()); } if (hasReasmReqds()) { hash = (37 * hash) + REASMREQDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReasmReqds()); } if (hasReasmOKs()) { hash = (37 * hash) + REASMOKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReasmOKs()); } if (hasReasmFails()) { hash = (37 * hash) + REASMFAILS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReasmFails()); } if (hasFragOKs()) { hash = (37 * hash) + FRAGOKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFragOKs()); } if (hasFragFails()) { hash = (37 * hash) + FRAGFAILS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFragFails()); } if (hasFragCreates()) { hash = (37 * hash) + FRAGCREATES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFragCreates()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.IpStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.IpStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.IpStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.IpStatistics 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.Protos.IpStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.IpStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.IpStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.IpStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.IpStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.IpStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.IpStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.IpStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.IpStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.IpStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.IpStatistics) org.apache.mesos.v1.Protos.IpStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IpStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IpStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.IpStatistics.class, org.apache.mesos.v1.Protos.IpStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.IpStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); forwarding_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); defaultTTL_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); inReceives_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); inHdrErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); inAddrErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); forwDatagrams_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); inUnknownProtos_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); inDiscards_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); inDelivers_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); outRequests_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); outDiscards_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); outNoRoutes_ = 0L; bitField0_ = (bitField0_ & ~0x00000800); reasmTimeout_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); reasmReqds_ = 0L; bitField0_ = (bitField0_ & ~0x00002000); reasmOKs_ = 0L; bitField0_ = (bitField0_ & ~0x00004000); reasmFails_ = 0L; bitField0_ = (bitField0_ & ~0x00008000); fragOKs_ = 0L; bitField0_ = (bitField0_ & ~0x00010000); fragFails_ = 0L; bitField0_ = (bitField0_ & ~0x00020000); fragCreates_ = 0L; bitField0_ = (bitField0_ & ~0x00040000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IpStatistics_descriptor; } public org.apache.mesos.v1.Protos.IpStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.IpStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.IpStatistics build() { org.apache.mesos.v1.Protos.IpStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.IpStatistics buildPartial() { org.apache.mesos.v1.Protos.IpStatistics result = new org.apache.mesos.v1.Protos.IpStatistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.forwarding_ = forwarding_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.defaultTTL_ = defaultTTL_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.inReceives_ = inReceives_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.inHdrErrors_ = inHdrErrors_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.inAddrErrors_ = inAddrErrors_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.forwDatagrams_ = forwDatagrams_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.inUnknownProtos_ = inUnknownProtos_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.inDiscards_ = inDiscards_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.inDelivers_ = inDelivers_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.outRequests_ = outRequests_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.outDiscards_ = outDiscards_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.outNoRoutes_ = outNoRoutes_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.reasmTimeout_ = reasmTimeout_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.reasmReqds_ = reasmReqds_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.reasmOKs_ = reasmOKs_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.reasmFails_ = reasmFails_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.fragOKs_ = fragOKs_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.fragFails_ = fragFails_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.fragCreates_ = fragCreates_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.IpStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.IpStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.IpStatistics other) { if (other == org.apache.mesos.v1.Protos.IpStatistics.getDefaultInstance()) return this; if (other.hasForwarding()) { setForwarding(other.getForwarding()); } if (other.hasDefaultTTL()) { setDefaultTTL(other.getDefaultTTL()); } if (other.hasInReceives()) { setInReceives(other.getInReceives()); } if (other.hasInHdrErrors()) { setInHdrErrors(other.getInHdrErrors()); } if (other.hasInAddrErrors()) { setInAddrErrors(other.getInAddrErrors()); } if (other.hasForwDatagrams()) { setForwDatagrams(other.getForwDatagrams()); } if (other.hasInUnknownProtos()) { setInUnknownProtos(other.getInUnknownProtos()); } if (other.hasInDiscards()) { setInDiscards(other.getInDiscards()); } if (other.hasInDelivers()) { setInDelivers(other.getInDelivers()); } if (other.hasOutRequests()) { setOutRequests(other.getOutRequests()); } if (other.hasOutDiscards()) { setOutDiscards(other.getOutDiscards()); } if (other.hasOutNoRoutes()) { setOutNoRoutes(other.getOutNoRoutes()); } if (other.hasReasmTimeout()) { setReasmTimeout(other.getReasmTimeout()); } if (other.hasReasmReqds()) { setReasmReqds(other.getReasmReqds()); } if (other.hasReasmOKs()) { setReasmOKs(other.getReasmOKs()); } if (other.hasReasmFails()) { setReasmFails(other.getReasmFails()); } if (other.hasFragOKs()) { setFragOKs(other.getFragOKs()); } if (other.hasFragFails()) { setFragFails(other.getFragFails()); } if (other.hasFragCreates()) { setFragCreates(other.getFragCreates()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.IpStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.IpStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long forwarding_ ; /** * optional int64 Forwarding = 1; */ public boolean hasForwarding() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 Forwarding = 1; */ public long getForwarding() { return forwarding_; } /** * optional int64 Forwarding = 1; */ public Builder setForwarding(long value) { bitField0_ |= 0x00000001; forwarding_ = value; onChanged(); return this; } /** * optional int64 Forwarding = 1; */ public Builder clearForwarding() { bitField0_ = (bitField0_ & ~0x00000001); forwarding_ = 0L; onChanged(); return this; } private long defaultTTL_ ; /** * optional int64 DefaultTTL = 2; */ public boolean hasDefaultTTL() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 DefaultTTL = 2; */ public long getDefaultTTL() { return defaultTTL_; } /** * optional int64 DefaultTTL = 2; */ public Builder setDefaultTTL(long value) { bitField0_ |= 0x00000002; defaultTTL_ = value; onChanged(); return this; } /** * optional int64 DefaultTTL = 2; */ public Builder clearDefaultTTL() { bitField0_ = (bitField0_ & ~0x00000002); defaultTTL_ = 0L; onChanged(); return this; } private long inReceives_ ; /** * optional int64 InReceives = 3; */ public boolean hasInReceives() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 InReceives = 3; */ public long getInReceives() { return inReceives_; } /** * optional int64 InReceives = 3; */ public Builder setInReceives(long value) { bitField0_ |= 0x00000004; inReceives_ = value; onChanged(); return this; } /** * optional int64 InReceives = 3; */ public Builder clearInReceives() { bitField0_ = (bitField0_ & ~0x00000004); inReceives_ = 0L; onChanged(); return this; } private long inHdrErrors_ ; /** * optional int64 InHdrErrors = 4; */ public boolean hasInHdrErrors() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 InHdrErrors = 4; */ public long getInHdrErrors() { return inHdrErrors_; } /** * optional int64 InHdrErrors = 4; */ public Builder setInHdrErrors(long value) { bitField0_ |= 0x00000008; inHdrErrors_ = value; onChanged(); return this; } /** * optional int64 InHdrErrors = 4; */ public Builder clearInHdrErrors() { bitField0_ = (bitField0_ & ~0x00000008); inHdrErrors_ = 0L; onChanged(); return this; } private long inAddrErrors_ ; /** * optional int64 InAddrErrors = 5; */ public boolean hasInAddrErrors() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 InAddrErrors = 5; */ public long getInAddrErrors() { return inAddrErrors_; } /** * optional int64 InAddrErrors = 5; */ public Builder setInAddrErrors(long value) { bitField0_ |= 0x00000010; inAddrErrors_ = value; onChanged(); return this; } /** * optional int64 InAddrErrors = 5; */ public Builder clearInAddrErrors() { bitField0_ = (bitField0_ & ~0x00000010); inAddrErrors_ = 0L; onChanged(); return this; } private long forwDatagrams_ ; /** * optional int64 ForwDatagrams = 6; */ public boolean hasForwDatagrams() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 ForwDatagrams = 6; */ public long getForwDatagrams() { return forwDatagrams_; } /** * optional int64 ForwDatagrams = 6; */ public Builder setForwDatagrams(long value) { bitField0_ |= 0x00000020; forwDatagrams_ = value; onChanged(); return this; } /** * optional int64 ForwDatagrams = 6; */ public Builder clearForwDatagrams() { bitField0_ = (bitField0_ & ~0x00000020); forwDatagrams_ = 0L; onChanged(); return this; } private long inUnknownProtos_ ; /** * optional int64 InUnknownProtos = 7; */ public boolean hasInUnknownProtos() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 InUnknownProtos = 7; */ public long getInUnknownProtos() { return inUnknownProtos_; } /** * optional int64 InUnknownProtos = 7; */ public Builder setInUnknownProtos(long value) { bitField0_ |= 0x00000040; inUnknownProtos_ = value; onChanged(); return this; } /** * optional int64 InUnknownProtos = 7; */ public Builder clearInUnknownProtos() { bitField0_ = (bitField0_ & ~0x00000040); inUnknownProtos_ = 0L; onChanged(); return this; } private long inDiscards_ ; /** * optional int64 InDiscards = 8; */ public boolean hasInDiscards() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 InDiscards = 8; */ public long getInDiscards() { return inDiscards_; } /** * optional int64 InDiscards = 8; */ public Builder setInDiscards(long value) { bitField0_ |= 0x00000080; inDiscards_ = value; onChanged(); return this; } /** * optional int64 InDiscards = 8; */ public Builder clearInDiscards() { bitField0_ = (bitField0_ & ~0x00000080); inDiscards_ = 0L; onChanged(); return this; } private long inDelivers_ ; /** * optional int64 InDelivers = 9; */ public boolean hasInDelivers() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int64 InDelivers = 9; */ public long getInDelivers() { return inDelivers_; } /** * optional int64 InDelivers = 9; */ public Builder setInDelivers(long value) { bitField0_ |= 0x00000100; inDelivers_ = value; onChanged(); return this; } /** * optional int64 InDelivers = 9; */ public Builder clearInDelivers() { bitField0_ = (bitField0_ & ~0x00000100); inDelivers_ = 0L; onChanged(); return this; } private long outRequests_ ; /** * optional int64 OutRequests = 10; */ public boolean hasOutRequests() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 OutRequests = 10; */ public long getOutRequests() { return outRequests_; } /** * optional int64 OutRequests = 10; */ public Builder setOutRequests(long value) { bitField0_ |= 0x00000200; outRequests_ = value; onChanged(); return this; } /** * optional int64 OutRequests = 10; */ public Builder clearOutRequests() { bitField0_ = (bitField0_ & ~0x00000200); outRequests_ = 0L; onChanged(); return this; } private long outDiscards_ ; /** * optional int64 OutDiscards = 11; */ public boolean hasOutDiscards() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 OutDiscards = 11; */ public long getOutDiscards() { return outDiscards_; } /** * optional int64 OutDiscards = 11; */ public Builder setOutDiscards(long value) { bitField0_ |= 0x00000400; outDiscards_ = value; onChanged(); return this; } /** * optional int64 OutDiscards = 11; */ public Builder clearOutDiscards() { bitField0_ = (bitField0_ & ~0x00000400); outDiscards_ = 0L; onChanged(); return this; } private long outNoRoutes_ ; /** * optional int64 OutNoRoutes = 12; */ public boolean hasOutNoRoutes() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int64 OutNoRoutes = 12; */ public long getOutNoRoutes() { return outNoRoutes_; } /** * optional int64 OutNoRoutes = 12; */ public Builder setOutNoRoutes(long value) { bitField0_ |= 0x00000800; outNoRoutes_ = value; onChanged(); return this; } /** * optional int64 OutNoRoutes = 12; */ public Builder clearOutNoRoutes() { bitField0_ = (bitField0_ & ~0x00000800); outNoRoutes_ = 0L; onChanged(); return this; } private long reasmTimeout_ ; /** * optional int64 ReasmTimeout = 13; */ public boolean hasReasmTimeout() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int64 ReasmTimeout = 13; */ public long getReasmTimeout() { return reasmTimeout_; } /** * optional int64 ReasmTimeout = 13; */ public Builder setReasmTimeout(long value) { bitField0_ |= 0x00001000; reasmTimeout_ = value; onChanged(); return this; } /** * optional int64 ReasmTimeout = 13; */ public Builder clearReasmTimeout() { bitField0_ = (bitField0_ & ~0x00001000); reasmTimeout_ = 0L; onChanged(); return this; } private long reasmReqds_ ; /** * optional int64 ReasmReqds = 14; */ public boolean hasReasmReqds() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 ReasmReqds = 14; */ public long getReasmReqds() { return reasmReqds_; } /** * optional int64 ReasmReqds = 14; */ public Builder setReasmReqds(long value) { bitField0_ |= 0x00002000; reasmReqds_ = value; onChanged(); return this; } /** * optional int64 ReasmReqds = 14; */ public Builder clearReasmReqds() { bitField0_ = (bitField0_ & ~0x00002000); reasmReqds_ = 0L; onChanged(); return this; } private long reasmOKs_ ; /** * optional int64 ReasmOKs = 15; */ public boolean hasReasmOKs() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int64 ReasmOKs = 15; */ public long getReasmOKs() { return reasmOKs_; } /** * optional int64 ReasmOKs = 15; */ public Builder setReasmOKs(long value) { bitField0_ |= 0x00004000; reasmOKs_ = value; onChanged(); return this; } /** * optional int64 ReasmOKs = 15; */ public Builder clearReasmOKs() { bitField0_ = (bitField0_ & ~0x00004000); reasmOKs_ = 0L; onChanged(); return this; } private long reasmFails_ ; /** * optional int64 ReasmFails = 16; */ public boolean hasReasmFails() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int64 ReasmFails = 16; */ public long getReasmFails() { return reasmFails_; } /** * optional int64 ReasmFails = 16; */ public Builder setReasmFails(long value) { bitField0_ |= 0x00008000; reasmFails_ = value; onChanged(); return this; } /** * optional int64 ReasmFails = 16; */ public Builder clearReasmFails() { bitField0_ = (bitField0_ & ~0x00008000); reasmFails_ = 0L; onChanged(); return this; } private long fragOKs_ ; /** * optional int64 FragOKs = 17; */ public boolean hasFragOKs() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional int64 FragOKs = 17; */ public long getFragOKs() { return fragOKs_; } /** * optional int64 FragOKs = 17; */ public Builder setFragOKs(long value) { bitField0_ |= 0x00010000; fragOKs_ = value; onChanged(); return this; } /** * optional int64 FragOKs = 17; */ public Builder clearFragOKs() { bitField0_ = (bitField0_ & ~0x00010000); fragOKs_ = 0L; onChanged(); return this; } private long fragFails_ ; /** * optional int64 FragFails = 18; */ public boolean hasFragFails() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional int64 FragFails = 18; */ public long getFragFails() { return fragFails_; } /** * optional int64 FragFails = 18; */ public Builder setFragFails(long value) { bitField0_ |= 0x00020000; fragFails_ = value; onChanged(); return this; } /** * optional int64 FragFails = 18; */ public Builder clearFragFails() { bitField0_ = (bitField0_ & ~0x00020000); fragFails_ = 0L; onChanged(); return this; } private long fragCreates_ ; /** * optional int64 FragCreates = 19; */ public boolean hasFragCreates() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional int64 FragCreates = 19; */ public long getFragCreates() { return fragCreates_; } /** * optional int64 FragCreates = 19; */ public Builder setFragCreates(long value) { bitField0_ |= 0x00040000; fragCreates_ = value; onChanged(); return this; } /** * optional int64 FragCreates = 19; */ public Builder clearFragCreates() { bitField0_ = (bitField0_ & ~0x00040000); fragCreates_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.IpStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.IpStatistics) private static final org.apache.mesos.v1.Protos.IpStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.IpStatistics(); } public static org.apache.mesos.v1.Protos.IpStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IpStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IpStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.IpStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IcmpStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.IcmpStatistics) com.google.protobuf.MessageOrBuilder { /** * optional int64 InMsgs = 1; */ boolean hasInMsgs(); /** * optional int64 InMsgs = 1; */ long getInMsgs(); /** * optional int64 InErrors = 2; */ boolean hasInErrors(); /** * optional int64 InErrors = 2; */ long getInErrors(); /** * optional int64 InCsumErrors = 3; */ boolean hasInCsumErrors(); /** * optional int64 InCsumErrors = 3; */ long getInCsumErrors(); /** * optional int64 InDestUnreachs = 4; */ boolean hasInDestUnreachs(); /** * optional int64 InDestUnreachs = 4; */ long getInDestUnreachs(); /** * optional int64 InTimeExcds = 5; */ boolean hasInTimeExcds(); /** * optional int64 InTimeExcds = 5; */ long getInTimeExcds(); /** * optional int64 InParmProbs = 6; */ boolean hasInParmProbs(); /** * optional int64 InParmProbs = 6; */ long getInParmProbs(); /** * optional int64 InSrcQuenchs = 7; */ boolean hasInSrcQuenchs(); /** * optional int64 InSrcQuenchs = 7; */ long getInSrcQuenchs(); /** * optional int64 InRedirects = 8; */ boolean hasInRedirects(); /** * optional int64 InRedirects = 8; */ long getInRedirects(); /** * optional int64 InEchos = 9; */ boolean hasInEchos(); /** * optional int64 InEchos = 9; */ long getInEchos(); /** * optional int64 InEchoReps = 10; */ boolean hasInEchoReps(); /** * optional int64 InEchoReps = 10; */ long getInEchoReps(); /** * optional int64 InTimestamps = 11; */ boolean hasInTimestamps(); /** * optional int64 InTimestamps = 11; */ long getInTimestamps(); /** * optional int64 InTimestampReps = 12; */ boolean hasInTimestampReps(); /** * optional int64 InTimestampReps = 12; */ long getInTimestampReps(); /** * optional int64 InAddrMasks = 13; */ boolean hasInAddrMasks(); /** * optional int64 InAddrMasks = 13; */ long getInAddrMasks(); /** * optional int64 InAddrMaskReps = 14; */ boolean hasInAddrMaskReps(); /** * optional int64 InAddrMaskReps = 14; */ long getInAddrMaskReps(); /** * optional int64 OutMsgs = 15; */ boolean hasOutMsgs(); /** * optional int64 OutMsgs = 15; */ long getOutMsgs(); /** * optional int64 OutErrors = 16; */ boolean hasOutErrors(); /** * optional int64 OutErrors = 16; */ long getOutErrors(); /** * optional int64 OutDestUnreachs = 17; */ boolean hasOutDestUnreachs(); /** * optional int64 OutDestUnreachs = 17; */ long getOutDestUnreachs(); /** * optional int64 OutTimeExcds = 18; */ boolean hasOutTimeExcds(); /** * optional int64 OutTimeExcds = 18; */ long getOutTimeExcds(); /** * optional int64 OutParmProbs = 19; */ boolean hasOutParmProbs(); /** * optional int64 OutParmProbs = 19; */ long getOutParmProbs(); /** * optional int64 OutSrcQuenchs = 20; */ boolean hasOutSrcQuenchs(); /** * optional int64 OutSrcQuenchs = 20; */ long getOutSrcQuenchs(); /** * optional int64 OutRedirects = 21; */ boolean hasOutRedirects(); /** * optional int64 OutRedirects = 21; */ long getOutRedirects(); /** * optional int64 OutEchos = 22; */ boolean hasOutEchos(); /** * optional int64 OutEchos = 22; */ long getOutEchos(); /** * optional int64 OutEchoReps = 23; */ boolean hasOutEchoReps(); /** * optional int64 OutEchoReps = 23; */ long getOutEchoReps(); /** * optional int64 OutTimestamps = 24; */ boolean hasOutTimestamps(); /** * optional int64 OutTimestamps = 24; */ long getOutTimestamps(); /** * optional int64 OutTimestampReps = 25; */ boolean hasOutTimestampReps(); /** * optional int64 OutTimestampReps = 25; */ long getOutTimestampReps(); /** * optional int64 OutAddrMasks = 26; */ boolean hasOutAddrMasks(); /** * optional int64 OutAddrMasks = 26; */ long getOutAddrMasks(); /** * optional int64 OutAddrMaskReps = 27; */ boolean hasOutAddrMaskReps(); /** * optional int64 OutAddrMaskReps = 27; */ long getOutAddrMaskReps(); } /** * Protobuf type {@code mesos.v1.IcmpStatistics} */ public static final class IcmpStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.IcmpStatistics) IcmpStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use IcmpStatistics.newBuilder() to construct. private IcmpStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IcmpStatistics() { inMsgs_ = 0L; inErrors_ = 0L; inCsumErrors_ = 0L; inDestUnreachs_ = 0L; inTimeExcds_ = 0L; inParmProbs_ = 0L; inSrcQuenchs_ = 0L; inRedirects_ = 0L; inEchos_ = 0L; inEchoReps_ = 0L; inTimestamps_ = 0L; inTimestampReps_ = 0L; inAddrMasks_ = 0L; inAddrMaskReps_ = 0L; outMsgs_ = 0L; outErrors_ = 0L; outDestUnreachs_ = 0L; outTimeExcds_ = 0L; outParmProbs_ = 0L; outSrcQuenchs_ = 0L; outRedirects_ = 0L; outEchos_ = 0L; outEchoReps_ = 0L; outTimestamps_ = 0L; outTimestampReps_ = 0L; outAddrMasks_ = 0L; outAddrMaskReps_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IcmpStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; inMsgs_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; inErrors_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; inCsumErrors_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; inDestUnreachs_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; inTimeExcds_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000020; inParmProbs_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000040; inSrcQuenchs_ = input.readInt64(); break; } case 64: { bitField0_ |= 0x00000080; inRedirects_ = input.readInt64(); break; } case 72: { bitField0_ |= 0x00000100; inEchos_ = input.readInt64(); break; } case 80: { bitField0_ |= 0x00000200; inEchoReps_ = input.readInt64(); break; } case 88: { bitField0_ |= 0x00000400; inTimestamps_ = input.readInt64(); break; } case 96: { bitField0_ |= 0x00000800; inTimestampReps_ = input.readInt64(); break; } case 104: { bitField0_ |= 0x00001000; inAddrMasks_ = input.readInt64(); break; } case 112: { bitField0_ |= 0x00002000; inAddrMaskReps_ = input.readInt64(); break; } case 120: { bitField0_ |= 0x00004000; outMsgs_ = input.readInt64(); break; } case 128: { bitField0_ |= 0x00008000; outErrors_ = input.readInt64(); break; } case 136: { bitField0_ |= 0x00010000; outDestUnreachs_ = input.readInt64(); break; } case 144: { bitField0_ |= 0x00020000; outTimeExcds_ = input.readInt64(); break; } case 152: { bitField0_ |= 0x00040000; outParmProbs_ = input.readInt64(); break; } case 160: { bitField0_ |= 0x00080000; outSrcQuenchs_ = input.readInt64(); break; } case 168: { bitField0_ |= 0x00100000; outRedirects_ = input.readInt64(); break; } case 176: { bitField0_ |= 0x00200000; outEchos_ = input.readInt64(); break; } case 184: { bitField0_ |= 0x00400000; outEchoReps_ = input.readInt64(); break; } case 192: { bitField0_ |= 0x00800000; outTimestamps_ = input.readInt64(); break; } case 200: { bitField0_ |= 0x01000000; outTimestampReps_ = input.readInt64(); break; } case 208: { bitField0_ |= 0x02000000; outAddrMasks_ = input.readInt64(); break; } case 216: { bitField0_ |= 0x04000000; outAddrMaskReps_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IcmpStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IcmpStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.IcmpStatistics.class, org.apache.mesos.v1.Protos.IcmpStatistics.Builder.class); } private int bitField0_; public static final int INMSGS_FIELD_NUMBER = 1; private long inMsgs_; /** * optional int64 InMsgs = 1; */ public boolean hasInMsgs() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 InMsgs = 1; */ public long getInMsgs() { return inMsgs_; } public static final int INERRORS_FIELD_NUMBER = 2; private long inErrors_; /** * optional int64 InErrors = 2; */ public boolean hasInErrors() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 InErrors = 2; */ public long getInErrors() { return inErrors_; } public static final int INCSUMERRORS_FIELD_NUMBER = 3; private long inCsumErrors_; /** * optional int64 InCsumErrors = 3; */ public boolean hasInCsumErrors() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 InCsumErrors = 3; */ public long getInCsumErrors() { return inCsumErrors_; } public static final int INDESTUNREACHS_FIELD_NUMBER = 4; private long inDestUnreachs_; /** * optional int64 InDestUnreachs = 4; */ public boolean hasInDestUnreachs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 InDestUnreachs = 4; */ public long getInDestUnreachs() { return inDestUnreachs_; } public static final int INTIMEEXCDS_FIELD_NUMBER = 5; private long inTimeExcds_; /** * optional int64 InTimeExcds = 5; */ public boolean hasInTimeExcds() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 InTimeExcds = 5; */ public long getInTimeExcds() { return inTimeExcds_; } public static final int INPARMPROBS_FIELD_NUMBER = 6; private long inParmProbs_; /** * optional int64 InParmProbs = 6; */ public boolean hasInParmProbs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 InParmProbs = 6; */ public long getInParmProbs() { return inParmProbs_; } public static final int INSRCQUENCHS_FIELD_NUMBER = 7; private long inSrcQuenchs_; /** * optional int64 InSrcQuenchs = 7; */ public boolean hasInSrcQuenchs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 InSrcQuenchs = 7; */ public long getInSrcQuenchs() { return inSrcQuenchs_; } public static final int INREDIRECTS_FIELD_NUMBER = 8; private long inRedirects_; /** * optional int64 InRedirects = 8; */ public boolean hasInRedirects() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 InRedirects = 8; */ public long getInRedirects() { return inRedirects_; } public static final int INECHOS_FIELD_NUMBER = 9; private long inEchos_; /** * optional int64 InEchos = 9; */ public boolean hasInEchos() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int64 InEchos = 9; */ public long getInEchos() { return inEchos_; } public static final int INECHOREPS_FIELD_NUMBER = 10; private long inEchoReps_; /** * optional int64 InEchoReps = 10; */ public boolean hasInEchoReps() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 InEchoReps = 10; */ public long getInEchoReps() { return inEchoReps_; } public static final int INTIMESTAMPS_FIELD_NUMBER = 11; private long inTimestamps_; /** * optional int64 InTimestamps = 11; */ public boolean hasInTimestamps() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 InTimestamps = 11; */ public long getInTimestamps() { return inTimestamps_; } public static final int INTIMESTAMPREPS_FIELD_NUMBER = 12; private long inTimestampReps_; /** * optional int64 InTimestampReps = 12; */ public boolean hasInTimestampReps() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int64 InTimestampReps = 12; */ public long getInTimestampReps() { return inTimestampReps_; } public static final int INADDRMASKS_FIELD_NUMBER = 13; private long inAddrMasks_; /** * optional int64 InAddrMasks = 13; */ public boolean hasInAddrMasks() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int64 InAddrMasks = 13; */ public long getInAddrMasks() { return inAddrMasks_; } public static final int INADDRMASKREPS_FIELD_NUMBER = 14; private long inAddrMaskReps_; /** * optional int64 InAddrMaskReps = 14; */ public boolean hasInAddrMaskReps() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 InAddrMaskReps = 14; */ public long getInAddrMaskReps() { return inAddrMaskReps_; } public static final int OUTMSGS_FIELD_NUMBER = 15; private long outMsgs_; /** * optional int64 OutMsgs = 15; */ public boolean hasOutMsgs() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int64 OutMsgs = 15; */ public long getOutMsgs() { return outMsgs_; } public static final int OUTERRORS_FIELD_NUMBER = 16; private long outErrors_; /** * optional int64 OutErrors = 16; */ public boolean hasOutErrors() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int64 OutErrors = 16; */ public long getOutErrors() { return outErrors_; } public static final int OUTDESTUNREACHS_FIELD_NUMBER = 17; private long outDestUnreachs_; /** * optional int64 OutDestUnreachs = 17; */ public boolean hasOutDestUnreachs() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional int64 OutDestUnreachs = 17; */ public long getOutDestUnreachs() { return outDestUnreachs_; } public static final int OUTTIMEEXCDS_FIELD_NUMBER = 18; private long outTimeExcds_; /** * optional int64 OutTimeExcds = 18; */ public boolean hasOutTimeExcds() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional int64 OutTimeExcds = 18; */ public long getOutTimeExcds() { return outTimeExcds_; } public static final int OUTPARMPROBS_FIELD_NUMBER = 19; private long outParmProbs_; /** * optional int64 OutParmProbs = 19; */ public boolean hasOutParmProbs() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional int64 OutParmProbs = 19; */ public long getOutParmProbs() { return outParmProbs_; } public static final int OUTSRCQUENCHS_FIELD_NUMBER = 20; private long outSrcQuenchs_; /** * optional int64 OutSrcQuenchs = 20; */ public boolean hasOutSrcQuenchs() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional int64 OutSrcQuenchs = 20; */ public long getOutSrcQuenchs() { return outSrcQuenchs_; } public static final int OUTREDIRECTS_FIELD_NUMBER = 21; private long outRedirects_; /** * optional int64 OutRedirects = 21; */ public boolean hasOutRedirects() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional int64 OutRedirects = 21; */ public long getOutRedirects() { return outRedirects_; } public static final int OUTECHOS_FIELD_NUMBER = 22; private long outEchos_; /** * optional int64 OutEchos = 22; */ public boolean hasOutEchos() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional int64 OutEchos = 22; */ public long getOutEchos() { return outEchos_; } public static final int OUTECHOREPS_FIELD_NUMBER = 23; private long outEchoReps_; /** * optional int64 OutEchoReps = 23; */ public boolean hasOutEchoReps() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional int64 OutEchoReps = 23; */ public long getOutEchoReps() { return outEchoReps_; } public static final int OUTTIMESTAMPS_FIELD_NUMBER = 24; private long outTimestamps_; /** * optional int64 OutTimestamps = 24; */ public boolean hasOutTimestamps() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional int64 OutTimestamps = 24; */ public long getOutTimestamps() { return outTimestamps_; } public static final int OUTTIMESTAMPREPS_FIELD_NUMBER = 25; private long outTimestampReps_; /** * optional int64 OutTimestampReps = 25; */ public boolean hasOutTimestampReps() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional int64 OutTimestampReps = 25; */ public long getOutTimestampReps() { return outTimestampReps_; } public static final int OUTADDRMASKS_FIELD_NUMBER = 26; private long outAddrMasks_; /** * optional int64 OutAddrMasks = 26; */ public boolean hasOutAddrMasks() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional int64 OutAddrMasks = 26; */ public long getOutAddrMasks() { return outAddrMasks_; } public static final int OUTADDRMASKREPS_FIELD_NUMBER = 27; private long outAddrMaskReps_; /** * optional int64 OutAddrMaskReps = 27; */ public boolean hasOutAddrMaskReps() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional int64 OutAddrMaskReps = 27; */ public long getOutAddrMaskReps() { return outAddrMaskReps_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, inMsgs_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, inErrors_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, inCsumErrors_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, inDestUnreachs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, inTimeExcds_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, inParmProbs_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, inSrcQuenchs_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt64(8, inRedirects_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt64(9, inEchos_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt64(10, inEchoReps_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt64(11, inTimestamps_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt64(12, inTimestampReps_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt64(13, inAddrMasks_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt64(14, inAddrMaskReps_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeInt64(15, outMsgs_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeInt64(16, outErrors_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeInt64(17, outDestUnreachs_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeInt64(18, outTimeExcds_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeInt64(19, outParmProbs_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeInt64(20, outSrcQuenchs_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeInt64(21, outRedirects_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeInt64(22, outEchos_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeInt64(23, outEchoReps_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeInt64(24, outTimestamps_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeInt64(25, outTimestampReps_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeInt64(26, outAddrMasks_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeInt64(27, outAddrMaskReps_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, inMsgs_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, inErrors_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, inCsumErrors_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, inDestUnreachs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, inTimeExcds_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, inParmProbs_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, inSrcQuenchs_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, inRedirects_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, inEchos_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, inEchoReps_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, inTimestamps_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, inTimestampReps_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, inAddrMasks_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, inAddrMaskReps_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, outMsgs_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, outErrors_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(17, outDestUnreachs_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, outTimeExcds_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, outParmProbs_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(20, outSrcQuenchs_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(21, outRedirects_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, outEchos_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(23, outEchoReps_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(24, outTimestamps_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(25, outTimestampReps_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(26, outAddrMasks_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(27, outAddrMaskReps_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.IcmpStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.IcmpStatistics other = (org.apache.mesos.v1.Protos.IcmpStatistics) obj; boolean result = true; result = result && (hasInMsgs() == other.hasInMsgs()); if (hasInMsgs()) { result = result && (getInMsgs() == other.getInMsgs()); } result = result && (hasInErrors() == other.hasInErrors()); if (hasInErrors()) { result = result && (getInErrors() == other.getInErrors()); } result = result && (hasInCsumErrors() == other.hasInCsumErrors()); if (hasInCsumErrors()) { result = result && (getInCsumErrors() == other.getInCsumErrors()); } result = result && (hasInDestUnreachs() == other.hasInDestUnreachs()); if (hasInDestUnreachs()) { result = result && (getInDestUnreachs() == other.getInDestUnreachs()); } result = result && (hasInTimeExcds() == other.hasInTimeExcds()); if (hasInTimeExcds()) { result = result && (getInTimeExcds() == other.getInTimeExcds()); } result = result && (hasInParmProbs() == other.hasInParmProbs()); if (hasInParmProbs()) { result = result && (getInParmProbs() == other.getInParmProbs()); } result = result && (hasInSrcQuenchs() == other.hasInSrcQuenchs()); if (hasInSrcQuenchs()) { result = result && (getInSrcQuenchs() == other.getInSrcQuenchs()); } result = result && (hasInRedirects() == other.hasInRedirects()); if (hasInRedirects()) { result = result && (getInRedirects() == other.getInRedirects()); } result = result && (hasInEchos() == other.hasInEchos()); if (hasInEchos()) { result = result && (getInEchos() == other.getInEchos()); } result = result && (hasInEchoReps() == other.hasInEchoReps()); if (hasInEchoReps()) { result = result && (getInEchoReps() == other.getInEchoReps()); } result = result && (hasInTimestamps() == other.hasInTimestamps()); if (hasInTimestamps()) { result = result && (getInTimestamps() == other.getInTimestamps()); } result = result && (hasInTimestampReps() == other.hasInTimestampReps()); if (hasInTimestampReps()) { result = result && (getInTimestampReps() == other.getInTimestampReps()); } result = result && (hasInAddrMasks() == other.hasInAddrMasks()); if (hasInAddrMasks()) { result = result && (getInAddrMasks() == other.getInAddrMasks()); } result = result && (hasInAddrMaskReps() == other.hasInAddrMaskReps()); if (hasInAddrMaskReps()) { result = result && (getInAddrMaskReps() == other.getInAddrMaskReps()); } result = result && (hasOutMsgs() == other.hasOutMsgs()); if (hasOutMsgs()) { result = result && (getOutMsgs() == other.getOutMsgs()); } result = result && (hasOutErrors() == other.hasOutErrors()); if (hasOutErrors()) { result = result && (getOutErrors() == other.getOutErrors()); } result = result && (hasOutDestUnreachs() == other.hasOutDestUnreachs()); if (hasOutDestUnreachs()) { result = result && (getOutDestUnreachs() == other.getOutDestUnreachs()); } result = result && (hasOutTimeExcds() == other.hasOutTimeExcds()); if (hasOutTimeExcds()) { result = result && (getOutTimeExcds() == other.getOutTimeExcds()); } result = result && (hasOutParmProbs() == other.hasOutParmProbs()); if (hasOutParmProbs()) { result = result && (getOutParmProbs() == other.getOutParmProbs()); } result = result && (hasOutSrcQuenchs() == other.hasOutSrcQuenchs()); if (hasOutSrcQuenchs()) { result = result && (getOutSrcQuenchs() == other.getOutSrcQuenchs()); } result = result && (hasOutRedirects() == other.hasOutRedirects()); if (hasOutRedirects()) { result = result && (getOutRedirects() == other.getOutRedirects()); } result = result && (hasOutEchos() == other.hasOutEchos()); if (hasOutEchos()) { result = result && (getOutEchos() == other.getOutEchos()); } result = result && (hasOutEchoReps() == other.hasOutEchoReps()); if (hasOutEchoReps()) { result = result && (getOutEchoReps() == other.getOutEchoReps()); } result = result && (hasOutTimestamps() == other.hasOutTimestamps()); if (hasOutTimestamps()) { result = result && (getOutTimestamps() == other.getOutTimestamps()); } result = result && (hasOutTimestampReps() == other.hasOutTimestampReps()); if (hasOutTimestampReps()) { result = result && (getOutTimestampReps() == other.getOutTimestampReps()); } result = result && (hasOutAddrMasks() == other.hasOutAddrMasks()); if (hasOutAddrMasks()) { result = result && (getOutAddrMasks() == other.getOutAddrMasks()); } result = result && (hasOutAddrMaskReps() == other.hasOutAddrMaskReps()); if (hasOutAddrMaskReps()) { result = result && (getOutAddrMaskReps() == other.getOutAddrMaskReps()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInMsgs()) { hash = (37 * hash) + INMSGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInMsgs()); } if (hasInErrors()) { hash = (37 * hash) + INERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInErrors()); } if (hasInCsumErrors()) { hash = (37 * hash) + INCSUMERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInCsumErrors()); } if (hasInDestUnreachs()) { hash = (37 * hash) + INDESTUNREACHS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInDestUnreachs()); } if (hasInTimeExcds()) { hash = (37 * hash) + INTIMEEXCDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInTimeExcds()); } if (hasInParmProbs()) { hash = (37 * hash) + INPARMPROBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInParmProbs()); } if (hasInSrcQuenchs()) { hash = (37 * hash) + INSRCQUENCHS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInSrcQuenchs()); } if (hasInRedirects()) { hash = (37 * hash) + INREDIRECTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInRedirects()); } if (hasInEchos()) { hash = (37 * hash) + INECHOS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInEchos()); } if (hasInEchoReps()) { hash = (37 * hash) + INECHOREPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInEchoReps()); } if (hasInTimestamps()) { hash = (37 * hash) + INTIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInTimestamps()); } if (hasInTimestampReps()) { hash = (37 * hash) + INTIMESTAMPREPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInTimestampReps()); } if (hasInAddrMasks()) { hash = (37 * hash) + INADDRMASKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInAddrMasks()); } if (hasInAddrMaskReps()) { hash = (37 * hash) + INADDRMASKREPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInAddrMaskReps()); } if (hasOutMsgs()) { hash = (37 * hash) + OUTMSGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutMsgs()); } if (hasOutErrors()) { hash = (37 * hash) + OUTERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutErrors()); } if (hasOutDestUnreachs()) { hash = (37 * hash) + OUTDESTUNREACHS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutDestUnreachs()); } if (hasOutTimeExcds()) { hash = (37 * hash) + OUTTIMEEXCDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutTimeExcds()); } if (hasOutParmProbs()) { hash = (37 * hash) + OUTPARMPROBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutParmProbs()); } if (hasOutSrcQuenchs()) { hash = (37 * hash) + OUTSRCQUENCHS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutSrcQuenchs()); } if (hasOutRedirects()) { hash = (37 * hash) + OUTREDIRECTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutRedirects()); } if (hasOutEchos()) { hash = (37 * hash) + OUTECHOS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutEchos()); } if (hasOutEchoReps()) { hash = (37 * hash) + OUTECHOREPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutEchoReps()); } if (hasOutTimestamps()) { hash = (37 * hash) + OUTTIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutTimestamps()); } if (hasOutTimestampReps()) { hash = (37 * hash) + OUTTIMESTAMPREPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutTimestampReps()); } if (hasOutAddrMasks()) { hash = (37 * hash) + OUTADDRMASKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutAddrMasks()); } if (hasOutAddrMaskReps()) { hash = (37 * hash) + OUTADDRMASKREPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutAddrMaskReps()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.IcmpStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.IcmpStatistics 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.Protos.IcmpStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.IcmpStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.IcmpStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.IcmpStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.IcmpStatistics) org.apache.mesos.v1.Protos.IcmpStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IcmpStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IcmpStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.IcmpStatistics.class, org.apache.mesos.v1.Protos.IcmpStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.IcmpStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); inMsgs_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); inErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); inCsumErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); inDestUnreachs_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); inTimeExcds_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); inParmProbs_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); inSrcQuenchs_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); inRedirects_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); inEchos_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); inEchoReps_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); inTimestamps_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); inTimestampReps_ = 0L; bitField0_ = (bitField0_ & ~0x00000800); inAddrMasks_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); inAddrMaskReps_ = 0L; bitField0_ = (bitField0_ & ~0x00002000); outMsgs_ = 0L; bitField0_ = (bitField0_ & ~0x00004000); outErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00008000); outDestUnreachs_ = 0L; bitField0_ = (bitField0_ & ~0x00010000); outTimeExcds_ = 0L; bitField0_ = (bitField0_ & ~0x00020000); outParmProbs_ = 0L; bitField0_ = (bitField0_ & ~0x00040000); outSrcQuenchs_ = 0L; bitField0_ = (bitField0_ & ~0x00080000); outRedirects_ = 0L; bitField0_ = (bitField0_ & ~0x00100000); outEchos_ = 0L; bitField0_ = (bitField0_ & ~0x00200000); outEchoReps_ = 0L; bitField0_ = (bitField0_ & ~0x00400000); outTimestamps_ = 0L; bitField0_ = (bitField0_ & ~0x00800000); outTimestampReps_ = 0L; bitField0_ = (bitField0_ & ~0x01000000); outAddrMasks_ = 0L; bitField0_ = (bitField0_ & ~0x02000000); outAddrMaskReps_ = 0L; bitField0_ = (bitField0_ & ~0x04000000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_IcmpStatistics_descriptor; } public org.apache.mesos.v1.Protos.IcmpStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.IcmpStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.IcmpStatistics build() { org.apache.mesos.v1.Protos.IcmpStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.IcmpStatistics buildPartial() { org.apache.mesos.v1.Protos.IcmpStatistics result = new org.apache.mesos.v1.Protos.IcmpStatistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.inMsgs_ = inMsgs_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.inErrors_ = inErrors_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.inCsumErrors_ = inCsumErrors_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.inDestUnreachs_ = inDestUnreachs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.inTimeExcds_ = inTimeExcds_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.inParmProbs_ = inParmProbs_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.inSrcQuenchs_ = inSrcQuenchs_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.inRedirects_ = inRedirects_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.inEchos_ = inEchos_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.inEchoReps_ = inEchoReps_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.inTimestamps_ = inTimestamps_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.inTimestampReps_ = inTimestampReps_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.inAddrMasks_ = inAddrMasks_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.inAddrMaskReps_ = inAddrMaskReps_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.outMsgs_ = outMsgs_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.outErrors_ = outErrors_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.outDestUnreachs_ = outDestUnreachs_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.outTimeExcds_ = outTimeExcds_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.outParmProbs_ = outParmProbs_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } result.outSrcQuenchs_ = outSrcQuenchs_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } result.outRedirects_ = outRedirects_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } result.outEchos_ = outEchos_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } result.outEchoReps_ = outEchoReps_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } result.outTimestamps_ = outTimestamps_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } result.outTimestampReps_ = outTimestampReps_; if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x02000000; } result.outAddrMasks_ = outAddrMasks_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x04000000; } result.outAddrMaskReps_ = outAddrMaskReps_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.IcmpStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.IcmpStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.IcmpStatistics other) { if (other == org.apache.mesos.v1.Protos.IcmpStatistics.getDefaultInstance()) return this; if (other.hasInMsgs()) { setInMsgs(other.getInMsgs()); } if (other.hasInErrors()) { setInErrors(other.getInErrors()); } if (other.hasInCsumErrors()) { setInCsumErrors(other.getInCsumErrors()); } if (other.hasInDestUnreachs()) { setInDestUnreachs(other.getInDestUnreachs()); } if (other.hasInTimeExcds()) { setInTimeExcds(other.getInTimeExcds()); } if (other.hasInParmProbs()) { setInParmProbs(other.getInParmProbs()); } if (other.hasInSrcQuenchs()) { setInSrcQuenchs(other.getInSrcQuenchs()); } if (other.hasInRedirects()) { setInRedirects(other.getInRedirects()); } if (other.hasInEchos()) { setInEchos(other.getInEchos()); } if (other.hasInEchoReps()) { setInEchoReps(other.getInEchoReps()); } if (other.hasInTimestamps()) { setInTimestamps(other.getInTimestamps()); } if (other.hasInTimestampReps()) { setInTimestampReps(other.getInTimestampReps()); } if (other.hasInAddrMasks()) { setInAddrMasks(other.getInAddrMasks()); } if (other.hasInAddrMaskReps()) { setInAddrMaskReps(other.getInAddrMaskReps()); } if (other.hasOutMsgs()) { setOutMsgs(other.getOutMsgs()); } if (other.hasOutErrors()) { setOutErrors(other.getOutErrors()); } if (other.hasOutDestUnreachs()) { setOutDestUnreachs(other.getOutDestUnreachs()); } if (other.hasOutTimeExcds()) { setOutTimeExcds(other.getOutTimeExcds()); } if (other.hasOutParmProbs()) { setOutParmProbs(other.getOutParmProbs()); } if (other.hasOutSrcQuenchs()) { setOutSrcQuenchs(other.getOutSrcQuenchs()); } if (other.hasOutRedirects()) { setOutRedirects(other.getOutRedirects()); } if (other.hasOutEchos()) { setOutEchos(other.getOutEchos()); } if (other.hasOutEchoReps()) { setOutEchoReps(other.getOutEchoReps()); } if (other.hasOutTimestamps()) { setOutTimestamps(other.getOutTimestamps()); } if (other.hasOutTimestampReps()) { setOutTimestampReps(other.getOutTimestampReps()); } if (other.hasOutAddrMasks()) { setOutAddrMasks(other.getOutAddrMasks()); } if (other.hasOutAddrMaskReps()) { setOutAddrMaskReps(other.getOutAddrMaskReps()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.IcmpStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.IcmpStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long inMsgs_ ; /** * optional int64 InMsgs = 1; */ public boolean hasInMsgs() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 InMsgs = 1; */ public long getInMsgs() { return inMsgs_; } /** * optional int64 InMsgs = 1; */ public Builder setInMsgs(long value) { bitField0_ |= 0x00000001; inMsgs_ = value; onChanged(); return this; } /** * optional int64 InMsgs = 1; */ public Builder clearInMsgs() { bitField0_ = (bitField0_ & ~0x00000001); inMsgs_ = 0L; onChanged(); return this; } private long inErrors_ ; /** * optional int64 InErrors = 2; */ public boolean hasInErrors() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 InErrors = 2; */ public long getInErrors() { return inErrors_; } /** * optional int64 InErrors = 2; */ public Builder setInErrors(long value) { bitField0_ |= 0x00000002; inErrors_ = value; onChanged(); return this; } /** * optional int64 InErrors = 2; */ public Builder clearInErrors() { bitField0_ = (bitField0_ & ~0x00000002); inErrors_ = 0L; onChanged(); return this; } private long inCsumErrors_ ; /** * optional int64 InCsumErrors = 3; */ public boolean hasInCsumErrors() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 InCsumErrors = 3; */ public long getInCsumErrors() { return inCsumErrors_; } /** * optional int64 InCsumErrors = 3; */ public Builder setInCsumErrors(long value) { bitField0_ |= 0x00000004; inCsumErrors_ = value; onChanged(); return this; } /** * optional int64 InCsumErrors = 3; */ public Builder clearInCsumErrors() { bitField0_ = (bitField0_ & ~0x00000004); inCsumErrors_ = 0L; onChanged(); return this; } private long inDestUnreachs_ ; /** * optional int64 InDestUnreachs = 4; */ public boolean hasInDestUnreachs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 InDestUnreachs = 4; */ public long getInDestUnreachs() { return inDestUnreachs_; } /** * optional int64 InDestUnreachs = 4; */ public Builder setInDestUnreachs(long value) { bitField0_ |= 0x00000008; inDestUnreachs_ = value; onChanged(); return this; } /** * optional int64 InDestUnreachs = 4; */ public Builder clearInDestUnreachs() { bitField0_ = (bitField0_ & ~0x00000008); inDestUnreachs_ = 0L; onChanged(); return this; } private long inTimeExcds_ ; /** * optional int64 InTimeExcds = 5; */ public boolean hasInTimeExcds() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 InTimeExcds = 5; */ public long getInTimeExcds() { return inTimeExcds_; } /** * optional int64 InTimeExcds = 5; */ public Builder setInTimeExcds(long value) { bitField0_ |= 0x00000010; inTimeExcds_ = value; onChanged(); return this; } /** * optional int64 InTimeExcds = 5; */ public Builder clearInTimeExcds() { bitField0_ = (bitField0_ & ~0x00000010); inTimeExcds_ = 0L; onChanged(); return this; } private long inParmProbs_ ; /** * optional int64 InParmProbs = 6; */ public boolean hasInParmProbs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 InParmProbs = 6; */ public long getInParmProbs() { return inParmProbs_; } /** * optional int64 InParmProbs = 6; */ public Builder setInParmProbs(long value) { bitField0_ |= 0x00000020; inParmProbs_ = value; onChanged(); return this; } /** * optional int64 InParmProbs = 6; */ public Builder clearInParmProbs() { bitField0_ = (bitField0_ & ~0x00000020); inParmProbs_ = 0L; onChanged(); return this; } private long inSrcQuenchs_ ; /** * optional int64 InSrcQuenchs = 7; */ public boolean hasInSrcQuenchs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 InSrcQuenchs = 7; */ public long getInSrcQuenchs() { return inSrcQuenchs_; } /** * optional int64 InSrcQuenchs = 7; */ public Builder setInSrcQuenchs(long value) { bitField0_ |= 0x00000040; inSrcQuenchs_ = value; onChanged(); return this; } /** * optional int64 InSrcQuenchs = 7; */ public Builder clearInSrcQuenchs() { bitField0_ = (bitField0_ & ~0x00000040); inSrcQuenchs_ = 0L; onChanged(); return this; } private long inRedirects_ ; /** * optional int64 InRedirects = 8; */ public boolean hasInRedirects() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 InRedirects = 8; */ public long getInRedirects() { return inRedirects_; } /** * optional int64 InRedirects = 8; */ public Builder setInRedirects(long value) { bitField0_ |= 0x00000080; inRedirects_ = value; onChanged(); return this; } /** * optional int64 InRedirects = 8; */ public Builder clearInRedirects() { bitField0_ = (bitField0_ & ~0x00000080); inRedirects_ = 0L; onChanged(); return this; } private long inEchos_ ; /** * optional int64 InEchos = 9; */ public boolean hasInEchos() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int64 InEchos = 9; */ public long getInEchos() { return inEchos_; } /** * optional int64 InEchos = 9; */ public Builder setInEchos(long value) { bitField0_ |= 0x00000100; inEchos_ = value; onChanged(); return this; } /** * optional int64 InEchos = 9; */ public Builder clearInEchos() { bitField0_ = (bitField0_ & ~0x00000100); inEchos_ = 0L; onChanged(); return this; } private long inEchoReps_ ; /** * optional int64 InEchoReps = 10; */ public boolean hasInEchoReps() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 InEchoReps = 10; */ public long getInEchoReps() { return inEchoReps_; } /** * optional int64 InEchoReps = 10; */ public Builder setInEchoReps(long value) { bitField0_ |= 0x00000200; inEchoReps_ = value; onChanged(); return this; } /** * optional int64 InEchoReps = 10; */ public Builder clearInEchoReps() { bitField0_ = (bitField0_ & ~0x00000200); inEchoReps_ = 0L; onChanged(); return this; } private long inTimestamps_ ; /** * optional int64 InTimestamps = 11; */ public boolean hasInTimestamps() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 InTimestamps = 11; */ public long getInTimestamps() { return inTimestamps_; } /** * optional int64 InTimestamps = 11; */ public Builder setInTimestamps(long value) { bitField0_ |= 0x00000400; inTimestamps_ = value; onChanged(); return this; } /** * optional int64 InTimestamps = 11; */ public Builder clearInTimestamps() { bitField0_ = (bitField0_ & ~0x00000400); inTimestamps_ = 0L; onChanged(); return this; } private long inTimestampReps_ ; /** * optional int64 InTimestampReps = 12; */ public boolean hasInTimestampReps() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int64 InTimestampReps = 12; */ public long getInTimestampReps() { return inTimestampReps_; } /** * optional int64 InTimestampReps = 12; */ public Builder setInTimestampReps(long value) { bitField0_ |= 0x00000800; inTimestampReps_ = value; onChanged(); return this; } /** * optional int64 InTimestampReps = 12; */ public Builder clearInTimestampReps() { bitField0_ = (bitField0_ & ~0x00000800); inTimestampReps_ = 0L; onChanged(); return this; } private long inAddrMasks_ ; /** * optional int64 InAddrMasks = 13; */ public boolean hasInAddrMasks() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int64 InAddrMasks = 13; */ public long getInAddrMasks() { return inAddrMasks_; } /** * optional int64 InAddrMasks = 13; */ public Builder setInAddrMasks(long value) { bitField0_ |= 0x00001000; inAddrMasks_ = value; onChanged(); return this; } /** * optional int64 InAddrMasks = 13; */ public Builder clearInAddrMasks() { bitField0_ = (bitField0_ & ~0x00001000); inAddrMasks_ = 0L; onChanged(); return this; } private long inAddrMaskReps_ ; /** * optional int64 InAddrMaskReps = 14; */ public boolean hasInAddrMaskReps() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 InAddrMaskReps = 14; */ public long getInAddrMaskReps() { return inAddrMaskReps_; } /** * optional int64 InAddrMaskReps = 14; */ public Builder setInAddrMaskReps(long value) { bitField0_ |= 0x00002000; inAddrMaskReps_ = value; onChanged(); return this; } /** * optional int64 InAddrMaskReps = 14; */ public Builder clearInAddrMaskReps() { bitField0_ = (bitField0_ & ~0x00002000); inAddrMaskReps_ = 0L; onChanged(); return this; } private long outMsgs_ ; /** * optional int64 OutMsgs = 15; */ public boolean hasOutMsgs() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int64 OutMsgs = 15; */ public long getOutMsgs() { return outMsgs_; } /** * optional int64 OutMsgs = 15; */ public Builder setOutMsgs(long value) { bitField0_ |= 0x00004000; outMsgs_ = value; onChanged(); return this; } /** * optional int64 OutMsgs = 15; */ public Builder clearOutMsgs() { bitField0_ = (bitField0_ & ~0x00004000); outMsgs_ = 0L; onChanged(); return this; } private long outErrors_ ; /** * optional int64 OutErrors = 16; */ public boolean hasOutErrors() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int64 OutErrors = 16; */ public long getOutErrors() { return outErrors_; } /** * optional int64 OutErrors = 16; */ public Builder setOutErrors(long value) { bitField0_ |= 0x00008000; outErrors_ = value; onChanged(); return this; } /** * optional int64 OutErrors = 16; */ public Builder clearOutErrors() { bitField0_ = (bitField0_ & ~0x00008000); outErrors_ = 0L; onChanged(); return this; } private long outDestUnreachs_ ; /** * optional int64 OutDestUnreachs = 17; */ public boolean hasOutDestUnreachs() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional int64 OutDestUnreachs = 17; */ public long getOutDestUnreachs() { return outDestUnreachs_; } /** * optional int64 OutDestUnreachs = 17; */ public Builder setOutDestUnreachs(long value) { bitField0_ |= 0x00010000; outDestUnreachs_ = value; onChanged(); return this; } /** * optional int64 OutDestUnreachs = 17; */ public Builder clearOutDestUnreachs() { bitField0_ = (bitField0_ & ~0x00010000); outDestUnreachs_ = 0L; onChanged(); return this; } private long outTimeExcds_ ; /** * optional int64 OutTimeExcds = 18; */ public boolean hasOutTimeExcds() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional int64 OutTimeExcds = 18; */ public long getOutTimeExcds() { return outTimeExcds_; } /** * optional int64 OutTimeExcds = 18; */ public Builder setOutTimeExcds(long value) { bitField0_ |= 0x00020000; outTimeExcds_ = value; onChanged(); return this; } /** * optional int64 OutTimeExcds = 18; */ public Builder clearOutTimeExcds() { bitField0_ = (bitField0_ & ~0x00020000); outTimeExcds_ = 0L; onChanged(); return this; } private long outParmProbs_ ; /** * optional int64 OutParmProbs = 19; */ public boolean hasOutParmProbs() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional int64 OutParmProbs = 19; */ public long getOutParmProbs() { return outParmProbs_; } /** * optional int64 OutParmProbs = 19; */ public Builder setOutParmProbs(long value) { bitField0_ |= 0x00040000; outParmProbs_ = value; onChanged(); return this; } /** * optional int64 OutParmProbs = 19; */ public Builder clearOutParmProbs() { bitField0_ = (bitField0_ & ~0x00040000); outParmProbs_ = 0L; onChanged(); return this; } private long outSrcQuenchs_ ; /** * optional int64 OutSrcQuenchs = 20; */ public boolean hasOutSrcQuenchs() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional int64 OutSrcQuenchs = 20; */ public long getOutSrcQuenchs() { return outSrcQuenchs_; } /** * optional int64 OutSrcQuenchs = 20; */ public Builder setOutSrcQuenchs(long value) { bitField0_ |= 0x00080000; outSrcQuenchs_ = value; onChanged(); return this; } /** * optional int64 OutSrcQuenchs = 20; */ public Builder clearOutSrcQuenchs() { bitField0_ = (bitField0_ & ~0x00080000); outSrcQuenchs_ = 0L; onChanged(); return this; } private long outRedirects_ ; /** * optional int64 OutRedirects = 21; */ public boolean hasOutRedirects() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional int64 OutRedirects = 21; */ public long getOutRedirects() { return outRedirects_; } /** * optional int64 OutRedirects = 21; */ public Builder setOutRedirects(long value) { bitField0_ |= 0x00100000; outRedirects_ = value; onChanged(); return this; } /** * optional int64 OutRedirects = 21; */ public Builder clearOutRedirects() { bitField0_ = (bitField0_ & ~0x00100000); outRedirects_ = 0L; onChanged(); return this; } private long outEchos_ ; /** * optional int64 OutEchos = 22; */ public boolean hasOutEchos() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional int64 OutEchos = 22; */ public long getOutEchos() { return outEchos_; } /** * optional int64 OutEchos = 22; */ public Builder setOutEchos(long value) { bitField0_ |= 0x00200000; outEchos_ = value; onChanged(); return this; } /** * optional int64 OutEchos = 22; */ public Builder clearOutEchos() { bitField0_ = (bitField0_ & ~0x00200000); outEchos_ = 0L; onChanged(); return this; } private long outEchoReps_ ; /** * optional int64 OutEchoReps = 23; */ public boolean hasOutEchoReps() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional int64 OutEchoReps = 23; */ public long getOutEchoReps() { return outEchoReps_; } /** * optional int64 OutEchoReps = 23; */ public Builder setOutEchoReps(long value) { bitField0_ |= 0x00400000; outEchoReps_ = value; onChanged(); return this; } /** * optional int64 OutEchoReps = 23; */ public Builder clearOutEchoReps() { bitField0_ = (bitField0_ & ~0x00400000); outEchoReps_ = 0L; onChanged(); return this; } private long outTimestamps_ ; /** * optional int64 OutTimestamps = 24; */ public boolean hasOutTimestamps() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional int64 OutTimestamps = 24; */ public long getOutTimestamps() { return outTimestamps_; } /** * optional int64 OutTimestamps = 24; */ public Builder setOutTimestamps(long value) { bitField0_ |= 0x00800000; outTimestamps_ = value; onChanged(); return this; } /** * optional int64 OutTimestamps = 24; */ public Builder clearOutTimestamps() { bitField0_ = (bitField0_ & ~0x00800000); outTimestamps_ = 0L; onChanged(); return this; } private long outTimestampReps_ ; /** * optional int64 OutTimestampReps = 25; */ public boolean hasOutTimestampReps() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional int64 OutTimestampReps = 25; */ public long getOutTimestampReps() { return outTimestampReps_; } /** * optional int64 OutTimestampReps = 25; */ public Builder setOutTimestampReps(long value) { bitField0_ |= 0x01000000; outTimestampReps_ = value; onChanged(); return this; } /** * optional int64 OutTimestampReps = 25; */ public Builder clearOutTimestampReps() { bitField0_ = (bitField0_ & ~0x01000000); outTimestampReps_ = 0L; onChanged(); return this; } private long outAddrMasks_ ; /** * optional int64 OutAddrMasks = 26; */ public boolean hasOutAddrMasks() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional int64 OutAddrMasks = 26; */ public long getOutAddrMasks() { return outAddrMasks_; } /** * optional int64 OutAddrMasks = 26; */ public Builder setOutAddrMasks(long value) { bitField0_ |= 0x02000000; outAddrMasks_ = value; onChanged(); return this; } /** * optional int64 OutAddrMasks = 26; */ public Builder clearOutAddrMasks() { bitField0_ = (bitField0_ & ~0x02000000); outAddrMasks_ = 0L; onChanged(); return this; } private long outAddrMaskReps_ ; /** * optional int64 OutAddrMaskReps = 27; */ public boolean hasOutAddrMaskReps() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional int64 OutAddrMaskReps = 27; */ public long getOutAddrMaskReps() { return outAddrMaskReps_; } /** * optional int64 OutAddrMaskReps = 27; */ public Builder setOutAddrMaskReps(long value) { bitField0_ |= 0x04000000; outAddrMaskReps_ = value; onChanged(); return this; } /** * optional int64 OutAddrMaskReps = 27; */ public Builder clearOutAddrMaskReps() { bitField0_ = (bitField0_ & ~0x04000000); outAddrMaskReps_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.IcmpStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.IcmpStatistics) private static final org.apache.mesos.v1.Protos.IcmpStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.IcmpStatistics(); } public static org.apache.mesos.v1.Protos.IcmpStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IcmpStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IcmpStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.IcmpStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TcpStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TcpStatistics) com.google.protobuf.MessageOrBuilder { /** * optional int64 RtoAlgorithm = 1; */ boolean hasRtoAlgorithm(); /** * optional int64 RtoAlgorithm = 1; */ long getRtoAlgorithm(); /** * optional int64 RtoMin = 2; */ boolean hasRtoMin(); /** * optional int64 RtoMin = 2; */ long getRtoMin(); /** * optional int64 RtoMax = 3; */ boolean hasRtoMax(); /** * optional int64 RtoMax = 3; */ long getRtoMax(); /** * optional int64 MaxConn = 4; */ boolean hasMaxConn(); /** * optional int64 MaxConn = 4; */ long getMaxConn(); /** * optional int64 ActiveOpens = 5; */ boolean hasActiveOpens(); /** * optional int64 ActiveOpens = 5; */ long getActiveOpens(); /** * optional int64 PassiveOpens = 6; */ boolean hasPassiveOpens(); /** * optional int64 PassiveOpens = 6; */ long getPassiveOpens(); /** * optional int64 AttemptFails = 7; */ boolean hasAttemptFails(); /** * optional int64 AttemptFails = 7; */ long getAttemptFails(); /** * optional int64 EstabResets = 8; */ boolean hasEstabResets(); /** * optional int64 EstabResets = 8; */ long getEstabResets(); /** * optional int64 CurrEstab = 9; */ boolean hasCurrEstab(); /** * optional int64 CurrEstab = 9; */ long getCurrEstab(); /** * optional int64 InSegs = 10; */ boolean hasInSegs(); /** * optional int64 InSegs = 10; */ long getInSegs(); /** * optional int64 OutSegs = 11; */ boolean hasOutSegs(); /** * optional int64 OutSegs = 11; */ long getOutSegs(); /** * optional int64 RetransSegs = 12; */ boolean hasRetransSegs(); /** * optional int64 RetransSegs = 12; */ long getRetransSegs(); /** * optional int64 InErrs = 13; */ boolean hasInErrs(); /** * optional int64 InErrs = 13; */ long getInErrs(); /** * optional int64 OutRsts = 14; */ boolean hasOutRsts(); /** * optional int64 OutRsts = 14; */ long getOutRsts(); /** * optional int64 InCsumErrors = 15; */ boolean hasInCsumErrors(); /** * optional int64 InCsumErrors = 15; */ long getInCsumErrors(); } /** * Protobuf type {@code mesos.v1.TcpStatistics} */ public static final class TcpStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TcpStatistics) TcpStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use TcpStatistics.newBuilder() to construct. private TcpStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TcpStatistics() { rtoAlgorithm_ = 0L; rtoMin_ = 0L; rtoMax_ = 0L; maxConn_ = 0L; activeOpens_ = 0L; passiveOpens_ = 0L; attemptFails_ = 0L; estabResets_ = 0L; currEstab_ = 0L; inSegs_ = 0L; outSegs_ = 0L; retransSegs_ = 0L; inErrs_ = 0L; outRsts_ = 0L; inCsumErrors_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TcpStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; rtoAlgorithm_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; rtoMin_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; rtoMax_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; maxConn_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; activeOpens_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000020; passiveOpens_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000040; attemptFails_ = input.readInt64(); break; } case 64: { bitField0_ |= 0x00000080; estabResets_ = input.readInt64(); break; } case 72: { bitField0_ |= 0x00000100; currEstab_ = input.readInt64(); break; } case 80: { bitField0_ |= 0x00000200; inSegs_ = input.readInt64(); break; } case 88: { bitField0_ |= 0x00000400; outSegs_ = input.readInt64(); break; } case 96: { bitField0_ |= 0x00000800; retransSegs_ = input.readInt64(); break; } case 104: { bitField0_ |= 0x00001000; inErrs_ = input.readInt64(); break; } case 112: { bitField0_ |= 0x00002000; outRsts_ = input.readInt64(); break; } case 120: { bitField0_ |= 0x00004000; inCsumErrors_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TcpStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TcpStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TcpStatistics.class, org.apache.mesos.v1.Protos.TcpStatistics.Builder.class); } private int bitField0_; public static final int RTOALGORITHM_FIELD_NUMBER = 1; private long rtoAlgorithm_; /** * optional int64 RtoAlgorithm = 1; */ public boolean hasRtoAlgorithm() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 RtoAlgorithm = 1; */ public long getRtoAlgorithm() { return rtoAlgorithm_; } public static final int RTOMIN_FIELD_NUMBER = 2; private long rtoMin_; /** * optional int64 RtoMin = 2; */ public boolean hasRtoMin() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 RtoMin = 2; */ public long getRtoMin() { return rtoMin_; } public static final int RTOMAX_FIELD_NUMBER = 3; private long rtoMax_; /** * optional int64 RtoMax = 3; */ public boolean hasRtoMax() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 RtoMax = 3; */ public long getRtoMax() { return rtoMax_; } public static final int MAXCONN_FIELD_NUMBER = 4; private long maxConn_; /** * optional int64 MaxConn = 4; */ public boolean hasMaxConn() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 MaxConn = 4; */ public long getMaxConn() { return maxConn_; } public static final int ACTIVEOPENS_FIELD_NUMBER = 5; private long activeOpens_; /** * optional int64 ActiveOpens = 5; */ public boolean hasActiveOpens() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 ActiveOpens = 5; */ public long getActiveOpens() { return activeOpens_; } public static final int PASSIVEOPENS_FIELD_NUMBER = 6; private long passiveOpens_; /** * optional int64 PassiveOpens = 6; */ public boolean hasPassiveOpens() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 PassiveOpens = 6; */ public long getPassiveOpens() { return passiveOpens_; } public static final int ATTEMPTFAILS_FIELD_NUMBER = 7; private long attemptFails_; /** * optional int64 AttemptFails = 7; */ public boolean hasAttemptFails() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 AttemptFails = 7; */ public long getAttemptFails() { return attemptFails_; } public static final int ESTABRESETS_FIELD_NUMBER = 8; private long estabResets_; /** * optional int64 EstabResets = 8; */ public boolean hasEstabResets() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 EstabResets = 8; */ public long getEstabResets() { return estabResets_; } public static final int CURRESTAB_FIELD_NUMBER = 9; private long currEstab_; /** * optional int64 CurrEstab = 9; */ public boolean hasCurrEstab() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int64 CurrEstab = 9; */ public long getCurrEstab() { return currEstab_; } public static final int INSEGS_FIELD_NUMBER = 10; private long inSegs_; /** * optional int64 InSegs = 10; */ public boolean hasInSegs() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 InSegs = 10; */ public long getInSegs() { return inSegs_; } public static final int OUTSEGS_FIELD_NUMBER = 11; private long outSegs_; /** * optional int64 OutSegs = 11; */ public boolean hasOutSegs() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 OutSegs = 11; */ public long getOutSegs() { return outSegs_; } public static final int RETRANSSEGS_FIELD_NUMBER = 12; private long retransSegs_; /** * optional int64 RetransSegs = 12; */ public boolean hasRetransSegs() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int64 RetransSegs = 12; */ public long getRetransSegs() { return retransSegs_; } public static final int INERRS_FIELD_NUMBER = 13; private long inErrs_; /** * optional int64 InErrs = 13; */ public boolean hasInErrs() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int64 InErrs = 13; */ public long getInErrs() { return inErrs_; } public static final int OUTRSTS_FIELD_NUMBER = 14; private long outRsts_; /** * optional int64 OutRsts = 14; */ public boolean hasOutRsts() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 OutRsts = 14; */ public long getOutRsts() { return outRsts_; } public static final int INCSUMERRORS_FIELD_NUMBER = 15; private long inCsumErrors_; /** * optional int64 InCsumErrors = 15; */ public boolean hasInCsumErrors() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int64 InCsumErrors = 15; */ public long getInCsumErrors() { return inCsumErrors_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, rtoAlgorithm_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, rtoMin_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, rtoMax_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, maxConn_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, activeOpens_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, passiveOpens_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, attemptFails_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt64(8, estabResets_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt64(9, currEstab_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt64(10, inSegs_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt64(11, outSegs_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt64(12, retransSegs_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt64(13, inErrs_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt64(14, outRsts_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeInt64(15, inCsumErrors_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, rtoAlgorithm_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, rtoMin_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, rtoMax_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, maxConn_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, activeOpens_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, passiveOpens_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, attemptFails_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, estabResets_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, currEstab_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, inSegs_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, outSegs_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, retransSegs_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, inErrs_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, outRsts_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, inCsumErrors_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TcpStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TcpStatistics other = (org.apache.mesos.v1.Protos.TcpStatistics) obj; boolean result = true; result = result && (hasRtoAlgorithm() == other.hasRtoAlgorithm()); if (hasRtoAlgorithm()) { result = result && (getRtoAlgorithm() == other.getRtoAlgorithm()); } result = result && (hasRtoMin() == other.hasRtoMin()); if (hasRtoMin()) { result = result && (getRtoMin() == other.getRtoMin()); } result = result && (hasRtoMax() == other.hasRtoMax()); if (hasRtoMax()) { result = result && (getRtoMax() == other.getRtoMax()); } result = result && (hasMaxConn() == other.hasMaxConn()); if (hasMaxConn()) { result = result && (getMaxConn() == other.getMaxConn()); } result = result && (hasActiveOpens() == other.hasActiveOpens()); if (hasActiveOpens()) { result = result && (getActiveOpens() == other.getActiveOpens()); } result = result && (hasPassiveOpens() == other.hasPassiveOpens()); if (hasPassiveOpens()) { result = result && (getPassiveOpens() == other.getPassiveOpens()); } result = result && (hasAttemptFails() == other.hasAttemptFails()); if (hasAttemptFails()) { result = result && (getAttemptFails() == other.getAttemptFails()); } result = result && (hasEstabResets() == other.hasEstabResets()); if (hasEstabResets()) { result = result && (getEstabResets() == other.getEstabResets()); } result = result && (hasCurrEstab() == other.hasCurrEstab()); if (hasCurrEstab()) { result = result && (getCurrEstab() == other.getCurrEstab()); } result = result && (hasInSegs() == other.hasInSegs()); if (hasInSegs()) { result = result && (getInSegs() == other.getInSegs()); } result = result && (hasOutSegs() == other.hasOutSegs()); if (hasOutSegs()) { result = result && (getOutSegs() == other.getOutSegs()); } result = result && (hasRetransSegs() == other.hasRetransSegs()); if (hasRetransSegs()) { result = result && (getRetransSegs() == other.getRetransSegs()); } result = result && (hasInErrs() == other.hasInErrs()); if (hasInErrs()) { result = result && (getInErrs() == other.getInErrs()); } result = result && (hasOutRsts() == other.hasOutRsts()); if (hasOutRsts()) { result = result && (getOutRsts() == other.getOutRsts()); } result = result && (hasInCsumErrors() == other.hasInCsumErrors()); if (hasInCsumErrors()) { result = result && (getInCsumErrors() == other.getInCsumErrors()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRtoAlgorithm()) { hash = (37 * hash) + RTOALGORITHM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRtoAlgorithm()); } if (hasRtoMin()) { hash = (37 * hash) + RTOMIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRtoMin()); } if (hasRtoMax()) { hash = (37 * hash) + RTOMAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRtoMax()); } if (hasMaxConn()) { hash = (37 * hash) + MAXCONN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxConn()); } if (hasActiveOpens()) { hash = (37 * hash) + ACTIVEOPENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getActiveOpens()); } if (hasPassiveOpens()) { hash = (37 * hash) + PASSIVEOPENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPassiveOpens()); } if (hasAttemptFails()) { hash = (37 * hash) + ATTEMPTFAILS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAttemptFails()); } if (hasEstabResets()) { hash = (37 * hash) + ESTABRESETS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEstabResets()); } if (hasCurrEstab()) { hash = (37 * hash) + CURRESTAB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrEstab()); } if (hasInSegs()) { hash = (37 * hash) + INSEGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInSegs()); } if (hasOutSegs()) { hash = (37 * hash) + OUTSEGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutSegs()); } if (hasRetransSegs()) { hash = (37 * hash) + RETRANSSEGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRetransSegs()); } if (hasInErrs()) { hash = (37 * hash) + INERRS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInErrs()); } if (hasOutRsts()) { hash = (37 * hash) + OUTRSTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutRsts()); } if (hasInCsumErrors()) { hash = (37 * hash) + INCSUMERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInCsumErrors()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TcpStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TcpStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TcpStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TcpStatistics 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.Protos.TcpStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TcpStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TcpStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TcpStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TcpStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TcpStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TcpStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TcpStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TcpStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.TcpStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TcpStatistics) org.apache.mesos.v1.Protos.TcpStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TcpStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TcpStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TcpStatistics.class, org.apache.mesos.v1.Protos.TcpStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TcpStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); rtoAlgorithm_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); rtoMin_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); rtoMax_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); maxConn_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); activeOpens_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); passiveOpens_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); attemptFails_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); estabResets_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); currEstab_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); inSegs_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); outSegs_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); retransSegs_ = 0L; bitField0_ = (bitField0_ & ~0x00000800); inErrs_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); outRsts_ = 0L; bitField0_ = (bitField0_ & ~0x00002000); inCsumErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00004000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TcpStatistics_descriptor; } public org.apache.mesos.v1.Protos.TcpStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TcpStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TcpStatistics build() { org.apache.mesos.v1.Protos.TcpStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TcpStatistics buildPartial() { org.apache.mesos.v1.Protos.TcpStatistics result = new org.apache.mesos.v1.Protos.TcpStatistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rtoAlgorithm_ = rtoAlgorithm_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.rtoMin_ = rtoMin_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.rtoMax_ = rtoMax_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.maxConn_ = maxConn_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.activeOpens_ = activeOpens_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.passiveOpens_ = passiveOpens_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.attemptFails_ = attemptFails_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.estabResets_ = estabResets_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.currEstab_ = currEstab_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.inSegs_ = inSegs_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.outSegs_ = outSegs_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.retransSegs_ = retransSegs_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.inErrs_ = inErrs_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.outRsts_ = outRsts_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.inCsumErrors_ = inCsumErrors_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TcpStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.TcpStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TcpStatistics other) { if (other == org.apache.mesos.v1.Protos.TcpStatistics.getDefaultInstance()) return this; if (other.hasRtoAlgorithm()) { setRtoAlgorithm(other.getRtoAlgorithm()); } if (other.hasRtoMin()) { setRtoMin(other.getRtoMin()); } if (other.hasRtoMax()) { setRtoMax(other.getRtoMax()); } if (other.hasMaxConn()) { setMaxConn(other.getMaxConn()); } if (other.hasActiveOpens()) { setActiveOpens(other.getActiveOpens()); } if (other.hasPassiveOpens()) { setPassiveOpens(other.getPassiveOpens()); } if (other.hasAttemptFails()) { setAttemptFails(other.getAttemptFails()); } if (other.hasEstabResets()) { setEstabResets(other.getEstabResets()); } if (other.hasCurrEstab()) { setCurrEstab(other.getCurrEstab()); } if (other.hasInSegs()) { setInSegs(other.getInSegs()); } if (other.hasOutSegs()) { setOutSegs(other.getOutSegs()); } if (other.hasRetransSegs()) { setRetransSegs(other.getRetransSegs()); } if (other.hasInErrs()) { setInErrs(other.getInErrs()); } if (other.hasOutRsts()) { setOutRsts(other.getOutRsts()); } if (other.hasInCsumErrors()) { setInCsumErrors(other.getInCsumErrors()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.TcpStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TcpStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long rtoAlgorithm_ ; /** * optional int64 RtoAlgorithm = 1; */ public boolean hasRtoAlgorithm() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 RtoAlgorithm = 1; */ public long getRtoAlgorithm() { return rtoAlgorithm_; } /** * optional int64 RtoAlgorithm = 1; */ public Builder setRtoAlgorithm(long value) { bitField0_ |= 0x00000001; rtoAlgorithm_ = value; onChanged(); return this; } /** * optional int64 RtoAlgorithm = 1; */ public Builder clearRtoAlgorithm() { bitField0_ = (bitField0_ & ~0x00000001); rtoAlgorithm_ = 0L; onChanged(); return this; } private long rtoMin_ ; /** * optional int64 RtoMin = 2; */ public boolean hasRtoMin() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 RtoMin = 2; */ public long getRtoMin() { return rtoMin_; } /** * optional int64 RtoMin = 2; */ public Builder setRtoMin(long value) { bitField0_ |= 0x00000002; rtoMin_ = value; onChanged(); return this; } /** * optional int64 RtoMin = 2; */ public Builder clearRtoMin() { bitField0_ = (bitField0_ & ~0x00000002); rtoMin_ = 0L; onChanged(); return this; } private long rtoMax_ ; /** * optional int64 RtoMax = 3; */ public boolean hasRtoMax() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 RtoMax = 3; */ public long getRtoMax() { return rtoMax_; } /** * optional int64 RtoMax = 3; */ public Builder setRtoMax(long value) { bitField0_ |= 0x00000004; rtoMax_ = value; onChanged(); return this; } /** * optional int64 RtoMax = 3; */ public Builder clearRtoMax() { bitField0_ = (bitField0_ & ~0x00000004); rtoMax_ = 0L; onChanged(); return this; } private long maxConn_ ; /** * optional int64 MaxConn = 4; */ public boolean hasMaxConn() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 MaxConn = 4; */ public long getMaxConn() { return maxConn_; } /** * optional int64 MaxConn = 4; */ public Builder setMaxConn(long value) { bitField0_ |= 0x00000008; maxConn_ = value; onChanged(); return this; } /** * optional int64 MaxConn = 4; */ public Builder clearMaxConn() { bitField0_ = (bitField0_ & ~0x00000008); maxConn_ = 0L; onChanged(); return this; } private long activeOpens_ ; /** * optional int64 ActiveOpens = 5; */ public boolean hasActiveOpens() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 ActiveOpens = 5; */ public long getActiveOpens() { return activeOpens_; } /** * optional int64 ActiveOpens = 5; */ public Builder setActiveOpens(long value) { bitField0_ |= 0x00000010; activeOpens_ = value; onChanged(); return this; } /** * optional int64 ActiveOpens = 5; */ public Builder clearActiveOpens() { bitField0_ = (bitField0_ & ~0x00000010); activeOpens_ = 0L; onChanged(); return this; } private long passiveOpens_ ; /** * optional int64 PassiveOpens = 6; */ public boolean hasPassiveOpens() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 PassiveOpens = 6; */ public long getPassiveOpens() { return passiveOpens_; } /** * optional int64 PassiveOpens = 6; */ public Builder setPassiveOpens(long value) { bitField0_ |= 0x00000020; passiveOpens_ = value; onChanged(); return this; } /** * optional int64 PassiveOpens = 6; */ public Builder clearPassiveOpens() { bitField0_ = (bitField0_ & ~0x00000020); passiveOpens_ = 0L; onChanged(); return this; } private long attemptFails_ ; /** * optional int64 AttemptFails = 7; */ public boolean hasAttemptFails() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 AttemptFails = 7; */ public long getAttemptFails() { return attemptFails_; } /** * optional int64 AttemptFails = 7; */ public Builder setAttemptFails(long value) { bitField0_ |= 0x00000040; attemptFails_ = value; onChanged(); return this; } /** * optional int64 AttemptFails = 7; */ public Builder clearAttemptFails() { bitField0_ = (bitField0_ & ~0x00000040); attemptFails_ = 0L; onChanged(); return this; } private long estabResets_ ; /** * optional int64 EstabResets = 8; */ public boolean hasEstabResets() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 EstabResets = 8; */ public long getEstabResets() { return estabResets_; } /** * optional int64 EstabResets = 8; */ public Builder setEstabResets(long value) { bitField0_ |= 0x00000080; estabResets_ = value; onChanged(); return this; } /** * optional int64 EstabResets = 8; */ public Builder clearEstabResets() { bitField0_ = (bitField0_ & ~0x00000080); estabResets_ = 0L; onChanged(); return this; } private long currEstab_ ; /** * optional int64 CurrEstab = 9; */ public boolean hasCurrEstab() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int64 CurrEstab = 9; */ public long getCurrEstab() { return currEstab_; } /** * optional int64 CurrEstab = 9; */ public Builder setCurrEstab(long value) { bitField0_ |= 0x00000100; currEstab_ = value; onChanged(); return this; } /** * optional int64 CurrEstab = 9; */ public Builder clearCurrEstab() { bitField0_ = (bitField0_ & ~0x00000100); currEstab_ = 0L; onChanged(); return this; } private long inSegs_ ; /** * optional int64 InSegs = 10; */ public boolean hasInSegs() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 InSegs = 10; */ public long getInSegs() { return inSegs_; } /** * optional int64 InSegs = 10; */ public Builder setInSegs(long value) { bitField0_ |= 0x00000200; inSegs_ = value; onChanged(); return this; } /** * optional int64 InSegs = 10; */ public Builder clearInSegs() { bitField0_ = (bitField0_ & ~0x00000200); inSegs_ = 0L; onChanged(); return this; } private long outSegs_ ; /** * optional int64 OutSegs = 11; */ public boolean hasOutSegs() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 OutSegs = 11; */ public long getOutSegs() { return outSegs_; } /** * optional int64 OutSegs = 11; */ public Builder setOutSegs(long value) { bitField0_ |= 0x00000400; outSegs_ = value; onChanged(); return this; } /** * optional int64 OutSegs = 11; */ public Builder clearOutSegs() { bitField0_ = (bitField0_ & ~0x00000400); outSegs_ = 0L; onChanged(); return this; } private long retransSegs_ ; /** * optional int64 RetransSegs = 12; */ public boolean hasRetransSegs() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int64 RetransSegs = 12; */ public long getRetransSegs() { return retransSegs_; } /** * optional int64 RetransSegs = 12; */ public Builder setRetransSegs(long value) { bitField0_ |= 0x00000800; retransSegs_ = value; onChanged(); return this; } /** * optional int64 RetransSegs = 12; */ public Builder clearRetransSegs() { bitField0_ = (bitField0_ & ~0x00000800); retransSegs_ = 0L; onChanged(); return this; } private long inErrs_ ; /** * optional int64 InErrs = 13; */ public boolean hasInErrs() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int64 InErrs = 13; */ public long getInErrs() { return inErrs_; } /** * optional int64 InErrs = 13; */ public Builder setInErrs(long value) { bitField0_ |= 0x00001000; inErrs_ = value; onChanged(); return this; } /** * optional int64 InErrs = 13; */ public Builder clearInErrs() { bitField0_ = (bitField0_ & ~0x00001000); inErrs_ = 0L; onChanged(); return this; } private long outRsts_ ; /** * optional int64 OutRsts = 14; */ public boolean hasOutRsts() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 OutRsts = 14; */ public long getOutRsts() { return outRsts_; } /** * optional int64 OutRsts = 14; */ public Builder setOutRsts(long value) { bitField0_ |= 0x00002000; outRsts_ = value; onChanged(); return this; } /** * optional int64 OutRsts = 14; */ public Builder clearOutRsts() { bitField0_ = (bitField0_ & ~0x00002000); outRsts_ = 0L; onChanged(); return this; } private long inCsumErrors_ ; /** * optional int64 InCsumErrors = 15; */ public boolean hasInCsumErrors() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int64 InCsumErrors = 15; */ public long getInCsumErrors() { return inCsumErrors_; } /** * optional int64 InCsumErrors = 15; */ public Builder setInCsumErrors(long value) { bitField0_ |= 0x00004000; inCsumErrors_ = value; onChanged(); return this; } /** * optional int64 InCsumErrors = 15; */ public Builder clearInCsumErrors() { bitField0_ = (bitField0_ & ~0x00004000); inCsumErrors_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TcpStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.TcpStatistics) private static final org.apache.mesos.v1.Protos.TcpStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TcpStatistics(); } public static org.apache.mesos.v1.Protos.TcpStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TcpStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TcpStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TcpStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UdpStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.UdpStatistics) com.google.protobuf.MessageOrBuilder { /** * optional int64 InDatagrams = 1; */ boolean hasInDatagrams(); /** * optional int64 InDatagrams = 1; */ long getInDatagrams(); /** * optional int64 NoPorts = 2; */ boolean hasNoPorts(); /** * optional int64 NoPorts = 2; */ long getNoPorts(); /** * optional int64 InErrors = 3; */ boolean hasInErrors(); /** * optional int64 InErrors = 3; */ long getInErrors(); /** * optional int64 OutDatagrams = 4; */ boolean hasOutDatagrams(); /** * optional int64 OutDatagrams = 4; */ long getOutDatagrams(); /** * optional int64 RcvbufErrors = 5; */ boolean hasRcvbufErrors(); /** * optional int64 RcvbufErrors = 5; */ long getRcvbufErrors(); /** * optional int64 SndbufErrors = 6; */ boolean hasSndbufErrors(); /** * optional int64 SndbufErrors = 6; */ long getSndbufErrors(); /** * optional int64 InCsumErrors = 7; */ boolean hasInCsumErrors(); /** * optional int64 InCsumErrors = 7; */ long getInCsumErrors(); /** * optional int64 IgnoredMulti = 8; */ boolean hasIgnoredMulti(); /** * optional int64 IgnoredMulti = 8; */ long getIgnoredMulti(); } /** * Protobuf type {@code mesos.v1.UdpStatistics} */ public static final class UdpStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.UdpStatistics) UdpStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use UdpStatistics.newBuilder() to construct. private UdpStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UdpStatistics() { inDatagrams_ = 0L; noPorts_ = 0L; inErrors_ = 0L; outDatagrams_ = 0L; rcvbufErrors_ = 0L; sndbufErrors_ = 0L; inCsumErrors_ = 0L; ignoredMulti_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UdpStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; inDatagrams_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; noPorts_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; inErrors_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; outDatagrams_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; rcvbufErrors_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000020; sndbufErrors_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000040; inCsumErrors_ = input.readInt64(); break; } case 64: { bitField0_ |= 0x00000080; ignoredMulti_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UdpStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UdpStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.UdpStatistics.class, org.apache.mesos.v1.Protos.UdpStatistics.Builder.class); } private int bitField0_; public static final int INDATAGRAMS_FIELD_NUMBER = 1; private long inDatagrams_; /** * optional int64 InDatagrams = 1; */ public boolean hasInDatagrams() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 InDatagrams = 1; */ public long getInDatagrams() { return inDatagrams_; } public static final int NOPORTS_FIELD_NUMBER = 2; private long noPorts_; /** * optional int64 NoPorts = 2; */ public boolean hasNoPorts() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 NoPorts = 2; */ public long getNoPorts() { return noPorts_; } public static final int INERRORS_FIELD_NUMBER = 3; private long inErrors_; /** * optional int64 InErrors = 3; */ public boolean hasInErrors() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 InErrors = 3; */ public long getInErrors() { return inErrors_; } public static final int OUTDATAGRAMS_FIELD_NUMBER = 4; private long outDatagrams_; /** * optional int64 OutDatagrams = 4; */ public boolean hasOutDatagrams() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 OutDatagrams = 4; */ public long getOutDatagrams() { return outDatagrams_; } public static final int RCVBUFERRORS_FIELD_NUMBER = 5; private long rcvbufErrors_; /** * optional int64 RcvbufErrors = 5; */ public boolean hasRcvbufErrors() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 RcvbufErrors = 5; */ public long getRcvbufErrors() { return rcvbufErrors_; } public static final int SNDBUFERRORS_FIELD_NUMBER = 6; private long sndbufErrors_; /** * optional int64 SndbufErrors = 6; */ public boolean hasSndbufErrors() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 SndbufErrors = 6; */ public long getSndbufErrors() { return sndbufErrors_; } public static final int INCSUMERRORS_FIELD_NUMBER = 7; private long inCsumErrors_; /** * optional int64 InCsumErrors = 7; */ public boolean hasInCsumErrors() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 InCsumErrors = 7; */ public long getInCsumErrors() { return inCsumErrors_; } public static final int IGNOREDMULTI_FIELD_NUMBER = 8; private long ignoredMulti_; /** * optional int64 IgnoredMulti = 8; */ public boolean hasIgnoredMulti() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 IgnoredMulti = 8; */ public long getIgnoredMulti() { return ignoredMulti_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, inDatagrams_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, noPorts_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, inErrors_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, outDatagrams_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, rcvbufErrors_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, sndbufErrors_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, inCsumErrors_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt64(8, ignoredMulti_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, inDatagrams_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, noPorts_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, inErrors_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, outDatagrams_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, rcvbufErrors_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, sndbufErrors_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, inCsumErrors_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, ignoredMulti_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.UdpStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.UdpStatistics other = (org.apache.mesos.v1.Protos.UdpStatistics) obj; boolean result = true; result = result && (hasInDatagrams() == other.hasInDatagrams()); if (hasInDatagrams()) { result = result && (getInDatagrams() == other.getInDatagrams()); } result = result && (hasNoPorts() == other.hasNoPorts()); if (hasNoPorts()) { result = result && (getNoPorts() == other.getNoPorts()); } result = result && (hasInErrors() == other.hasInErrors()); if (hasInErrors()) { result = result && (getInErrors() == other.getInErrors()); } result = result && (hasOutDatagrams() == other.hasOutDatagrams()); if (hasOutDatagrams()) { result = result && (getOutDatagrams() == other.getOutDatagrams()); } result = result && (hasRcvbufErrors() == other.hasRcvbufErrors()); if (hasRcvbufErrors()) { result = result && (getRcvbufErrors() == other.getRcvbufErrors()); } result = result && (hasSndbufErrors() == other.hasSndbufErrors()); if (hasSndbufErrors()) { result = result && (getSndbufErrors() == other.getSndbufErrors()); } result = result && (hasInCsumErrors() == other.hasInCsumErrors()); if (hasInCsumErrors()) { result = result && (getInCsumErrors() == other.getInCsumErrors()); } result = result && (hasIgnoredMulti() == other.hasIgnoredMulti()); if (hasIgnoredMulti()) { result = result && (getIgnoredMulti() == other.getIgnoredMulti()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInDatagrams()) { hash = (37 * hash) + INDATAGRAMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInDatagrams()); } if (hasNoPorts()) { hash = (37 * hash) + NOPORTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNoPorts()); } if (hasInErrors()) { hash = (37 * hash) + INERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInErrors()); } if (hasOutDatagrams()) { hash = (37 * hash) + OUTDATAGRAMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOutDatagrams()); } if (hasRcvbufErrors()) { hash = (37 * hash) + RCVBUFERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRcvbufErrors()); } if (hasSndbufErrors()) { hash = (37 * hash) + SNDBUFERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSndbufErrors()); } if (hasInCsumErrors()) { hash = (37 * hash) + INCSUMERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInCsumErrors()); } if (hasIgnoredMulti()) { hash = (37 * hash) + IGNOREDMULTI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIgnoredMulti()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.UdpStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.UdpStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.UdpStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.UdpStatistics 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.Protos.UdpStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.UdpStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.UdpStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.UdpStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.UdpStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.UdpStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.UdpStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.UdpStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.UdpStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.UdpStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.UdpStatistics) org.apache.mesos.v1.Protos.UdpStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UdpStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UdpStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.UdpStatistics.class, org.apache.mesos.v1.Protos.UdpStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.UdpStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); inDatagrams_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); noPorts_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); inErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); outDatagrams_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); rcvbufErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); sndbufErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); inCsumErrors_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); ignoredMulti_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UdpStatistics_descriptor; } public org.apache.mesos.v1.Protos.UdpStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.UdpStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.UdpStatistics build() { org.apache.mesos.v1.Protos.UdpStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.UdpStatistics buildPartial() { org.apache.mesos.v1.Protos.UdpStatistics result = new org.apache.mesos.v1.Protos.UdpStatistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.inDatagrams_ = inDatagrams_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.noPorts_ = noPorts_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.inErrors_ = inErrors_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.outDatagrams_ = outDatagrams_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.rcvbufErrors_ = rcvbufErrors_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.sndbufErrors_ = sndbufErrors_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.inCsumErrors_ = inCsumErrors_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.ignoredMulti_ = ignoredMulti_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.UdpStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.UdpStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.UdpStatistics other) { if (other == org.apache.mesos.v1.Protos.UdpStatistics.getDefaultInstance()) return this; if (other.hasInDatagrams()) { setInDatagrams(other.getInDatagrams()); } if (other.hasNoPorts()) { setNoPorts(other.getNoPorts()); } if (other.hasInErrors()) { setInErrors(other.getInErrors()); } if (other.hasOutDatagrams()) { setOutDatagrams(other.getOutDatagrams()); } if (other.hasRcvbufErrors()) { setRcvbufErrors(other.getRcvbufErrors()); } if (other.hasSndbufErrors()) { setSndbufErrors(other.getSndbufErrors()); } if (other.hasInCsumErrors()) { setInCsumErrors(other.getInCsumErrors()); } if (other.hasIgnoredMulti()) { setIgnoredMulti(other.getIgnoredMulti()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.UdpStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.UdpStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long inDatagrams_ ; /** * optional int64 InDatagrams = 1; */ public boolean hasInDatagrams() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 InDatagrams = 1; */ public long getInDatagrams() { return inDatagrams_; } /** * optional int64 InDatagrams = 1; */ public Builder setInDatagrams(long value) { bitField0_ |= 0x00000001; inDatagrams_ = value; onChanged(); return this; } /** * optional int64 InDatagrams = 1; */ public Builder clearInDatagrams() { bitField0_ = (bitField0_ & ~0x00000001); inDatagrams_ = 0L; onChanged(); return this; } private long noPorts_ ; /** * optional int64 NoPorts = 2; */ public boolean hasNoPorts() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 NoPorts = 2; */ public long getNoPorts() { return noPorts_; } /** * optional int64 NoPorts = 2; */ public Builder setNoPorts(long value) { bitField0_ |= 0x00000002; noPorts_ = value; onChanged(); return this; } /** * optional int64 NoPorts = 2; */ public Builder clearNoPorts() { bitField0_ = (bitField0_ & ~0x00000002); noPorts_ = 0L; onChanged(); return this; } private long inErrors_ ; /** * optional int64 InErrors = 3; */ public boolean hasInErrors() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 InErrors = 3; */ public long getInErrors() { return inErrors_; } /** * optional int64 InErrors = 3; */ public Builder setInErrors(long value) { bitField0_ |= 0x00000004; inErrors_ = value; onChanged(); return this; } /** * optional int64 InErrors = 3; */ public Builder clearInErrors() { bitField0_ = (bitField0_ & ~0x00000004); inErrors_ = 0L; onChanged(); return this; } private long outDatagrams_ ; /** * optional int64 OutDatagrams = 4; */ public boolean hasOutDatagrams() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 OutDatagrams = 4; */ public long getOutDatagrams() { return outDatagrams_; } /** * optional int64 OutDatagrams = 4; */ public Builder setOutDatagrams(long value) { bitField0_ |= 0x00000008; outDatagrams_ = value; onChanged(); return this; } /** * optional int64 OutDatagrams = 4; */ public Builder clearOutDatagrams() { bitField0_ = (bitField0_ & ~0x00000008); outDatagrams_ = 0L; onChanged(); return this; } private long rcvbufErrors_ ; /** * optional int64 RcvbufErrors = 5; */ public boolean hasRcvbufErrors() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 RcvbufErrors = 5; */ public long getRcvbufErrors() { return rcvbufErrors_; } /** * optional int64 RcvbufErrors = 5; */ public Builder setRcvbufErrors(long value) { bitField0_ |= 0x00000010; rcvbufErrors_ = value; onChanged(); return this; } /** * optional int64 RcvbufErrors = 5; */ public Builder clearRcvbufErrors() { bitField0_ = (bitField0_ & ~0x00000010); rcvbufErrors_ = 0L; onChanged(); return this; } private long sndbufErrors_ ; /** * optional int64 SndbufErrors = 6; */ public boolean hasSndbufErrors() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 SndbufErrors = 6; */ public long getSndbufErrors() { return sndbufErrors_; } /** * optional int64 SndbufErrors = 6; */ public Builder setSndbufErrors(long value) { bitField0_ |= 0x00000020; sndbufErrors_ = value; onChanged(); return this; } /** * optional int64 SndbufErrors = 6; */ public Builder clearSndbufErrors() { bitField0_ = (bitField0_ & ~0x00000020); sndbufErrors_ = 0L; onChanged(); return this; } private long inCsumErrors_ ; /** * optional int64 InCsumErrors = 7; */ public boolean hasInCsumErrors() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 InCsumErrors = 7; */ public long getInCsumErrors() { return inCsumErrors_; } /** * optional int64 InCsumErrors = 7; */ public Builder setInCsumErrors(long value) { bitField0_ |= 0x00000040; inCsumErrors_ = value; onChanged(); return this; } /** * optional int64 InCsumErrors = 7; */ public Builder clearInCsumErrors() { bitField0_ = (bitField0_ & ~0x00000040); inCsumErrors_ = 0L; onChanged(); return this; } private long ignoredMulti_ ; /** * optional int64 IgnoredMulti = 8; */ public boolean hasIgnoredMulti() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 IgnoredMulti = 8; */ public long getIgnoredMulti() { return ignoredMulti_; } /** * optional int64 IgnoredMulti = 8; */ public Builder setIgnoredMulti(long value) { bitField0_ |= 0x00000080; ignoredMulti_ = value; onChanged(); return this; } /** * optional int64 IgnoredMulti = 8; */ public Builder clearIgnoredMulti() { bitField0_ = (bitField0_ & ~0x00000080); ignoredMulti_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.UdpStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.UdpStatistics) private static final org.apache.mesos.v1.Protos.UdpStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.UdpStatistics(); } public static org.apache.mesos.v1.Protos.UdpStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UdpStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UdpStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.UdpStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SNMPStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.SNMPStatistics) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ boolean hasIpStats(); /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ org.apache.mesos.v1.Protos.IpStatistics getIpStats(); /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ org.apache.mesos.v1.Protos.IpStatisticsOrBuilder getIpStatsOrBuilder(); /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ boolean hasIcmpStats(); /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ org.apache.mesos.v1.Protos.IcmpStatistics getIcmpStats(); /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ org.apache.mesos.v1.Protos.IcmpStatisticsOrBuilder getIcmpStatsOrBuilder(); /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ boolean hasTcpStats(); /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ org.apache.mesos.v1.Protos.TcpStatistics getTcpStats(); /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ org.apache.mesos.v1.Protos.TcpStatisticsOrBuilder getTcpStatsOrBuilder(); /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ boolean hasUdpStats(); /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ org.apache.mesos.v1.Protos.UdpStatistics getUdpStats(); /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ org.apache.mesos.v1.Protos.UdpStatisticsOrBuilder getUdpStatsOrBuilder(); } /** * Protobuf type {@code mesos.v1.SNMPStatistics} */ public static final class SNMPStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.SNMPStatistics) SNMPStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use SNMPStatistics.newBuilder() to construct. private SNMPStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SNMPStatistics() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SNMPStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.IpStatistics.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = ipStats_.toBuilder(); } ipStats_ = input.readMessage(org.apache.mesos.v1.Protos.IpStatistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ipStats_); ipStats_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.IcmpStatistics.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = icmpStats_.toBuilder(); } icmpStats_ = input.readMessage(org.apache.mesos.v1.Protos.IcmpStatistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(icmpStats_); icmpStats_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.TcpStatistics.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = tcpStats_.toBuilder(); } tcpStats_ = input.readMessage(org.apache.mesos.v1.Protos.TcpStatistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tcpStats_); tcpStats_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.Protos.UdpStatistics.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = udpStats_.toBuilder(); } udpStats_ = input.readMessage(org.apache.mesos.v1.Protos.UdpStatistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(udpStats_); udpStats_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SNMPStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SNMPStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.SNMPStatistics.class, org.apache.mesos.v1.Protos.SNMPStatistics.Builder.class); } private int bitField0_; public static final int IP_STATS_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.IpStatistics ipStats_; /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public boolean hasIpStats() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public org.apache.mesos.v1.Protos.IpStatistics getIpStats() { return ipStats_ == null ? org.apache.mesos.v1.Protos.IpStatistics.getDefaultInstance() : ipStats_; } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public org.apache.mesos.v1.Protos.IpStatisticsOrBuilder getIpStatsOrBuilder() { return ipStats_ == null ? org.apache.mesos.v1.Protos.IpStatistics.getDefaultInstance() : ipStats_; } public static final int ICMP_STATS_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.IcmpStatistics icmpStats_; /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public boolean hasIcmpStats() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public org.apache.mesos.v1.Protos.IcmpStatistics getIcmpStats() { return icmpStats_ == null ? org.apache.mesos.v1.Protos.IcmpStatistics.getDefaultInstance() : icmpStats_; } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public org.apache.mesos.v1.Protos.IcmpStatisticsOrBuilder getIcmpStatsOrBuilder() { return icmpStats_ == null ? org.apache.mesos.v1.Protos.IcmpStatistics.getDefaultInstance() : icmpStats_; } public static final int TCP_STATS_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.TcpStatistics tcpStats_; /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public boolean hasTcpStats() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public org.apache.mesos.v1.Protos.TcpStatistics getTcpStats() { return tcpStats_ == null ? org.apache.mesos.v1.Protos.TcpStatistics.getDefaultInstance() : tcpStats_; } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public org.apache.mesos.v1.Protos.TcpStatisticsOrBuilder getTcpStatsOrBuilder() { return tcpStats_ == null ? org.apache.mesos.v1.Protos.TcpStatistics.getDefaultInstance() : tcpStats_; } public static final int UDP_STATS_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.UdpStatistics udpStats_; /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public boolean hasUdpStats() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public org.apache.mesos.v1.Protos.UdpStatistics getUdpStats() { return udpStats_ == null ? org.apache.mesos.v1.Protos.UdpStatistics.getDefaultInstance() : udpStats_; } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public org.apache.mesos.v1.Protos.UdpStatisticsOrBuilder getUdpStatsOrBuilder() { return udpStats_ == null ? org.apache.mesos.v1.Protos.UdpStatistics.getDefaultInstance() : udpStats_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getIpStats()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getIcmpStats()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getTcpStats()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getUdpStats()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getIpStats()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getIcmpStats()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTcpStats()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUdpStats()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.SNMPStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.SNMPStatistics other = (org.apache.mesos.v1.Protos.SNMPStatistics) obj; boolean result = true; result = result && (hasIpStats() == other.hasIpStats()); if (hasIpStats()) { result = result && getIpStats() .equals(other.getIpStats()); } result = result && (hasIcmpStats() == other.hasIcmpStats()); if (hasIcmpStats()) { result = result && getIcmpStats() .equals(other.getIcmpStats()); } result = result && (hasTcpStats() == other.hasTcpStats()); if (hasTcpStats()) { result = result && getTcpStats() .equals(other.getTcpStats()); } result = result && (hasUdpStats() == other.hasUdpStats()); if (hasUdpStats()) { result = result && getUdpStats() .equals(other.getUdpStats()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIpStats()) { hash = (37 * hash) + IP_STATS_FIELD_NUMBER; hash = (53 * hash) + getIpStats().hashCode(); } if (hasIcmpStats()) { hash = (37 * hash) + ICMP_STATS_FIELD_NUMBER; hash = (53 * hash) + getIcmpStats().hashCode(); } if (hasTcpStats()) { hash = (37 * hash) + TCP_STATS_FIELD_NUMBER; hash = (53 * hash) + getTcpStats().hashCode(); } if (hasUdpStats()) { hash = (37 * hash) + UDP_STATS_FIELD_NUMBER; hash = (53 * hash) + getUdpStats().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.SNMPStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.SNMPStatistics 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.Protos.SNMPStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.SNMPStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.SNMPStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.SNMPStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.SNMPStatistics) org.apache.mesos.v1.Protos.SNMPStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SNMPStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SNMPStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.SNMPStatistics.class, org.apache.mesos.v1.Protos.SNMPStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.SNMPStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIpStatsFieldBuilder(); getIcmpStatsFieldBuilder(); getTcpStatsFieldBuilder(); getUdpStatsFieldBuilder(); } } public Builder clear() { super.clear(); if (ipStatsBuilder_ == null) { ipStats_ = null; } else { ipStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (icmpStatsBuilder_ == null) { icmpStats_ = null; } else { icmpStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (tcpStatsBuilder_ == null) { tcpStats_ = null; } else { tcpStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (udpStatsBuilder_ == null) { udpStats_ = null; } else { udpStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SNMPStatistics_descriptor; } public org.apache.mesos.v1.Protos.SNMPStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.SNMPStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.SNMPStatistics build() { org.apache.mesos.v1.Protos.SNMPStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.SNMPStatistics buildPartial() { org.apache.mesos.v1.Protos.SNMPStatistics result = new org.apache.mesos.v1.Protos.SNMPStatistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (ipStatsBuilder_ == null) { result.ipStats_ = ipStats_; } else { result.ipStats_ = ipStatsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (icmpStatsBuilder_ == null) { result.icmpStats_ = icmpStats_; } else { result.icmpStats_ = icmpStatsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (tcpStatsBuilder_ == null) { result.tcpStats_ = tcpStats_; } else { result.tcpStats_ = tcpStatsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (udpStatsBuilder_ == null) { result.udpStats_ = udpStats_; } else { result.udpStats_ = udpStatsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.SNMPStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.SNMPStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.SNMPStatistics other) { if (other == org.apache.mesos.v1.Protos.SNMPStatistics.getDefaultInstance()) return this; if (other.hasIpStats()) { mergeIpStats(other.getIpStats()); } if (other.hasIcmpStats()) { mergeIcmpStats(other.getIcmpStats()); } if (other.hasTcpStats()) { mergeTcpStats(other.getTcpStats()); } if (other.hasUdpStats()) { mergeUdpStats(other.getUdpStats()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.SNMPStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.SNMPStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.IpStatistics ipStats_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.IpStatistics, org.apache.mesos.v1.Protos.IpStatistics.Builder, org.apache.mesos.v1.Protos.IpStatisticsOrBuilder> ipStatsBuilder_; /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public boolean hasIpStats() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public org.apache.mesos.v1.Protos.IpStatistics getIpStats() { if (ipStatsBuilder_ == null) { return ipStats_ == null ? org.apache.mesos.v1.Protos.IpStatistics.getDefaultInstance() : ipStats_; } else { return ipStatsBuilder_.getMessage(); } } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public Builder setIpStats(org.apache.mesos.v1.Protos.IpStatistics value) { if (ipStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ipStats_ = value; onChanged(); } else { ipStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public Builder setIpStats( org.apache.mesos.v1.Protos.IpStatistics.Builder builderForValue) { if (ipStatsBuilder_ == null) { ipStats_ = builderForValue.build(); onChanged(); } else { ipStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public Builder mergeIpStats(org.apache.mesos.v1.Protos.IpStatistics value) { if (ipStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && ipStats_ != null && ipStats_ != org.apache.mesos.v1.Protos.IpStatistics.getDefaultInstance()) { ipStats_ = org.apache.mesos.v1.Protos.IpStatistics.newBuilder(ipStats_).mergeFrom(value).buildPartial(); } else { ipStats_ = value; } onChanged(); } else { ipStatsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public Builder clearIpStats() { if (ipStatsBuilder_ == null) { ipStats_ = null; onChanged(); } else { ipStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public org.apache.mesos.v1.Protos.IpStatistics.Builder getIpStatsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIpStatsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ public org.apache.mesos.v1.Protos.IpStatisticsOrBuilder getIpStatsOrBuilder() { if (ipStatsBuilder_ != null) { return ipStatsBuilder_.getMessageOrBuilder(); } else { return ipStats_ == null ? org.apache.mesos.v1.Protos.IpStatistics.getDefaultInstance() : ipStats_; } } /** * optional .mesos.v1.IpStatistics ip_stats = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.IpStatistics, org.apache.mesos.v1.Protos.IpStatistics.Builder, org.apache.mesos.v1.Protos.IpStatisticsOrBuilder> getIpStatsFieldBuilder() { if (ipStatsBuilder_ == null) { ipStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.IpStatistics, org.apache.mesos.v1.Protos.IpStatistics.Builder, org.apache.mesos.v1.Protos.IpStatisticsOrBuilder>( getIpStats(), getParentForChildren(), isClean()); ipStats_ = null; } return ipStatsBuilder_; } private org.apache.mesos.v1.Protos.IcmpStatistics icmpStats_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.IcmpStatistics, org.apache.mesos.v1.Protos.IcmpStatistics.Builder, org.apache.mesos.v1.Protos.IcmpStatisticsOrBuilder> icmpStatsBuilder_; /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public boolean hasIcmpStats() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public org.apache.mesos.v1.Protos.IcmpStatistics getIcmpStats() { if (icmpStatsBuilder_ == null) { return icmpStats_ == null ? org.apache.mesos.v1.Protos.IcmpStatistics.getDefaultInstance() : icmpStats_; } else { return icmpStatsBuilder_.getMessage(); } } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public Builder setIcmpStats(org.apache.mesos.v1.Protos.IcmpStatistics value) { if (icmpStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } icmpStats_ = value; onChanged(); } else { icmpStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public Builder setIcmpStats( org.apache.mesos.v1.Protos.IcmpStatistics.Builder builderForValue) { if (icmpStatsBuilder_ == null) { icmpStats_ = builderForValue.build(); onChanged(); } else { icmpStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public Builder mergeIcmpStats(org.apache.mesos.v1.Protos.IcmpStatistics value) { if (icmpStatsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && icmpStats_ != null && icmpStats_ != org.apache.mesos.v1.Protos.IcmpStatistics.getDefaultInstance()) { icmpStats_ = org.apache.mesos.v1.Protos.IcmpStatistics.newBuilder(icmpStats_).mergeFrom(value).buildPartial(); } else { icmpStats_ = value; } onChanged(); } else { icmpStatsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public Builder clearIcmpStats() { if (icmpStatsBuilder_ == null) { icmpStats_ = null; onChanged(); } else { icmpStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public org.apache.mesos.v1.Protos.IcmpStatistics.Builder getIcmpStatsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getIcmpStatsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ public org.apache.mesos.v1.Protos.IcmpStatisticsOrBuilder getIcmpStatsOrBuilder() { if (icmpStatsBuilder_ != null) { return icmpStatsBuilder_.getMessageOrBuilder(); } else { return icmpStats_ == null ? org.apache.mesos.v1.Protos.IcmpStatistics.getDefaultInstance() : icmpStats_; } } /** * optional .mesos.v1.IcmpStatistics icmp_stats = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.IcmpStatistics, org.apache.mesos.v1.Protos.IcmpStatistics.Builder, org.apache.mesos.v1.Protos.IcmpStatisticsOrBuilder> getIcmpStatsFieldBuilder() { if (icmpStatsBuilder_ == null) { icmpStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.IcmpStatistics, org.apache.mesos.v1.Protos.IcmpStatistics.Builder, org.apache.mesos.v1.Protos.IcmpStatisticsOrBuilder>( getIcmpStats(), getParentForChildren(), isClean()); icmpStats_ = null; } return icmpStatsBuilder_; } private org.apache.mesos.v1.Protos.TcpStatistics tcpStats_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TcpStatistics, org.apache.mesos.v1.Protos.TcpStatistics.Builder, org.apache.mesos.v1.Protos.TcpStatisticsOrBuilder> tcpStatsBuilder_; /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public boolean hasTcpStats() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public org.apache.mesos.v1.Protos.TcpStatistics getTcpStats() { if (tcpStatsBuilder_ == null) { return tcpStats_ == null ? org.apache.mesos.v1.Protos.TcpStatistics.getDefaultInstance() : tcpStats_; } else { return tcpStatsBuilder_.getMessage(); } } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public Builder setTcpStats(org.apache.mesos.v1.Protos.TcpStatistics value) { if (tcpStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tcpStats_ = value; onChanged(); } else { tcpStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public Builder setTcpStats( org.apache.mesos.v1.Protos.TcpStatistics.Builder builderForValue) { if (tcpStatsBuilder_ == null) { tcpStats_ = builderForValue.build(); onChanged(); } else { tcpStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public Builder mergeTcpStats(org.apache.mesos.v1.Protos.TcpStatistics value) { if (tcpStatsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && tcpStats_ != null && tcpStats_ != org.apache.mesos.v1.Protos.TcpStatistics.getDefaultInstance()) { tcpStats_ = org.apache.mesos.v1.Protos.TcpStatistics.newBuilder(tcpStats_).mergeFrom(value).buildPartial(); } else { tcpStats_ = value; } onChanged(); } else { tcpStatsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public Builder clearTcpStats() { if (tcpStatsBuilder_ == null) { tcpStats_ = null; onChanged(); } else { tcpStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public org.apache.mesos.v1.Protos.TcpStatistics.Builder getTcpStatsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTcpStatsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ public org.apache.mesos.v1.Protos.TcpStatisticsOrBuilder getTcpStatsOrBuilder() { if (tcpStatsBuilder_ != null) { return tcpStatsBuilder_.getMessageOrBuilder(); } else { return tcpStats_ == null ? org.apache.mesos.v1.Protos.TcpStatistics.getDefaultInstance() : tcpStats_; } } /** * optional .mesos.v1.TcpStatistics tcp_stats = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TcpStatistics, org.apache.mesos.v1.Protos.TcpStatistics.Builder, org.apache.mesos.v1.Protos.TcpStatisticsOrBuilder> getTcpStatsFieldBuilder() { if (tcpStatsBuilder_ == null) { tcpStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TcpStatistics, org.apache.mesos.v1.Protos.TcpStatistics.Builder, org.apache.mesos.v1.Protos.TcpStatisticsOrBuilder>( getTcpStats(), getParentForChildren(), isClean()); tcpStats_ = null; } return tcpStatsBuilder_; } private org.apache.mesos.v1.Protos.UdpStatistics udpStats_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UdpStatistics, org.apache.mesos.v1.Protos.UdpStatistics.Builder, org.apache.mesos.v1.Protos.UdpStatisticsOrBuilder> udpStatsBuilder_; /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public boolean hasUdpStats() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public org.apache.mesos.v1.Protos.UdpStatistics getUdpStats() { if (udpStatsBuilder_ == null) { return udpStats_ == null ? org.apache.mesos.v1.Protos.UdpStatistics.getDefaultInstance() : udpStats_; } else { return udpStatsBuilder_.getMessage(); } } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public Builder setUdpStats(org.apache.mesos.v1.Protos.UdpStatistics value) { if (udpStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } udpStats_ = value; onChanged(); } else { udpStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public Builder setUdpStats( org.apache.mesos.v1.Protos.UdpStatistics.Builder builderForValue) { if (udpStatsBuilder_ == null) { udpStats_ = builderForValue.build(); onChanged(); } else { udpStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public Builder mergeUdpStats(org.apache.mesos.v1.Protos.UdpStatistics value) { if (udpStatsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && udpStats_ != null && udpStats_ != org.apache.mesos.v1.Protos.UdpStatistics.getDefaultInstance()) { udpStats_ = org.apache.mesos.v1.Protos.UdpStatistics.newBuilder(udpStats_).mergeFrom(value).buildPartial(); } else { udpStats_ = value; } onChanged(); } else { udpStatsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public Builder clearUdpStats() { if (udpStatsBuilder_ == null) { udpStats_ = null; onChanged(); } else { udpStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public org.apache.mesos.v1.Protos.UdpStatistics.Builder getUdpStatsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getUdpStatsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ public org.apache.mesos.v1.Protos.UdpStatisticsOrBuilder getUdpStatsOrBuilder() { if (udpStatsBuilder_ != null) { return udpStatsBuilder_.getMessageOrBuilder(); } else { return udpStats_ == null ? org.apache.mesos.v1.Protos.UdpStatistics.getDefaultInstance() : udpStats_; } } /** * optional .mesos.v1.UdpStatistics udp_stats = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UdpStatistics, org.apache.mesos.v1.Protos.UdpStatistics.Builder, org.apache.mesos.v1.Protos.UdpStatisticsOrBuilder> getUdpStatsFieldBuilder() { if (udpStatsBuilder_ == null) { udpStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UdpStatistics, org.apache.mesos.v1.Protos.UdpStatistics.Builder, org.apache.mesos.v1.Protos.UdpStatisticsOrBuilder>( getUdpStats(), getParentForChildren(), isClean()); udpStats_ = null; } return udpStatsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.SNMPStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.SNMPStatistics) private static final org.apache.mesos.v1.Protos.SNMPStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.SNMPStatistics(); } public static org.apache.mesos.v1.Protos.SNMPStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SNMPStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SNMPStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.SNMPStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiskStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.DiskStatistics) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ boolean hasSource(); /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getSource(); /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder getSourceOrBuilder(); /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ boolean hasPersistence(); /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getPersistence(); /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder getPersistenceOrBuilder(); /** * optional uint64 limit_bytes = 3; */ boolean hasLimitBytes(); /** * optional uint64 limit_bytes = 3; */ long getLimitBytes(); /** * optional uint64 used_bytes = 4; */ boolean hasUsedBytes(); /** * optional uint64 used_bytes = 4; */ long getUsedBytes(); } /** * Protobuf type {@code mesos.v1.DiskStatistics} */ public static final class DiskStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.DiskStatistics) DiskStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use DiskStatistics.newBuilder() to construct. private DiskStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiskStatistics() { limitBytes_ = 0L; usedBytes_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiskStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = persistence_.toBuilder(); } persistence_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(persistence_); persistence_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 24: { bitField0_ |= 0x00000004; limitBytes_ = input.readUInt64(); break; } case 32: { bitField0_ |= 0x00000008; usedBytes_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DiskStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DiskStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DiskStatistics.class, org.apache.mesos.v1.Protos.DiskStatistics.Builder.class); } private int bitField0_; public static final int SOURCE_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Resource.DiskInfo.Source source_; /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public boolean hasSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getSource() { return source_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance() : source_; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder getSourceOrBuilder() { return source_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance() : source_; } public static final int PERSISTENCE_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence persistence_; /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public boolean hasPersistence() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getPersistence() { return persistence_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance() : persistence_; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder getPersistenceOrBuilder() { return persistence_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance() : persistence_; } public static final int LIMIT_BYTES_FIELD_NUMBER = 3; private long limitBytes_; /** * optional uint64 limit_bytes = 3; */ public boolean hasLimitBytes() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 limit_bytes = 3; */ public long getLimitBytes() { return limitBytes_; } public static final int USED_BYTES_FIELD_NUMBER = 4; private long usedBytes_; /** * optional uint64 used_bytes = 4; */ public boolean hasUsedBytes() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 used_bytes = 4; */ public long getUsedBytes() { return usedBytes_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasSource()) { if (!getSource().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasPersistence()) { if (!getPersistence().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getSource()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getPersistence()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, limitBytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, usedBytes_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSource()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPersistence()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, limitBytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, usedBytes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.DiskStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.DiskStatistics other = (org.apache.mesos.v1.Protos.DiskStatistics) obj; boolean result = true; result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource() .equals(other.getSource()); } result = result && (hasPersistence() == other.hasPersistence()); if (hasPersistence()) { result = result && getPersistence() .equals(other.getPersistence()); } result = result && (hasLimitBytes() == other.hasLimitBytes()); if (hasLimitBytes()) { result = result && (getLimitBytes() == other.getLimitBytes()); } result = result && (hasUsedBytes() == other.hasUsedBytes()); if (hasUsedBytes()) { result = result && (getUsedBytes() == other.getUsedBytes()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasPersistence()) { hash = (37 * hash) + PERSISTENCE_FIELD_NUMBER; hash = (53 * hash) + getPersistence().hashCode(); } if (hasLimitBytes()) { hash = (37 * hash) + LIMIT_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLimitBytes()); } if (hasUsedBytes()) { hash = (37 * hash) + USED_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUsedBytes()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.DiskStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DiskStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DiskStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DiskStatistics 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.Protos.DiskStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.DiskStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.DiskStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DiskStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DiskStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DiskStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.DiskStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.DiskStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.DiskStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.DiskStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.DiskStatistics) org.apache.mesos.v1.Protos.DiskStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DiskStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DiskStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.DiskStatistics.class, org.apache.mesos.v1.Protos.DiskStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.DiskStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSourceFieldBuilder(); getPersistenceFieldBuilder(); } } public Builder clear() { super.clear(); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (persistenceBuilder_ == null) { persistence_ = null; } else { persistenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); limitBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); usedBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_DiskStatistics_descriptor; } public org.apache.mesos.v1.Protos.DiskStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.DiskStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.DiskStatistics build() { org.apache.mesos.v1.Protos.DiskStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.DiskStatistics buildPartial() { org.apache.mesos.v1.Protos.DiskStatistics result = new org.apache.mesos.v1.Protos.DiskStatistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (persistenceBuilder_ == null) { result.persistence_ = persistence_; } else { result.persistence_ = persistenceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.limitBytes_ = limitBytes_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.usedBytes_ = usedBytes_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.DiskStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.DiskStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.DiskStatistics other) { if (other == org.apache.mesos.v1.Protos.DiskStatistics.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasPersistence()) { mergePersistence(other.getPersistence()); } if (other.hasLimitBytes()) { setLimitBytes(other.getLimitBytes()); } if (other.hasUsedBytes()) { setUsedBytes(other.getUsedBytes()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasSource()) { if (!getSource().isInitialized()) { return false; } } if (hasPersistence()) { if (!getPersistence().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.Protos.DiskStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.DiskStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Resource.DiskInfo.Source source_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder> sourceBuilder_; /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public boolean hasSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public Builder setSource(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public Builder setSource( org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public Builder mergeSource(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && source_ != null && source_ != org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance()) { source_ = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder getSourceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.getDefaultInstance() : source_; } } /** * optional .mesos.v1.Resource.DiskInfo.Source source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Source, org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.SourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence persistence_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence, org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder> persistenceBuilder_; /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public boolean hasPersistence() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence getPersistence() { if (persistenceBuilder_ == null) { return persistence_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance() : persistence_; } else { return persistenceBuilder_.getMessage(); } } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public Builder setPersistence(org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence value) { if (persistenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } persistence_ = value; onChanged(); } else { persistenceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public Builder setPersistence( org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder builderForValue) { if (persistenceBuilder_ == null) { persistence_ = builderForValue.build(); onChanged(); } else { persistenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public Builder mergePersistence(org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence value) { if (persistenceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && persistence_ != null && persistence_ != org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance()) { persistence_ = org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.newBuilder(persistence_).mergeFrom(value).buildPartial(); } else { persistence_ = value; } onChanged(); } else { persistenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public Builder clearPersistence() { if (persistenceBuilder_ == null) { persistence_ = null; onChanged(); } else { persistenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder getPersistenceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPersistenceFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder getPersistenceOrBuilder() { if (persistenceBuilder_ != null) { return persistenceBuilder_.getMessageOrBuilder(); } else { return persistence_ == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.getDefaultInstance() : persistence_; } } /** * optional .mesos.v1.Resource.DiskInfo.Persistence persistence = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence, org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder> getPersistenceFieldBuilder() { if (persistenceBuilder_ == null) { persistenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence, org.apache.mesos.v1.Protos.Resource.DiskInfo.Persistence.Builder, org.apache.mesos.v1.Protos.Resource.DiskInfo.PersistenceOrBuilder>( getPersistence(), getParentForChildren(), isClean()); persistence_ = null; } return persistenceBuilder_; } private long limitBytes_ ; /** * optional uint64 limit_bytes = 3; */ public boolean hasLimitBytes() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 limit_bytes = 3; */ public long getLimitBytes() { return limitBytes_; } /** * optional uint64 limit_bytes = 3; */ public Builder setLimitBytes(long value) { bitField0_ |= 0x00000004; limitBytes_ = value; onChanged(); return this; } /** * optional uint64 limit_bytes = 3; */ public Builder clearLimitBytes() { bitField0_ = (bitField0_ & ~0x00000004); limitBytes_ = 0L; onChanged(); return this; } private long usedBytes_ ; /** * optional uint64 used_bytes = 4; */ public boolean hasUsedBytes() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 used_bytes = 4; */ public long getUsedBytes() { return usedBytes_; } /** * optional uint64 used_bytes = 4; */ public Builder setUsedBytes(long value) { bitField0_ |= 0x00000008; usedBytes_ = value; onChanged(); return this; } /** * optional uint64 used_bytes = 4; */ public Builder clearUsedBytes() { bitField0_ = (bitField0_ & ~0x00000008); usedBytes_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.DiskStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.DiskStatistics) private static final org.apache.mesos.v1.Protos.DiskStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.DiskStatistics(); } public static org.apache.mesos.v1.Protos.DiskStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DiskStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiskStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.DiskStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ResourceStatistics) com.google.protobuf.MessageOrBuilder { /** *
     * Snapshot time, in seconds since the Epoch.
     * 
* * required double timestamp = 1; */ boolean hasTimestamp(); /** *
     * Snapshot time, in seconds since the Epoch.
     * 
* * required double timestamp = 1; */ double getTimestamp(); /** * optional uint32 processes = 30; */ boolean hasProcesses(); /** * optional uint32 processes = 30; */ int getProcesses(); /** * optional uint32 threads = 31; */ boolean hasThreads(); /** * optional uint32 threads = 31; */ int getThreads(); /** *
     * CPU Usage Information:
     * Total CPU time spent in user mode, and kernel mode.
     * 
* * optional double cpus_user_time_secs = 2; */ boolean hasCpusUserTimeSecs(); /** *
     * CPU Usage Information:
     * Total CPU time spent in user mode, and kernel mode.
     * 
* * optional double cpus_user_time_secs = 2; */ double getCpusUserTimeSecs(); /** * optional double cpus_system_time_secs = 3; */ boolean hasCpusSystemTimeSecs(); /** * optional double cpus_system_time_secs = 3; */ double getCpusSystemTimeSecs(); /** *
     * Number of CPUs allocated.
     * 
* * optional double cpus_limit = 4; */ boolean hasCpusLimit(); /** *
     * Number of CPUs allocated.
     * 
* * optional double cpus_limit = 4; */ double getCpusLimit(); /** *
     * cpu.stat on process throttling (for contention issues).
     * 
* * optional uint32 cpus_nr_periods = 7; */ boolean hasCpusNrPeriods(); /** *
     * cpu.stat on process throttling (for contention issues).
     * 
* * optional uint32 cpus_nr_periods = 7; */ int getCpusNrPeriods(); /** * optional uint32 cpus_nr_throttled = 8; */ boolean hasCpusNrThrottled(); /** * optional uint32 cpus_nr_throttled = 8; */ int getCpusNrThrottled(); /** * optional double cpus_throttled_time_secs = 9; */ boolean hasCpusThrottledTimeSecs(); /** * optional double cpus_throttled_time_secs = 9; */ double getCpusThrottledTimeSecs(); /** *
     * mem_total_bytes was added in 0.23.0 to represent the total memory
     * of a process in RAM (as opposed to in Swap). This was previously
     * reported as mem_rss_bytes, which was also changed in 0.23.0 to
     * represent only the anonymous memory usage, to keep in sync with
     * Linux kernel's (arguably erroneous) use of terminology.
     * 
* * optional uint64 mem_total_bytes = 36; */ boolean hasMemTotalBytes(); /** *
     * mem_total_bytes was added in 0.23.0 to represent the total memory
     * of a process in RAM (as opposed to in Swap). This was previously
     * reported as mem_rss_bytes, which was also changed in 0.23.0 to
     * represent only the anonymous memory usage, to keep in sync with
     * Linux kernel's (arguably erroneous) use of terminology.
     * 
* * optional uint64 mem_total_bytes = 36; */ long getMemTotalBytes(); /** *
     * Total memory + swap usage. This is set if swap is enabled.
     * 
* * optional uint64 mem_total_memsw_bytes = 37; */ boolean hasMemTotalMemswBytes(); /** *
     * Total memory + swap usage. This is set if swap is enabled.
     * 
* * optional uint64 mem_total_memsw_bytes = 37; */ long getMemTotalMemswBytes(); /** *
     * Hard memory limit for a container.
     * 
* * optional uint64 mem_limit_bytes = 6; */ boolean hasMemLimitBytes(); /** *
     * Hard memory limit for a container.
     * 
* * optional uint64 mem_limit_bytes = 6; */ long getMemLimitBytes(); /** *
     * Soft memory limit for a container.
     * 
* * optional uint64 mem_soft_limit_bytes = 38; */ boolean hasMemSoftLimitBytes(); /** *
     * Soft memory limit for a container.
     * 
* * optional uint64 mem_soft_limit_bytes = 38; */ long getMemSoftLimitBytes(); /** *
     * TODO(chzhcn) mem_file_bytes and mem_anon_bytes are deprecated in
     * 0.23.0 and will be removed in 0.24.0.
     * 
* * optional uint64 mem_file_bytes = 10; */ boolean hasMemFileBytes(); /** *
     * TODO(chzhcn) mem_file_bytes and mem_anon_bytes are deprecated in
     * 0.23.0 and will be removed in 0.24.0.
     * 
* * optional uint64 mem_file_bytes = 10; */ long getMemFileBytes(); /** * optional uint64 mem_anon_bytes = 11; */ boolean hasMemAnonBytes(); /** * optional uint64 mem_anon_bytes = 11; */ long getMemAnonBytes(); /** *
     * mem_cache_bytes is added in 0.23.0 to represent page cache usage.
     * 
* * optional uint64 mem_cache_bytes = 39; */ boolean hasMemCacheBytes(); /** *
     * mem_cache_bytes is added in 0.23.0 to represent page cache usage.
     * 
* * optional uint64 mem_cache_bytes = 39; */ long getMemCacheBytes(); /** *
     * Since 0.23.0, mem_rss_bytes is changed to represent only
     * anonymous memory usage. Note that neither its requiredness, type,
     * name nor numeric tag has been changed.
     * 
* * optional uint64 mem_rss_bytes = 5; */ boolean hasMemRssBytes(); /** *
     * Since 0.23.0, mem_rss_bytes is changed to represent only
     * anonymous memory usage. Note that neither its requiredness, type,
     * name nor numeric tag has been changed.
     * 
* * optional uint64 mem_rss_bytes = 5; */ long getMemRssBytes(); /** * optional uint64 mem_mapped_file_bytes = 12; */ boolean hasMemMappedFileBytes(); /** * optional uint64 mem_mapped_file_bytes = 12; */ long getMemMappedFileBytes(); /** *
     * This is only set if swap is enabled.
     * 
* * optional uint64 mem_swap_bytes = 40; */ boolean hasMemSwapBytes(); /** *
     * This is only set if swap is enabled.
     * 
* * optional uint64 mem_swap_bytes = 40; */ long getMemSwapBytes(); /** * optional uint64 mem_unevictable_bytes = 41; */ boolean hasMemUnevictableBytes(); /** * optional uint64 mem_unevictable_bytes = 41; */ long getMemUnevictableBytes(); /** *
     * Number of occurrences of different levels of memory pressure
     * events reported by memory cgroup. Pressure listening (re)starts
     * with these values set to 0 when agent (re)starts. See
     * https://www.kernel.org/doc/Documentation/cgroups/memory.txt for
     * more details.
     * 
* * optional uint64 mem_low_pressure_counter = 32; */ boolean hasMemLowPressureCounter(); /** *
     * Number of occurrences of different levels of memory pressure
     * events reported by memory cgroup. Pressure listening (re)starts
     * with these values set to 0 when agent (re)starts. See
     * https://www.kernel.org/doc/Documentation/cgroups/memory.txt for
     * more details.
     * 
* * optional uint64 mem_low_pressure_counter = 32; */ long getMemLowPressureCounter(); /** * optional uint64 mem_medium_pressure_counter = 33; */ boolean hasMemMediumPressureCounter(); /** * optional uint64 mem_medium_pressure_counter = 33; */ long getMemMediumPressureCounter(); /** * optional uint64 mem_critical_pressure_counter = 34; */ boolean hasMemCriticalPressureCounter(); /** * optional uint64 mem_critical_pressure_counter = 34; */ long getMemCriticalPressureCounter(); /** *
     * Disk Usage Information for executor working directory.
     * 
* * optional uint64 disk_limit_bytes = 26; */ boolean hasDiskLimitBytes(); /** *
     * Disk Usage Information for executor working directory.
     * 
* * optional uint64 disk_limit_bytes = 26; */ long getDiskLimitBytes(); /** * optional uint64 disk_used_bytes = 27; */ boolean hasDiskUsedBytes(); /** * optional uint64 disk_used_bytes = 27; */ long getDiskUsedBytes(); /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ java.util.List getDiskStatisticsList(); /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ org.apache.mesos.v1.Protos.DiskStatistics getDiskStatistics(int index); /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ int getDiskStatisticsCount(); /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ java.util.List getDiskStatisticsOrBuilderList(); /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ org.apache.mesos.v1.Protos.DiskStatisticsOrBuilder getDiskStatisticsOrBuilder( int index); /** *
     * Cgroups blkio statistics.
     * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ boolean hasBlkioStatistics(); /** *
     * Cgroups blkio statistics.
     * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics getBlkioStatistics(); /** *
     * Cgroups blkio statistics.
     * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.StatisticsOrBuilder getBlkioStatisticsOrBuilder(); /** *
     * Perf statistics.
     * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ boolean hasPerf(); /** *
     * Perf statistics.
     * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ org.apache.mesos.v1.Protos.PerfStatistics getPerf(); /** *
     * Perf statistics.
     * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ org.apache.mesos.v1.Protos.PerfStatisticsOrBuilder getPerfOrBuilder(); /** *
     * Network Usage Information:
     * 
* * optional uint64 net_rx_packets = 14; */ boolean hasNetRxPackets(); /** *
     * Network Usage Information:
     * 
* * optional uint64 net_rx_packets = 14; */ long getNetRxPackets(); /** * optional uint64 net_rx_bytes = 15; */ boolean hasNetRxBytes(); /** * optional uint64 net_rx_bytes = 15; */ long getNetRxBytes(); /** * optional uint64 net_rx_errors = 16; */ boolean hasNetRxErrors(); /** * optional uint64 net_rx_errors = 16; */ long getNetRxErrors(); /** * optional uint64 net_rx_dropped = 17; */ boolean hasNetRxDropped(); /** * optional uint64 net_rx_dropped = 17; */ long getNetRxDropped(); /** * optional uint64 net_tx_packets = 18; */ boolean hasNetTxPackets(); /** * optional uint64 net_tx_packets = 18; */ long getNetTxPackets(); /** * optional uint64 net_tx_bytes = 19; */ boolean hasNetTxBytes(); /** * optional uint64 net_tx_bytes = 19; */ long getNetTxBytes(); /** * optional uint64 net_tx_errors = 20; */ boolean hasNetTxErrors(); /** * optional uint64 net_tx_errors = 20; */ long getNetTxErrors(); /** * optional uint64 net_tx_dropped = 21; */ boolean hasNetTxDropped(); /** * optional uint64 net_tx_dropped = 21; */ long getNetTxDropped(); /** *
     * The kernel keeps track of RTT (round-trip time) for its TCP
     * sockets. RTT is a way to tell the latency of a container.
     * 
* * optional double net_tcp_rtt_microsecs_p50 = 22; */ boolean hasNetTcpRttMicrosecsP50(); /** *
     * The kernel keeps track of RTT (round-trip time) for its TCP
     * sockets. RTT is a way to tell the latency of a container.
     * 
* * optional double net_tcp_rtt_microsecs_p50 = 22; */ double getNetTcpRttMicrosecsP50(); /** * optional double net_tcp_rtt_microsecs_p90 = 23; */ boolean hasNetTcpRttMicrosecsP90(); /** * optional double net_tcp_rtt_microsecs_p90 = 23; */ double getNetTcpRttMicrosecsP90(); /** * optional double net_tcp_rtt_microsecs_p95 = 24; */ boolean hasNetTcpRttMicrosecsP95(); /** * optional double net_tcp_rtt_microsecs_p95 = 24; */ double getNetTcpRttMicrosecsP95(); /** * optional double net_tcp_rtt_microsecs_p99 = 25; */ boolean hasNetTcpRttMicrosecsP99(); /** * optional double net_tcp_rtt_microsecs_p99 = 25; */ double getNetTcpRttMicrosecsP99(); /** * optional double net_tcp_active_connections = 28; */ boolean hasNetTcpActiveConnections(); /** * optional double net_tcp_active_connections = 28; */ double getNetTcpActiveConnections(); /** * optional double net_tcp_time_wait_connections = 29; */ boolean hasNetTcpTimeWaitConnections(); /** * optional double net_tcp_time_wait_connections = 29; */ double getNetTcpTimeWaitConnections(); /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ java.util.List getNetTrafficControlStatisticsList(); /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ org.apache.mesos.v1.Protos.TrafficControlStatistics getNetTrafficControlStatistics(int index); /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ int getNetTrafficControlStatisticsCount(); /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ java.util.List getNetTrafficControlStatisticsOrBuilderList(); /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ org.apache.mesos.v1.Protos.TrafficControlStatisticsOrBuilder getNetTrafficControlStatisticsOrBuilder( int index); /** *
     * Network SNMP statistics for each container.
     * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ boolean hasNetSnmpStatistics(); /** *
     * Network SNMP statistics for each container.
     * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ org.apache.mesos.v1.Protos.SNMPStatistics getNetSnmpStatistics(); /** *
     * Network SNMP statistics for each container.
     * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ org.apache.mesos.v1.Protos.SNMPStatisticsOrBuilder getNetSnmpStatisticsOrBuilder(); } /** *
   **
   * A snapshot of resource usage statistics.
   * 
* * Protobuf type {@code mesos.v1.ResourceStatistics} */ public static final class ResourceStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ResourceStatistics) ResourceStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceStatistics.newBuilder() to construct. private ResourceStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceStatistics() { timestamp_ = 0D; processes_ = 0; threads_ = 0; cpusUserTimeSecs_ = 0D; cpusSystemTimeSecs_ = 0D; cpusLimit_ = 0D; cpusNrPeriods_ = 0; cpusNrThrottled_ = 0; cpusThrottledTimeSecs_ = 0D; memTotalBytes_ = 0L; memTotalMemswBytes_ = 0L; memLimitBytes_ = 0L; memSoftLimitBytes_ = 0L; memFileBytes_ = 0L; memAnonBytes_ = 0L; memCacheBytes_ = 0L; memRssBytes_ = 0L; memMappedFileBytes_ = 0L; memSwapBytes_ = 0L; memUnevictableBytes_ = 0L; memLowPressureCounter_ = 0L; memMediumPressureCounter_ = 0L; memCriticalPressureCounter_ = 0L; diskLimitBytes_ = 0L; diskUsedBytes_ = 0L; diskStatistics_ = java.util.Collections.emptyList(); netRxPackets_ = 0L; netRxBytes_ = 0L; netRxErrors_ = 0L; netRxDropped_ = 0L; netTxPackets_ = 0L; netTxBytes_ = 0L; netTxErrors_ = 0L; netTxDropped_ = 0L; netTcpRttMicrosecsP50_ = 0D; netTcpRttMicrosecsP90_ = 0D; netTcpRttMicrosecsP95_ = 0D; netTcpRttMicrosecsP99_ = 0D; netTcpActiveConnections_ = 0D; netTcpTimeWaitConnections_ = 0D; netTrafficControlStatistics_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; int mutable_bitField1_ = 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 9: { bitField0_ |= 0x00000001; timestamp_ = input.readDouble(); break; } case 17: { bitField0_ |= 0x00000008; cpusUserTimeSecs_ = input.readDouble(); break; } case 25: { bitField0_ |= 0x00000010; cpusSystemTimeSecs_ = input.readDouble(); break; } case 33: { bitField0_ |= 0x00000020; cpusLimit_ = input.readDouble(); break; } case 40: { bitField0_ |= 0x00010000; memRssBytes_ = input.readUInt64(); break; } case 48: { bitField0_ |= 0x00000800; memLimitBytes_ = input.readUInt64(); break; } case 56: { bitField0_ |= 0x00000040; cpusNrPeriods_ = input.readUInt32(); break; } case 64: { bitField0_ |= 0x00000080; cpusNrThrottled_ = input.readUInt32(); break; } case 73: { bitField0_ |= 0x00000100; cpusThrottledTimeSecs_ = input.readDouble(); break; } case 80: { bitField0_ |= 0x00002000; memFileBytes_ = input.readUInt64(); break; } case 88: { bitField0_ |= 0x00004000; memAnonBytes_ = input.readUInt64(); break; } case 96: { bitField0_ |= 0x00020000; memMappedFileBytes_ = input.readUInt64(); break; } case 106: { org.apache.mesos.v1.Protos.PerfStatistics.Builder subBuilder = null; if (((bitField0_ & 0x04000000) == 0x04000000)) { subBuilder = perf_.toBuilder(); } perf_ = input.readMessage(org.apache.mesos.v1.Protos.PerfStatistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(perf_); perf_ = subBuilder.buildPartial(); } bitField0_ |= 0x04000000; break; } case 112: { bitField0_ |= 0x08000000; netRxPackets_ = input.readUInt64(); break; } case 120: { bitField0_ |= 0x10000000; netRxBytes_ = input.readUInt64(); break; } case 128: { bitField0_ |= 0x20000000; netRxErrors_ = input.readUInt64(); break; } case 136: { bitField0_ |= 0x40000000; netRxDropped_ = input.readUInt64(); break; } case 144: { bitField0_ |= 0x80000000; netTxPackets_ = input.readUInt64(); break; } case 152: { bitField1_ |= 0x00000001; netTxBytes_ = input.readUInt64(); break; } case 160: { bitField1_ |= 0x00000002; netTxErrors_ = input.readUInt64(); break; } case 168: { bitField1_ |= 0x00000004; netTxDropped_ = input.readUInt64(); break; } case 177: { bitField1_ |= 0x00000008; netTcpRttMicrosecsP50_ = input.readDouble(); break; } case 185: { bitField1_ |= 0x00000010; netTcpRttMicrosecsP90_ = input.readDouble(); break; } case 193: { bitField1_ |= 0x00000020; netTcpRttMicrosecsP95_ = input.readDouble(); break; } case 201: { bitField1_ |= 0x00000040; netTcpRttMicrosecsP99_ = input.readDouble(); break; } case 208: { bitField0_ |= 0x00800000; diskLimitBytes_ = input.readUInt64(); break; } case 216: { bitField0_ |= 0x01000000; diskUsedBytes_ = input.readUInt64(); break; } case 225: { bitField1_ |= 0x00000080; netTcpActiveConnections_ = input.readDouble(); break; } case 233: { bitField1_ |= 0x00000100; netTcpTimeWaitConnections_ = input.readDouble(); break; } case 240: { bitField0_ |= 0x00000002; processes_ = input.readUInt32(); break; } case 248: { bitField0_ |= 0x00000004; threads_ = input.readUInt32(); break; } case 256: { bitField0_ |= 0x00100000; memLowPressureCounter_ = input.readUInt64(); break; } case 264: { bitField0_ |= 0x00200000; memMediumPressureCounter_ = input.readUInt64(); break; } case 272: { bitField0_ |= 0x00400000; memCriticalPressureCounter_ = input.readUInt64(); break; } case 282: { if (!((mutable_bitField1_ & 0x00000400) == 0x00000400)) { netTrafficControlStatistics_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000400; } netTrafficControlStatistics_.add( input.readMessage(org.apache.mesos.v1.Protos.TrafficControlStatistics.PARSER, extensionRegistry)); break; } case 288: { bitField0_ |= 0x00000200; memTotalBytes_ = input.readUInt64(); break; } case 296: { bitField0_ |= 0x00000400; memTotalMemswBytes_ = input.readUInt64(); break; } case 304: { bitField0_ |= 0x00001000; memSoftLimitBytes_ = input.readUInt64(); break; } case 312: { bitField0_ |= 0x00008000; memCacheBytes_ = input.readUInt64(); break; } case 320: { bitField0_ |= 0x00040000; memSwapBytes_ = input.readUInt64(); break; } case 328: { bitField0_ |= 0x00080000; memUnevictableBytes_ = input.readUInt64(); break; } case 338: { org.apache.mesos.v1.Protos.SNMPStatistics.Builder subBuilder = null; if (((bitField1_ & 0x00000200) == 0x00000200)) { subBuilder = netSnmpStatistics_.toBuilder(); } netSnmpStatistics_ = input.readMessage(org.apache.mesos.v1.Protos.SNMPStatistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(netSnmpStatistics_); netSnmpStatistics_ = subBuilder.buildPartial(); } bitField1_ |= 0x00000200; break; } case 346: { if (!((mutable_bitField0_ & 0x02000000) == 0x02000000)) { diskStatistics_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x02000000; } diskStatistics_.add( input.readMessage(org.apache.mesos.v1.Protos.DiskStatistics.PARSER, extensionRegistry)); break; } case 354: { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.Builder subBuilder = null; if (((bitField0_ & 0x02000000) == 0x02000000)) { subBuilder = blkioStatistics_.toBuilder(); } blkioStatistics_ = input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(blkioStatistics_); blkioStatistics_ = subBuilder.buildPartial(); } bitField0_ |= 0x02000000; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField1_ & 0x00000400) == 0x00000400)) { netTrafficControlStatistics_ = java.util.Collections.unmodifiableList(netTrafficControlStatistics_); } if (((mutable_bitField0_ & 0x02000000) == 0x02000000)) { diskStatistics_ = java.util.Collections.unmodifiableList(diskStatistics_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceStatistics.class, org.apache.mesos.v1.Protos.ResourceStatistics.Builder.class); } private int bitField0_; private int bitField1_; public static final int TIMESTAMP_FIELD_NUMBER = 1; private double timestamp_; /** *
     * Snapshot time, in seconds since the Epoch.
     * 
* * required double timestamp = 1; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Snapshot time, in seconds since the Epoch.
     * 
* * required double timestamp = 1; */ public double getTimestamp() { return timestamp_; } public static final int PROCESSES_FIELD_NUMBER = 30; private int processes_; /** * optional uint32 processes = 30; */ public boolean hasProcesses() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 processes = 30; */ public int getProcesses() { return processes_; } public static final int THREADS_FIELD_NUMBER = 31; private int threads_; /** * optional uint32 threads = 31; */ public boolean hasThreads() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 threads = 31; */ public int getThreads() { return threads_; } public static final int CPUS_USER_TIME_SECS_FIELD_NUMBER = 2; private double cpusUserTimeSecs_; /** *
     * CPU Usage Information:
     * Total CPU time spent in user mode, and kernel mode.
     * 
* * optional double cpus_user_time_secs = 2; */ public boolean hasCpusUserTimeSecs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * CPU Usage Information:
     * Total CPU time spent in user mode, and kernel mode.
     * 
* * optional double cpus_user_time_secs = 2; */ public double getCpusUserTimeSecs() { return cpusUserTimeSecs_; } public static final int CPUS_SYSTEM_TIME_SECS_FIELD_NUMBER = 3; private double cpusSystemTimeSecs_; /** * optional double cpus_system_time_secs = 3; */ public boolean hasCpusSystemTimeSecs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional double cpus_system_time_secs = 3; */ public double getCpusSystemTimeSecs() { return cpusSystemTimeSecs_; } public static final int CPUS_LIMIT_FIELD_NUMBER = 4; private double cpusLimit_; /** *
     * Number of CPUs allocated.
     * 
* * optional double cpus_limit = 4; */ public boolean hasCpusLimit() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * Number of CPUs allocated.
     * 
* * optional double cpus_limit = 4; */ public double getCpusLimit() { return cpusLimit_; } public static final int CPUS_NR_PERIODS_FIELD_NUMBER = 7; private int cpusNrPeriods_; /** *
     * cpu.stat on process throttling (for contention issues).
     * 
* * optional uint32 cpus_nr_periods = 7; */ public boolean hasCpusNrPeriods() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * cpu.stat on process throttling (for contention issues).
     * 
* * optional uint32 cpus_nr_periods = 7; */ public int getCpusNrPeriods() { return cpusNrPeriods_; } public static final int CPUS_NR_THROTTLED_FIELD_NUMBER = 8; private int cpusNrThrottled_; /** * optional uint32 cpus_nr_throttled = 8; */ public boolean hasCpusNrThrottled() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 cpus_nr_throttled = 8; */ public int getCpusNrThrottled() { return cpusNrThrottled_; } public static final int CPUS_THROTTLED_TIME_SECS_FIELD_NUMBER = 9; private double cpusThrottledTimeSecs_; /** * optional double cpus_throttled_time_secs = 9; */ public boolean hasCpusThrottledTimeSecs() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional double cpus_throttled_time_secs = 9; */ public double getCpusThrottledTimeSecs() { return cpusThrottledTimeSecs_; } public static final int MEM_TOTAL_BYTES_FIELD_NUMBER = 36; private long memTotalBytes_; /** *
     * mem_total_bytes was added in 0.23.0 to represent the total memory
     * of a process in RAM (as opposed to in Swap). This was previously
     * reported as mem_rss_bytes, which was also changed in 0.23.0 to
     * represent only the anonymous memory usage, to keep in sync with
     * Linux kernel's (arguably erroneous) use of terminology.
     * 
* * optional uint64 mem_total_bytes = 36; */ public boolean hasMemTotalBytes() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
     * mem_total_bytes was added in 0.23.0 to represent the total memory
     * of a process in RAM (as opposed to in Swap). This was previously
     * reported as mem_rss_bytes, which was also changed in 0.23.0 to
     * represent only the anonymous memory usage, to keep in sync with
     * Linux kernel's (arguably erroneous) use of terminology.
     * 
* * optional uint64 mem_total_bytes = 36; */ public long getMemTotalBytes() { return memTotalBytes_; } public static final int MEM_TOTAL_MEMSW_BYTES_FIELD_NUMBER = 37; private long memTotalMemswBytes_; /** *
     * Total memory + swap usage. This is set if swap is enabled.
     * 
* * optional uint64 mem_total_memsw_bytes = 37; */ public boolean hasMemTotalMemswBytes() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
     * Total memory + swap usage. This is set if swap is enabled.
     * 
* * optional uint64 mem_total_memsw_bytes = 37; */ public long getMemTotalMemswBytes() { return memTotalMemswBytes_; } public static final int MEM_LIMIT_BYTES_FIELD_NUMBER = 6; private long memLimitBytes_; /** *
     * Hard memory limit for a container.
     * 
* * optional uint64 mem_limit_bytes = 6; */ public boolean hasMemLimitBytes() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
     * Hard memory limit for a container.
     * 
* * optional uint64 mem_limit_bytes = 6; */ public long getMemLimitBytes() { return memLimitBytes_; } public static final int MEM_SOFT_LIMIT_BYTES_FIELD_NUMBER = 38; private long memSoftLimitBytes_; /** *
     * Soft memory limit for a container.
     * 
* * optional uint64 mem_soft_limit_bytes = 38; */ public boolean hasMemSoftLimitBytes() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
     * Soft memory limit for a container.
     * 
* * optional uint64 mem_soft_limit_bytes = 38; */ public long getMemSoftLimitBytes() { return memSoftLimitBytes_; } public static final int MEM_FILE_BYTES_FIELD_NUMBER = 10; private long memFileBytes_; /** *
     * TODO(chzhcn) mem_file_bytes and mem_anon_bytes are deprecated in
     * 0.23.0 and will be removed in 0.24.0.
     * 
* * optional uint64 mem_file_bytes = 10; */ public boolean hasMemFileBytes() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
     * TODO(chzhcn) mem_file_bytes and mem_anon_bytes are deprecated in
     * 0.23.0 and will be removed in 0.24.0.
     * 
* * optional uint64 mem_file_bytes = 10; */ public long getMemFileBytes() { return memFileBytes_; } public static final int MEM_ANON_BYTES_FIELD_NUMBER = 11; private long memAnonBytes_; /** * optional uint64 mem_anon_bytes = 11; */ public boolean hasMemAnonBytes() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional uint64 mem_anon_bytes = 11; */ public long getMemAnonBytes() { return memAnonBytes_; } public static final int MEM_CACHE_BYTES_FIELD_NUMBER = 39; private long memCacheBytes_; /** *
     * mem_cache_bytes is added in 0.23.0 to represent page cache usage.
     * 
* * optional uint64 mem_cache_bytes = 39; */ public boolean hasMemCacheBytes() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** *
     * mem_cache_bytes is added in 0.23.0 to represent page cache usage.
     * 
* * optional uint64 mem_cache_bytes = 39; */ public long getMemCacheBytes() { return memCacheBytes_; } public static final int MEM_RSS_BYTES_FIELD_NUMBER = 5; private long memRssBytes_; /** *
     * Since 0.23.0, mem_rss_bytes is changed to represent only
     * anonymous memory usage. Note that neither its requiredness, type,
     * name nor numeric tag has been changed.
     * 
* * optional uint64 mem_rss_bytes = 5; */ public boolean hasMemRssBytes() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** *
     * Since 0.23.0, mem_rss_bytes is changed to represent only
     * anonymous memory usage. Note that neither its requiredness, type,
     * name nor numeric tag has been changed.
     * 
* * optional uint64 mem_rss_bytes = 5; */ public long getMemRssBytes() { return memRssBytes_; } public static final int MEM_MAPPED_FILE_BYTES_FIELD_NUMBER = 12; private long memMappedFileBytes_; /** * optional uint64 mem_mapped_file_bytes = 12; */ public boolean hasMemMappedFileBytes() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional uint64 mem_mapped_file_bytes = 12; */ public long getMemMappedFileBytes() { return memMappedFileBytes_; } public static final int MEM_SWAP_BYTES_FIELD_NUMBER = 40; private long memSwapBytes_; /** *
     * This is only set if swap is enabled.
     * 
* * optional uint64 mem_swap_bytes = 40; */ public boolean hasMemSwapBytes() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** *
     * This is only set if swap is enabled.
     * 
* * optional uint64 mem_swap_bytes = 40; */ public long getMemSwapBytes() { return memSwapBytes_; } public static final int MEM_UNEVICTABLE_BYTES_FIELD_NUMBER = 41; private long memUnevictableBytes_; /** * optional uint64 mem_unevictable_bytes = 41; */ public boolean hasMemUnevictableBytes() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional uint64 mem_unevictable_bytes = 41; */ public long getMemUnevictableBytes() { return memUnevictableBytes_; } public static final int MEM_LOW_PRESSURE_COUNTER_FIELD_NUMBER = 32; private long memLowPressureCounter_; /** *
     * Number of occurrences of different levels of memory pressure
     * events reported by memory cgroup. Pressure listening (re)starts
     * with these values set to 0 when agent (re)starts. See
     * https://www.kernel.org/doc/Documentation/cgroups/memory.txt for
     * more details.
     * 
* * optional uint64 mem_low_pressure_counter = 32; */ public boolean hasMemLowPressureCounter() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** *
     * Number of occurrences of different levels of memory pressure
     * events reported by memory cgroup. Pressure listening (re)starts
     * with these values set to 0 when agent (re)starts. See
     * https://www.kernel.org/doc/Documentation/cgroups/memory.txt for
     * more details.
     * 
* * optional uint64 mem_low_pressure_counter = 32; */ public long getMemLowPressureCounter() { return memLowPressureCounter_; } public static final int MEM_MEDIUM_PRESSURE_COUNTER_FIELD_NUMBER = 33; private long memMediumPressureCounter_; /** * optional uint64 mem_medium_pressure_counter = 33; */ public boolean hasMemMediumPressureCounter() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional uint64 mem_medium_pressure_counter = 33; */ public long getMemMediumPressureCounter() { return memMediumPressureCounter_; } public static final int MEM_CRITICAL_PRESSURE_COUNTER_FIELD_NUMBER = 34; private long memCriticalPressureCounter_; /** * optional uint64 mem_critical_pressure_counter = 34; */ public boolean hasMemCriticalPressureCounter() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional uint64 mem_critical_pressure_counter = 34; */ public long getMemCriticalPressureCounter() { return memCriticalPressureCounter_; } public static final int DISK_LIMIT_BYTES_FIELD_NUMBER = 26; private long diskLimitBytes_; /** *
     * Disk Usage Information for executor working directory.
     * 
* * optional uint64 disk_limit_bytes = 26; */ public boolean hasDiskLimitBytes() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** *
     * Disk Usage Information for executor working directory.
     * 
* * optional uint64 disk_limit_bytes = 26; */ public long getDiskLimitBytes() { return diskLimitBytes_; } public static final int DISK_USED_BYTES_FIELD_NUMBER = 27; private long diskUsedBytes_; /** * optional uint64 disk_used_bytes = 27; */ public boolean hasDiskUsedBytes() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional uint64 disk_used_bytes = 27; */ public long getDiskUsedBytes() { return diskUsedBytes_; } public static final int DISK_STATISTICS_FIELD_NUMBER = 43; private java.util.List diskStatistics_; /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public java.util.List getDiskStatisticsList() { return diskStatistics_; } /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public java.util.List getDiskStatisticsOrBuilderList() { return diskStatistics_; } /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public int getDiskStatisticsCount() { return diskStatistics_.size(); } /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public org.apache.mesos.v1.Protos.DiskStatistics getDiskStatistics(int index) { return diskStatistics_.get(index); } /** *
     * Per disk (resource) statistics.
     * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public org.apache.mesos.v1.Protos.DiskStatisticsOrBuilder getDiskStatisticsOrBuilder( int index) { return diskStatistics_.get(index); } public static final int BLKIO_STATISTICS_FIELD_NUMBER = 44; private org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics blkioStatistics_; /** *
     * Cgroups blkio statistics.
     * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public boolean hasBlkioStatistics() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** *
     * Cgroups blkio statistics.
     * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics getBlkioStatistics() { return blkioStatistics_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.getDefaultInstance() : blkioStatistics_; } /** *
     * Cgroups blkio statistics.
     * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.StatisticsOrBuilder getBlkioStatisticsOrBuilder() { return blkioStatistics_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.getDefaultInstance() : blkioStatistics_; } public static final int PERF_FIELD_NUMBER = 13; private org.apache.mesos.v1.Protos.PerfStatistics perf_; /** *
     * Perf statistics.
     * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public boolean hasPerf() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** *
     * Perf statistics.
     * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public org.apache.mesos.v1.Protos.PerfStatistics getPerf() { return perf_ == null ? org.apache.mesos.v1.Protos.PerfStatistics.getDefaultInstance() : perf_; } /** *
     * Perf statistics.
     * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public org.apache.mesos.v1.Protos.PerfStatisticsOrBuilder getPerfOrBuilder() { return perf_ == null ? org.apache.mesos.v1.Protos.PerfStatistics.getDefaultInstance() : perf_; } public static final int NET_RX_PACKETS_FIELD_NUMBER = 14; private long netRxPackets_; /** *
     * Network Usage Information:
     * 
* * optional uint64 net_rx_packets = 14; */ public boolean hasNetRxPackets() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** *
     * Network Usage Information:
     * 
* * optional uint64 net_rx_packets = 14; */ public long getNetRxPackets() { return netRxPackets_; } public static final int NET_RX_BYTES_FIELD_NUMBER = 15; private long netRxBytes_; /** * optional uint64 net_rx_bytes = 15; */ public boolean hasNetRxBytes() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * optional uint64 net_rx_bytes = 15; */ public long getNetRxBytes() { return netRxBytes_; } public static final int NET_RX_ERRORS_FIELD_NUMBER = 16; private long netRxErrors_; /** * optional uint64 net_rx_errors = 16; */ public boolean hasNetRxErrors() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * optional uint64 net_rx_errors = 16; */ public long getNetRxErrors() { return netRxErrors_; } public static final int NET_RX_DROPPED_FIELD_NUMBER = 17; private long netRxDropped_; /** * optional uint64 net_rx_dropped = 17; */ public boolean hasNetRxDropped() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * optional uint64 net_rx_dropped = 17; */ public long getNetRxDropped() { return netRxDropped_; } public static final int NET_TX_PACKETS_FIELD_NUMBER = 18; private long netTxPackets_; /** * optional uint64 net_tx_packets = 18; */ public boolean hasNetTxPackets() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * optional uint64 net_tx_packets = 18; */ public long getNetTxPackets() { return netTxPackets_; } public static final int NET_TX_BYTES_FIELD_NUMBER = 19; private long netTxBytes_; /** * optional uint64 net_tx_bytes = 19; */ public boolean hasNetTxBytes() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * optional uint64 net_tx_bytes = 19; */ public long getNetTxBytes() { return netTxBytes_; } public static final int NET_TX_ERRORS_FIELD_NUMBER = 20; private long netTxErrors_; /** * optional uint64 net_tx_errors = 20; */ public boolean hasNetTxErrors() { return ((bitField1_ & 0x00000002) == 0x00000002); } /** * optional uint64 net_tx_errors = 20; */ public long getNetTxErrors() { return netTxErrors_; } public static final int NET_TX_DROPPED_FIELD_NUMBER = 21; private long netTxDropped_; /** * optional uint64 net_tx_dropped = 21; */ public boolean hasNetTxDropped() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** * optional uint64 net_tx_dropped = 21; */ public long getNetTxDropped() { return netTxDropped_; } public static final int NET_TCP_RTT_MICROSECS_P50_FIELD_NUMBER = 22; private double netTcpRttMicrosecsP50_; /** *
     * The kernel keeps track of RTT (round-trip time) for its TCP
     * sockets. RTT is a way to tell the latency of a container.
     * 
* * optional double net_tcp_rtt_microsecs_p50 = 22; */ public boolean hasNetTcpRttMicrosecsP50() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** *
     * The kernel keeps track of RTT (round-trip time) for its TCP
     * sockets. RTT is a way to tell the latency of a container.
     * 
* * optional double net_tcp_rtt_microsecs_p50 = 22; */ public double getNetTcpRttMicrosecsP50() { return netTcpRttMicrosecsP50_; } public static final int NET_TCP_RTT_MICROSECS_P90_FIELD_NUMBER = 23; private double netTcpRttMicrosecsP90_; /** * optional double net_tcp_rtt_microsecs_p90 = 23; */ public boolean hasNetTcpRttMicrosecsP90() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** * optional double net_tcp_rtt_microsecs_p90 = 23; */ public double getNetTcpRttMicrosecsP90() { return netTcpRttMicrosecsP90_; } public static final int NET_TCP_RTT_MICROSECS_P95_FIELD_NUMBER = 24; private double netTcpRttMicrosecsP95_; /** * optional double net_tcp_rtt_microsecs_p95 = 24; */ public boolean hasNetTcpRttMicrosecsP95() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** * optional double net_tcp_rtt_microsecs_p95 = 24; */ public double getNetTcpRttMicrosecsP95() { return netTcpRttMicrosecsP95_; } public static final int NET_TCP_RTT_MICROSECS_P99_FIELD_NUMBER = 25; private double netTcpRttMicrosecsP99_; /** * optional double net_tcp_rtt_microsecs_p99 = 25; */ public boolean hasNetTcpRttMicrosecsP99() { return ((bitField1_ & 0x00000040) == 0x00000040); } /** * optional double net_tcp_rtt_microsecs_p99 = 25; */ public double getNetTcpRttMicrosecsP99() { return netTcpRttMicrosecsP99_; } public static final int NET_TCP_ACTIVE_CONNECTIONS_FIELD_NUMBER = 28; private double netTcpActiveConnections_; /** * optional double net_tcp_active_connections = 28; */ public boolean hasNetTcpActiveConnections() { return ((bitField1_ & 0x00000080) == 0x00000080); } /** * optional double net_tcp_active_connections = 28; */ public double getNetTcpActiveConnections() { return netTcpActiveConnections_; } public static final int NET_TCP_TIME_WAIT_CONNECTIONS_FIELD_NUMBER = 29; private double netTcpTimeWaitConnections_; /** * optional double net_tcp_time_wait_connections = 29; */ public boolean hasNetTcpTimeWaitConnections() { return ((bitField1_ & 0x00000100) == 0x00000100); } /** * optional double net_tcp_time_wait_connections = 29; */ public double getNetTcpTimeWaitConnections() { return netTcpTimeWaitConnections_; } public static final int NET_TRAFFIC_CONTROL_STATISTICS_FIELD_NUMBER = 35; private java.util.List netTrafficControlStatistics_; /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public java.util.List getNetTrafficControlStatisticsList() { return netTrafficControlStatistics_; } /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public java.util.List getNetTrafficControlStatisticsOrBuilderList() { return netTrafficControlStatistics_; } /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public int getNetTrafficControlStatisticsCount() { return netTrafficControlStatistics_.size(); } /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public org.apache.mesos.v1.Protos.TrafficControlStatistics getNetTrafficControlStatistics(int index) { return netTrafficControlStatistics_.get(index); } /** *
     * Network traffic flowing into or out of a container can be delayed
     * or dropped due to congestion or policy inside and outside the
     * container.
     * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public org.apache.mesos.v1.Protos.TrafficControlStatisticsOrBuilder getNetTrafficControlStatisticsOrBuilder( int index) { return netTrafficControlStatistics_.get(index); } public static final int NET_SNMP_STATISTICS_FIELD_NUMBER = 42; private org.apache.mesos.v1.Protos.SNMPStatistics netSnmpStatistics_; /** *
     * Network SNMP statistics for each container.
     * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public boolean hasNetSnmpStatistics() { return ((bitField1_ & 0x00000200) == 0x00000200); } /** *
     * Network SNMP statistics for each container.
     * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public org.apache.mesos.v1.Protos.SNMPStatistics getNetSnmpStatistics() { return netSnmpStatistics_ == null ? org.apache.mesos.v1.Protos.SNMPStatistics.getDefaultInstance() : netSnmpStatistics_; } /** *
     * Network SNMP statistics for each container.
     * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public org.apache.mesos.v1.Protos.SNMPStatisticsOrBuilder getNetSnmpStatisticsOrBuilder() { return netSnmpStatistics_ == null ? org.apache.mesos.v1.Protos.SNMPStatistics.getDefaultInstance() : netSnmpStatistics_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasTimestamp()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getDiskStatisticsCount(); i++) { if (!getDiskStatistics(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasBlkioStatistics()) { if (!getBlkioStatistics().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasPerf()) { if (!getPerf().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getNetTrafficControlStatisticsCount(); i++) { if (!getNetTrafficControlStatistics(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeDouble(1, timestamp_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeDouble(2, cpusUserTimeSecs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeDouble(3, cpusSystemTimeSecs_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeDouble(4, cpusLimit_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeUInt64(5, memRssBytes_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt64(6, memLimitBytes_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, cpusNrPeriods_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(8, cpusNrThrottled_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeDouble(9, cpusThrottledTimeSecs_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeUInt64(10, memFileBytes_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeUInt64(11, memAnonBytes_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeUInt64(12, memMappedFileBytes_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeMessage(13, getPerf()); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeUInt64(14, netRxPackets_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeUInt64(15, netRxBytes_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { output.writeUInt64(16, netRxErrors_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { output.writeUInt64(17, netRxDropped_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { output.writeUInt64(18, netTxPackets_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { output.writeUInt64(19, netTxBytes_); } if (((bitField1_ & 0x00000002) == 0x00000002)) { output.writeUInt64(20, netTxErrors_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { output.writeUInt64(21, netTxDropped_); } if (((bitField1_ & 0x00000008) == 0x00000008)) { output.writeDouble(22, netTcpRttMicrosecsP50_); } if (((bitField1_ & 0x00000010) == 0x00000010)) { output.writeDouble(23, netTcpRttMicrosecsP90_); } if (((bitField1_ & 0x00000020) == 0x00000020)) { output.writeDouble(24, netTcpRttMicrosecsP95_); } if (((bitField1_ & 0x00000040) == 0x00000040)) { output.writeDouble(25, netTcpRttMicrosecsP99_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeUInt64(26, diskLimitBytes_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeUInt64(27, diskUsedBytes_); } if (((bitField1_ & 0x00000080) == 0x00000080)) { output.writeDouble(28, netTcpActiveConnections_); } if (((bitField1_ & 0x00000100) == 0x00000100)) { output.writeDouble(29, netTcpTimeWaitConnections_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(30, processes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(31, threads_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeUInt64(32, memLowPressureCounter_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeUInt64(33, memMediumPressureCounter_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeUInt64(34, memCriticalPressureCounter_); } for (int i = 0; i < netTrafficControlStatistics_.size(); i++) { output.writeMessage(35, netTrafficControlStatistics_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt64(36, memTotalBytes_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeUInt64(37, memTotalMemswBytes_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeUInt64(38, memSoftLimitBytes_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeUInt64(39, memCacheBytes_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeUInt64(40, memSwapBytes_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeUInt64(41, memUnevictableBytes_); } if (((bitField1_ & 0x00000200) == 0x00000200)) { output.writeMessage(42, getNetSnmpStatistics()); } for (int i = 0; i < diskStatistics_.size(); i++) { output.writeMessage(43, diskStatistics_.get(i)); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeMessage(44, getBlkioStatistics()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, timestamp_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, cpusUserTimeSecs_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, cpusSystemTimeSecs_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, cpusLimit_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, memRssBytes_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, memLimitBytes_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, cpusNrPeriods_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, cpusNrThrottled_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(9, cpusThrottledTimeSecs_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, memFileBytes_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, memAnonBytes_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(12, memMappedFileBytes_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getPerf()); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(14, netRxPackets_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(15, netRxBytes_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(16, netRxErrors_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(17, netRxDropped_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(18, netTxPackets_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(19, netTxBytes_); } if (((bitField1_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(20, netTxErrors_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(21, netTxDropped_); } if (((bitField1_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(22, netTcpRttMicrosecsP50_); } if (((bitField1_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(23, netTcpRttMicrosecsP90_); } if (((bitField1_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(24, netTcpRttMicrosecsP95_); } if (((bitField1_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(25, netTcpRttMicrosecsP99_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(26, diskLimitBytes_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(27, diskUsedBytes_); } if (((bitField1_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(28, netTcpActiveConnections_); } if (((bitField1_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(29, netTcpTimeWaitConnections_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(30, processes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(31, threads_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(32, memLowPressureCounter_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(33, memMediumPressureCounter_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(34, memCriticalPressureCounter_); } for (int i = 0; i < netTrafficControlStatistics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, netTrafficControlStatistics_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(36, memTotalBytes_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(37, memTotalMemswBytes_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(38, memSoftLimitBytes_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(39, memCacheBytes_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(40, memSwapBytes_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(41, memUnevictableBytes_); } if (((bitField1_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(42, getNetSnmpStatistics()); } for (int i = 0; i < diskStatistics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(43, diskStatistics_.get(i)); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(44, getBlkioStatistics()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ResourceStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ResourceStatistics other = (org.apache.mesos.v1.Protos.ResourceStatistics) obj; boolean result = true; result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && ( java.lang.Double.doubleToLongBits(getTimestamp()) == java.lang.Double.doubleToLongBits( other.getTimestamp())); } result = result && (hasProcesses() == other.hasProcesses()); if (hasProcesses()) { result = result && (getProcesses() == other.getProcesses()); } result = result && (hasThreads() == other.hasThreads()); if (hasThreads()) { result = result && (getThreads() == other.getThreads()); } result = result && (hasCpusUserTimeSecs() == other.hasCpusUserTimeSecs()); if (hasCpusUserTimeSecs()) { result = result && ( java.lang.Double.doubleToLongBits(getCpusUserTimeSecs()) == java.lang.Double.doubleToLongBits( other.getCpusUserTimeSecs())); } result = result && (hasCpusSystemTimeSecs() == other.hasCpusSystemTimeSecs()); if (hasCpusSystemTimeSecs()) { result = result && ( java.lang.Double.doubleToLongBits(getCpusSystemTimeSecs()) == java.lang.Double.doubleToLongBits( other.getCpusSystemTimeSecs())); } result = result && (hasCpusLimit() == other.hasCpusLimit()); if (hasCpusLimit()) { result = result && ( java.lang.Double.doubleToLongBits(getCpusLimit()) == java.lang.Double.doubleToLongBits( other.getCpusLimit())); } result = result && (hasCpusNrPeriods() == other.hasCpusNrPeriods()); if (hasCpusNrPeriods()) { result = result && (getCpusNrPeriods() == other.getCpusNrPeriods()); } result = result && (hasCpusNrThrottled() == other.hasCpusNrThrottled()); if (hasCpusNrThrottled()) { result = result && (getCpusNrThrottled() == other.getCpusNrThrottled()); } result = result && (hasCpusThrottledTimeSecs() == other.hasCpusThrottledTimeSecs()); if (hasCpusThrottledTimeSecs()) { result = result && ( java.lang.Double.doubleToLongBits(getCpusThrottledTimeSecs()) == java.lang.Double.doubleToLongBits( other.getCpusThrottledTimeSecs())); } result = result && (hasMemTotalBytes() == other.hasMemTotalBytes()); if (hasMemTotalBytes()) { result = result && (getMemTotalBytes() == other.getMemTotalBytes()); } result = result && (hasMemTotalMemswBytes() == other.hasMemTotalMemswBytes()); if (hasMemTotalMemswBytes()) { result = result && (getMemTotalMemswBytes() == other.getMemTotalMemswBytes()); } result = result && (hasMemLimitBytes() == other.hasMemLimitBytes()); if (hasMemLimitBytes()) { result = result && (getMemLimitBytes() == other.getMemLimitBytes()); } result = result && (hasMemSoftLimitBytes() == other.hasMemSoftLimitBytes()); if (hasMemSoftLimitBytes()) { result = result && (getMemSoftLimitBytes() == other.getMemSoftLimitBytes()); } result = result && (hasMemFileBytes() == other.hasMemFileBytes()); if (hasMemFileBytes()) { result = result && (getMemFileBytes() == other.getMemFileBytes()); } result = result && (hasMemAnonBytes() == other.hasMemAnonBytes()); if (hasMemAnonBytes()) { result = result && (getMemAnonBytes() == other.getMemAnonBytes()); } result = result && (hasMemCacheBytes() == other.hasMemCacheBytes()); if (hasMemCacheBytes()) { result = result && (getMemCacheBytes() == other.getMemCacheBytes()); } result = result && (hasMemRssBytes() == other.hasMemRssBytes()); if (hasMemRssBytes()) { result = result && (getMemRssBytes() == other.getMemRssBytes()); } result = result && (hasMemMappedFileBytes() == other.hasMemMappedFileBytes()); if (hasMemMappedFileBytes()) { result = result && (getMemMappedFileBytes() == other.getMemMappedFileBytes()); } result = result && (hasMemSwapBytes() == other.hasMemSwapBytes()); if (hasMemSwapBytes()) { result = result && (getMemSwapBytes() == other.getMemSwapBytes()); } result = result && (hasMemUnevictableBytes() == other.hasMemUnevictableBytes()); if (hasMemUnevictableBytes()) { result = result && (getMemUnevictableBytes() == other.getMemUnevictableBytes()); } result = result && (hasMemLowPressureCounter() == other.hasMemLowPressureCounter()); if (hasMemLowPressureCounter()) { result = result && (getMemLowPressureCounter() == other.getMemLowPressureCounter()); } result = result && (hasMemMediumPressureCounter() == other.hasMemMediumPressureCounter()); if (hasMemMediumPressureCounter()) { result = result && (getMemMediumPressureCounter() == other.getMemMediumPressureCounter()); } result = result && (hasMemCriticalPressureCounter() == other.hasMemCriticalPressureCounter()); if (hasMemCriticalPressureCounter()) { result = result && (getMemCriticalPressureCounter() == other.getMemCriticalPressureCounter()); } result = result && (hasDiskLimitBytes() == other.hasDiskLimitBytes()); if (hasDiskLimitBytes()) { result = result && (getDiskLimitBytes() == other.getDiskLimitBytes()); } result = result && (hasDiskUsedBytes() == other.hasDiskUsedBytes()); if (hasDiskUsedBytes()) { result = result && (getDiskUsedBytes() == other.getDiskUsedBytes()); } result = result && getDiskStatisticsList() .equals(other.getDiskStatisticsList()); result = result && (hasBlkioStatistics() == other.hasBlkioStatistics()); if (hasBlkioStatistics()) { result = result && getBlkioStatistics() .equals(other.getBlkioStatistics()); } result = result && (hasPerf() == other.hasPerf()); if (hasPerf()) { result = result && getPerf() .equals(other.getPerf()); } result = result && (hasNetRxPackets() == other.hasNetRxPackets()); if (hasNetRxPackets()) { result = result && (getNetRxPackets() == other.getNetRxPackets()); } result = result && (hasNetRxBytes() == other.hasNetRxBytes()); if (hasNetRxBytes()) { result = result && (getNetRxBytes() == other.getNetRxBytes()); } result = result && (hasNetRxErrors() == other.hasNetRxErrors()); if (hasNetRxErrors()) { result = result && (getNetRxErrors() == other.getNetRxErrors()); } result = result && (hasNetRxDropped() == other.hasNetRxDropped()); if (hasNetRxDropped()) { result = result && (getNetRxDropped() == other.getNetRxDropped()); } result = result && (hasNetTxPackets() == other.hasNetTxPackets()); if (hasNetTxPackets()) { result = result && (getNetTxPackets() == other.getNetTxPackets()); } result = result && (hasNetTxBytes() == other.hasNetTxBytes()); if (hasNetTxBytes()) { result = result && (getNetTxBytes() == other.getNetTxBytes()); } result = result && (hasNetTxErrors() == other.hasNetTxErrors()); if (hasNetTxErrors()) { result = result && (getNetTxErrors() == other.getNetTxErrors()); } result = result && (hasNetTxDropped() == other.hasNetTxDropped()); if (hasNetTxDropped()) { result = result && (getNetTxDropped() == other.getNetTxDropped()); } result = result && (hasNetTcpRttMicrosecsP50() == other.hasNetTcpRttMicrosecsP50()); if (hasNetTcpRttMicrosecsP50()) { result = result && ( java.lang.Double.doubleToLongBits(getNetTcpRttMicrosecsP50()) == java.lang.Double.doubleToLongBits( other.getNetTcpRttMicrosecsP50())); } result = result && (hasNetTcpRttMicrosecsP90() == other.hasNetTcpRttMicrosecsP90()); if (hasNetTcpRttMicrosecsP90()) { result = result && ( java.lang.Double.doubleToLongBits(getNetTcpRttMicrosecsP90()) == java.lang.Double.doubleToLongBits( other.getNetTcpRttMicrosecsP90())); } result = result && (hasNetTcpRttMicrosecsP95() == other.hasNetTcpRttMicrosecsP95()); if (hasNetTcpRttMicrosecsP95()) { result = result && ( java.lang.Double.doubleToLongBits(getNetTcpRttMicrosecsP95()) == java.lang.Double.doubleToLongBits( other.getNetTcpRttMicrosecsP95())); } result = result && (hasNetTcpRttMicrosecsP99() == other.hasNetTcpRttMicrosecsP99()); if (hasNetTcpRttMicrosecsP99()) { result = result && ( java.lang.Double.doubleToLongBits(getNetTcpRttMicrosecsP99()) == java.lang.Double.doubleToLongBits( other.getNetTcpRttMicrosecsP99())); } result = result && (hasNetTcpActiveConnections() == other.hasNetTcpActiveConnections()); if (hasNetTcpActiveConnections()) { result = result && ( java.lang.Double.doubleToLongBits(getNetTcpActiveConnections()) == java.lang.Double.doubleToLongBits( other.getNetTcpActiveConnections())); } result = result && (hasNetTcpTimeWaitConnections() == other.hasNetTcpTimeWaitConnections()); if (hasNetTcpTimeWaitConnections()) { result = result && ( java.lang.Double.doubleToLongBits(getNetTcpTimeWaitConnections()) == java.lang.Double.doubleToLongBits( other.getNetTcpTimeWaitConnections())); } result = result && getNetTrafficControlStatisticsList() .equals(other.getNetTrafficControlStatisticsList()); result = result && (hasNetSnmpStatistics() == other.hasNetSnmpStatistics()); if (hasNetSnmpStatistics()) { result = result && getNetSnmpStatistics() .equals(other.getNetSnmpStatistics()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTimestamp())); } if (hasProcesses()) { hash = (37 * hash) + PROCESSES_FIELD_NUMBER; hash = (53 * hash) + getProcesses(); } if (hasThreads()) { hash = (37 * hash) + THREADS_FIELD_NUMBER; hash = (53 * hash) + getThreads(); } if (hasCpusUserTimeSecs()) { hash = (37 * hash) + CPUS_USER_TIME_SECS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpusUserTimeSecs())); } if (hasCpusSystemTimeSecs()) { hash = (37 * hash) + CPUS_SYSTEM_TIME_SECS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpusSystemTimeSecs())); } if (hasCpusLimit()) { hash = (37 * hash) + CPUS_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpusLimit())); } if (hasCpusNrPeriods()) { hash = (37 * hash) + CPUS_NR_PERIODS_FIELD_NUMBER; hash = (53 * hash) + getCpusNrPeriods(); } if (hasCpusNrThrottled()) { hash = (37 * hash) + CPUS_NR_THROTTLED_FIELD_NUMBER; hash = (53 * hash) + getCpusNrThrottled(); } if (hasCpusThrottledTimeSecs()) { hash = (37 * hash) + CPUS_THROTTLED_TIME_SECS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpusThrottledTimeSecs())); } if (hasMemTotalBytes()) { hash = (37 * hash) + MEM_TOTAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemTotalBytes()); } if (hasMemTotalMemswBytes()) { hash = (37 * hash) + MEM_TOTAL_MEMSW_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemTotalMemswBytes()); } if (hasMemLimitBytes()) { hash = (37 * hash) + MEM_LIMIT_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemLimitBytes()); } if (hasMemSoftLimitBytes()) { hash = (37 * hash) + MEM_SOFT_LIMIT_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemSoftLimitBytes()); } if (hasMemFileBytes()) { hash = (37 * hash) + MEM_FILE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemFileBytes()); } if (hasMemAnonBytes()) { hash = (37 * hash) + MEM_ANON_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemAnonBytes()); } if (hasMemCacheBytes()) { hash = (37 * hash) + MEM_CACHE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemCacheBytes()); } if (hasMemRssBytes()) { hash = (37 * hash) + MEM_RSS_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemRssBytes()); } if (hasMemMappedFileBytes()) { hash = (37 * hash) + MEM_MAPPED_FILE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemMappedFileBytes()); } if (hasMemSwapBytes()) { hash = (37 * hash) + MEM_SWAP_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemSwapBytes()); } if (hasMemUnevictableBytes()) { hash = (37 * hash) + MEM_UNEVICTABLE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemUnevictableBytes()); } if (hasMemLowPressureCounter()) { hash = (37 * hash) + MEM_LOW_PRESSURE_COUNTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemLowPressureCounter()); } if (hasMemMediumPressureCounter()) { hash = (37 * hash) + MEM_MEDIUM_PRESSURE_COUNTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemMediumPressureCounter()); } if (hasMemCriticalPressureCounter()) { hash = (37 * hash) + MEM_CRITICAL_PRESSURE_COUNTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemCriticalPressureCounter()); } if (hasDiskLimitBytes()) { hash = (37 * hash) + DISK_LIMIT_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDiskLimitBytes()); } if (hasDiskUsedBytes()) { hash = (37 * hash) + DISK_USED_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDiskUsedBytes()); } if (getDiskStatisticsCount() > 0) { hash = (37 * hash) + DISK_STATISTICS_FIELD_NUMBER; hash = (53 * hash) + getDiskStatisticsList().hashCode(); } if (hasBlkioStatistics()) { hash = (37 * hash) + BLKIO_STATISTICS_FIELD_NUMBER; hash = (53 * hash) + getBlkioStatistics().hashCode(); } if (hasPerf()) { hash = (37 * hash) + PERF_FIELD_NUMBER; hash = (53 * hash) + getPerf().hashCode(); } if (hasNetRxPackets()) { hash = (37 * hash) + NET_RX_PACKETS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetRxPackets()); } if (hasNetRxBytes()) { hash = (37 * hash) + NET_RX_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetRxBytes()); } if (hasNetRxErrors()) { hash = (37 * hash) + NET_RX_ERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetRxErrors()); } if (hasNetRxDropped()) { hash = (37 * hash) + NET_RX_DROPPED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetRxDropped()); } if (hasNetTxPackets()) { hash = (37 * hash) + NET_TX_PACKETS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetTxPackets()); } if (hasNetTxBytes()) { hash = (37 * hash) + NET_TX_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetTxBytes()); } if (hasNetTxErrors()) { hash = (37 * hash) + NET_TX_ERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetTxErrors()); } if (hasNetTxDropped()) { hash = (37 * hash) + NET_TX_DROPPED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNetTxDropped()); } if (hasNetTcpRttMicrosecsP50()) { hash = (37 * hash) + NET_TCP_RTT_MICROSECS_P50_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNetTcpRttMicrosecsP50())); } if (hasNetTcpRttMicrosecsP90()) { hash = (37 * hash) + NET_TCP_RTT_MICROSECS_P90_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNetTcpRttMicrosecsP90())); } if (hasNetTcpRttMicrosecsP95()) { hash = (37 * hash) + NET_TCP_RTT_MICROSECS_P95_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNetTcpRttMicrosecsP95())); } if (hasNetTcpRttMicrosecsP99()) { hash = (37 * hash) + NET_TCP_RTT_MICROSECS_P99_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNetTcpRttMicrosecsP99())); } if (hasNetTcpActiveConnections()) { hash = (37 * hash) + NET_TCP_ACTIVE_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNetTcpActiveConnections())); } if (hasNetTcpTimeWaitConnections()) { hash = (37 * hash) + NET_TCP_TIME_WAIT_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNetTcpTimeWaitConnections())); } if (getNetTrafficControlStatisticsCount() > 0) { hash = (37 * hash) + NET_TRAFFIC_CONTROL_STATISTICS_FIELD_NUMBER; hash = (53 * hash) + getNetTrafficControlStatisticsList().hashCode(); } if (hasNetSnmpStatistics()) { hash = (37 * hash) + NET_SNMP_STATISTICS_FIELD_NUMBER; hash = (53 * hash) + getNetSnmpStatistics().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ResourceStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceStatistics 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.Protos.ResourceStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ResourceStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A snapshot of resource usage statistics.
     * 
* * Protobuf type {@code mesos.v1.ResourceStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ResourceStatistics) org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceStatistics.class, org.apache.mesos.v1.Protos.ResourceStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ResourceStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDiskStatisticsFieldBuilder(); getBlkioStatisticsFieldBuilder(); getPerfFieldBuilder(); getNetTrafficControlStatisticsFieldBuilder(); getNetSnmpStatisticsFieldBuilder(); } } public Builder clear() { super.clear(); timestamp_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); processes_ = 0; bitField0_ = (bitField0_ & ~0x00000002); threads_ = 0; bitField0_ = (bitField0_ & ~0x00000004); cpusUserTimeSecs_ = 0D; bitField0_ = (bitField0_ & ~0x00000008); cpusSystemTimeSecs_ = 0D; bitField0_ = (bitField0_ & ~0x00000010); cpusLimit_ = 0D; bitField0_ = (bitField0_ & ~0x00000020); cpusNrPeriods_ = 0; bitField0_ = (bitField0_ & ~0x00000040); cpusNrThrottled_ = 0; bitField0_ = (bitField0_ & ~0x00000080); cpusThrottledTimeSecs_ = 0D; bitField0_ = (bitField0_ & ~0x00000100); memTotalBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); memTotalMemswBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); memLimitBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000800); memSoftLimitBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); memFileBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00002000); memAnonBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00004000); memCacheBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00008000); memRssBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00010000); memMappedFileBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00020000); memSwapBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00040000); memUnevictableBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00080000); memLowPressureCounter_ = 0L; bitField0_ = (bitField0_ & ~0x00100000); memMediumPressureCounter_ = 0L; bitField0_ = (bitField0_ & ~0x00200000); memCriticalPressureCounter_ = 0L; bitField0_ = (bitField0_ & ~0x00400000); diskLimitBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00800000); diskUsedBytes_ = 0L; bitField0_ = (bitField0_ & ~0x01000000); if (diskStatisticsBuilder_ == null) { diskStatistics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x02000000); } else { diskStatisticsBuilder_.clear(); } if (blkioStatisticsBuilder_ == null) { blkioStatistics_ = null; } else { blkioStatisticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x04000000); if (perfBuilder_ == null) { perf_ = null; } else { perfBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); netRxPackets_ = 0L; bitField0_ = (bitField0_ & ~0x10000000); netRxBytes_ = 0L; bitField0_ = (bitField0_ & ~0x20000000); netRxErrors_ = 0L; bitField0_ = (bitField0_ & ~0x40000000); netRxDropped_ = 0L; bitField0_ = (bitField0_ & ~0x80000000); netTxPackets_ = 0L; bitField1_ = (bitField1_ & ~0x00000001); netTxBytes_ = 0L; bitField1_ = (bitField1_ & ~0x00000002); netTxErrors_ = 0L; bitField1_ = (bitField1_ & ~0x00000004); netTxDropped_ = 0L; bitField1_ = (bitField1_ & ~0x00000008); netTcpRttMicrosecsP50_ = 0D; bitField1_ = (bitField1_ & ~0x00000010); netTcpRttMicrosecsP90_ = 0D; bitField1_ = (bitField1_ & ~0x00000020); netTcpRttMicrosecsP95_ = 0D; bitField1_ = (bitField1_ & ~0x00000040); netTcpRttMicrosecsP99_ = 0D; bitField1_ = (bitField1_ & ~0x00000080); netTcpActiveConnections_ = 0D; bitField1_ = (bitField1_ & ~0x00000100); netTcpTimeWaitConnections_ = 0D; bitField1_ = (bitField1_ & ~0x00000200); if (netTrafficControlStatisticsBuilder_ == null) { netTrafficControlStatistics_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000400); } else { netTrafficControlStatisticsBuilder_.clear(); } if (netSnmpStatisticsBuilder_ == null) { netSnmpStatistics_ = null; } else { netSnmpStatisticsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000800); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceStatistics_descriptor; } public org.apache.mesos.v1.Protos.ResourceStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ResourceStatistics build() { org.apache.mesos.v1.Protos.ResourceStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ResourceStatistics buildPartial() { org.apache.mesos.v1.Protos.ResourceStatistics result = new org.apache.mesos.v1.Protos.ResourceStatistics(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int to_bitField0_ = 0; int to_bitField1_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.processes_ = processes_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.threads_ = threads_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.cpusUserTimeSecs_ = cpusUserTimeSecs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.cpusSystemTimeSecs_ = cpusSystemTimeSecs_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.cpusLimit_ = cpusLimit_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.cpusNrPeriods_ = cpusNrPeriods_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.cpusNrThrottled_ = cpusNrThrottled_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.cpusThrottledTimeSecs_ = cpusThrottledTimeSecs_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.memTotalBytes_ = memTotalBytes_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.memTotalMemswBytes_ = memTotalMemswBytes_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.memLimitBytes_ = memLimitBytes_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.memSoftLimitBytes_ = memSoftLimitBytes_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.memFileBytes_ = memFileBytes_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.memAnonBytes_ = memAnonBytes_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.memCacheBytes_ = memCacheBytes_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.memRssBytes_ = memRssBytes_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.memMappedFileBytes_ = memMappedFileBytes_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.memSwapBytes_ = memSwapBytes_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } result.memUnevictableBytes_ = memUnevictableBytes_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } result.memLowPressureCounter_ = memLowPressureCounter_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } result.memMediumPressureCounter_ = memMediumPressureCounter_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } result.memCriticalPressureCounter_ = memCriticalPressureCounter_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } result.diskLimitBytes_ = diskLimitBytes_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } result.diskUsedBytes_ = diskUsedBytes_; if (diskStatisticsBuilder_ == null) { if (((bitField0_ & 0x02000000) == 0x02000000)) { diskStatistics_ = java.util.Collections.unmodifiableList(diskStatistics_); bitField0_ = (bitField0_ & ~0x02000000); } result.diskStatistics_ = diskStatistics_; } else { result.diskStatistics_ = diskStatisticsBuilder_.build(); } if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x02000000; } if (blkioStatisticsBuilder_ == null) { result.blkioStatistics_ = blkioStatistics_; } else { result.blkioStatistics_ = blkioStatisticsBuilder_.build(); } if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x04000000; } if (perfBuilder_ == null) { result.perf_ = perf_; } else { result.perf_ = perfBuilder_.build(); } if (((from_bitField0_ & 0x10000000) == 0x10000000)) { to_bitField0_ |= 0x08000000; } result.netRxPackets_ = netRxPackets_; if (((from_bitField0_ & 0x20000000) == 0x20000000)) { to_bitField0_ |= 0x10000000; } result.netRxBytes_ = netRxBytes_; if (((from_bitField0_ & 0x40000000) == 0x40000000)) { to_bitField0_ |= 0x20000000; } result.netRxErrors_ = netRxErrors_; if (((from_bitField0_ & 0x80000000) == 0x80000000)) { to_bitField0_ |= 0x40000000; } result.netRxDropped_ = netRxDropped_; if (((from_bitField1_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x80000000; } result.netTxPackets_ = netTxPackets_; if (((from_bitField1_ & 0x00000002) == 0x00000002)) { to_bitField1_ |= 0x00000001; } result.netTxBytes_ = netTxBytes_; if (((from_bitField1_ & 0x00000004) == 0x00000004)) { to_bitField1_ |= 0x00000002; } result.netTxErrors_ = netTxErrors_; if (((from_bitField1_ & 0x00000008) == 0x00000008)) { to_bitField1_ |= 0x00000004; } result.netTxDropped_ = netTxDropped_; if (((from_bitField1_ & 0x00000010) == 0x00000010)) { to_bitField1_ |= 0x00000008; } result.netTcpRttMicrosecsP50_ = netTcpRttMicrosecsP50_; if (((from_bitField1_ & 0x00000020) == 0x00000020)) { to_bitField1_ |= 0x00000010; } result.netTcpRttMicrosecsP90_ = netTcpRttMicrosecsP90_; if (((from_bitField1_ & 0x00000040) == 0x00000040)) { to_bitField1_ |= 0x00000020; } result.netTcpRttMicrosecsP95_ = netTcpRttMicrosecsP95_; if (((from_bitField1_ & 0x00000080) == 0x00000080)) { to_bitField1_ |= 0x00000040; } result.netTcpRttMicrosecsP99_ = netTcpRttMicrosecsP99_; if (((from_bitField1_ & 0x00000100) == 0x00000100)) { to_bitField1_ |= 0x00000080; } result.netTcpActiveConnections_ = netTcpActiveConnections_; if (((from_bitField1_ & 0x00000200) == 0x00000200)) { to_bitField1_ |= 0x00000100; } result.netTcpTimeWaitConnections_ = netTcpTimeWaitConnections_; if (netTrafficControlStatisticsBuilder_ == null) { if (((bitField1_ & 0x00000400) == 0x00000400)) { netTrafficControlStatistics_ = java.util.Collections.unmodifiableList(netTrafficControlStatistics_); bitField1_ = (bitField1_ & ~0x00000400); } result.netTrafficControlStatistics_ = netTrafficControlStatistics_; } else { result.netTrafficControlStatistics_ = netTrafficControlStatisticsBuilder_.build(); } if (((from_bitField1_ & 0x00000800) == 0x00000800)) { to_bitField1_ |= 0x00000200; } if (netSnmpStatisticsBuilder_ == null) { result.netSnmpStatistics_ = netSnmpStatistics_; } else { result.netSnmpStatistics_ = netSnmpStatisticsBuilder_.build(); } result.bitField0_ = to_bitField0_; result.bitField1_ = to_bitField1_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ResourceStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.ResourceStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ResourceStatistics other) { if (other == org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance()) return this; if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasProcesses()) { setProcesses(other.getProcesses()); } if (other.hasThreads()) { setThreads(other.getThreads()); } if (other.hasCpusUserTimeSecs()) { setCpusUserTimeSecs(other.getCpusUserTimeSecs()); } if (other.hasCpusSystemTimeSecs()) { setCpusSystemTimeSecs(other.getCpusSystemTimeSecs()); } if (other.hasCpusLimit()) { setCpusLimit(other.getCpusLimit()); } if (other.hasCpusNrPeriods()) { setCpusNrPeriods(other.getCpusNrPeriods()); } if (other.hasCpusNrThrottled()) { setCpusNrThrottled(other.getCpusNrThrottled()); } if (other.hasCpusThrottledTimeSecs()) { setCpusThrottledTimeSecs(other.getCpusThrottledTimeSecs()); } if (other.hasMemTotalBytes()) { setMemTotalBytes(other.getMemTotalBytes()); } if (other.hasMemTotalMemswBytes()) { setMemTotalMemswBytes(other.getMemTotalMemswBytes()); } if (other.hasMemLimitBytes()) { setMemLimitBytes(other.getMemLimitBytes()); } if (other.hasMemSoftLimitBytes()) { setMemSoftLimitBytes(other.getMemSoftLimitBytes()); } if (other.hasMemFileBytes()) { setMemFileBytes(other.getMemFileBytes()); } if (other.hasMemAnonBytes()) { setMemAnonBytes(other.getMemAnonBytes()); } if (other.hasMemCacheBytes()) { setMemCacheBytes(other.getMemCacheBytes()); } if (other.hasMemRssBytes()) { setMemRssBytes(other.getMemRssBytes()); } if (other.hasMemMappedFileBytes()) { setMemMappedFileBytes(other.getMemMappedFileBytes()); } if (other.hasMemSwapBytes()) { setMemSwapBytes(other.getMemSwapBytes()); } if (other.hasMemUnevictableBytes()) { setMemUnevictableBytes(other.getMemUnevictableBytes()); } if (other.hasMemLowPressureCounter()) { setMemLowPressureCounter(other.getMemLowPressureCounter()); } if (other.hasMemMediumPressureCounter()) { setMemMediumPressureCounter(other.getMemMediumPressureCounter()); } if (other.hasMemCriticalPressureCounter()) { setMemCriticalPressureCounter(other.getMemCriticalPressureCounter()); } if (other.hasDiskLimitBytes()) { setDiskLimitBytes(other.getDiskLimitBytes()); } if (other.hasDiskUsedBytes()) { setDiskUsedBytes(other.getDiskUsedBytes()); } if (diskStatisticsBuilder_ == null) { if (!other.diskStatistics_.isEmpty()) { if (diskStatistics_.isEmpty()) { diskStatistics_ = other.diskStatistics_; bitField0_ = (bitField0_ & ~0x02000000); } else { ensureDiskStatisticsIsMutable(); diskStatistics_.addAll(other.diskStatistics_); } onChanged(); } } else { if (!other.diskStatistics_.isEmpty()) { if (diskStatisticsBuilder_.isEmpty()) { diskStatisticsBuilder_.dispose(); diskStatisticsBuilder_ = null; diskStatistics_ = other.diskStatistics_; bitField0_ = (bitField0_ & ~0x02000000); diskStatisticsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDiskStatisticsFieldBuilder() : null; } else { diskStatisticsBuilder_.addAllMessages(other.diskStatistics_); } } } if (other.hasBlkioStatistics()) { mergeBlkioStatistics(other.getBlkioStatistics()); } if (other.hasPerf()) { mergePerf(other.getPerf()); } if (other.hasNetRxPackets()) { setNetRxPackets(other.getNetRxPackets()); } if (other.hasNetRxBytes()) { setNetRxBytes(other.getNetRxBytes()); } if (other.hasNetRxErrors()) { setNetRxErrors(other.getNetRxErrors()); } if (other.hasNetRxDropped()) { setNetRxDropped(other.getNetRxDropped()); } if (other.hasNetTxPackets()) { setNetTxPackets(other.getNetTxPackets()); } if (other.hasNetTxBytes()) { setNetTxBytes(other.getNetTxBytes()); } if (other.hasNetTxErrors()) { setNetTxErrors(other.getNetTxErrors()); } if (other.hasNetTxDropped()) { setNetTxDropped(other.getNetTxDropped()); } if (other.hasNetTcpRttMicrosecsP50()) { setNetTcpRttMicrosecsP50(other.getNetTcpRttMicrosecsP50()); } if (other.hasNetTcpRttMicrosecsP90()) { setNetTcpRttMicrosecsP90(other.getNetTcpRttMicrosecsP90()); } if (other.hasNetTcpRttMicrosecsP95()) { setNetTcpRttMicrosecsP95(other.getNetTcpRttMicrosecsP95()); } if (other.hasNetTcpRttMicrosecsP99()) { setNetTcpRttMicrosecsP99(other.getNetTcpRttMicrosecsP99()); } if (other.hasNetTcpActiveConnections()) { setNetTcpActiveConnections(other.getNetTcpActiveConnections()); } if (other.hasNetTcpTimeWaitConnections()) { setNetTcpTimeWaitConnections(other.getNetTcpTimeWaitConnections()); } if (netTrafficControlStatisticsBuilder_ == null) { if (!other.netTrafficControlStatistics_.isEmpty()) { if (netTrafficControlStatistics_.isEmpty()) { netTrafficControlStatistics_ = other.netTrafficControlStatistics_; bitField1_ = (bitField1_ & ~0x00000400); } else { ensureNetTrafficControlStatisticsIsMutable(); netTrafficControlStatistics_.addAll(other.netTrafficControlStatistics_); } onChanged(); } } else { if (!other.netTrafficControlStatistics_.isEmpty()) { if (netTrafficControlStatisticsBuilder_.isEmpty()) { netTrafficControlStatisticsBuilder_.dispose(); netTrafficControlStatisticsBuilder_ = null; netTrafficControlStatistics_ = other.netTrafficControlStatistics_; bitField1_ = (bitField1_ & ~0x00000400); netTrafficControlStatisticsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNetTrafficControlStatisticsFieldBuilder() : null; } else { netTrafficControlStatisticsBuilder_.addAllMessages(other.netTrafficControlStatistics_); } } } if (other.hasNetSnmpStatistics()) { mergeNetSnmpStatistics(other.getNetSnmpStatistics()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasTimestamp()) { return false; } for (int i = 0; i < getDiskStatisticsCount(); i++) { if (!getDiskStatistics(i).isInitialized()) { return false; } } if (hasBlkioStatistics()) { if (!getBlkioStatistics().isInitialized()) { return false; } } if (hasPerf()) { if (!getPerf().isInitialized()) { return false; } } for (int i = 0; i < getNetTrafficControlStatisticsCount(); i++) { if (!getNetTrafficControlStatistics(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.Protos.ResourceStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ResourceStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bitField1_; private double timestamp_ ; /** *
       * Snapshot time, in seconds since the Epoch.
       * 
* * required double timestamp = 1; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Snapshot time, in seconds since the Epoch.
       * 
* * required double timestamp = 1; */ public double getTimestamp() { return timestamp_; } /** *
       * Snapshot time, in seconds since the Epoch.
       * 
* * required double timestamp = 1; */ public Builder setTimestamp(double value) { bitField0_ |= 0x00000001; timestamp_ = value; onChanged(); return this; } /** *
       * Snapshot time, in seconds since the Epoch.
       * 
* * required double timestamp = 1; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = 0D; onChanged(); return this; } private int processes_ ; /** * optional uint32 processes = 30; */ public boolean hasProcesses() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 processes = 30; */ public int getProcesses() { return processes_; } /** * optional uint32 processes = 30; */ public Builder setProcesses(int value) { bitField0_ |= 0x00000002; processes_ = value; onChanged(); return this; } /** * optional uint32 processes = 30; */ public Builder clearProcesses() { bitField0_ = (bitField0_ & ~0x00000002); processes_ = 0; onChanged(); return this; } private int threads_ ; /** * optional uint32 threads = 31; */ public boolean hasThreads() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 threads = 31; */ public int getThreads() { return threads_; } /** * optional uint32 threads = 31; */ public Builder setThreads(int value) { bitField0_ |= 0x00000004; threads_ = value; onChanged(); return this; } /** * optional uint32 threads = 31; */ public Builder clearThreads() { bitField0_ = (bitField0_ & ~0x00000004); threads_ = 0; onChanged(); return this; } private double cpusUserTimeSecs_ ; /** *
       * CPU Usage Information:
       * Total CPU time spent in user mode, and kernel mode.
       * 
* * optional double cpus_user_time_secs = 2; */ public boolean hasCpusUserTimeSecs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * CPU Usage Information:
       * Total CPU time spent in user mode, and kernel mode.
       * 
* * optional double cpus_user_time_secs = 2; */ public double getCpusUserTimeSecs() { return cpusUserTimeSecs_; } /** *
       * CPU Usage Information:
       * Total CPU time spent in user mode, and kernel mode.
       * 
* * optional double cpus_user_time_secs = 2; */ public Builder setCpusUserTimeSecs(double value) { bitField0_ |= 0x00000008; cpusUserTimeSecs_ = value; onChanged(); return this; } /** *
       * CPU Usage Information:
       * Total CPU time spent in user mode, and kernel mode.
       * 
* * optional double cpus_user_time_secs = 2; */ public Builder clearCpusUserTimeSecs() { bitField0_ = (bitField0_ & ~0x00000008); cpusUserTimeSecs_ = 0D; onChanged(); return this; } private double cpusSystemTimeSecs_ ; /** * optional double cpus_system_time_secs = 3; */ public boolean hasCpusSystemTimeSecs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional double cpus_system_time_secs = 3; */ public double getCpusSystemTimeSecs() { return cpusSystemTimeSecs_; } /** * optional double cpus_system_time_secs = 3; */ public Builder setCpusSystemTimeSecs(double value) { bitField0_ |= 0x00000010; cpusSystemTimeSecs_ = value; onChanged(); return this; } /** * optional double cpus_system_time_secs = 3; */ public Builder clearCpusSystemTimeSecs() { bitField0_ = (bitField0_ & ~0x00000010); cpusSystemTimeSecs_ = 0D; onChanged(); return this; } private double cpusLimit_ ; /** *
       * Number of CPUs allocated.
       * 
* * optional double cpus_limit = 4; */ public boolean hasCpusLimit() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * Number of CPUs allocated.
       * 
* * optional double cpus_limit = 4; */ public double getCpusLimit() { return cpusLimit_; } /** *
       * Number of CPUs allocated.
       * 
* * optional double cpus_limit = 4; */ public Builder setCpusLimit(double value) { bitField0_ |= 0x00000020; cpusLimit_ = value; onChanged(); return this; } /** *
       * Number of CPUs allocated.
       * 
* * optional double cpus_limit = 4; */ public Builder clearCpusLimit() { bitField0_ = (bitField0_ & ~0x00000020); cpusLimit_ = 0D; onChanged(); return this; } private int cpusNrPeriods_ ; /** *
       * cpu.stat on process throttling (for contention issues).
       * 
* * optional uint32 cpus_nr_periods = 7; */ public boolean hasCpusNrPeriods() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * cpu.stat on process throttling (for contention issues).
       * 
* * optional uint32 cpus_nr_periods = 7; */ public int getCpusNrPeriods() { return cpusNrPeriods_; } /** *
       * cpu.stat on process throttling (for contention issues).
       * 
* * optional uint32 cpus_nr_periods = 7; */ public Builder setCpusNrPeriods(int value) { bitField0_ |= 0x00000040; cpusNrPeriods_ = value; onChanged(); return this; } /** *
       * cpu.stat on process throttling (for contention issues).
       * 
* * optional uint32 cpus_nr_periods = 7; */ public Builder clearCpusNrPeriods() { bitField0_ = (bitField0_ & ~0x00000040); cpusNrPeriods_ = 0; onChanged(); return this; } private int cpusNrThrottled_ ; /** * optional uint32 cpus_nr_throttled = 8; */ public boolean hasCpusNrThrottled() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 cpus_nr_throttled = 8; */ public int getCpusNrThrottled() { return cpusNrThrottled_; } /** * optional uint32 cpus_nr_throttled = 8; */ public Builder setCpusNrThrottled(int value) { bitField0_ |= 0x00000080; cpusNrThrottled_ = value; onChanged(); return this; } /** * optional uint32 cpus_nr_throttled = 8; */ public Builder clearCpusNrThrottled() { bitField0_ = (bitField0_ & ~0x00000080); cpusNrThrottled_ = 0; onChanged(); return this; } private double cpusThrottledTimeSecs_ ; /** * optional double cpus_throttled_time_secs = 9; */ public boolean hasCpusThrottledTimeSecs() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional double cpus_throttled_time_secs = 9; */ public double getCpusThrottledTimeSecs() { return cpusThrottledTimeSecs_; } /** * optional double cpus_throttled_time_secs = 9; */ public Builder setCpusThrottledTimeSecs(double value) { bitField0_ |= 0x00000100; cpusThrottledTimeSecs_ = value; onChanged(); return this; } /** * optional double cpus_throttled_time_secs = 9; */ public Builder clearCpusThrottledTimeSecs() { bitField0_ = (bitField0_ & ~0x00000100); cpusThrottledTimeSecs_ = 0D; onChanged(); return this; } private long memTotalBytes_ ; /** *
       * mem_total_bytes was added in 0.23.0 to represent the total memory
       * of a process in RAM (as opposed to in Swap). This was previously
       * reported as mem_rss_bytes, which was also changed in 0.23.0 to
       * represent only the anonymous memory usage, to keep in sync with
       * Linux kernel's (arguably erroneous) use of terminology.
       * 
* * optional uint64 mem_total_bytes = 36; */ public boolean hasMemTotalBytes() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       * mem_total_bytes was added in 0.23.0 to represent the total memory
       * of a process in RAM (as opposed to in Swap). This was previously
       * reported as mem_rss_bytes, which was also changed in 0.23.0 to
       * represent only the anonymous memory usage, to keep in sync with
       * Linux kernel's (arguably erroneous) use of terminology.
       * 
* * optional uint64 mem_total_bytes = 36; */ public long getMemTotalBytes() { return memTotalBytes_; } /** *
       * mem_total_bytes was added in 0.23.0 to represent the total memory
       * of a process in RAM (as opposed to in Swap). This was previously
       * reported as mem_rss_bytes, which was also changed in 0.23.0 to
       * represent only the anonymous memory usage, to keep in sync with
       * Linux kernel's (arguably erroneous) use of terminology.
       * 
* * optional uint64 mem_total_bytes = 36; */ public Builder setMemTotalBytes(long value) { bitField0_ |= 0x00000200; memTotalBytes_ = value; onChanged(); return this; } /** *
       * mem_total_bytes was added in 0.23.0 to represent the total memory
       * of a process in RAM (as opposed to in Swap). This was previously
       * reported as mem_rss_bytes, which was also changed in 0.23.0 to
       * represent only the anonymous memory usage, to keep in sync with
       * Linux kernel's (arguably erroneous) use of terminology.
       * 
* * optional uint64 mem_total_bytes = 36; */ public Builder clearMemTotalBytes() { bitField0_ = (bitField0_ & ~0x00000200); memTotalBytes_ = 0L; onChanged(); return this; } private long memTotalMemswBytes_ ; /** *
       * Total memory + swap usage. This is set if swap is enabled.
       * 
* * optional uint64 mem_total_memsw_bytes = 37; */ public boolean hasMemTotalMemswBytes() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
       * Total memory + swap usage. This is set if swap is enabled.
       * 
* * optional uint64 mem_total_memsw_bytes = 37; */ public long getMemTotalMemswBytes() { return memTotalMemswBytes_; } /** *
       * Total memory + swap usage. This is set if swap is enabled.
       * 
* * optional uint64 mem_total_memsw_bytes = 37; */ public Builder setMemTotalMemswBytes(long value) { bitField0_ |= 0x00000400; memTotalMemswBytes_ = value; onChanged(); return this; } /** *
       * Total memory + swap usage. This is set if swap is enabled.
       * 
* * optional uint64 mem_total_memsw_bytes = 37; */ public Builder clearMemTotalMemswBytes() { bitField0_ = (bitField0_ & ~0x00000400); memTotalMemswBytes_ = 0L; onChanged(); return this; } private long memLimitBytes_ ; /** *
       * Hard memory limit for a container.
       * 
* * optional uint64 mem_limit_bytes = 6; */ public boolean hasMemLimitBytes() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       * Hard memory limit for a container.
       * 
* * optional uint64 mem_limit_bytes = 6; */ public long getMemLimitBytes() { return memLimitBytes_; } /** *
       * Hard memory limit for a container.
       * 
* * optional uint64 mem_limit_bytes = 6; */ public Builder setMemLimitBytes(long value) { bitField0_ |= 0x00000800; memLimitBytes_ = value; onChanged(); return this; } /** *
       * Hard memory limit for a container.
       * 
* * optional uint64 mem_limit_bytes = 6; */ public Builder clearMemLimitBytes() { bitField0_ = (bitField0_ & ~0x00000800); memLimitBytes_ = 0L; onChanged(); return this; } private long memSoftLimitBytes_ ; /** *
       * Soft memory limit for a container.
       * 
* * optional uint64 mem_soft_limit_bytes = 38; */ public boolean hasMemSoftLimitBytes() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
       * Soft memory limit for a container.
       * 
* * optional uint64 mem_soft_limit_bytes = 38; */ public long getMemSoftLimitBytes() { return memSoftLimitBytes_; } /** *
       * Soft memory limit for a container.
       * 
* * optional uint64 mem_soft_limit_bytes = 38; */ public Builder setMemSoftLimitBytes(long value) { bitField0_ |= 0x00001000; memSoftLimitBytes_ = value; onChanged(); return this; } /** *
       * Soft memory limit for a container.
       * 
* * optional uint64 mem_soft_limit_bytes = 38; */ public Builder clearMemSoftLimitBytes() { bitField0_ = (bitField0_ & ~0x00001000); memSoftLimitBytes_ = 0L; onChanged(); return this; } private long memFileBytes_ ; /** *
       * TODO(chzhcn) mem_file_bytes and mem_anon_bytes are deprecated in
       * 0.23.0 and will be removed in 0.24.0.
       * 
* * optional uint64 mem_file_bytes = 10; */ public boolean hasMemFileBytes() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
       * TODO(chzhcn) mem_file_bytes and mem_anon_bytes are deprecated in
       * 0.23.0 and will be removed in 0.24.0.
       * 
* * optional uint64 mem_file_bytes = 10; */ public long getMemFileBytes() { return memFileBytes_; } /** *
       * TODO(chzhcn) mem_file_bytes and mem_anon_bytes are deprecated in
       * 0.23.0 and will be removed in 0.24.0.
       * 
* * optional uint64 mem_file_bytes = 10; */ public Builder setMemFileBytes(long value) { bitField0_ |= 0x00002000; memFileBytes_ = value; onChanged(); return this; } /** *
       * TODO(chzhcn) mem_file_bytes and mem_anon_bytes are deprecated in
       * 0.23.0 and will be removed in 0.24.0.
       * 
* * optional uint64 mem_file_bytes = 10; */ public Builder clearMemFileBytes() { bitField0_ = (bitField0_ & ~0x00002000); memFileBytes_ = 0L; onChanged(); return this; } private long memAnonBytes_ ; /** * optional uint64 mem_anon_bytes = 11; */ public boolean hasMemAnonBytes() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional uint64 mem_anon_bytes = 11; */ public long getMemAnonBytes() { return memAnonBytes_; } /** * optional uint64 mem_anon_bytes = 11; */ public Builder setMemAnonBytes(long value) { bitField0_ |= 0x00004000; memAnonBytes_ = value; onChanged(); return this; } /** * optional uint64 mem_anon_bytes = 11; */ public Builder clearMemAnonBytes() { bitField0_ = (bitField0_ & ~0x00004000); memAnonBytes_ = 0L; onChanged(); return this; } private long memCacheBytes_ ; /** *
       * mem_cache_bytes is added in 0.23.0 to represent page cache usage.
       * 
* * optional uint64 mem_cache_bytes = 39; */ public boolean hasMemCacheBytes() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** *
       * mem_cache_bytes is added in 0.23.0 to represent page cache usage.
       * 
* * optional uint64 mem_cache_bytes = 39; */ public long getMemCacheBytes() { return memCacheBytes_; } /** *
       * mem_cache_bytes is added in 0.23.0 to represent page cache usage.
       * 
* * optional uint64 mem_cache_bytes = 39; */ public Builder setMemCacheBytes(long value) { bitField0_ |= 0x00008000; memCacheBytes_ = value; onChanged(); return this; } /** *
       * mem_cache_bytes is added in 0.23.0 to represent page cache usage.
       * 
* * optional uint64 mem_cache_bytes = 39; */ public Builder clearMemCacheBytes() { bitField0_ = (bitField0_ & ~0x00008000); memCacheBytes_ = 0L; onChanged(); return this; } private long memRssBytes_ ; /** *
       * Since 0.23.0, mem_rss_bytes is changed to represent only
       * anonymous memory usage. Note that neither its requiredness, type,
       * name nor numeric tag has been changed.
       * 
* * optional uint64 mem_rss_bytes = 5; */ public boolean hasMemRssBytes() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** *
       * Since 0.23.0, mem_rss_bytes is changed to represent only
       * anonymous memory usage. Note that neither its requiredness, type,
       * name nor numeric tag has been changed.
       * 
* * optional uint64 mem_rss_bytes = 5; */ public long getMemRssBytes() { return memRssBytes_; } /** *
       * Since 0.23.0, mem_rss_bytes is changed to represent only
       * anonymous memory usage. Note that neither its requiredness, type,
       * name nor numeric tag has been changed.
       * 
* * optional uint64 mem_rss_bytes = 5; */ public Builder setMemRssBytes(long value) { bitField0_ |= 0x00010000; memRssBytes_ = value; onChanged(); return this; } /** *
       * Since 0.23.0, mem_rss_bytes is changed to represent only
       * anonymous memory usage. Note that neither its requiredness, type,
       * name nor numeric tag has been changed.
       * 
* * optional uint64 mem_rss_bytes = 5; */ public Builder clearMemRssBytes() { bitField0_ = (bitField0_ & ~0x00010000); memRssBytes_ = 0L; onChanged(); return this; } private long memMappedFileBytes_ ; /** * optional uint64 mem_mapped_file_bytes = 12; */ public boolean hasMemMappedFileBytes() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional uint64 mem_mapped_file_bytes = 12; */ public long getMemMappedFileBytes() { return memMappedFileBytes_; } /** * optional uint64 mem_mapped_file_bytes = 12; */ public Builder setMemMappedFileBytes(long value) { bitField0_ |= 0x00020000; memMappedFileBytes_ = value; onChanged(); return this; } /** * optional uint64 mem_mapped_file_bytes = 12; */ public Builder clearMemMappedFileBytes() { bitField0_ = (bitField0_ & ~0x00020000); memMappedFileBytes_ = 0L; onChanged(); return this; } private long memSwapBytes_ ; /** *
       * This is only set if swap is enabled.
       * 
* * optional uint64 mem_swap_bytes = 40; */ public boolean hasMemSwapBytes() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** *
       * This is only set if swap is enabled.
       * 
* * optional uint64 mem_swap_bytes = 40; */ public long getMemSwapBytes() { return memSwapBytes_; } /** *
       * This is only set if swap is enabled.
       * 
* * optional uint64 mem_swap_bytes = 40; */ public Builder setMemSwapBytes(long value) { bitField0_ |= 0x00040000; memSwapBytes_ = value; onChanged(); return this; } /** *
       * This is only set if swap is enabled.
       * 
* * optional uint64 mem_swap_bytes = 40; */ public Builder clearMemSwapBytes() { bitField0_ = (bitField0_ & ~0x00040000); memSwapBytes_ = 0L; onChanged(); return this; } private long memUnevictableBytes_ ; /** * optional uint64 mem_unevictable_bytes = 41; */ public boolean hasMemUnevictableBytes() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional uint64 mem_unevictable_bytes = 41; */ public long getMemUnevictableBytes() { return memUnevictableBytes_; } /** * optional uint64 mem_unevictable_bytes = 41; */ public Builder setMemUnevictableBytes(long value) { bitField0_ |= 0x00080000; memUnevictableBytes_ = value; onChanged(); return this; } /** * optional uint64 mem_unevictable_bytes = 41; */ public Builder clearMemUnevictableBytes() { bitField0_ = (bitField0_ & ~0x00080000); memUnevictableBytes_ = 0L; onChanged(); return this; } private long memLowPressureCounter_ ; /** *
       * Number of occurrences of different levels of memory pressure
       * events reported by memory cgroup. Pressure listening (re)starts
       * with these values set to 0 when agent (re)starts. See
       * https://www.kernel.org/doc/Documentation/cgroups/memory.txt for
       * more details.
       * 
* * optional uint64 mem_low_pressure_counter = 32; */ public boolean hasMemLowPressureCounter() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** *
       * Number of occurrences of different levels of memory pressure
       * events reported by memory cgroup. Pressure listening (re)starts
       * with these values set to 0 when agent (re)starts. See
       * https://www.kernel.org/doc/Documentation/cgroups/memory.txt for
       * more details.
       * 
* * optional uint64 mem_low_pressure_counter = 32; */ public long getMemLowPressureCounter() { return memLowPressureCounter_; } /** *
       * Number of occurrences of different levels of memory pressure
       * events reported by memory cgroup. Pressure listening (re)starts
       * with these values set to 0 when agent (re)starts. See
       * https://www.kernel.org/doc/Documentation/cgroups/memory.txt for
       * more details.
       * 
* * optional uint64 mem_low_pressure_counter = 32; */ public Builder setMemLowPressureCounter(long value) { bitField0_ |= 0x00100000; memLowPressureCounter_ = value; onChanged(); return this; } /** *
       * Number of occurrences of different levels of memory pressure
       * events reported by memory cgroup. Pressure listening (re)starts
       * with these values set to 0 when agent (re)starts. See
       * https://www.kernel.org/doc/Documentation/cgroups/memory.txt for
       * more details.
       * 
* * optional uint64 mem_low_pressure_counter = 32; */ public Builder clearMemLowPressureCounter() { bitField0_ = (bitField0_ & ~0x00100000); memLowPressureCounter_ = 0L; onChanged(); return this; } private long memMediumPressureCounter_ ; /** * optional uint64 mem_medium_pressure_counter = 33; */ public boolean hasMemMediumPressureCounter() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional uint64 mem_medium_pressure_counter = 33; */ public long getMemMediumPressureCounter() { return memMediumPressureCounter_; } /** * optional uint64 mem_medium_pressure_counter = 33; */ public Builder setMemMediumPressureCounter(long value) { bitField0_ |= 0x00200000; memMediumPressureCounter_ = value; onChanged(); return this; } /** * optional uint64 mem_medium_pressure_counter = 33; */ public Builder clearMemMediumPressureCounter() { bitField0_ = (bitField0_ & ~0x00200000); memMediumPressureCounter_ = 0L; onChanged(); return this; } private long memCriticalPressureCounter_ ; /** * optional uint64 mem_critical_pressure_counter = 34; */ public boolean hasMemCriticalPressureCounter() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional uint64 mem_critical_pressure_counter = 34; */ public long getMemCriticalPressureCounter() { return memCriticalPressureCounter_; } /** * optional uint64 mem_critical_pressure_counter = 34; */ public Builder setMemCriticalPressureCounter(long value) { bitField0_ |= 0x00400000; memCriticalPressureCounter_ = value; onChanged(); return this; } /** * optional uint64 mem_critical_pressure_counter = 34; */ public Builder clearMemCriticalPressureCounter() { bitField0_ = (bitField0_ & ~0x00400000); memCriticalPressureCounter_ = 0L; onChanged(); return this; } private long diskLimitBytes_ ; /** *
       * Disk Usage Information for executor working directory.
       * 
* * optional uint64 disk_limit_bytes = 26; */ public boolean hasDiskLimitBytes() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** *
       * Disk Usage Information for executor working directory.
       * 
* * optional uint64 disk_limit_bytes = 26; */ public long getDiskLimitBytes() { return diskLimitBytes_; } /** *
       * Disk Usage Information for executor working directory.
       * 
* * optional uint64 disk_limit_bytes = 26; */ public Builder setDiskLimitBytes(long value) { bitField0_ |= 0x00800000; diskLimitBytes_ = value; onChanged(); return this; } /** *
       * Disk Usage Information for executor working directory.
       * 
* * optional uint64 disk_limit_bytes = 26; */ public Builder clearDiskLimitBytes() { bitField0_ = (bitField0_ & ~0x00800000); diskLimitBytes_ = 0L; onChanged(); return this; } private long diskUsedBytes_ ; /** * optional uint64 disk_used_bytes = 27; */ public boolean hasDiskUsedBytes() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional uint64 disk_used_bytes = 27; */ public long getDiskUsedBytes() { return diskUsedBytes_; } /** * optional uint64 disk_used_bytes = 27; */ public Builder setDiskUsedBytes(long value) { bitField0_ |= 0x01000000; diskUsedBytes_ = value; onChanged(); return this; } /** * optional uint64 disk_used_bytes = 27; */ public Builder clearDiskUsedBytes() { bitField0_ = (bitField0_ & ~0x01000000); diskUsedBytes_ = 0L; onChanged(); return this; } private java.util.List diskStatistics_ = java.util.Collections.emptyList(); private void ensureDiskStatisticsIsMutable() { if (!((bitField0_ & 0x02000000) == 0x02000000)) { diskStatistics_ = new java.util.ArrayList(diskStatistics_); bitField0_ |= 0x02000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.DiskStatistics, org.apache.mesos.v1.Protos.DiskStatistics.Builder, org.apache.mesos.v1.Protos.DiskStatisticsOrBuilder> diskStatisticsBuilder_; /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public java.util.List getDiskStatisticsList() { if (diskStatisticsBuilder_ == null) { return java.util.Collections.unmodifiableList(diskStatistics_); } else { return diskStatisticsBuilder_.getMessageList(); } } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public int getDiskStatisticsCount() { if (diskStatisticsBuilder_ == null) { return diskStatistics_.size(); } else { return diskStatisticsBuilder_.getCount(); } } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public org.apache.mesos.v1.Protos.DiskStatistics getDiskStatistics(int index) { if (diskStatisticsBuilder_ == null) { return diskStatistics_.get(index); } else { return diskStatisticsBuilder_.getMessage(index); } } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder setDiskStatistics( int index, org.apache.mesos.v1.Protos.DiskStatistics value) { if (diskStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiskStatisticsIsMutable(); diskStatistics_.set(index, value); onChanged(); } else { diskStatisticsBuilder_.setMessage(index, value); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder setDiskStatistics( int index, org.apache.mesos.v1.Protos.DiskStatistics.Builder builderForValue) { if (diskStatisticsBuilder_ == null) { ensureDiskStatisticsIsMutable(); diskStatistics_.set(index, builderForValue.build()); onChanged(); } else { diskStatisticsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder addDiskStatistics(org.apache.mesos.v1.Protos.DiskStatistics value) { if (diskStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiskStatisticsIsMutable(); diskStatistics_.add(value); onChanged(); } else { diskStatisticsBuilder_.addMessage(value); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder addDiskStatistics( int index, org.apache.mesos.v1.Protos.DiskStatistics value) { if (diskStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiskStatisticsIsMutable(); diskStatistics_.add(index, value); onChanged(); } else { diskStatisticsBuilder_.addMessage(index, value); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder addDiskStatistics( org.apache.mesos.v1.Protos.DiskStatistics.Builder builderForValue) { if (diskStatisticsBuilder_ == null) { ensureDiskStatisticsIsMutable(); diskStatistics_.add(builderForValue.build()); onChanged(); } else { diskStatisticsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder addDiskStatistics( int index, org.apache.mesos.v1.Protos.DiskStatistics.Builder builderForValue) { if (diskStatisticsBuilder_ == null) { ensureDiskStatisticsIsMutable(); diskStatistics_.add(index, builderForValue.build()); onChanged(); } else { diskStatisticsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder addAllDiskStatistics( java.lang.Iterable values) { if (diskStatisticsBuilder_ == null) { ensureDiskStatisticsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, diskStatistics_); onChanged(); } else { diskStatisticsBuilder_.addAllMessages(values); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder clearDiskStatistics() { if (diskStatisticsBuilder_ == null) { diskStatistics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x02000000); onChanged(); } else { diskStatisticsBuilder_.clear(); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public Builder removeDiskStatistics(int index) { if (diskStatisticsBuilder_ == null) { ensureDiskStatisticsIsMutable(); diskStatistics_.remove(index); onChanged(); } else { diskStatisticsBuilder_.remove(index); } return this; } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public org.apache.mesos.v1.Protos.DiskStatistics.Builder getDiskStatisticsBuilder( int index) { return getDiskStatisticsFieldBuilder().getBuilder(index); } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public org.apache.mesos.v1.Protos.DiskStatisticsOrBuilder getDiskStatisticsOrBuilder( int index) { if (diskStatisticsBuilder_ == null) { return diskStatistics_.get(index); } else { return diskStatisticsBuilder_.getMessageOrBuilder(index); } } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public java.util.List getDiskStatisticsOrBuilderList() { if (diskStatisticsBuilder_ != null) { return diskStatisticsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(diskStatistics_); } } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public org.apache.mesos.v1.Protos.DiskStatistics.Builder addDiskStatisticsBuilder() { return getDiskStatisticsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.DiskStatistics.getDefaultInstance()); } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public org.apache.mesos.v1.Protos.DiskStatistics.Builder addDiskStatisticsBuilder( int index) { return getDiskStatisticsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.DiskStatistics.getDefaultInstance()); } /** *
       * Per disk (resource) statistics.
       * 
* * repeated .mesos.v1.DiskStatistics disk_statistics = 43; */ public java.util.List getDiskStatisticsBuilderList() { return getDiskStatisticsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.DiskStatistics, org.apache.mesos.v1.Protos.DiskStatistics.Builder, org.apache.mesos.v1.Protos.DiskStatisticsOrBuilder> getDiskStatisticsFieldBuilder() { if (diskStatisticsBuilder_ == null) { diskStatisticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.DiskStatistics, org.apache.mesos.v1.Protos.DiskStatistics.Builder, org.apache.mesos.v1.Protos.DiskStatisticsOrBuilder>( diskStatistics_, ((bitField0_ & 0x02000000) == 0x02000000), getParentForChildren(), isClean()); diskStatistics_ = null; } return diskStatisticsBuilder_; } private org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics blkioStatistics_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.StatisticsOrBuilder> blkioStatisticsBuilder_; /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public boolean hasBlkioStatistics() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics getBlkioStatistics() { if (blkioStatisticsBuilder_ == null) { return blkioStatistics_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.getDefaultInstance() : blkioStatistics_; } else { return blkioStatisticsBuilder_.getMessage(); } } /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public Builder setBlkioStatistics(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics value) { if (blkioStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blkioStatistics_ = value; onChanged(); } else { blkioStatisticsBuilder_.setMessage(value); } bitField0_ |= 0x04000000; return this; } /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public Builder setBlkioStatistics( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.Builder builderForValue) { if (blkioStatisticsBuilder_ == null) { blkioStatistics_ = builderForValue.build(); onChanged(); } else { blkioStatisticsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x04000000; return this; } /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public Builder mergeBlkioStatistics(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics value) { if (blkioStatisticsBuilder_ == null) { if (((bitField0_ & 0x04000000) == 0x04000000) && blkioStatistics_ != null && blkioStatistics_ != org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.getDefaultInstance()) { blkioStatistics_ = org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.newBuilder(blkioStatistics_).mergeFrom(value).buildPartial(); } else { blkioStatistics_ = value; } onChanged(); } else { blkioStatisticsBuilder_.mergeFrom(value); } bitField0_ |= 0x04000000; return this; } /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public Builder clearBlkioStatistics() { if (blkioStatisticsBuilder_ == null) { blkioStatistics_ = null; onChanged(); } else { blkioStatisticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x04000000); return this; } /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.Builder getBlkioStatisticsBuilder() { bitField0_ |= 0x04000000; onChanged(); return getBlkioStatisticsFieldBuilder().getBuilder(); } /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.StatisticsOrBuilder getBlkioStatisticsOrBuilder() { if (blkioStatisticsBuilder_ != null) { return blkioStatisticsBuilder_.getMessageOrBuilder(); } else { return blkioStatistics_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.getDefaultInstance() : blkioStatistics_; } } /** *
       * Cgroups blkio statistics.
       * 
* * optional .mesos.v1.CgroupInfo.Blkio.Statistics blkio_statistics = 44; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.StatisticsOrBuilder> getBlkioStatisticsFieldBuilder() { if (blkioStatisticsBuilder_ == null) { blkioStatisticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.StatisticsOrBuilder>( getBlkioStatistics(), getParentForChildren(), isClean()); blkioStatistics_ = null; } return blkioStatisticsBuilder_; } private org.apache.mesos.v1.Protos.PerfStatistics perf_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.PerfStatistics, org.apache.mesos.v1.Protos.PerfStatistics.Builder, org.apache.mesos.v1.Protos.PerfStatisticsOrBuilder> perfBuilder_; /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public boolean hasPerf() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public org.apache.mesos.v1.Protos.PerfStatistics getPerf() { if (perfBuilder_ == null) { return perf_ == null ? org.apache.mesos.v1.Protos.PerfStatistics.getDefaultInstance() : perf_; } else { return perfBuilder_.getMessage(); } } /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public Builder setPerf(org.apache.mesos.v1.Protos.PerfStatistics value) { if (perfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } perf_ = value; onChanged(); } else { perfBuilder_.setMessage(value); } bitField0_ |= 0x08000000; return this; } /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public Builder setPerf( org.apache.mesos.v1.Protos.PerfStatistics.Builder builderForValue) { if (perfBuilder_ == null) { perf_ = builderForValue.build(); onChanged(); } else { perfBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x08000000; return this; } /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public Builder mergePerf(org.apache.mesos.v1.Protos.PerfStatistics value) { if (perfBuilder_ == null) { if (((bitField0_ & 0x08000000) == 0x08000000) && perf_ != null && perf_ != org.apache.mesos.v1.Protos.PerfStatistics.getDefaultInstance()) { perf_ = org.apache.mesos.v1.Protos.PerfStatistics.newBuilder(perf_).mergeFrom(value).buildPartial(); } else { perf_ = value; } onChanged(); } else { perfBuilder_.mergeFrom(value); } bitField0_ |= 0x08000000; return this; } /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public Builder clearPerf() { if (perfBuilder_ == null) { perf_ = null; onChanged(); } else { perfBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); return this; } /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public org.apache.mesos.v1.Protos.PerfStatistics.Builder getPerfBuilder() { bitField0_ |= 0x08000000; onChanged(); return getPerfFieldBuilder().getBuilder(); } /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ public org.apache.mesos.v1.Protos.PerfStatisticsOrBuilder getPerfOrBuilder() { if (perfBuilder_ != null) { return perfBuilder_.getMessageOrBuilder(); } else { return perf_ == null ? org.apache.mesos.v1.Protos.PerfStatistics.getDefaultInstance() : perf_; } } /** *
       * Perf statistics.
       * 
* * optional .mesos.v1.PerfStatistics perf = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.PerfStatistics, org.apache.mesos.v1.Protos.PerfStatistics.Builder, org.apache.mesos.v1.Protos.PerfStatisticsOrBuilder> getPerfFieldBuilder() { if (perfBuilder_ == null) { perfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.PerfStatistics, org.apache.mesos.v1.Protos.PerfStatistics.Builder, org.apache.mesos.v1.Protos.PerfStatisticsOrBuilder>( getPerf(), getParentForChildren(), isClean()); perf_ = null; } return perfBuilder_; } private long netRxPackets_ ; /** *
       * Network Usage Information:
       * 
* * optional uint64 net_rx_packets = 14; */ public boolean hasNetRxPackets() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** *
       * Network Usage Information:
       * 
* * optional uint64 net_rx_packets = 14; */ public long getNetRxPackets() { return netRxPackets_; } /** *
       * Network Usage Information:
       * 
* * optional uint64 net_rx_packets = 14; */ public Builder setNetRxPackets(long value) { bitField0_ |= 0x10000000; netRxPackets_ = value; onChanged(); return this; } /** *
       * Network Usage Information:
       * 
* * optional uint64 net_rx_packets = 14; */ public Builder clearNetRxPackets() { bitField0_ = (bitField0_ & ~0x10000000); netRxPackets_ = 0L; onChanged(); return this; } private long netRxBytes_ ; /** * optional uint64 net_rx_bytes = 15; */ public boolean hasNetRxBytes() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * optional uint64 net_rx_bytes = 15; */ public long getNetRxBytes() { return netRxBytes_; } /** * optional uint64 net_rx_bytes = 15; */ public Builder setNetRxBytes(long value) { bitField0_ |= 0x20000000; netRxBytes_ = value; onChanged(); return this; } /** * optional uint64 net_rx_bytes = 15; */ public Builder clearNetRxBytes() { bitField0_ = (bitField0_ & ~0x20000000); netRxBytes_ = 0L; onChanged(); return this; } private long netRxErrors_ ; /** * optional uint64 net_rx_errors = 16; */ public boolean hasNetRxErrors() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * optional uint64 net_rx_errors = 16; */ public long getNetRxErrors() { return netRxErrors_; } /** * optional uint64 net_rx_errors = 16; */ public Builder setNetRxErrors(long value) { bitField0_ |= 0x40000000; netRxErrors_ = value; onChanged(); return this; } /** * optional uint64 net_rx_errors = 16; */ public Builder clearNetRxErrors() { bitField0_ = (bitField0_ & ~0x40000000); netRxErrors_ = 0L; onChanged(); return this; } private long netRxDropped_ ; /** * optional uint64 net_rx_dropped = 17; */ public boolean hasNetRxDropped() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * optional uint64 net_rx_dropped = 17; */ public long getNetRxDropped() { return netRxDropped_; } /** * optional uint64 net_rx_dropped = 17; */ public Builder setNetRxDropped(long value) { bitField0_ |= 0x80000000; netRxDropped_ = value; onChanged(); return this; } /** * optional uint64 net_rx_dropped = 17; */ public Builder clearNetRxDropped() { bitField0_ = (bitField0_ & ~0x80000000); netRxDropped_ = 0L; onChanged(); return this; } private long netTxPackets_ ; /** * optional uint64 net_tx_packets = 18; */ public boolean hasNetTxPackets() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * optional uint64 net_tx_packets = 18; */ public long getNetTxPackets() { return netTxPackets_; } /** * optional uint64 net_tx_packets = 18; */ public Builder setNetTxPackets(long value) { bitField1_ |= 0x00000001; netTxPackets_ = value; onChanged(); return this; } /** * optional uint64 net_tx_packets = 18; */ public Builder clearNetTxPackets() { bitField1_ = (bitField1_ & ~0x00000001); netTxPackets_ = 0L; onChanged(); return this; } private long netTxBytes_ ; /** * optional uint64 net_tx_bytes = 19; */ public boolean hasNetTxBytes() { return ((bitField1_ & 0x00000002) == 0x00000002); } /** * optional uint64 net_tx_bytes = 19; */ public long getNetTxBytes() { return netTxBytes_; } /** * optional uint64 net_tx_bytes = 19; */ public Builder setNetTxBytes(long value) { bitField1_ |= 0x00000002; netTxBytes_ = value; onChanged(); return this; } /** * optional uint64 net_tx_bytes = 19; */ public Builder clearNetTxBytes() { bitField1_ = (bitField1_ & ~0x00000002); netTxBytes_ = 0L; onChanged(); return this; } private long netTxErrors_ ; /** * optional uint64 net_tx_errors = 20; */ public boolean hasNetTxErrors() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** * optional uint64 net_tx_errors = 20; */ public long getNetTxErrors() { return netTxErrors_; } /** * optional uint64 net_tx_errors = 20; */ public Builder setNetTxErrors(long value) { bitField1_ |= 0x00000004; netTxErrors_ = value; onChanged(); return this; } /** * optional uint64 net_tx_errors = 20; */ public Builder clearNetTxErrors() { bitField1_ = (bitField1_ & ~0x00000004); netTxErrors_ = 0L; onChanged(); return this; } private long netTxDropped_ ; /** * optional uint64 net_tx_dropped = 21; */ public boolean hasNetTxDropped() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** * optional uint64 net_tx_dropped = 21; */ public long getNetTxDropped() { return netTxDropped_; } /** * optional uint64 net_tx_dropped = 21; */ public Builder setNetTxDropped(long value) { bitField1_ |= 0x00000008; netTxDropped_ = value; onChanged(); return this; } /** * optional uint64 net_tx_dropped = 21; */ public Builder clearNetTxDropped() { bitField1_ = (bitField1_ & ~0x00000008); netTxDropped_ = 0L; onChanged(); return this; } private double netTcpRttMicrosecsP50_ ; /** *
       * The kernel keeps track of RTT (round-trip time) for its TCP
       * sockets. RTT is a way to tell the latency of a container.
       * 
* * optional double net_tcp_rtt_microsecs_p50 = 22; */ public boolean hasNetTcpRttMicrosecsP50() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** *
       * The kernel keeps track of RTT (round-trip time) for its TCP
       * sockets. RTT is a way to tell the latency of a container.
       * 
* * optional double net_tcp_rtt_microsecs_p50 = 22; */ public double getNetTcpRttMicrosecsP50() { return netTcpRttMicrosecsP50_; } /** *
       * The kernel keeps track of RTT (round-trip time) for its TCP
       * sockets. RTT is a way to tell the latency of a container.
       * 
* * optional double net_tcp_rtt_microsecs_p50 = 22; */ public Builder setNetTcpRttMicrosecsP50(double value) { bitField1_ |= 0x00000010; netTcpRttMicrosecsP50_ = value; onChanged(); return this; } /** *
       * The kernel keeps track of RTT (round-trip time) for its TCP
       * sockets. RTT is a way to tell the latency of a container.
       * 
* * optional double net_tcp_rtt_microsecs_p50 = 22; */ public Builder clearNetTcpRttMicrosecsP50() { bitField1_ = (bitField1_ & ~0x00000010); netTcpRttMicrosecsP50_ = 0D; onChanged(); return this; } private double netTcpRttMicrosecsP90_ ; /** * optional double net_tcp_rtt_microsecs_p90 = 23; */ public boolean hasNetTcpRttMicrosecsP90() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** * optional double net_tcp_rtt_microsecs_p90 = 23; */ public double getNetTcpRttMicrosecsP90() { return netTcpRttMicrosecsP90_; } /** * optional double net_tcp_rtt_microsecs_p90 = 23; */ public Builder setNetTcpRttMicrosecsP90(double value) { bitField1_ |= 0x00000020; netTcpRttMicrosecsP90_ = value; onChanged(); return this; } /** * optional double net_tcp_rtt_microsecs_p90 = 23; */ public Builder clearNetTcpRttMicrosecsP90() { bitField1_ = (bitField1_ & ~0x00000020); netTcpRttMicrosecsP90_ = 0D; onChanged(); return this; } private double netTcpRttMicrosecsP95_ ; /** * optional double net_tcp_rtt_microsecs_p95 = 24; */ public boolean hasNetTcpRttMicrosecsP95() { return ((bitField1_ & 0x00000040) == 0x00000040); } /** * optional double net_tcp_rtt_microsecs_p95 = 24; */ public double getNetTcpRttMicrosecsP95() { return netTcpRttMicrosecsP95_; } /** * optional double net_tcp_rtt_microsecs_p95 = 24; */ public Builder setNetTcpRttMicrosecsP95(double value) { bitField1_ |= 0x00000040; netTcpRttMicrosecsP95_ = value; onChanged(); return this; } /** * optional double net_tcp_rtt_microsecs_p95 = 24; */ public Builder clearNetTcpRttMicrosecsP95() { bitField1_ = (bitField1_ & ~0x00000040); netTcpRttMicrosecsP95_ = 0D; onChanged(); return this; } private double netTcpRttMicrosecsP99_ ; /** * optional double net_tcp_rtt_microsecs_p99 = 25; */ public boolean hasNetTcpRttMicrosecsP99() { return ((bitField1_ & 0x00000080) == 0x00000080); } /** * optional double net_tcp_rtt_microsecs_p99 = 25; */ public double getNetTcpRttMicrosecsP99() { return netTcpRttMicrosecsP99_; } /** * optional double net_tcp_rtt_microsecs_p99 = 25; */ public Builder setNetTcpRttMicrosecsP99(double value) { bitField1_ |= 0x00000080; netTcpRttMicrosecsP99_ = value; onChanged(); return this; } /** * optional double net_tcp_rtt_microsecs_p99 = 25; */ public Builder clearNetTcpRttMicrosecsP99() { bitField1_ = (bitField1_ & ~0x00000080); netTcpRttMicrosecsP99_ = 0D; onChanged(); return this; } private double netTcpActiveConnections_ ; /** * optional double net_tcp_active_connections = 28; */ public boolean hasNetTcpActiveConnections() { return ((bitField1_ & 0x00000100) == 0x00000100); } /** * optional double net_tcp_active_connections = 28; */ public double getNetTcpActiveConnections() { return netTcpActiveConnections_; } /** * optional double net_tcp_active_connections = 28; */ public Builder setNetTcpActiveConnections(double value) { bitField1_ |= 0x00000100; netTcpActiveConnections_ = value; onChanged(); return this; } /** * optional double net_tcp_active_connections = 28; */ public Builder clearNetTcpActiveConnections() { bitField1_ = (bitField1_ & ~0x00000100); netTcpActiveConnections_ = 0D; onChanged(); return this; } private double netTcpTimeWaitConnections_ ; /** * optional double net_tcp_time_wait_connections = 29; */ public boolean hasNetTcpTimeWaitConnections() { return ((bitField1_ & 0x00000200) == 0x00000200); } /** * optional double net_tcp_time_wait_connections = 29; */ public double getNetTcpTimeWaitConnections() { return netTcpTimeWaitConnections_; } /** * optional double net_tcp_time_wait_connections = 29; */ public Builder setNetTcpTimeWaitConnections(double value) { bitField1_ |= 0x00000200; netTcpTimeWaitConnections_ = value; onChanged(); return this; } /** * optional double net_tcp_time_wait_connections = 29; */ public Builder clearNetTcpTimeWaitConnections() { bitField1_ = (bitField1_ & ~0x00000200); netTcpTimeWaitConnections_ = 0D; onChanged(); return this; } private java.util.List netTrafficControlStatistics_ = java.util.Collections.emptyList(); private void ensureNetTrafficControlStatisticsIsMutable() { if (!((bitField1_ & 0x00000400) == 0x00000400)) { netTrafficControlStatistics_ = new java.util.ArrayList(netTrafficControlStatistics_); bitField1_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TrafficControlStatistics, org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder, org.apache.mesos.v1.Protos.TrafficControlStatisticsOrBuilder> netTrafficControlStatisticsBuilder_; /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public java.util.List getNetTrafficControlStatisticsList() { if (netTrafficControlStatisticsBuilder_ == null) { return java.util.Collections.unmodifiableList(netTrafficControlStatistics_); } else { return netTrafficControlStatisticsBuilder_.getMessageList(); } } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public int getNetTrafficControlStatisticsCount() { if (netTrafficControlStatisticsBuilder_ == null) { return netTrafficControlStatistics_.size(); } else { return netTrafficControlStatisticsBuilder_.getCount(); } } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public org.apache.mesos.v1.Protos.TrafficControlStatistics getNetTrafficControlStatistics(int index) { if (netTrafficControlStatisticsBuilder_ == null) { return netTrafficControlStatistics_.get(index); } else { return netTrafficControlStatisticsBuilder_.getMessage(index); } } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder setNetTrafficControlStatistics( int index, org.apache.mesos.v1.Protos.TrafficControlStatistics value) { if (netTrafficControlStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetTrafficControlStatisticsIsMutable(); netTrafficControlStatistics_.set(index, value); onChanged(); } else { netTrafficControlStatisticsBuilder_.setMessage(index, value); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder setNetTrafficControlStatistics( int index, org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder builderForValue) { if (netTrafficControlStatisticsBuilder_ == null) { ensureNetTrafficControlStatisticsIsMutable(); netTrafficControlStatistics_.set(index, builderForValue.build()); onChanged(); } else { netTrafficControlStatisticsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder addNetTrafficControlStatistics(org.apache.mesos.v1.Protos.TrafficControlStatistics value) { if (netTrafficControlStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetTrafficControlStatisticsIsMutable(); netTrafficControlStatistics_.add(value); onChanged(); } else { netTrafficControlStatisticsBuilder_.addMessage(value); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder addNetTrafficControlStatistics( int index, org.apache.mesos.v1.Protos.TrafficControlStatistics value) { if (netTrafficControlStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetTrafficControlStatisticsIsMutable(); netTrafficControlStatistics_.add(index, value); onChanged(); } else { netTrafficControlStatisticsBuilder_.addMessage(index, value); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder addNetTrafficControlStatistics( org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder builderForValue) { if (netTrafficControlStatisticsBuilder_ == null) { ensureNetTrafficControlStatisticsIsMutable(); netTrafficControlStatistics_.add(builderForValue.build()); onChanged(); } else { netTrafficControlStatisticsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder addNetTrafficControlStatistics( int index, org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder builderForValue) { if (netTrafficControlStatisticsBuilder_ == null) { ensureNetTrafficControlStatisticsIsMutable(); netTrafficControlStatistics_.add(index, builderForValue.build()); onChanged(); } else { netTrafficControlStatisticsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder addAllNetTrafficControlStatistics( java.lang.Iterable values) { if (netTrafficControlStatisticsBuilder_ == null) { ensureNetTrafficControlStatisticsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, netTrafficControlStatistics_); onChanged(); } else { netTrafficControlStatisticsBuilder_.addAllMessages(values); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder clearNetTrafficControlStatistics() { if (netTrafficControlStatisticsBuilder_ == null) { netTrafficControlStatistics_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000400); onChanged(); } else { netTrafficControlStatisticsBuilder_.clear(); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public Builder removeNetTrafficControlStatistics(int index) { if (netTrafficControlStatisticsBuilder_ == null) { ensureNetTrafficControlStatisticsIsMutable(); netTrafficControlStatistics_.remove(index); onChanged(); } else { netTrafficControlStatisticsBuilder_.remove(index); } return this; } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder getNetTrafficControlStatisticsBuilder( int index) { return getNetTrafficControlStatisticsFieldBuilder().getBuilder(index); } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public org.apache.mesos.v1.Protos.TrafficControlStatisticsOrBuilder getNetTrafficControlStatisticsOrBuilder( int index) { if (netTrafficControlStatisticsBuilder_ == null) { return netTrafficControlStatistics_.get(index); } else { return netTrafficControlStatisticsBuilder_.getMessageOrBuilder(index); } } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public java.util.List getNetTrafficControlStatisticsOrBuilderList() { if (netTrafficControlStatisticsBuilder_ != null) { return netTrafficControlStatisticsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(netTrafficControlStatistics_); } } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder addNetTrafficControlStatisticsBuilder() { return getNetTrafficControlStatisticsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.TrafficControlStatistics.getDefaultInstance()); } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder addNetTrafficControlStatisticsBuilder( int index) { return getNetTrafficControlStatisticsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.TrafficControlStatistics.getDefaultInstance()); } /** *
       * Network traffic flowing into or out of a container can be delayed
       * or dropped due to congestion or policy inside and outside the
       * container.
       * 
* * repeated .mesos.v1.TrafficControlStatistics net_traffic_control_statistics = 35; */ public java.util.List getNetTrafficControlStatisticsBuilderList() { return getNetTrafficControlStatisticsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TrafficControlStatistics, org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder, org.apache.mesos.v1.Protos.TrafficControlStatisticsOrBuilder> getNetTrafficControlStatisticsFieldBuilder() { if (netTrafficControlStatisticsBuilder_ == null) { netTrafficControlStatisticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TrafficControlStatistics, org.apache.mesos.v1.Protos.TrafficControlStatistics.Builder, org.apache.mesos.v1.Protos.TrafficControlStatisticsOrBuilder>( netTrafficControlStatistics_, ((bitField1_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); netTrafficControlStatistics_ = null; } return netTrafficControlStatisticsBuilder_; } private org.apache.mesos.v1.Protos.SNMPStatistics netSnmpStatistics_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.SNMPStatistics, org.apache.mesos.v1.Protos.SNMPStatistics.Builder, org.apache.mesos.v1.Protos.SNMPStatisticsOrBuilder> netSnmpStatisticsBuilder_; /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public boolean hasNetSnmpStatistics() { return ((bitField1_ & 0x00000800) == 0x00000800); } /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public org.apache.mesos.v1.Protos.SNMPStatistics getNetSnmpStatistics() { if (netSnmpStatisticsBuilder_ == null) { return netSnmpStatistics_ == null ? org.apache.mesos.v1.Protos.SNMPStatistics.getDefaultInstance() : netSnmpStatistics_; } else { return netSnmpStatisticsBuilder_.getMessage(); } } /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public Builder setNetSnmpStatistics(org.apache.mesos.v1.Protos.SNMPStatistics value) { if (netSnmpStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } netSnmpStatistics_ = value; onChanged(); } else { netSnmpStatisticsBuilder_.setMessage(value); } bitField1_ |= 0x00000800; return this; } /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public Builder setNetSnmpStatistics( org.apache.mesos.v1.Protos.SNMPStatistics.Builder builderForValue) { if (netSnmpStatisticsBuilder_ == null) { netSnmpStatistics_ = builderForValue.build(); onChanged(); } else { netSnmpStatisticsBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000800; return this; } /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public Builder mergeNetSnmpStatistics(org.apache.mesos.v1.Protos.SNMPStatistics value) { if (netSnmpStatisticsBuilder_ == null) { if (((bitField1_ & 0x00000800) == 0x00000800) && netSnmpStatistics_ != null && netSnmpStatistics_ != org.apache.mesos.v1.Protos.SNMPStatistics.getDefaultInstance()) { netSnmpStatistics_ = org.apache.mesos.v1.Protos.SNMPStatistics.newBuilder(netSnmpStatistics_).mergeFrom(value).buildPartial(); } else { netSnmpStatistics_ = value; } onChanged(); } else { netSnmpStatisticsBuilder_.mergeFrom(value); } bitField1_ |= 0x00000800; return this; } /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public Builder clearNetSnmpStatistics() { if (netSnmpStatisticsBuilder_ == null) { netSnmpStatistics_ = null; onChanged(); } else { netSnmpStatisticsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000800); return this; } /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public org.apache.mesos.v1.Protos.SNMPStatistics.Builder getNetSnmpStatisticsBuilder() { bitField1_ |= 0x00000800; onChanged(); return getNetSnmpStatisticsFieldBuilder().getBuilder(); } /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ public org.apache.mesos.v1.Protos.SNMPStatisticsOrBuilder getNetSnmpStatisticsOrBuilder() { if (netSnmpStatisticsBuilder_ != null) { return netSnmpStatisticsBuilder_.getMessageOrBuilder(); } else { return netSnmpStatistics_ == null ? org.apache.mesos.v1.Protos.SNMPStatistics.getDefaultInstance() : netSnmpStatistics_; } } /** *
       * Network SNMP statistics for each container.
       * 
* * optional .mesos.v1.SNMPStatistics net_snmp_statistics = 42; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.SNMPStatistics, org.apache.mesos.v1.Protos.SNMPStatistics.Builder, org.apache.mesos.v1.Protos.SNMPStatisticsOrBuilder> getNetSnmpStatisticsFieldBuilder() { if (netSnmpStatisticsBuilder_ == null) { netSnmpStatisticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.SNMPStatistics, org.apache.mesos.v1.Protos.SNMPStatistics.Builder, org.apache.mesos.v1.Protos.SNMPStatisticsOrBuilder>( getNetSnmpStatistics(), getParentForChildren(), isClean()); netSnmpStatistics_ = null; } return netSnmpStatisticsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ResourceStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.ResourceStatistics) private static final org.apache.mesos.v1.Protos.ResourceStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ResourceStatistics(); } public static org.apache.mesos.v1.Protos.ResourceStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResourceStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ResourceStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceUsageOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ResourceUsage) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ java.util.List getExecutorsList(); /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ org.apache.mesos.v1.Protos.ResourceUsage.Executor getExecutors(int index); /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ int getExecutorsCount(); /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ java.util.List getExecutorsOrBuilderList(); /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ org.apache.mesos.v1.Protos.ResourceUsage.ExecutorOrBuilder getExecutorsOrBuilder( int index); /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ java.util.List getTotalList(); /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ org.apache.mesos.v1.Protos.Resource getTotal(int index); /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ int getTotalCount(); /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ java.util.List getTotalOrBuilderList(); /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getTotalOrBuilder( int index); } /** *
   **
   * Describes a snapshot of the resource usage for executors.
   * 
* * Protobuf type {@code mesos.v1.ResourceUsage} */ public static final class ResourceUsage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ResourceUsage) ResourceUsageOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceUsage.newBuilder() to construct. private ResourceUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceUsage() { executors_ = java.util.Collections.emptyList(); total_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceUsage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { executors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } executors_.add( input.readMessage(org.apache.mesos.v1.Protos.ResourceUsage.Executor.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { total_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } total_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { executors_ = java.util.Collections.unmodifiableList(executors_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { total_ = java.util.Collections.unmodifiableList(total_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceUsage.class, org.apache.mesos.v1.Protos.ResourceUsage.Builder.class); } public interface ExecutorOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ResourceUsage.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(); /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ java.util.List getAllocatedList(); /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ org.apache.mesos.v1.Protos.Resource getAllocated(int index); /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ int getAllocatedCount(); /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ java.util.List getAllocatedOrBuilderList(); /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getAllocatedOrBuilder( int index); /** *
       * Current resource usage. If absent, the containerizer
       * cannot provide resource usage.
       * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ boolean hasStatistics(); /** *
       * Current resource usage. If absent, the containerizer
       * cannot provide resource usage.
       * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ org.apache.mesos.v1.Protos.ResourceStatistics getStatistics(); /** *
       * Current resource usage. If absent, the containerizer
       * cannot provide resource usage.
       * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder getStatisticsOrBuilder(); /** *
       * The container id for the executor specified in the executor_info field.
       * 
* * required .mesos.v1.ContainerID container_id = 4; */ boolean hasContainerId(); /** *
       * The container id for the executor specified in the executor_info field.
       * 
* * required .mesos.v1.ContainerID container_id = 4; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** *
       * The container id for the executor specified in the executor_info field.
       * 
* * required .mesos.v1.ContainerID container_id = 4; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ java.util.List getTasksList(); /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task getTasks(int index); /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ int getTasksCount(); /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ java.util.List getTasksOrBuilderList(); /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ org.apache.mesos.v1.Protos.ResourceUsage.Executor.TaskOrBuilder getTasksOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.ResourceUsage.Executor} */ public static final class Executor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ResourceUsage.Executor) ExecutorOrBuilder { private static final long serialVersionUID = 0L; // Use Executor.newBuilder() to construct. private Executor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Executor() { allocated_ = java.util.Collections.emptyList(); tasks_ = java.util.Collections.emptyList(); } @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 { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.ExecutorInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = executorInfo_.toBuilder(); } executorInfo_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executorInfo_); executorInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { allocated_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } allocated_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 26: { org.apache.mesos.v1.Protos.ResourceStatistics.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = statistics_.toBuilder(); } statistics_ = input.readMessage(org.apache.mesos.v1.Protos.ResourceStatistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(statistics_); statistics_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 34: { org.apache.mesos.v1.Protos.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = containerId_.toBuilder(); } containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerId_); containerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { tasks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } tasks_.add( input.readMessage(org.apache.mesos.v1.Protos.ResourceUsage.Executor.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).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { allocated_ = java.util.Collections.unmodifiableList(allocated_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { tasks_ = java.util.Collections.unmodifiableList(tasks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceUsage.Executor.class, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder.class); } public interface TaskOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ResourceUsage.Executor.Task) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required .mesos.v1.TaskID id = 2; */ boolean hasId(); /** * required .mesos.v1.TaskID id = 2; */ org.apache.mesos.v1.Protos.TaskID getId(); /** * required .mesos.v1.TaskID id = 2; */ org.apache.mesos.v1.Protos.TaskIDOrBuilder getIdOrBuilder(); /** * repeated .mesos.v1.Resource resources = 3; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 3; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 3; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 3; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 3; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); /** * optional .mesos.v1.Labels labels = 4; */ boolean hasLabels(); /** * optional .mesos.v1.Labels labels = 4; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** * optional .mesos.v1.Labels labels = 4; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); } /** * Protobuf type {@code mesos.v1.ResourceUsage.Executor.Task} */ public static final class Task extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ResourceUsage.Executor.Task) TaskOrBuilder { private static final long serialVersionUID = 0L; // Use Task.newBuilder() to construct. private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Task() { name_ = ""; resources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Task( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { org.apache.mesos.v1.Protos.TaskID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 34: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = 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).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_Task_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.class, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.TaskID id_; /** * required .mesos.v1.TaskID id = 2; */ public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskID id = 2; */ public org.apache.mesos.v1.Protos.TaskID getId() { return id_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : id_; } /** * required .mesos.v1.TaskID id = 2; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getIdOrBuilder() { return id_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : id_; } public static final int RESOURCES_FIELD_NUMBER = 3; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 3; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int LABELS_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Labels labels_; /** * optional .mesos.v1.Labels labels = 4; */ public boolean hasLabels() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!getId().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getId()); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(3, resources_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, getLabels()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getId()); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, resources_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLabels()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task other = (org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task 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.Protos.ResourceUsage.Executor.Task parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.ResourceUsage.Executor.Task} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ResourceUsage.Executor.Task) org.apache.mesos.v1.Protos.ResourceUsage.Executor.TaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_Task_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.class, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdFieldBuilder(); getResourcesFieldBuilder(); getLabelsFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { resourcesBuilder_.clear(); } if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_Task_descriptor; } public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task build() { org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task buildPartial() { org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task result = new org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000004); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task) { return mergeFrom((org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task other) { if (other == org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasId()) { mergeId(other.getId()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (other.hasLabels()) { mergeLabels(other.getLabels()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasId()) { return false; } if (!getId().isInitialized()) { return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } if (hasLabels()) { if (!getLabels().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.Protos.ResourceUsage.Executor.Task parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.TaskID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> idBuilder_; /** * required .mesos.v1.TaskID id = 2; */ public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskID id = 2; */ public org.apache.mesos.v1.Protos.TaskID getId() { if (idBuilder_ == null) { return id_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * required .mesos.v1.TaskID id = 2; */ public Builder setId(org.apache.mesos.v1.Protos.TaskID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID id = 2; */ public Builder setId( org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID id = 2; */ public Builder mergeId(org.apache.mesos.v1.Protos.TaskID value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && id_ != null && id_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) { id_ = org.apache.mesos.v1.Protos.TaskID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID id = 2; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.TaskID id = 2; */ public org.apache.mesos.v1.Protos.TaskID.Builder getIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.TaskID id = 2; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : id_; } } /** * required .mesos.v1.TaskID id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 3; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 3; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 3; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** * optional .mesos.v1.Labels labels = 4; */ public boolean hasLabels() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** * optional .mesos.v1.Labels labels = 4; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Labels labels = 4; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Labels labels = 4; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Labels labels = 4; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** * optional .mesos.v1.Labels labels = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ResourceUsage.Executor.Task) } // @@protoc_insertion_point(class_scope:mesos.v1.ResourceUsage.Executor.Task) private static final org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task(); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Task parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Task(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int EXECUTOR_INFO_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ExecutorInfo executorInfo_; /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public boolean hasExecutorInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfo getExecutorInfo() { return executorInfo_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executorInfo_; } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder() { return executorInfo_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executorInfo_; } public static final int ALLOCATED_FIELD_NUMBER = 2; private java.util.List allocated_; /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ public java.util.List getAllocatedList() { return allocated_; } /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ public java.util.List getAllocatedOrBuilderList() { return allocated_; } /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ public int getAllocatedCount() { return allocated_.size(); } /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ public org.apache.mesos.v1.Protos.Resource getAllocated(int index) { return allocated_.get(index); } /** *
       * This includes resources used by the executor itself
       * as well as its active tasks.
       * 
* * repeated .mesos.v1.Resource allocated = 2; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getAllocatedOrBuilder( int index) { return allocated_.get(index); } public static final int STATISTICS_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.ResourceStatistics statistics_; /** *
       * Current resource usage. If absent, the containerizer
       * cannot provide resource usage.
       * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public boolean hasStatistics() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Current resource usage. If absent, the containerizer
       * cannot provide resource usage.
       * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public org.apache.mesos.v1.Protos.ResourceStatistics getStatistics() { return statistics_ == null ? org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance() : statistics_; } /** *
       * Current resource usage. If absent, the containerizer
       * cannot provide resource usage.
       * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder getStatisticsOrBuilder() { return statistics_ == null ? org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance() : statistics_; } public static final int CONTAINER_ID_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** *
       * The container id for the executor specified in the executor_info field.
       * 
* * required .mesos.v1.ContainerID container_id = 4; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * The container id for the executor specified in the executor_info field.
       * 
* * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_; } /** *
       * The container id for the executor specified in the executor_info field.
       * 
* * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_; } public static final int TASKS_FIELD_NUMBER = 5; private java.util.List tasks_; /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public java.util.List getTasksList() { return tasks_; } /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public java.util.List getTasksOrBuilderList() { return tasks_; } /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public int getTasksCount() { return tasks_.size(); } /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task getTasks(int index) { return tasks_.get(index); } /** *
       * Non-terminal tasks.
       * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.TaskOrBuilder getTasksOrBuilder( int index) { return tasks_.get(index); } 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 (!hasContainerId()) { memoizedIsInitialized = 0; return false; } if (!getExecutorInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getAllocatedCount(); i++) { if (!getAllocated(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasStatistics()) { if (!getStatistics().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getTasksCount(); i++) { if (!getTasks(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getExecutorInfo()); } for (int i = 0; i < allocated_.size(); i++) { output.writeMessage(2, allocated_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, getStatistics()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, getContainerId()); } for (int i = 0; i < tasks_.size(); i++) { output.writeMessage(5, tasks_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getExecutorInfo()); } for (int i = 0; i < allocated_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, allocated_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getStatistics()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContainerId()); } for (int i = 0; i < tasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, tasks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ResourceUsage.Executor)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ResourceUsage.Executor other = (org.apache.mesos.v1.Protos.ResourceUsage.Executor) obj; boolean result = true; result = result && (hasExecutorInfo() == other.hasExecutorInfo()); if (hasExecutorInfo()) { result = result && getExecutorInfo() .equals(other.getExecutorInfo()); } result = result && getAllocatedList() .equals(other.getAllocatedList()); result = result && (hasStatistics() == other.hasStatistics()); if (hasStatistics()) { result = result && getStatistics() .equals(other.getStatistics()); } result = result && (hasContainerId() == other.hasContainerId()); if (hasContainerId()) { result = result && getContainerId() .equals(other.getContainerId()); } result = result && getTasksList() .equals(other.getTasksList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExecutorInfo()) { hash = (37 * hash) + EXECUTOR_INFO_FIELD_NUMBER; hash = (53 * hash) + getExecutorInfo().hashCode(); } if (getAllocatedCount() > 0) { hash = (37 * hash) + ALLOCATED_FIELD_NUMBER; hash = (53 * hash) + getAllocatedList().hashCode(); } if (hasStatistics()) { hash = (37 * hash) + STATISTICS_FIELD_NUMBER; hash = (53 * hash) + getStatistics().hashCode(); } if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode(); } if (getTasksCount() > 0) { hash = (37 * hash) + TASKS_FIELD_NUMBER; hash = (53 * hash) + getTasksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage.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.Protos.ResourceUsage.Executor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage.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.Protos.ResourceUsage.Executor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ResourceUsage.Executor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.ResourceUsage.Executor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ResourceUsage.Executor) org.apache.mesos.v1.Protos.ResourceUsage.ExecutorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceUsage.Executor.class, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ResourceUsage.Executor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getExecutorInfoFieldBuilder(); getAllocatedFieldBuilder(); getStatisticsFieldBuilder(); getContainerIdFieldBuilder(); getTasksFieldBuilder(); } } public Builder clear() { super.clear(); if (executorInfoBuilder_ == null) { executorInfo_ = null; } else { executorInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (allocatedBuilder_ == null) { allocated_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { allocatedBuilder_.clear(); } if (statisticsBuilder_ == null) { statistics_ = null; } else { statisticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (containerIdBuilder_ == null) { containerId_ = null; } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (tasksBuilder_ == null) { tasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { tasksBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_Executor_descriptor; } public org.apache.mesos.v1.Protos.ResourceUsage.Executor getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ResourceUsage.Executor.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ResourceUsage.Executor build() { org.apache.mesos.v1.Protos.ResourceUsage.Executor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ResourceUsage.Executor buildPartial() { org.apache.mesos.v1.Protos.ResourceUsage.Executor result = new org.apache.mesos.v1.Protos.ResourceUsage.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(); } if (allocatedBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { allocated_ = java.util.Collections.unmodifiableList(allocated_); bitField0_ = (bitField0_ & ~0x00000002); } result.allocated_ = allocated_; } else { result.allocated_ = allocatedBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (statisticsBuilder_ == null) { result.statistics_ = statistics_; } else { result.statistics_ = statisticsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } if (tasksBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { tasks_ = java.util.Collections.unmodifiableList(tasks_); bitField0_ = (bitField0_ & ~0x00000010); } result.tasks_ = tasks_; } else { result.tasks_ = tasksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ResourceUsage.Executor) { return mergeFrom((org.apache.mesos.v1.Protos.ResourceUsage.Executor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ResourceUsage.Executor other) { if (other == org.apache.mesos.v1.Protos.ResourceUsage.Executor.getDefaultInstance()) return this; if (other.hasExecutorInfo()) { mergeExecutorInfo(other.getExecutorInfo()); } if (allocatedBuilder_ == null) { if (!other.allocated_.isEmpty()) { if (allocated_.isEmpty()) { allocated_ = other.allocated_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAllocatedIsMutable(); allocated_.addAll(other.allocated_); } onChanged(); } } else { if (!other.allocated_.isEmpty()) { if (allocatedBuilder_.isEmpty()) { allocatedBuilder_.dispose(); allocatedBuilder_ = null; allocated_ = other.allocated_; bitField0_ = (bitField0_ & ~0x00000002); allocatedBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAllocatedFieldBuilder() : null; } else { allocatedBuilder_.addAllMessages(other.allocated_); } } } if (other.hasStatistics()) { mergeStatistics(other.getStatistics()); } if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } if (tasksBuilder_ == null) { if (!other.tasks_.isEmpty()) { if (tasks_.isEmpty()) { tasks_ = other.tasks_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTasksIsMutable(); tasks_.addAll(other.tasks_); } onChanged(); } } else { if (!other.tasks_.isEmpty()) { if (tasksBuilder_.isEmpty()) { tasksBuilder_.dispose(); tasksBuilder_ = null; tasks_ = other.tasks_; bitField0_ = (bitField0_ & ~0x00000010); tasksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTasksFieldBuilder() : null; } else { tasksBuilder_.addAllMessages(other.tasks_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasExecutorInfo()) { return false; } if (!hasContainerId()) { return false; } if (!getExecutorInfo().isInitialized()) { return false; } for (int i = 0; i < getAllocatedCount(); i++) { if (!getAllocated(i).isInitialized()) { return false; } } if (hasStatistics()) { if (!getStatistics().isInitialized()) { return false; } } if (!getContainerId().isInitialized()) { return false; } for (int i = 0; i < getTasksCount(); i++) { if (!getTasks(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.Protos.ResourceUsage.Executor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ResourceUsage.Executor) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.ExecutorInfo executorInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder> executorInfoBuilder_; /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public boolean hasExecutorInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfo getExecutorInfo() { if (executorInfoBuilder_ == null) { return executorInfo_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executorInfo_; } else { return executorInfoBuilder_.getMessage(); } } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public Builder setExecutorInfo(org.apache.mesos.v1.Protos.ExecutorInfo value) { if (executorInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executorInfo_ = value; onChanged(); } else { executorInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public Builder setExecutorInfo( org.apache.mesos.v1.Protos.ExecutorInfo.Builder builderForValue) { if (executorInfoBuilder_ == null) { executorInfo_ = builderForValue.build(); onChanged(); } else { executorInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public Builder mergeExecutorInfo(org.apache.mesos.v1.Protos.ExecutorInfo value) { if (executorInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && executorInfo_ != null && executorInfo_ != org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance()) { executorInfo_ = org.apache.mesos.v1.Protos.ExecutorInfo.newBuilder(executorInfo_).mergeFrom(value).buildPartial(); } else { executorInfo_ = value; } onChanged(); } else { executorInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public Builder clearExecutorInfo() { if (executorInfoBuilder_ == null) { executorInfo_ = null; onChanged(); } else { executorInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfo.Builder getExecutorInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getExecutorInfoFieldBuilder().getBuilder(); } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder() { if (executorInfoBuilder_ != null) { return executorInfoBuilder_.getMessageOrBuilder(); } else { return executorInfo_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executorInfo_; } } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder> getExecutorInfoFieldBuilder() { if (executorInfoBuilder_ == null) { executorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder>( getExecutorInfo(), getParentForChildren(), isClean()); executorInfo_ = null; } return executorInfoBuilder_; } private java.util.List allocated_ = java.util.Collections.emptyList(); private void ensureAllocatedIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { allocated_ = new java.util.ArrayList(allocated_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> allocatedBuilder_; /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public java.util.List getAllocatedList() { if (allocatedBuilder_ == null) { return java.util.Collections.unmodifiableList(allocated_); } else { return allocatedBuilder_.getMessageList(); } } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public int getAllocatedCount() { if (allocatedBuilder_ == null) { return allocated_.size(); } else { return allocatedBuilder_.getCount(); } } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public org.apache.mesos.v1.Protos.Resource getAllocated(int index) { if (allocatedBuilder_ == null) { return allocated_.get(index); } else { return allocatedBuilder_.getMessage(index); } } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder setAllocated( int index, org.apache.mesos.v1.Protos.Resource value) { if (allocatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllocatedIsMutable(); allocated_.set(index, value); onChanged(); } else { allocatedBuilder_.setMessage(index, value); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder setAllocated( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (allocatedBuilder_ == null) { ensureAllocatedIsMutable(); allocated_.set(index, builderForValue.build()); onChanged(); } else { allocatedBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder addAllocated(org.apache.mesos.v1.Protos.Resource value) { if (allocatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllocatedIsMutable(); allocated_.add(value); onChanged(); } else { allocatedBuilder_.addMessage(value); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder addAllocated( int index, org.apache.mesos.v1.Protos.Resource value) { if (allocatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllocatedIsMutable(); allocated_.add(index, value); onChanged(); } else { allocatedBuilder_.addMessage(index, value); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder addAllocated( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (allocatedBuilder_ == null) { ensureAllocatedIsMutable(); allocated_.add(builderForValue.build()); onChanged(); } else { allocatedBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder addAllocated( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (allocatedBuilder_ == null) { ensureAllocatedIsMutable(); allocated_.add(index, builderForValue.build()); onChanged(); } else { allocatedBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder addAllAllocated( java.lang.Iterable values) { if (allocatedBuilder_ == null) { ensureAllocatedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, allocated_); onChanged(); } else { allocatedBuilder_.addAllMessages(values); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder clearAllocated() { if (allocatedBuilder_ == null) { allocated_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { allocatedBuilder_.clear(); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public Builder removeAllocated(int index) { if (allocatedBuilder_ == null) { ensureAllocatedIsMutable(); allocated_.remove(index); onChanged(); } else { allocatedBuilder_.remove(index); } return this; } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder getAllocatedBuilder( int index) { return getAllocatedFieldBuilder().getBuilder(index); } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getAllocatedOrBuilder( int index) { if (allocatedBuilder_ == null) { return allocated_.get(index); } else { return allocatedBuilder_.getMessageOrBuilder(index); } } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public java.util.List getAllocatedOrBuilderList() { if (allocatedBuilder_ != null) { return allocatedBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(allocated_); } } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder addAllocatedBuilder() { return getAllocatedFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder addAllocatedBuilder( int index) { return getAllocatedFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
         * This includes resources used by the executor itself
         * as well as its active tasks.
         * 
* * repeated .mesos.v1.Resource allocated = 2; */ public java.util.List getAllocatedBuilderList() { return getAllocatedFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getAllocatedFieldBuilder() { if (allocatedBuilder_ == null) { allocatedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( allocated_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); allocated_ = null; } return allocatedBuilder_; } private org.apache.mesos.v1.Protos.ResourceStatistics statistics_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceStatistics, org.apache.mesos.v1.Protos.ResourceStatistics.Builder, org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder> statisticsBuilder_; /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public boolean hasStatistics() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public org.apache.mesos.v1.Protos.ResourceStatistics getStatistics() { if (statisticsBuilder_ == null) { return statistics_ == null ? org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance() : statistics_; } else { return statisticsBuilder_.getMessage(); } } /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public Builder setStatistics(org.apache.mesos.v1.Protos.ResourceStatistics value) { if (statisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } statistics_ = value; onChanged(); } else { statisticsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public Builder setStatistics( org.apache.mesos.v1.Protos.ResourceStatistics.Builder builderForValue) { if (statisticsBuilder_ == null) { statistics_ = builderForValue.build(); onChanged(); } else { statisticsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public Builder mergeStatistics(org.apache.mesos.v1.Protos.ResourceStatistics value) { if (statisticsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && statistics_ != null && statistics_ != org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance()) { statistics_ = org.apache.mesos.v1.Protos.ResourceStatistics.newBuilder(statistics_).mergeFrom(value).buildPartial(); } else { statistics_ = value; } onChanged(); } else { statisticsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public Builder clearStatistics() { if (statisticsBuilder_ == null) { statistics_ = null; onChanged(); } else { statisticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public org.apache.mesos.v1.Protos.ResourceStatistics.Builder getStatisticsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatisticsFieldBuilder().getBuilder(); } /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ public org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder getStatisticsOrBuilder() { if (statisticsBuilder_ != null) { return statisticsBuilder_.getMessageOrBuilder(); } else { return statistics_ == null ? org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance() : statistics_; } } /** *
         * Current resource usage. If absent, the containerizer
         * cannot provide resource usage.
         * 
* * optional .mesos.v1.ResourceStatistics statistics = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceStatistics, org.apache.mesos.v1.Protos.ResourceStatistics.Builder, org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder> getStatisticsFieldBuilder() { if (statisticsBuilder_ == null) { statisticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceStatistics, org.apache.mesos.v1.Protos.ResourceStatistics.Builder, org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder>( getStatistics(), getParentForChildren(), isClean()); statistics_ = null; } return statisticsBuilder_; } private org.apache.mesos.v1.Protos.ContainerID containerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder> containerIdBuilder_; /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * required .mesos.v1.ContainerID container_id = 4; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_; } else { return containerIdBuilder_.getMessage(); } } /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * 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; } /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * 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; } /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * 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_ != null && containerId_ != org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance()) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.newBuilder(containerId_).mergeFrom(value).buildPartial(); } else { containerId_ = value; } onChanged(); } else { containerIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * required .mesos.v1.ContainerID container_id = 4; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = null; onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_; } } /** *
         * The container id for the executor specified in the executor_info field.
         * 
* * required .mesos.v1.ContainerID container_id = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder> getContainerIdFieldBuilder() { if (containerIdBuilder_ == null) { containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder>( getContainerId(), getParentForChildren(), isClean()); containerId_ = null; } return containerIdBuilder_; } private java.util.List tasks_ = java.util.Collections.emptyList(); private void ensureTasksIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { tasks_ = new java.util.ArrayList(tasks_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder, org.apache.mesos.v1.Protos.ResourceUsage.Executor.TaskOrBuilder> tasksBuilder_; /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public java.util.List getTasksList() { if (tasksBuilder_ == null) { return java.util.Collections.unmodifiableList(tasks_); } else { return tasksBuilder_.getMessageList(); } } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public int getTasksCount() { if (tasksBuilder_ == null) { return tasks_.size(); } else { return tasksBuilder_.getCount(); } } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task getTasks(int index) { if (tasksBuilder_ == null) { return tasks_.get(index); } else { return tasksBuilder_.getMessage(index); } } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder setTasks( int index, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTasksIsMutable(); tasks_.set(index, value); onChanged(); } else { tasksBuilder_.setMessage(index, value); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder setTasks( int index, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.set(index, builderForValue.build()); onChanged(); } else { tasksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder addTasks(org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTasksIsMutable(); tasks_.add(value); onChanged(); } else { tasksBuilder_.addMessage(value); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder addTasks( int index, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTasksIsMutable(); tasks_.add(index, value); onChanged(); } else { tasksBuilder_.addMessage(index, value); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder addTasks( org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.add(builderForValue.build()); onChanged(); } else { tasksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder addTasks( int index, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.add(index, builderForValue.build()); onChanged(); } else { tasksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder addAllTasks( java.lang.Iterable values) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tasks_); onChanged(); } else { tasksBuilder_.addAllMessages(values); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder clearTasks() { if (tasksBuilder_ == null) { tasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { tasksBuilder_.clear(); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public Builder removeTasks(int index) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.remove(index); onChanged(); } else { tasksBuilder_.remove(index); } return this; } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder getTasksBuilder( int index) { return getTasksFieldBuilder().getBuilder(index); } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.TaskOrBuilder getTasksOrBuilder( int index) { if (tasksBuilder_ == null) { return tasks_.get(index); } else { return tasksBuilder_.getMessageOrBuilder(index); } } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public java.util.List getTasksOrBuilderList() { if (tasksBuilder_ != null) { return tasksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tasks_); } } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder addTasksBuilder() { return getTasksFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.getDefaultInstance()); } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder addTasksBuilder( int index) { return getTasksFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.getDefaultInstance()); } /** *
         * Non-terminal tasks.
         * 
* * repeated .mesos.v1.ResourceUsage.Executor.Task tasks = 5; */ public java.util.List getTasksBuilderList() { return getTasksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder, org.apache.mesos.v1.Protos.ResourceUsage.Executor.TaskOrBuilder> getTasksFieldBuilder() { if (tasksBuilder_ == null) { tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Task.Builder, org.apache.mesos.v1.Protos.ResourceUsage.Executor.TaskOrBuilder>( tasks_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); tasks_ = null; } return tasksBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ResourceUsage.Executor) } // @@protoc_insertion_point(class_scope:mesos.v1.ResourceUsage.Executor) private static final org.apache.mesos.v1.Protos.ResourceUsage.Executor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ResourceUsage.Executor(); } public static org.apache.mesos.v1.Protos.ResourceUsage.Executor getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final 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); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ResourceUsage.Executor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int EXECUTORS_FIELD_NUMBER = 1; private java.util.List executors_; /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public java.util.List getExecutorsList() { return executors_; } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public java.util.List getExecutorsOrBuilderList() { return executors_; } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public int getExecutorsCount() { return executors_.size(); } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor getExecutors(int index) { return executors_.get(index); } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public org.apache.mesos.v1.Protos.ResourceUsage.ExecutorOrBuilder getExecutorsOrBuilder( int index) { return executors_.get(index); } public static final int TOTAL_FIELD_NUMBER = 2; private java.util.List total_; /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ public java.util.List getTotalList() { return total_; } /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ public java.util.List getTotalOrBuilderList() { return total_; } /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ public int getTotalCount() { return total_.size(); } /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ public org.apache.mesos.v1.Protos.Resource getTotal(int index) { return total_.get(index); } /** *
     * Agent's total resources including checkpointed dynamic
     * reservations and persistent volumes.
     * 
* * repeated .mesos.v1.Resource total = 2; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getTotalOrBuilder( int index) { return total_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getExecutorsCount(); i++) { if (!getExecutors(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getTotalCount(); i++) { if (!getTotal(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < executors_.size(); i++) { output.writeMessage(1, executors_.get(i)); } for (int i = 0; i < total_.size(); i++) { output.writeMessage(2, total_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; 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 < total_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, total_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ResourceUsage)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ResourceUsage other = (org.apache.mesos.v1.Protos.ResourceUsage) obj; boolean result = true; result = result && getExecutorsList() .equals(other.getExecutorsList()); result = result && getTotalList() .equals(other.getTotalList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getExecutorsCount() > 0) { hash = (37 * hash) + EXECUTORS_FIELD_NUMBER; hash = (53 * hash) + getExecutorsList().hashCode(); } if (getTotalCount() > 0) { hash = (37 * hash) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + getTotalList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ResourceUsage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage 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.Protos.ResourceUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ResourceUsage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ResourceUsage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ResourceUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ResourceUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a snapshot of the resource usage for executors.
     * 
* * Protobuf type {@code mesos.v1.ResourceUsage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ResourceUsage) org.apache.mesos.v1.Protos.ResourceUsageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ResourceUsage.class, org.apache.mesos.v1.Protos.ResourceUsage.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ResourceUsage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getExecutorsFieldBuilder(); getTotalFieldBuilder(); } } public Builder clear() { super.clear(); if (executorsBuilder_ == null) { executors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { executorsBuilder_.clear(); } if (totalBuilder_ == null) { total_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { totalBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ResourceUsage_descriptor; } public org.apache.mesos.v1.Protos.ResourceUsage getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ResourceUsage.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ResourceUsage build() { org.apache.mesos.v1.Protos.ResourceUsage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ResourceUsage buildPartial() { org.apache.mesos.v1.Protos.ResourceUsage result = new org.apache.mesos.v1.Protos.ResourceUsage(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 (totalBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { total_ = java.util.Collections.unmodifiableList(total_); bitField0_ = (bitField0_ & ~0x00000002); } result.total_ = total_; } else { result.total_ = totalBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ResourceUsage) { return mergeFrom((org.apache.mesos.v1.Protos.ResourceUsage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ResourceUsage other) { if (other == org.apache.mesos.v1.Protos.ResourceUsage.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.GeneratedMessageV3.alwaysUseFieldBuilders ? getExecutorsFieldBuilder() : null; } else { executorsBuilder_.addAllMessages(other.executors_); } } } if (totalBuilder_ == null) { if (!other.total_.isEmpty()) { if (total_.isEmpty()) { total_ = other.total_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTotalIsMutable(); total_.addAll(other.total_); } onChanged(); } } else { if (!other.total_.isEmpty()) { if (totalBuilder_.isEmpty()) { totalBuilder_.dispose(); totalBuilder_ = null; total_ = other.total_; bitField0_ = (bitField0_ & ~0x00000002); totalBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTotalFieldBuilder() : null; } else { totalBuilder_.addAllMessages(other.total_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getExecutorsCount(); i++) { if (!getExecutors(i).isInitialized()) { return false; } } for (int i = 0; i < getTotalCount(); i++) { if (!getTotal(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.Protos.ResourceUsage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ResourceUsage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } 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.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceUsage.Executor, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder, org.apache.mesos.v1.Protos.ResourceUsage.ExecutorOrBuilder> executorsBuilder_; /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public java.util.List getExecutorsList() { if (executorsBuilder_ == null) { return java.util.Collections.unmodifiableList(executors_); } else { return executorsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public int getExecutorsCount() { if (executorsBuilder_ == null) { return executors_.size(); } else { return executorsBuilder_.getCount(); } } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor getExecutors(int index) { if (executorsBuilder_ == null) { return executors_.get(index); } else { return executorsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public Builder setExecutors( int index, org.apache.mesos.v1.Protos.ResourceUsage.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.ResourceUsage.Executor executors = 1; */ public Builder setExecutors( int index, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder builderForValue) { if (executorsBuilder_ == null) { ensureExecutorsIsMutable(); executors_.set(index, builderForValue.build()); onChanged(); } else { executorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public Builder addExecutors(org.apache.mesos.v1.Protos.ResourceUsage.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.ResourceUsage.Executor executors = 1; */ public Builder addExecutors( int index, org.apache.mesos.v1.Protos.ResourceUsage.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.ResourceUsage.Executor executors = 1; */ public Builder addExecutors( org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder builderForValue) { if (executorsBuilder_ == null) { ensureExecutorsIsMutable(); executors_.add(builderForValue.build()); onChanged(); } else { executorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public Builder addExecutors( int index, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder builderForValue) { if (executorsBuilder_ == null) { ensureExecutorsIsMutable(); executors_.add(index, builderForValue.build()); onChanged(); } else { executorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.ResourceUsage.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.ResourceUsage.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.ResourceUsage.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.ResourceUsage.Executor executors = 1; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder getExecutorsBuilder( int index) { return getExecutorsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public org.apache.mesos.v1.Protos.ResourceUsage.ExecutorOrBuilder getExecutorsOrBuilder( int index) { if (executorsBuilder_ == null) { return executors_.get(index); } else { return executorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public java.util.List getExecutorsOrBuilderList() { if (executorsBuilder_ != null) { return executorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(executors_); } } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder addExecutorsBuilder() { return getExecutorsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.ResourceUsage.Executor.getDefaultInstance()); } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder addExecutorsBuilder( int index) { return getExecutorsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.ResourceUsage.Executor.getDefaultInstance()); } /** * repeated .mesos.v1.ResourceUsage.Executor executors = 1; */ public java.util.List getExecutorsBuilderList() { return getExecutorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceUsage.Executor, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder, org.apache.mesos.v1.Protos.ResourceUsage.ExecutorOrBuilder> getExecutorsFieldBuilder() { if (executorsBuilder_ == null) { executorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceUsage.Executor, org.apache.mesos.v1.Protos.ResourceUsage.Executor.Builder, org.apache.mesos.v1.Protos.ResourceUsage.ExecutorOrBuilder>( executors_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); executors_ = null; } return executorsBuilder_; } private java.util.List total_ = java.util.Collections.emptyList(); private void ensureTotalIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { total_ = new java.util.ArrayList(total_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> totalBuilder_; /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public java.util.List getTotalList() { if (totalBuilder_ == null) { return java.util.Collections.unmodifiableList(total_); } else { return totalBuilder_.getMessageList(); } } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public int getTotalCount() { if (totalBuilder_ == null) { return total_.size(); } else { return totalBuilder_.getCount(); } } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public org.apache.mesos.v1.Protos.Resource getTotal(int index) { if (totalBuilder_ == null) { return total_.get(index); } else { return totalBuilder_.getMessage(index); } } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder setTotal( int index, org.apache.mesos.v1.Protos.Resource value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.set(index, value); onChanged(); } else { totalBuilder_.setMessage(index, value); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder setTotal( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.set(index, builderForValue.build()); onChanged(); } else { totalBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder addTotal(org.apache.mesos.v1.Protos.Resource value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.add(value); onChanged(); } else { totalBuilder_.addMessage(value); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder addTotal( int index, org.apache.mesos.v1.Protos.Resource value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.add(index, value); onChanged(); } else { totalBuilder_.addMessage(index, value); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder addTotal( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.add(builderForValue.build()); onChanged(); } else { totalBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder addTotal( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.add(index, builderForValue.build()); onChanged(); } else { totalBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder addAllTotal( java.lang.Iterable values) { if (totalBuilder_ == null) { ensureTotalIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, total_); onChanged(); } else { totalBuilder_.addAllMessages(values); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder clearTotal() { if (totalBuilder_ == null) { total_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { totalBuilder_.clear(); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public Builder removeTotal(int index) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.remove(index); onChanged(); } else { totalBuilder_.remove(index); } return this; } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder getTotalBuilder( int index) { return getTotalFieldBuilder().getBuilder(index); } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getTotalOrBuilder( int index) { if (totalBuilder_ == null) { return total_.get(index); } else { return totalBuilder_.getMessageOrBuilder(index); } } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public java.util.List getTotalOrBuilderList() { if (totalBuilder_ != null) { return totalBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(total_); } } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder addTotalBuilder() { return getTotalFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder addTotalBuilder( int index) { return getTotalFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * Agent's total resources including checkpointed dynamic
       * reservations and persistent volumes.
       * 
* * repeated .mesos.v1.Resource total = 2; */ public java.util.List getTotalBuilderList() { return getTotalFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getTotalFieldBuilder() { if (totalBuilder_ == null) { totalBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( total_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); total_ = null; } return totalBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ResourceUsage) } // @@protoc_insertion_point(class_scope:mesos.v1.ResourceUsage) private static final org.apache.mesos.v1.Protos.ResourceUsage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ResourceUsage(); } public static org.apache.mesos.v1.Protos.ResourceUsage getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResourceUsage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceUsage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ResourceUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PerfStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.PerfStatistics) com.google.protobuf.MessageOrBuilder { /** *
     * Start of sample interval, in seconds since the Epoch.
     * 
* * required double timestamp = 1; */ boolean hasTimestamp(); /** *
     * Start of sample interval, in seconds since the Epoch.
     * 
* * required double timestamp = 1; */ double getTimestamp(); /** *
     * Duration of sample interval, in seconds.
     * 
* * required double duration = 2; */ boolean hasDuration(); /** *
     * Duration of sample interval, in seconds.
     * 
* * required double duration = 2; */ double getDuration(); /** *
     * Hardware event.
     * 
* * optional uint64 cycles = 3; */ boolean hasCycles(); /** *
     * Hardware event.
     * 
* * optional uint64 cycles = 3; */ long getCycles(); /** * optional uint64 stalled_cycles_frontend = 4; */ boolean hasStalledCyclesFrontend(); /** * optional uint64 stalled_cycles_frontend = 4; */ long getStalledCyclesFrontend(); /** * optional uint64 stalled_cycles_backend = 5; */ boolean hasStalledCyclesBackend(); /** * optional uint64 stalled_cycles_backend = 5; */ long getStalledCyclesBackend(); /** * optional uint64 instructions = 6; */ boolean hasInstructions(); /** * optional uint64 instructions = 6; */ long getInstructions(); /** * optional uint64 cache_references = 7; */ boolean hasCacheReferences(); /** * optional uint64 cache_references = 7; */ long getCacheReferences(); /** * optional uint64 cache_misses = 8; */ boolean hasCacheMisses(); /** * optional uint64 cache_misses = 8; */ long getCacheMisses(); /** * optional uint64 branches = 9; */ boolean hasBranches(); /** * optional uint64 branches = 9; */ long getBranches(); /** * optional uint64 branch_misses = 10; */ boolean hasBranchMisses(); /** * optional uint64 branch_misses = 10; */ long getBranchMisses(); /** * optional uint64 bus_cycles = 11; */ boolean hasBusCycles(); /** * optional uint64 bus_cycles = 11; */ long getBusCycles(); /** * optional uint64 ref_cycles = 12; */ boolean hasRefCycles(); /** * optional uint64 ref_cycles = 12; */ long getRefCycles(); /** *
     * Software event.
     * 
* * optional double cpu_clock = 13; */ boolean hasCpuClock(); /** *
     * Software event.
     * 
* * optional double cpu_clock = 13; */ double getCpuClock(); /** * optional double task_clock = 14; */ boolean hasTaskClock(); /** * optional double task_clock = 14; */ double getTaskClock(); /** * optional uint64 page_faults = 15; */ boolean hasPageFaults(); /** * optional uint64 page_faults = 15; */ long getPageFaults(); /** * optional uint64 minor_faults = 16; */ boolean hasMinorFaults(); /** * optional uint64 minor_faults = 16; */ long getMinorFaults(); /** * optional uint64 major_faults = 17; */ boolean hasMajorFaults(); /** * optional uint64 major_faults = 17; */ long getMajorFaults(); /** * optional uint64 context_switches = 18; */ boolean hasContextSwitches(); /** * optional uint64 context_switches = 18; */ long getContextSwitches(); /** * optional uint64 cpu_migrations = 19; */ boolean hasCpuMigrations(); /** * optional uint64 cpu_migrations = 19; */ long getCpuMigrations(); /** * optional uint64 alignment_faults = 20; */ boolean hasAlignmentFaults(); /** * optional uint64 alignment_faults = 20; */ long getAlignmentFaults(); /** * optional uint64 emulation_faults = 21; */ boolean hasEmulationFaults(); /** * optional uint64 emulation_faults = 21; */ long getEmulationFaults(); /** *
     * Hardware cache event.
     * 
* * optional uint64 l1_dcache_loads = 22; */ boolean hasL1DcacheLoads(); /** *
     * Hardware cache event.
     * 
* * optional uint64 l1_dcache_loads = 22; */ long getL1DcacheLoads(); /** * optional uint64 l1_dcache_load_misses = 23; */ boolean hasL1DcacheLoadMisses(); /** * optional uint64 l1_dcache_load_misses = 23; */ long getL1DcacheLoadMisses(); /** * optional uint64 l1_dcache_stores = 24; */ boolean hasL1DcacheStores(); /** * optional uint64 l1_dcache_stores = 24; */ long getL1DcacheStores(); /** * optional uint64 l1_dcache_store_misses = 25; */ boolean hasL1DcacheStoreMisses(); /** * optional uint64 l1_dcache_store_misses = 25; */ long getL1DcacheStoreMisses(); /** * optional uint64 l1_dcache_prefetches = 26; */ boolean hasL1DcachePrefetches(); /** * optional uint64 l1_dcache_prefetches = 26; */ long getL1DcachePrefetches(); /** * optional uint64 l1_dcache_prefetch_misses = 27; */ boolean hasL1DcachePrefetchMisses(); /** * optional uint64 l1_dcache_prefetch_misses = 27; */ long getL1DcachePrefetchMisses(); /** * optional uint64 l1_icache_loads = 28; */ boolean hasL1IcacheLoads(); /** * optional uint64 l1_icache_loads = 28; */ long getL1IcacheLoads(); /** * optional uint64 l1_icache_load_misses = 29; */ boolean hasL1IcacheLoadMisses(); /** * optional uint64 l1_icache_load_misses = 29; */ long getL1IcacheLoadMisses(); /** * optional uint64 l1_icache_prefetches = 30; */ boolean hasL1IcachePrefetches(); /** * optional uint64 l1_icache_prefetches = 30; */ long getL1IcachePrefetches(); /** * optional uint64 l1_icache_prefetch_misses = 31; */ boolean hasL1IcachePrefetchMisses(); /** * optional uint64 l1_icache_prefetch_misses = 31; */ long getL1IcachePrefetchMisses(); /** * optional uint64 llc_loads = 32; */ boolean hasLlcLoads(); /** * optional uint64 llc_loads = 32; */ long getLlcLoads(); /** * optional uint64 llc_load_misses = 33; */ boolean hasLlcLoadMisses(); /** * optional uint64 llc_load_misses = 33; */ long getLlcLoadMisses(); /** * optional uint64 llc_stores = 34; */ boolean hasLlcStores(); /** * optional uint64 llc_stores = 34; */ long getLlcStores(); /** * optional uint64 llc_store_misses = 35; */ boolean hasLlcStoreMisses(); /** * optional uint64 llc_store_misses = 35; */ long getLlcStoreMisses(); /** * optional uint64 llc_prefetches = 36; */ boolean hasLlcPrefetches(); /** * optional uint64 llc_prefetches = 36; */ long getLlcPrefetches(); /** * optional uint64 llc_prefetch_misses = 37; */ boolean hasLlcPrefetchMisses(); /** * optional uint64 llc_prefetch_misses = 37; */ long getLlcPrefetchMisses(); /** * optional uint64 dtlb_loads = 38; */ boolean hasDtlbLoads(); /** * optional uint64 dtlb_loads = 38; */ long getDtlbLoads(); /** * optional uint64 dtlb_load_misses = 39; */ boolean hasDtlbLoadMisses(); /** * optional uint64 dtlb_load_misses = 39; */ long getDtlbLoadMisses(); /** * optional uint64 dtlb_stores = 40; */ boolean hasDtlbStores(); /** * optional uint64 dtlb_stores = 40; */ long getDtlbStores(); /** * optional uint64 dtlb_store_misses = 41; */ boolean hasDtlbStoreMisses(); /** * optional uint64 dtlb_store_misses = 41; */ long getDtlbStoreMisses(); /** * optional uint64 dtlb_prefetches = 42; */ boolean hasDtlbPrefetches(); /** * optional uint64 dtlb_prefetches = 42; */ long getDtlbPrefetches(); /** * optional uint64 dtlb_prefetch_misses = 43; */ boolean hasDtlbPrefetchMisses(); /** * optional uint64 dtlb_prefetch_misses = 43; */ long getDtlbPrefetchMisses(); /** * optional uint64 itlb_loads = 44; */ boolean hasItlbLoads(); /** * optional uint64 itlb_loads = 44; */ long getItlbLoads(); /** * optional uint64 itlb_load_misses = 45; */ boolean hasItlbLoadMisses(); /** * optional uint64 itlb_load_misses = 45; */ long getItlbLoadMisses(); /** * optional uint64 branch_loads = 46; */ boolean hasBranchLoads(); /** * optional uint64 branch_loads = 46; */ long getBranchLoads(); /** * optional uint64 branch_load_misses = 47; */ boolean hasBranchLoadMisses(); /** * optional uint64 branch_load_misses = 47; */ long getBranchLoadMisses(); /** * optional uint64 node_loads = 48; */ boolean hasNodeLoads(); /** * optional uint64 node_loads = 48; */ long getNodeLoads(); /** * optional uint64 node_load_misses = 49; */ boolean hasNodeLoadMisses(); /** * optional uint64 node_load_misses = 49; */ long getNodeLoadMisses(); /** * optional uint64 node_stores = 50; */ boolean hasNodeStores(); /** * optional uint64 node_stores = 50; */ long getNodeStores(); /** * optional uint64 node_store_misses = 51; */ boolean hasNodeStoreMisses(); /** * optional uint64 node_store_misses = 51; */ long getNodeStoreMisses(); /** * optional uint64 node_prefetches = 52; */ boolean hasNodePrefetches(); /** * optional uint64 node_prefetches = 52; */ long getNodePrefetches(); /** * optional uint64 node_prefetch_misses = 53; */ boolean hasNodePrefetchMisses(); /** * optional uint64 node_prefetch_misses = 53; */ long getNodePrefetchMisses(); } /** *
   **
   * Describes a sample of events from "perf stat". Only available on
   * Linux.
   * NOTE: Each optional field matches the name of a perf event (see
   * "perf list") with the following changes:
   * 1. Names are downcased.
   * 2. Hyphens ('-') are replaced with underscores ('_').
   * 3. Events with alternate names use the name "perf stat" returns,
   *    e.g., for the event "cycles OR cpu-cycles" perf always returns
   *    cycles.
   * 
* * Protobuf type {@code mesos.v1.PerfStatistics} */ public static final class PerfStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.PerfStatistics) PerfStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use PerfStatistics.newBuilder() to construct. private PerfStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PerfStatistics() { timestamp_ = 0D; duration_ = 0D; cycles_ = 0L; stalledCyclesFrontend_ = 0L; stalledCyclesBackend_ = 0L; instructions_ = 0L; cacheReferences_ = 0L; cacheMisses_ = 0L; branches_ = 0L; branchMisses_ = 0L; busCycles_ = 0L; refCycles_ = 0L; cpuClock_ = 0D; taskClock_ = 0D; pageFaults_ = 0L; minorFaults_ = 0L; majorFaults_ = 0L; contextSwitches_ = 0L; cpuMigrations_ = 0L; alignmentFaults_ = 0L; emulationFaults_ = 0L; l1DcacheLoads_ = 0L; l1DcacheLoadMisses_ = 0L; l1DcacheStores_ = 0L; l1DcacheStoreMisses_ = 0L; l1DcachePrefetches_ = 0L; l1DcachePrefetchMisses_ = 0L; l1IcacheLoads_ = 0L; l1IcacheLoadMisses_ = 0L; l1IcachePrefetches_ = 0L; l1IcachePrefetchMisses_ = 0L; llcLoads_ = 0L; llcLoadMisses_ = 0L; llcStores_ = 0L; llcStoreMisses_ = 0L; llcPrefetches_ = 0L; llcPrefetchMisses_ = 0L; dtlbLoads_ = 0L; dtlbLoadMisses_ = 0L; dtlbStores_ = 0L; dtlbStoreMisses_ = 0L; dtlbPrefetches_ = 0L; dtlbPrefetchMisses_ = 0L; itlbLoads_ = 0L; itlbLoadMisses_ = 0L; branchLoads_ = 0L; branchLoadMisses_ = 0L; nodeLoads_ = 0L; nodeLoadMisses_ = 0L; nodeStores_ = 0L; nodeStoreMisses_ = 0L; nodePrefetches_ = 0L; nodePrefetchMisses_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PerfStatistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; int mutable_bitField1_ = 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 9: { bitField0_ |= 0x00000001; timestamp_ = input.readDouble(); break; } case 17: { bitField0_ |= 0x00000002; duration_ = input.readDouble(); break; } case 24: { bitField0_ |= 0x00000004; cycles_ = input.readUInt64(); break; } case 32: { bitField0_ |= 0x00000008; stalledCyclesFrontend_ = input.readUInt64(); break; } case 40: { bitField0_ |= 0x00000010; stalledCyclesBackend_ = input.readUInt64(); break; } case 48: { bitField0_ |= 0x00000020; instructions_ = input.readUInt64(); break; } case 56: { bitField0_ |= 0x00000040; cacheReferences_ = input.readUInt64(); break; } case 64: { bitField0_ |= 0x00000080; cacheMisses_ = input.readUInt64(); break; } case 72: { bitField0_ |= 0x00000100; branches_ = input.readUInt64(); break; } case 80: { bitField0_ |= 0x00000200; branchMisses_ = input.readUInt64(); break; } case 88: { bitField0_ |= 0x00000400; busCycles_ = input.readUInt64(); break; } case 96: { bitField0_ |= 0x00000800; refCycles_ = input.readUInt64(); break; } case 105: { bitField0_ |= 0x00001000; cpuClock_ = input.readDouble(); break; } case 113: { bitField0_ |= 0x00002000; taskClock_ = input.readDouble(); break; } case 120: { bitField0_ |= 0x00004000; pageFaults_ = input.readUInt64(); break; } case 128: { bitField0_ |= 0x00008000; minorFaults_ = input.readUInt64(); break; } case 136: { bitField0_ |= 0x00010000; majorFaults_ = input.readUInt64(); break; } case 144: { bitField0_ |= 0x00020000; contextSwitches_ = input.readUInt64(); break; } case 152: { bitField0_ |= 0x00040000; cpuMigrations_ = input.readUInt64(); break; } case 160: { bitField0_ |= 0x00080000; alignmentFaults_ = input.readUInt64(); break; } case 168: { bitField0_ |= 0x00100000; emulationFaults_ = input.readUInt64(); break; } case 176: { bitField0_ |= 0x00200000; l1DcacheLoads_ = input.readUInt64(); break; } case 184: { bitField0_ |= 0x00400000; l1DcacheLoadMisses_ = input.readUInt64(); break; } case 192: { bitField0_ |= 0x00800000; l1DcacheStores_ = input.readUInt64(); break; } case 200: { bitField0_ |= 0x01000000; l1DcacheStoreMisses_ = input.readUInt64(); break; } case 208: { bitField0_ |= 0x02000000; l1DcachePrefetches_ = input.readUInt64(); break; } case 216: { bitField0_ |= 0x04000000; l1DcachePrefetchMisses_ = input.readUInt64(); break; } case 224: { bitField0_ |= 0x08000000; l1IcacheLoads_ = input.readUInt64(); break; } case 232: { bitField0_ |= 0x10000000; l1IcacheLoadMisses_ = input.readUInt64(); break; } case 240: { bitField0_ |= 0x20000000; l1IcachePrefetches_ = input.readUInt64(); break; } case 248: { bitField0_ |= 0x40000000; l1IcachePrefetchMisses_ = input.readUInt64(); break; } case 256: { bitField0_ |= 0x80000000; llcLoads_ = input.readUInt64(); break; } case 264: { bitField1_ |= 0x00000001; llcLoadMisses_ = input.readUInt64(); break; } case 272: { bitField1_ |= 0x00000002; llcStores_ = input.readUInt64(); break; } case 280: { bitField1_ |= 0x00000004; llcStoreMisses_ = input.readUInt64(); break; } case 288: { bitField1_ |= 0x00000008; llcPrefetches_ = input.readUInt64(); break; } case 296: { bitField1_ |= 0x00000010; llcPrefetchMisses_ = input.readUInt64(); break; } case 304: { bitField1_ |= 0x00000020; dtlbLoads_ = input.readUInt64(); break; } case 312: { bitField1_ |= 0x00000040; dtlbLoadMisses_ = input.readUInt64(); break; } case 320: { bitField1_ |= 0x00000080; dtlbStores_ = input.readUInt64(); break; } case 328: { bitField1_ |= 0x00000100; dtlbStoreMisses_ = input.readUInt64(); break; } case 336: { bitField1_ |= 0x00000200; dtlbPrefetches_ = input.readUInt64(); break; } case 344: { bitField1_ |= 0x00000400; dtlbPrefetchMisses_ = input.readUInt64(); break; } case 352: { bitField1_ |= 0x00000800; itlbLoads_ = input.readUInt64(); break; } case 360: { bitField1_ |= 0x00001000; itlbLoadMisses_ = input.readUInt64(); break; } case 368: { bitField1_ |= 0x00002000; branchLoads_ = input.readUInt64(); break; } case 376: { bitField1_ |= 0x00004000; branchLoadMisses_ = input.readUInt64(); break; } case 384: { bitField1_ |= 0x00008000; nodeLoads_ = input.readUInt64(); break; } case 392: { bitField1_ |= 0x00010000; nodeLoadMisses_ = input.readUInt64(); break; } case 400: { bitField1_ |= 0x00020000; nodeStores_ = input.readUInt64(); break; } case 408: { bitField1_ |= 0x00040000; nodeStoreMisses_ = input.readUInt64(); break; } case 416: { bitField1_ |= 0x00080000; nodePrefetches_ = input.readUInt64(); break; } case 424: { bitField1_ |= 0x00100000; nodePrefetchMisses_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_PerfStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_PerfStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.PerfStatistics.class, org.apache.mesos.v1.Protos.PerfStatistics.Builder.class); } private int bitField0_; private int bitField1_; public static final int TIMESTAMP_FIELD_NUMBER = 1; private double timestamp_; /** *
     * Start of sample interval, in seconds since the Epoch.
     * 
* * required double timestamp = 1; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Start of sample interval, in seconds since the Epoch.
     * 
* * required double timestamp = 1; */ public double getTimestamp() { return timestamp_; } public static final int DURATION_FIELD_NUMBER = 2; private double duration_; /** *
     * Duration of sample interval, in seconds.
     * 
* * required double duration = 2; */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Duration of sample interval, in seconds.
     * 
* * required double duration = 2; */ public double getDuration() { return duration_; } public static final int CYCLES_FIELD_NUMBER = 3; private long cycles_; /** *
     * Hardware event.
     * 
* * optional uint64 cycles = 3; */ public boolean hasCycles() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Hardware event.
     * 
* * optional uint64 cycles = 3; */ public long getCycles() { return cycles_; } public static final int STALLED_CYCLES_FRONTEND_FIELD_NUMBER = 4; private long stalledCyclesFrontend_; /** * optional uint64 stalled_cycles_frontend = 4; */ public boolean hasStalledCyclesFrontend() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 stalled_cycles_frontend = 4; */ public long getStalledCyclesFrontend() { return stalledCyclesFrontend_; } public static final int STALLED_CYCLES_BACKEND_FIELD_NUMBER = 5; private long stalledCyclesBackend_; /** * optional uint64 stalled_cycles_backend = 5; */ public boolean hasStalledCyclesBackend() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint64 stalled_cycles_backend = 5; */ public long getStalledCyclesBackend() { return stalledCyclesBackend_; } public static final int INSTRUCTIONS_FIELD_NUMBER = 6; private long instructions_; /** * optional uint64 instructions = 6; */ public boolean hasInstructions() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint64 instructions = 6; */ public long getInstructions() { return instructions_; } public static final int CACHE_REFERENCES_FIELD_NUMBER = 7; private long cacheReferences_; /** * optional uint64 cache_references = 7; */ public boolean hasCacheReferences() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 cache_references = 7; */ public long getCacheReferences() { return cacheReferences_; } public static final int CACHE_MISSES_FIELD_NUMBER = 8; private long cacheMisses_; /** * optional uint64 cache_misses = 8; */ public boolean hasCacheMisses() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint64 cache_misses = 8; */ public long getCacheMisses() { return cacheMisses_; } public static final int BRANCHES_FIELD_NUMBER = 9; private long branches_; /** * optional uint64 branches = 9; */ public boolean hasBranches() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint64 branches = 9; */ public long getBranches() { return branches_; } public static final int BRANCH_MISSES_FIELD_NUMBER = 10; private long branchMisses_; /** * optional uint64 branch_misses = 10; */ public boolean hasBranchMisses() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint64 branch_misses = 10; */ public long getBranchMisses() { return branchMisses_; } public static final int BUS_CYCLES_FIELD_NUMBER = 11; private long busCycles_; /** * optional uint64 bus_cycles = 11; */ public boolean hasBusCycles() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional uint64 bus_cycles = 11; */ public long getBusCycles() { return busCycles_; } public static final int REF_CYCLES_FIELD_NUMBER = 12; private long refCycles_; /** * optional uint64 ref_cycles = 12; */ public boolean hasRefCycles() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint64 ref_cycles = 12; */ public long getRefCycles() { return refCycles_; } public static final int CPU_CLOCK_FIELD_NUMBER = 13; private double cpuClock_; /** *
     * Software event.
     * 
* * optional double cpu_clock = 13; */ public boolean hasCpuClock() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
     * Software event.
     * 
* * optional double cpu_clock = 13; */ public double getCpuClock() { return cpuClock_; } public static final int TASK_CLOCK_FIELD_NUMBER = 14; private double taskClock_; /** * optional double task_clock = 14; */ public boolean hasTaskClock() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional double task_clock = 14; */ public double getTaskClock() { return taskClock_; } public static final int PAGE_FAULTS_FIELD_NUMBER = 15; private long pageFaults_; /** * optional uint64 page_faults = 15; */ public boolean hasPageFaults() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional uint64 page_faults = 15; */ public long getPageFaults() { return pageFaults_; } public static final int MINOR_FAULTS_FIELD_NUMBER = 16; private long minorFaults_; /** * optional uint64 minor_faults = 16; */ public boolean hasMinorFaults() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional uint64 minor_faults = 16; */ public long getMinorFaults() { return minorFaults_; } public static final int MAJOR_FAULTS_FIELD_NUMBER = 17; private long majorFaults_; /** * optional uint64 major_faults = 17; */ public boolean hasMajorFaults() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional uint64 major_faults = 17; */ public long getMajorFaults() { return majorFaults_; } public static final int CONTEXT_SWITCHES_FIELD_NUMBER = 18; private long contextSwitches_; /** * optional uint64 context_switches = 18; */ public boolean hasContextSwitches() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional uint64 context_switches = 18; */ public long getContextSwitches() { return contextSwitches_; } public static final int CPU_MIGRATIONS_FIELD_NUMBER = 19; private long cpuMigrations_; /** * optional uint64 cpu_migrations = 19; */ public boolean hasCpuMigrations() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional uint64 cpu_migrations = 19; */ public long getCpuMigrations() { return cpuMigrations_; } public static final int ALIGNMENT_FAULTS_FIELD_NUMBER = 20; private long alignmentFaults_; /** * optional uint64 alignment_faults = 20; */ public boolean hasAlignmentFaults() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional uint64 alignment_faults = 20; */ public long getAlignmentFaults() { return alignmentFaults_; } public static final int EMULATION_FAULTS_FIELD_NUMBER = 21; private long emulationFaults_; /** * optional uint64 emulation_faults = 21; */ public boolean hasEmulationFaults() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional uint64 emulation_faults = 21; */ public long getEmulationFaults() { return emulationFaults_; } public static final int L1_DCACHE_LOADS_FIELD_NUMBER = 22; private long l1DcacheLoads_; /** *
     * Hardware cache event.
     * 
* * optional uint64 l1_dcache_loads = 22; */ public boolean hasL1DcacheLoads() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** *
     * Hardware cache event.
     * 
* * optional uint64 l1_dcache_loads = 22; */ public long getL1DcacheLoads() { return l1DcacheLoads_; } public static final int L1_DCACHE_LOAD_MISSES_FIELD_NUMBER = 23; private long l1DcacheLoadMisses_; /** * optional uint64 l1_dcache_load_misses = 23; */ public boolean hasL1DcacheLoadMisses() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional uint64 l1_dcache_load_misses = 23; */ public long getL1DcacheLoadMisses() { return l1DcacheLoadMisses_; } public static final int L1_DCACHE_STORES_FIELD_NUMBER = 24; private long l1DcacheStores_; /** * optional uint64 l1_dcache_stores = 24; */ public boolean hasL1DcacheStores() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional uint64 l1_dcache_stores = 24; */ public long getL1DcacheStores() { return l1DcacheStores_; } public static final int L1_DCACHE_STORE_MISSES_FIELD_NUMBER = 25; private long l1DcacheStoreMisses_; /** * optional uint64 l1_dcache_store_misses = 25; */ public boolean hasL1DcacheStoreMisses() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional uint64 l1_dcache_store_misses = 25; */ public long getL1DcacheStoreMisses() { return l1DcacheStoreMisses_; } public static final int L1_DCACHE_PREFETCHES_FIELD_NUMBER = 26; private long l1DcachePrefetches_; /** * optional uint64 l1_dcache_prefetches = 26; */ public boolean hasL1DcachePrefetches() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional uint64 l1_dcache_prefetches = 26; */ public long getL1DcachePrefetches() { return l1DcachePrefetches_; } public static final int L1_DCACHE_PREFETCH_MISSES_FIELD_NUMBER = 27; private long l1DcachePrefetchMisses_; /** * optional uint64 l1_dcache_prefetch_misses = 27; */ public boolean hasL1DcachePrefetchMisses() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional uint64 l1_dcache_prefetch_misses = 27; */ public long getL1DcachePrefetchMisses() { return l1DcachePrefetchMisses_; } public static final int L1_ICACHE_LOADS_FIELD_NUMBER = 28; private long l1IcacheLoads_; /** * optional uint64 l1_icache_loads = 28; */ public boolean hasL1IcacheLoads() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * optional uint64 l1_icache_loads = 28; */ public long getL1IcacheLoads() { return l1IcacheLoads_; } public static final int L1_ICACHE_LOAD_MISSES_FIELD_NUMBER = 29; private long l1IcacheLoadMisses_; /** * optional uint64 l1_icache_load_misses = 29; */ public boolean hasL1IcacheLoadMisses() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * optional uint64 l1_icache_load_misses = 29; */ public long getL1IcacheLoadMisses() { return l1IcacheLoadMisses_; } public static final int L1_ICACHE_PREFETCHES_FIELD_NUMBER = 30; private long l1IcachePrefetches_; /** * optional uint64 l1_icache_prefetches = 30; */ public boolean hasL1IcachePrefetches() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * optional uint64 l1_icache_prefetches = 30; */ public long getL1IcachePrefetches() { return l1IcachePrefetches_; } public static final int L1_ICACHE_PREFETCH_MISSES_FIELD_NUMBER = 31; private long l1IcachePrefetchMisses_; /** * optional uint64 l1_icache_prefetch_misses = 31; */ public boolean hasL1IcachePrefetchMisses() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * optional uint64 l1_icache_prefetch_misses = 31; */ public long getL1IcachePrefetchMisses() { return l1IcachePrefetchMisses_; } public static final int LLC_LOADS_FIELD_NUMBER = 32; private long llcLoads_; /** * optional uint64 llc_loads = 32; */ public boolean hasLlcLoads() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * optional uint64 llc_loads = 32; */ public long getLlcLoads() { return llcLoads_; } public static final int LLC_LOAD_MISSES_FIELD_NUMBER = 33; private long llcLoadMisses_; /** * optional uint64 llc_load_misses = 33; */ public boolean hasLlcLoadMisses() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * optional uint64 llc_load_misses = 33; */ public long getLlcLoadMisses() { return llcLoadMisses_; } public static final int LLC_STORES_FIELD_NUMBER = 34; private long llcStores_; /** * optional uint64 llc_stores = 34; */ public boolean hasLlcStores() { return ((bitField1_ & 0x00000002) == 0x00000002); } /** * optional uint64 llc_stores = 34; */ public long getLlcStores() { return llcStores_; } public static final int LLC_STORE_MISSES_FIELD_NUMBER = 35; private long llcStoreMisses_; /** * optional uint64 llc_store_misses = 35; */ public boolean hasLlcStoreMisses() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** * optional uint64 llc_store_misses = 35; */ public long getLlcStoreMisses() { return llcStoreMisses_; } public static final int LLC_PREFETCHES_FIELD_NUMBER = 36; private long llcPrefetches_; /** * optional uint64 llc_prefetches = 36; */ public boolean hasLlcPrefetches() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** * optional uint64 llc_prefetches = 36; */ public long getLlcPrefetches() { return llcPrefetches_; } public static final int LLC_PREFETCH_MISSES_FIELD_NUMBER = 37; private long llcPrefetchMisses_; /** * optional uint64 llc_prefetch_misses = 37; */ public boolean hasLlcPrefetchMisses() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** * optional uint64 llc_prefetch_misses = 37; */ public long getLlcPrefetchMisses() { return llcPrefetchMisses_; } public static final int DTLB_LOADS_FIELD_NUMBER = 38; private long dtlbLoads_; /** * optional uint64 dtlb_loads = 38; */ public boolean hasDtlbLoads() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** * optional uint64 dtlb_loads = 38; */ public long getDtlbLoads() { return dtlbLoads_; } public static final int DTLB_LOAD_MISSES_FIELD_NUMBER = 39; private long dtlbLoadMisses_; /** * optional uint64 dtlb_load_misses = 39; */ public boolean hasDtlbLoadMisses() { return ((bitField1_ & 0x00000040) == 0x00000040); } /** * optional uint64 dtlb_load_misses = 39; */ public long getDtlbLoadMisses() { return dtlbLoadMisses_; } public static final int DTLB_STORES_FIELD_NUMBER = 40; private long dtlbStores_; /** * optional uint64 dtlb_stores = 40; */ public boolean hasDtlbStores() { return ((bitField1_ & 0x00000080) == 0x00000080); } /** * optional uint64 dtlb_stores = 40; */ public long getDtlbStores() { return dtlbStores_; } public static final int DTLB_STORE_MISSES_FIELD_NUMBER = 41; private long dtlbStoreMisses_; /** * optional uint64 dtlb_store_misses = 41; */ public boolean hasDtlbStoreMisses() { return ((bitField1_ & 0x00000100) == 0x00000100); } /** * optional uint64 dtlb_store_misses = 41; */ public long getDtlbStoreMisses() { return dtlbStoreMisses_; } public static final int DTLB_PREFETCHES_FIELD_NUMBER = 42; private long dtlbPrefetches_; /** * optional uint64 dtlb_prefetches = 42; */ public boolean hasDtlbPrefetches() { return ((bitField1_ & 0x00000200) == 0x00000200); } /** * optional uint64 dtlb_prefetches = 42; */ public long getDtlbPrefetches() { return dtlbPrefetches_; } public static final int DTLB_PREFETCH_MISSES_FIELD_NUMBER = 43; private long dtlbPrefetchMisses_; /** * optional uint64 dtlb_prefetch_misses = 43; */ public boolean hasDtlbPrefetchMisses() { return ((bitField1_ & 0x00000400) == 0x00000400); } /** * optional uint64 dtlb_prefetch_misses = 43; */ public long getDtlbPrefetchMisses() { return dtlbPrefetchMisses_; } public static final int ITLB_LOADS_FIELD_NUMBER = 44; private long itlbLoads_; /** * optional uint64 itlb_loads = 44; */ public boolean hasItlbLoads() { return ((bitField1_ & 0x00000800) == 0x00000800); } /** * optional uint64 itlb_loads = 44; */ public long getItlbLoads() { return itlbLoads_; } public static final int ITLB_LOAD_MISSES_FIELD_NUMBER = 45; private long itlbLoadMisses_; /** * optional uint64 itlb_load_misses = 45; */ public boolean hasItlbLoadMisses() { return ((bitField1_ & 0x00001000) == 0x00001000); } /** * optional uint64 itlb_load_misses = 45; */ public long getItlbLoadMisses() { return itlbLoadMisses_; } public static final int BRANCH_LOADS_FIELD_NUMBER = 46; private long branchLoads_; /** * optional uint64 branch_loads = 46; */ public boolean hasBranchLoads() { return ((bitField1_ & 0x00002000) == 0x00002000); } /** * optional uint64 branch_loads = 46; */ public long getBranchLoads() { return branchLoads_; } public static final int BRANCH_LOAD_MISSES_FIELD_NUMBER = 47; private long branchLoadMisses_; /** * optional uint64 branch_load_misses = 47; */ public boolean hasBranchLoadMisses() { return ((bitField1_ & 0x00004000) == 0x00004000); } /** * optional uint64 branch_load_misses = 47; */ public long getBranchLoadMisses() { return branchLoadMisses_; } public static final int NODE_LOADS_FIELD_NUMBER = 48; private long nodeLoads_; /** * optional uint64 node_loads = 48; */ public boolean hasNodeLoads() { return ((bitField1_ & 0x00008000) == 0x00008000); } /** * optional uint64 node_loads = 48; */ public long getNodeLoads() { return nodeLoads_; } public static final int NODE_LOAD_MISSES_FIELD_NUMBER = 49; private long nodeLoadMisses_; /** * optional uint64 node_load_misses = 49; */ public boolean hasNodeLoadMisses() { return ((bitField1_ & 0x00010000) == 0x00010000); } /** * optional uint64 node_load_misses = 49; */ public long getNodeLoadMisses() { return nodeLoadMisses_; } public static final int NODE_STORES_FIELD_NUMBER = 50; private long nodeStores_; /** * optional uint64 node_stores = 50; */ public boolean hasNodeStores() { return ((bitField1_ & 0x00020000) == 0x00020000); } /** * optional uint64 node_stores = 50; */ public long getNodeStores() { return nodeStores_; } public static final int NODE_STORE_MISSES_FIELD_NUMBER = 51; private long nodeStoreMisses_; /** * optional uint64 node_store_misses = 51; */ public boolean hasNodeStoreMisses() { return ((bitField1_ & 0x00040000) == 0x00040000); } /** * optional uint64 node_store_misses = 51; */ public long getNodeStoreMisses() { return nodeStoreMisses_; } public static final int NODE_PREFETCHES_FIELD_NUMBER = 52; private long nodePrefetches_; /** * optional uint64 node_prefetches = 52; */ public boolean hasNodePrefetches() { return ((bitField1_ & 0x00080000) == 0x00080000); } /** * optional uint64 node_prefetches = 52; */ public long getNodePrefetches() { return nodePrefetches_; } public static final int NODE_PREFETCH_MISSES_FIELD_NUMBER = 53; private long nodePrefetchMisses_; /** * optional uint64 node_prefetch_misses = 53; */ public boolean hasNodePrefetchMisses() { return ((bitField1_ & 0x00100000) == 0x00100000); } /** * optional uint64 node_prefetch_misses = 53; */ public long getNodePrefetchMisses() { return nodePrefetchMisses_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasTimestamp()) { memoizedIsInitialized = 0; return false; } if (!hasDuration()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeDouble(1, timestamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeDouble(2, duration_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, cycles_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, stalledCyclesFrontend_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt64(5, stalledCyclesBackend_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt64(6, instructions_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt64(7, cacheReferences_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt64(8, cacheMisses_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt64(9, branches_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt64(10, branchMisses_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeUInt64(11, busCycles_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt64(12, refCycles_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeDouble(13, cpuClock_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeDouble(14, taskClock_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeUInt64(15, pageFaults_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeUInt64(16, minorFaults_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeUInt64(17, majorFaults_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeUInt64(18, contextSwitches_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeUInt64(19, cpuMigrations_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeUInt64(20, alignmentFaults_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeUInt64(21, emulationFaults_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeUInt64(22, l1DcacheLoads_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeUInt64(23, l1DcacheLoadMisses_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeUInt64(24, l1DcacheStores_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeUInt64(25, l1DcacheStoreMisses_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeUInt64(26, l1DcachePrefetches_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeUInt64(27, l1DcachePrefetchMisses_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeUInt64(28, l1IcacheLoads_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeUInt64(29, l1IcacheLoadMisses_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { output.writeUInt64(30, l1IcachePrefetches_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { output.writeUInt64(31, l1IcachePrefetchMisses_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { output.writeUInt64(32, llcLoads_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { output.writeUInt64(33, llcLoadMisses_); } if (((bitField1_ & 0x00000002) == 0x00000002)) { output.writeUInt64(34, llcStores_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { output.writeUInt64(35, llcStoreMisses_); } if (((bitField1_ & 0x00000008) == 0x00000008)) { output.writeUInt64(36, llcPrefetches_); } if (((bitField1_ & 0x00000010) == 0x00000010)) { output.writeUInt64(37, llcPrefetchMisses_); } if (((bitField1_ & 0x00000020) == 0x00000020)) { output.writeUInt64(38, dtlbLoads_); } if (((bitField1_ & 0x00000040) == 0x00000040)) { output.writeUInt64(39, dtlbLoadMisses_); } if (((bitField1_ & 0x00000080) == 0x00000080)) { output.writeUInt64(40, dtlbStores_); } if (((bitField1_ & 0x00000100) == 0x00000100)) { output.writeUInt64(41, dtlbStoreMisses_); } if (((bitField1_ & 0x00000200) == 0x00000200)) { output.writeUInt64(42, dtlbPrefetches_); } if (((bitField1_ & 0x00000400) == 0x00000400)) { output.writeUInt64(43, dtlbPrefetchMisses_); } if (((bitField1_ & 0x00000800) == 0x00000800)) { output.writeUInt64(44, itlbLoads_); } if (((bitField1_ & 0x00001000) == 0x00001000)) { output.writeUInt64(45, itlbLoadMisses_); } if (((bitField1_ & 0x00002000) == 0x00002000)) { output.writeUInt64(46, branchLoads_); } if (((bitField1_ & 0x00004000) == 0x00004000)) { output.writeUInt64(47, branchLoadMisses_); } if (((bitField1_ & 0x00008000) == 0x00008000)) { output.writeUInt64(48, nodeLoads_); } if (((bitField1_ & 0x00010000) == 0x00010000)) { output.writeUInt64(49, nodeLoadMisses_); } if (((bitField1_ & 0x00020000) == 0x00020000)) { output.writeUInt64(50, nodeStores_); } if (((bitField1_ & 0x00040000) == 0x00040000)) { output.writeUInt64(51, nodeStoreMisses_); } if (((bitField1_ & 0x00080000) == 0x00080000)) { output.writeUInt64(52, nodePrefetches_); } if (((bitField1_ & 0x00100000) == 0x00100000)) { output.writeUInt64(53, nodePrefetchMisses_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, timestamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, duration_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, cycles_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, stalledCyclesFrontend_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, stalledCyclesBackend_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, instructions_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, cacheReferences_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, cacheMisses_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, branches_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, branchMisses_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, busCycles_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(12, refCycles_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(13, cpuClock_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(14, taskClock_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(15, pageFaults_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(16, minorFaults_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(17, majorFaults_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(18, contextSwitches_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(19, cpuMigrations_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(20, alignmentFaults_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(21, emulationFaults_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(22, l1DcacheLoads_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(23, l1DcacheLoadMisses_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(24, l1DcacheStores_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(25, l1DcacheStoreMisses_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(26, l1DcachePrefetches_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(27, l1DcachePrefetchMisses_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(28, l1IcacheLoads_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(29, l1IcacheLoadMisses_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(30, l1IcachePrefetches_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(31, l1IcachePrefetchMisses_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(32, llcLoads_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(33, llcLoadMisses_); } if (((bitField1_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(34, llcStores_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(35, llcStoreMisses_); } if (((bitField1_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(36, llcPrefetches_); } if (((bitField1_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(37, llcPrefetchMisses_); } if (((bitField1_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(38, dtlbLoads_); } if (((bitField1_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(39, dtlbLoadMisses_); } if (((bitField1_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(40, dtlbStores_); } if (((bitField1_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(41, dtlbStoreMisses_); } if (((bitField1_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(42, dtlbPrefetches_); } if (((bitField1_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(43, dtlbPrefetchMisses_); } if (((bitField1_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(44, itlbLoads_); } if (((bitField1_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(45, itlbLoadMisses_); } if (((bitField1_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(46, branchLoads_); } if (((bitField1_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(47, branchLoadMisses_); } if (((bitField1_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(48, nodeLoads_); } if (((bitField1_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(49, nodeLoadMisses_); } if (((bitField1_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(50, nodeStores_); } if (((bitField1_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(51, nodeStoreMisses_); } if (((bitField1_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(52, nodePrefetches_); } if (((bitField1_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(53, nodePrefetchMisses_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.PerfStatistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.PerfStatistics other = (org.apache.mesos.v1.Protos.PerfStatistics) obj; boolean result = true; result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && ( java.lang.Double.doubleToLongBits(getTimestamp()) == java.lang.Double.doubleToLongBits( other.getTimestamp())); } result = result && (hasDuration() == other.hasDuration()); if (hasDuration()) { result = result && ( java.lang.Double.doubleToLongBits(getDuration()) == java.lang.Double.doubleToLongBits( other.getDuration())); } result = result && (hasCycles() == other.hasCycles()); if (hasCycles()) { result = result && (getCycles() == other.getCycles()); } result = result && (hasStalledCyclesFrontend() == other.hasStalledCyclesFrontend()); if (hasStalledCyclesFrontend()) { result = result && (getStalledCyclesFrontend() == other.getStalledCyclesFrontend()); } result = result && (hasStalledCyclesBackend() == other.hasStalledCyclesBackend()); if (hasStalledCyclesBackend()) { result = result && (getStalledCyclesBackend() == other.getStalledCyclesBackend()); } result = result && (hasInstructions() == other.hasInstructions()); if (hasInstructions()) { result = result && (getInstructions() == other.getInstructions()); } result = result && (hasCacheReferences() == other.hasCacheReferences()); if (hasCacheReferences()) { result = result && (getCacheReferences() == other.getCacheReferences()); } result = result && (hasCacheMisses() == other.hasCacheMisses()); if (hasCacheMisses()) { result = result && (getCacheMisses() == other.getCacheMisses()); } result = result && (hasBranches() == other.hasBranches()); if (hasBranches()) { result = result && (getBranches() == other.getBranches()); } result = result && (hasBranchMisses() == other.hasBranchMisses()); if (hasBranchMisses()) { result = result && (getBranchMisses() == other.getBranchMisses()); } result = result && (hasBusCycles() == other.hasBusCycles()); if (hasBusCycles()) { result = result && (getBusCycles() == other.getBusCycles()); } result = result && (hasRefCycles() == other.hasRefCycles()); if (hasRefCycles()) { result = result && (getRefCycles() == other.getRefCycles()); } result = result && (hasCpuClock() == other.hasCpuClock()); if (hasCpuClock()) { result = result && ( java.lang.Double.doubleToLongBits(getCpuClock()) == java.lang.Double.doubleToLongBits( other.getCpuClock())); } result = result && (hasTaskClock() == other.hasTaskClock()); if (hasTaskClock()) { result = result && ( java.lang.Double.doubleToLongBits(getTaskClock()) == java.lang.Double.doubleToLongBits( other.getTaskClock())); } result = result && (hasPageFaults() == other.hasPageFaults()); if (hasPageFaults()) { result = result && (getPageFaults() == other.getPageFaults()); } result = result && (hasMinorFaults() == other.hasMinorFaults()); if (hasMinorFaults()) { result = result && (getMinorFaults() == other.getMinorFaults()); } result = result && (hasMajorFaults() == other.hasMajorFaults()); if (hasMajorFaults()) { result = result && (getMajorFaults() == other.getMajorFaults()); } result = result && (hasContextSwitches() == other.hasContextSwitches()); if (hasContextSwitches()) { result = result && (getContextSwitches() == other.getContextSwitches()); } result = result && (hasCpuMigrations() == other.hasCpuMigrations()); if (hasCpuMigrations()) { result = result && (getCpuMigrations() == other.getCpuMigrations()); } result = result && (hasAlignmentFaults() == other.hasAlignmentFaults()); if (hasAlignmentFaults()) { result = result && (getAlignmentFaults() == other.getAlignmentFaults()); } result = result && (hasEmulationFaults() == other.hasEmulationFaults()); if (hasEmulationFaults()) { result = result && (getEmulationFaults() == other.getEmulationFaults()); } result = result && (hasL1DcacheLoads() == other.hasL1DcacheLoads()); if (hasL1DcacheLoads()) { result = result && (getL1DcacheLoads() == other.getL1DcacheLoads()); } result = result && (hasL1DcacheLoadMisses() == other.hasL1DcacheLoadMisses()); if (hasL1DcacheLoadMisses()) { result = result && (getL1DcacheLoadMisses() == other.getL1DcacheLoadMisses()); } result = result && (hasL1DcacheStores() == other.hasL1DcacheStores()); if (hasL1DcacheStores()) { result = result && (getL1DcacheStores() == other.getL1DcacheStores()); } result = result && (hasL1DcacheStoreMisses() == other.hasL1DcacheStoreMisses()); if (hasL1DcacheStoreMisses()) { result = result && (getL1DcacheStoreMisses() == other.getL1DcacheStoreMisses()); } result = result && (hasL1DcachePrefetches() == other.hasL1DcachePrefetches()); if (hasL1DcachePrefetches()) { result = result && (getL1DcachePrefetches() == other.getL1DcachePrefetches()); } result = result && (hasL1DcachePrefetchMisses() == other.hasL1DcachePrefetchMisses()); if (hasL1DcachePrefetchMisses()) { result = result && (getL1DcachePrefetchMisses() == other.getL1DcachePrefetchMisses()); } result = result && (hasL1IcacheLoads() == other.hasL1IcacheLoads()); if (hasL1IcacheLoads()) { result = result && (getL1IcacheLoads() == other.getL1IcacheLoads()); } result = result && (hasL1IcacheLoadMisses() == other.hasL1IcacheLoadMisses()); if (hasL1IcacheLoadMisses()) { result = result && (getL1IcacheLoadMisses() == other.getL1IcacheLoadMisses()); } result = result && (hasL1IcachePrefetches() == other.hasL1IcachePrefetches()); if (hasL1IcachePrefetches()) { result = result && (getL1IcachePrefetches() == other.getL1IcachePrefetches()); } result = result && (hasL1IcachePrefetchMisses() == other.hasL1IcachePrefetchMisses()); if (hasL1IcachePrefetchMisses()) { result = result && (getL1IcachePrefetchMisses() == other.getL1IcachePrefetchMisses()); } result = result && (hasLlcLoads() == other.hasLlcLoads()); if (hasLlcLoads()) { result = result && (getLlcLoads() == other.getLlcLoads()); } result = result && (hasLlcLoadMisses() == other.hasLlcLoadMisses()); if (hasLlcLoadMisses()) { result = result && (getLlcLoadMisses() == other.getLlcLoadMisses()); } result = result && (hasLlcStores() == other.hasLlcStores()); if (hasLlcStores()) { result = result && (getLlcStores() == other.getLlcStores()); } result = result && (hasLlcStoreMisses() == other.hasLlcStoreMisses()); if (hasLlcStoreMisses()) { result = result && (getLlcStoreMisses() == other.getLlcStoreMisses()); } result = result && (hasLlcPrefetches() == other.hasLlcPrefetches()); if (hasLlcPrefetches()) { result = result && (getLlcPrefetches() == other.getLlcPrefetches()); } result = result && (hasLlcPrefetchMisses() == other.hasLlcPrefetchMisses()); if (hasLlcPrefetchMisses()) { result = result && (getLlcPrefetchMisses() == other.getLlcPrefetchMisses()); } result = result && (hasDtlbLoads() == other.hasDtlbLoads()); if (hasDtlbLoads()) { result = result && (getDtlbLoads() == other.getDtlbLoads()); } result = result && (hasDtlbLoadMisses() == other.hasDtlbLoadMisses()); if (hasDtlbLoadMisses()) { result = result && (getDtlbLoadMisses() == other.getDtlbLoadMisses()); } result = result && (hasDtlbStores() == other.hasDtlbStores()); if (hasDtlbStores()) { result = result && (getDtlbStores() == other.getDtlbStores()); } result = result && (hasDtlbStoreMisses() == other.hasDtlbStoreMisses()); if (hasDtlbStoreMisses()) { result = result && (getDtlbStoreMisses() == other.getDtlbStoreMisses()); } result = result && (hasDtlbPrefetches() == other.hasDtlbPrefetches()); if (hasDtlbPrefetches()) { result = result && (getDtlbPrefetches() == other.getDtlbPrefetches()); } result = result && (hasDtlbPrefetchMisses() == other.hasDtlbPrefetchMisses()); if (hasDtlbPrefetchMisses()) { result = result && (getDtlbPrefetchMisses() == other.getDtlbPrefetchMisses()); } result = result && (hasItlbLoads() == other.hasItlbLoads()); if (hasItlbLoads()) { result = result && (getItlbLoads() == other.getItlbLoads()); } result = result && (hasItlbLoadMisses() == other.hasItlbLoadMisses()); if (hasItlbLoadMisses()) { result = result && (getItlbLoadMisses() == other.getItlbLoadMisses()); } result = result && (hasBranchLoads() == other.hasBranchLoads()); if (hasBranchLoads()) { result = result && (getBranchLoads() == other.getBranchLoads()); } result = result && (hasBranchLoadMisses() == other.hasBranchLoadMisses()); if (hasBranchLoadMisses()) { result = result && (getBranchLoadMisses() == other.getBranchLoadMisses()); } result = result && (hasNodeLoads() == other.hasNodeLoads()); if (hasNodeLoads()) { result = result && (getNodeLoads() == other.getNodeLoads()); } result = result && (hasNodeLoadMisses() == other.hasNodeLoadMisses()); if (hasNodeLoadMisses()) { result = result && (getNodeLoadMisses() == other.getNodeLoadMisses()); } result = result && (hasNodeStores() == other.hasNodeStores()); if (hasNodeStores()) { result = result && (getNodeStores() == other.getNodeStores()); } result = result && (hasNodeStoreMisses() == other.hasNodeStoreMisses()); if (hasNodeStoreMisses()) { result = result && (getNodeStoreMisses() == other.getNodeStoreMisses()); } result = result && (hasNodePrefetches() == other.hasNodePrefetches()); if (hasNodePrefetches()) { result = result && (getNodePrefetches() == other.getNodePrefetches()); } result = result && (hasNodePrefetchMisses() == other.hasNodePrefetchMisses()); if (hasNodePrefetchMisses()) { result = result && (getNodePrefetchMisses() == other.getNodePrefetchMisses()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTimestamp())); } if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDuration())); } if (hasCycles()) { hash = (37 * hash) + CYCLES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCycles()); } if (hasStalledCyclesFrontend()) { hash = (37 * hash) + STALLED_CYCLES_FRONTEND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStalledCyclesFrontend()); } if (hasStalledCyclesBackend()) { hash = (37 * hash) + STALLED_CYCLES_BACKEND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStalledCyclesBackend()); } if (hasInstructions()) { hash = (37 * hash) + INSTRUCTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInstructions()); } if (hasCacheReferences()) { hash = (37 * hash) + CACHE_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCacheReferences()); } if (hasCacheMisses()) { hash = (37 * hash) + CACHE_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCacheMisses()); } if (hasBranches()) { hash = (37 * hash) + BRANCHES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBranches()); } if (hasBranchMisses()) { hash = (37 * hash) + BRANCH_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBranchMisses()); } if (hasBusCycles()) { hash = (37 * hash) + BUS_CYCLES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBusCycles()); } if (hasRefCycles()) { hash = (37 * hash) + REF_CYCLES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRefCycles()); } if (hasCpuClock()) { hash = (37 * hash) + CPU_CLOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpuClock())); } if (hasTaskClock()) { hash = (37 * hash) + TASK_CLOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTaskClock())); } if (hasPageFaults()) { hash = (37 * hash) + PAGE_FAULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageFaults()); } if (hasMinorFaults()) { hash = (37 * hash) + MINOR_FAULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinorFaults()); } if (hasMajorFaults()) { hash = (37 * hash) + MAJOR_FAULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMajorFaults()); } if (hasContextSwitches()) { hash = (37 * hash) + CONTEXT_SWITCHES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getContextSwitches()); } if (hasCpuMigrations()) { hash = (37 * hash) + CPU_MIGRATIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCpuMigrations()); } if (hasAlignmentFaults()) { hash = (37 * hash) + ALIGNMENT_FAULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAlignmentFaults()); } if (hasEmulationFaults()) { hash = (37 * hash) + EMULATION_FAULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEmulationFaults()); } if (hasL1DcacheLoads()) { hash = (37 * hash) + L1_DCACHE_LOADS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1DcacheLoads()); } if (hasL1DcacheLoadMisses()) { hash = (37 * hash) + L1_DCACHE_LOAD_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1DcacheLoadMisses()); } if (hasL1DcacheStores()) { hash = (37 * hash) + L1_DCACHE_STORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1DcacheStores()); } if (hasL1DcacheStoreMisses()) { hash = (37 * hash) + L1_DCACHE_STORE_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1DcacheStoreMisses()); } if (hasL1DcachePrefetches()) { hash = (37 * hash) + L1_DCACHE_PREFETCHES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1DcachePrefetches()); } if (hasL1DcachePrefetchMisses()) { hash = (37 * hash) + L1_DCACHE_PREFETCH_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1DcachePrefetchMisses()); } if (hasL1IcacheLoads()) { hash = (37 * hash) + L1_ICACHE_LOADS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1IcacheLoads()); } if (hasL1IcacheLoadMisses()) { hash = (37 * hash) + L1_ICACHE_LOAD_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1IcacheLoadMisses()); } if (hasL1IcachePrefetches()) { hash = (37 * hash) + L1_ICACHE_PREFETCHES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1IcachePrefetches()); } if (hasL1IcachePrefetchMisses()) { hash = (37 * hash) + L1_ICACHE_PREFETCH_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getL1IcachePrefetchMisses()); } if (hasLlcLoads()) { hash = (37 * hash) + LLC_LOADS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLlcLoads()); } if (hasLlcLoadMisses()) { hash = (37 * hash) + LLC_LOAD_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLlcLoadMisses()); } if (hasLlcStores()) { hash = (37 * hash) + LLC_STORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLlcStores()); } if (hasLlcStoreMisses()) { hash = (37 * hash) + LLC_STORE_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLlcStoreMisses()); } if (hasLlcPrefetches()) { hash = (37 * hash) + LLC_PREFETCHES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLlcPrefetches()); } if (hasLlcPrefetchMisses()) { hash = (37 * hash) + LLC_PREFETCH_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLlcPrefetchMisses()); } if (hasDtlbLoads()) { hash = (37 * hash) + DTLB_LOADS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDtlbLoads()); } if (hasDtlbLoadMisses()) { hash = (37 * hash) + DTLB_LOAD_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDtlbLoadMisses()); } if (hasDtlbStores()) { hash = (37 * hash) + DTLB_STORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDtlbStores()); } if (hasDtlbStoreMisses()) { hash = (37 * hash) + DTLB_STORE_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDtlbStoreMisses()); } if (hasDtlbPrefetches()) { hash = (37 * hash) + DTLB_PREFETCHES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDtlbPrefetches()); } if (hasDtlbPrefetchMisses()) { hash = (37 * hash) + DTLB_PREFETCH_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDtlbPrefetchMisses()); } if (hasItlbLoads()) { hash = (37 * hash) + ITLB_LOADS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getItlbLoads()); } if (hasItlbLoadMisses()) { hash = (37 * hash) + ITLB_LOAD_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getItlbLoadMisses()); } if (hasBranchLoads()) { hash = (37 * hash) + BRANCH_LOADS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBranchLoads()); } if (hasBranchLoadMisses()) { hash = (37 * hash) + BRANCH_LOAD_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBranchLoadMisses()); } if (hasNodeLoads()) { hash = (37 * hash) + NODE_LOADS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeLoads()); } if (hasNodeLoadMisses()) { hash = (37 * hash) + NODE_LOAD_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeLoadMisses()); } if (hasNodeStores()) { hash = (37 * hash) + NODE_STORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeStores()); } if (hasNodeStoreMisses()) { hash = (37 * hash) + NODE_STORE_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeStoreMisses()); } if (hasNodePrefetches()) { hash = (37 * hash) + NODE_PREFETCHES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodePrefetches()); } if (hasNodePrefetchMisses()) { hash = (37 * hash) + NODE_PREFETCH_MISSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodePrefetchMisses()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.PerfStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.PerfStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.PerfStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.PerfStatistics 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.Protos.PerfStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.PerfStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.PerfStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.PerfStatistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.PerfStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.PerfStatistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.PerfStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.PerfStatistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.PerfStatistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a sample of events from "perf stat". Only available on
     * Linux.
     * NOTE: Each optional field matches the name of a perf event (see
     * "perf list") with the following changes:
     * 1. Names are downcased.
     * 2. Hyphens ('-') are replaced with underscores ('_').
     * 3. Events with alternate names use the name "perf stat" returns,
     *    e.g., for the event "cycles OR cpu-cycles" perf always returns
     *    cycles.
     * 
* * Protobuf type {@code mesos.v1.PerfStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.PerfStatistics) org.apache.mesos.v1.Protos.PerfStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_PerfStatistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_PerfStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.PerfStatistics.class, org.apache.mesos.v1.Protos.PerfStatistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.PerfStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); timestamp_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); duration_ = 0D; bitField0_ = (bitField0_ & ~0x00000002); cycles_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); stalledCyclesFrontend_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); stalledCyclesBackend_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); instructions_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); cacheReferences_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); cacheMisses_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); branches_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); branchMisses_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); busCycles_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); refCycles_ = 0L; bitField0_ = (bitField0_ & ~0x00000800); cpuClock_ = 0D; bitField0_ = (bitField0_ & ~0x00001000); taskClock_ = 0D; bitField0_ = (bitField0_ & ~0x00002000); pageFaults_ = 0L; bitField0_ = (bitField0_ & ~0x00004000); minorFaults_ = 0L; bitField0_ = (bitField0_ & ~0x00008000); majorFaults_ = 0L; bitField0_ = (bitField0_ & ~0x00010000); contextSwitches_ = 0L; bitField0_ = (bitField0_ & ~0x00020000); cpuMigrations_ = 0L; bitField0_ = (bitField0_ & ~0x00040000); alignmentFaults_ = 0L; bitField0_ = (bitField0_ & ~0x00080000); emulationFaults_ = 0L; bitField0_ = (bitField0_ & ~0x00100000); l1DcacheLoads_ = 0L; bitField0_ = (bitField0_ & ~0x00200000); l1DcacheLoadMisses_ = 0L; bitField0_ = (bitField0_ & ~0x00400000); l1DcacheStores_ = 0L; bitField0_ = (bitField0_ & ~0x00800000); l1DcacheStoreMisses_ = 0L; bitField0_ = (bitField0_ & ~0x01000000); l1DcachePrefetches_ = 0L; bitField0_ = (bitField0_ & ~0x02000000); l1DcachePrefetchMisses_ = 0L; bitField0_ = (bitField0_ & ~0x04000000); l1IcacheLoads_ = 0L; bitField0_ = (bitField0_ & ~0x08000000); l1IcacheLoadMisses_ = 0L; bitField0_ = (bitField0_ & ~0x10000000); l1IcachePrefetches_ = 0L; bitField0_ = (bitField0_ & ~0x20000000); l1IcachePrefetchMisses_ = 0L; bitField0_ = (bitField0_ & ~0x40000000); llcLoads_ = 0L; bitField0_ = (bitField0_ & ~0x80000000); llcLoadMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00000001); llcStores_ = 0L; bitField1_ = (bitField1_ & ~0x00000002); llcStoreMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00000004); llcPrefetches_ = 0L; bitField1_ = (bitField1_ & ~0x00000008); llcPrefetchMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00000010); dtlbLoads_ = 0L; bitField1_ = (bitField1_ & ~0x00000020); dtlbLoadMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00000040); dtlbStores_ = 0L; bitField1_ = (bitField1_ & ~0x00000080); dtlbStoreMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00000100); dtlbPrefetches_ = 0L; bitField1_ = (bitField1_ & ~0x00000200); dtlbPrefetchMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00000400); itlbLoads_ = 0L; bitField1_ = (bitField1_ & ~0x00000800); itlbLoadMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00001000); branchLoads_ = 0L; bitField1_ = (bitField1_ & ~0x00002000); branchLoadMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00004000); nodeLoads_ = 0L; bitField1_ = (bitField1_ & ~0x00008000); nodeLoadMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00010000); nodeStores_ = 0L; bitField1_ = (bitField1_ & ~0x00020000); nodeStoreMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00040000); nodePrefetches_ = 0L; bitField1_ = (bitField1_ & ~0x00080000); nodePrefetchMisses_ = 0L; bitField1_ = (bitField1_ & ~0x00100000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_PerfStatistics_descriptor; } public org.apache.mesos.v1.Protos.PerfStatistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.PerfStatistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.PerfStatistics build() { org.apache.mesos.v1.Protos.PerfStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.PerfStatistics buildPartial() { org.apache.mesos.v1.Protos.PerfStatistics result = new org.apache.mesos.v1.Protos.PerfStatistics(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int to_bitField0_ = 0; int to_bitField1_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.duration_ = duration_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.cycles_ = cycles_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.stalledCyclesFrontend_ = stalledCyclesFrontend_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.stalledCyclesBackend_ = stalledCyclesBackend_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.instructions_ = instructions_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.cacheReferences_ = cacheReferences_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.cacheMisses_ = cacheMisses_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.branches_ = branches_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.branchMisses_ = branchMisses_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.busCycles_ = busCycles_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.refCycles_ = refCycles_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.cpuClock_ = cpuClock_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.taskClock_ = taskClock_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.pageFaults_ = pageFaults_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.minorFaults_ = minorFaults_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.majorFaults_ = majorFaults_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.contextSwitches_ = contextSwitches_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.cpuMigrations_ = cpuMigrations_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } result.alignmentFaults_ = alignmentFaults_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } result.emulationFaults_ = emulationFaults_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } result.l1DcacheLoads_ = l1DcacheLoads_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } result.l1DcacheLoadMisses_ = l1DcacheLoadMisses_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } result.l1DcacheStores_ = l1DcacheStores_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } result.l1DcacheStoreMisses_ = l1DcacheStoreMisses_; if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x02000000; } result.l1DcachePrefetches_ = l1DcachePrefetches_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x04000000; } result.l1DcachePrefetchMisses_ = l1DcachePrefetchMisses_; if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x08000000; } result.l1IcacheLoads_ = l1IcacheLoads_; if (((from_bitField0_ & 0x10000000) == 0x10000000)) { to_bitField0_ |= 0x10000000; } result.l1IcacheLoadMisses_ = l1IcacheLoadMisses_; if (((from_bitField0_ & 0x20000000) == 0x20000000)) { to_bitField0_ |= 0x20000000; } result.l1IcachePrefetches_ = l1IcachePrefetches_; if (((from_bitField0_ & 0x40000000) == 0x40000000)) { to_bitField0_ |= 0x40000000; } result.l1IcachePrefetchMisses_ = l1IcachePrefetchMisses_; if (((from_bitField0_ & 0x80000000) == 0x80000000)) { to_bitField0_ |= 0x80000000; } result.llcLoads_ = llcLoads_; if (((from_bitField1_ & 0x00000001) == 0x00000001)) { to_bitField1_ |= 0x00000001; } result.llcLoadMisses_ = llcLoadMisses_; if (((from_bitField1_ & 0x00000002) == 0x00000002)) { to_bitField1_ |= 0x00000002; } result.llcStores_ = llcStores_; if (((from_bitField1_ & 0x00000004) == 0x00000004)) { to_bitField1_ |= 0x00000004; } result.llcStoreMisses_ = llcStoreMisses_; if (((from_bitField1_ & 0x00000008) == 0x00000008)) { to_bitField1_ |= 0x00000008; } result.llcPrefetches_ = llcPrefetches_; if (((from_bitField1_ & 0x00000010) == 0x00000010)) { to_bitField1_ |= 0x00000010; } result.llcPrefetchMisses_ = llcPrefetchMisses_; if (((from_bitField1_ & 0x00000020) == 0x00000020)) { to_bitField1_ |= 0x00000020; } result.dtlbLoads_ = dtlbLoads_; if (((from_bitField1_ & 0x00000040) == 0x00000040)) { to_bitField1_ |= 0x00000040; } result.dtlbLoadMisses_ = dtlbLoadMisses_; if (((from_bitField1_ & 0x00000080) == 0x00000080)) { to_bitField1_ |= 0x00000080; } result.dtlbStores_ = dtlbStores_; if (((from_bitField1_ & 0x00000100) == 0x00000100)) { to_bitField1_ |= 0x00000100; } result.dtlbStoreMisses_ = dtlbStoreMisses_; if (((from_bitField1_ & 0x00000200) == 0x00000200)) { to_bitField1_ |= 0x00000200; } result.dtlbPrefetches_ = dtlbPrefetches_; if (((from_bitField1_ & 0x00000400) == 0x00000400)) { to_bitField1_ |= 0x00000400; } result.dtlbPrefetchMisses_ = dtlbPrefetchMisses_; if (((from_bitField1_ & 0x00000800) == 0x00000800)) { to_bitField1_ |= 0x00000800; } result.itlbLoads_ = itlbLoads_; if (((from_bitField1_ & 0x00001000) == 0x00001000)) { to_bitField1_ |= 0x00001000; } result.itlbLoadMisses_ = itlbLoadMisses_; if (((from_bitField1_ & 0x00002000) == 0x00002000)) { to_bitField1_ |= 0x00002000; } result.branchLoads_ = branchLoads_; if (((from_bitField1_ & 0x00004000) == 0x00004000)) { to_bitField1_ |= 0x00004000; } result.branchLoadMisses_ = branchLoadMisses_; if (((from_bitField1_ & 0x00008000) == 0x00008000)) { to_bitField1_ |= 0x00008000; } result.nodeLoads_ = nodeLoads_; if (((from_bitField1_ & 0x00010000) == 0x00010000)) { to_bitField1_ |= 0x00010000; } result.nodeLoadMisses_ = nodeLoadMisses_; if (((from_bitField1_ & 0x00020000) == 0x00020000)) { to_bitField1_ |= 0x00020000; } result.nodeStores_ = nodeStores_; if (((from_bitField1_ & 0x00040000) == 0x00040000)) { to_bitField1_ |= 0x00040000; } result.nodeStoreMisses_ = nodeStoreMisses_; if (((from_bitField1_ & 0x00080000) == 0x00080000)) { to_bitField1_ |= 0x00080000; } result.nodePrefetches_ = nodePrefetches_; if (((from_bitField1_ & 0x00100000) == 0x00100000)) { to_bitField1_ |= 0x00100000; } result.nodePrefetchMisses_ = nodePrefetchMisses_; result.bitField0_ = to_bitField0_; result.bitField1_ = to_bitField1_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.PerfStatistics) { return mergeFrom((org.apache.mesos.v1.Protos.PerfStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.PerfStatistics other) { if (other == org.apache.mesos.v1.Protos.PerfStatistics.getDefaultInstance()) return this; if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasDuration()) { setDuration(other.getDuration()); } if (other.hasCycles()) { setCycles(other.getCycles()); } if (other.hasStalledCyclesFrontend()) { setStalledCyclesFrontend(other.getStalledCyclesFrontend()); } if (other.hasStalledCyclesBackend()) { setStalledCyclesBackend(other.getStalledCyclesBackend()); } if (other.hasInstructions()) { setInstructions(other.getInstructions()); } if (other.hasCacheReferences()) { setCacheReferences(other.getCacheReferences()); } if (other.hasCacheMisses()) { setCacheMisses(other.getCacheMisses()); } if (other.hasBranches()) { setBranches(other.getBranches()); } if (other.hasBranchMisses()) { setBranchMisses(other.getBranchMisses()); } if (other.hasBusCycles()) { setBusCycles(other.getBusCycles()); } if (other.hasRefCycles()) { setRefCycles(other.getRefCycles()); } if (other.hasCpuClock()) { setCpuClock(other.getCpuClock()); } if (other.hasTaskClock()) { setTaskClock(other.getTaskClock()); } if (other.hasPageFaults()) { setPageFaults(other.getPageFaults()); } if (other.hasMinorFaults()) { setMinorFaults(other.getMinorFaults()); } if (other.hasMajorFaults()) { setMajorFaults(other.getMajorFaults()); } if (other.hasContextSwitches()) { setContextSwitches(other.getContextSwitches()); } if (other.hasCpuMigrations()) { setCpuMigrations(other.getCpuMigrations()); } if (other.hasAlignmentFaults()) { setAlignmentFaults(other.getAlignmentFaults()); } if (other.hasEmulationFaults()) { setEmulationFaults(other.getEmulationFaults()); } if (other.hasL1DcacheLoads()) { setL1DcacheLoads(other.getL1DcacheLoads()); } if (other.hasL1DcacheLoadMisses()) { setL1DcacheLoadMisses(other.getL1DcacheLoadMisses()); } if (other.hasL1DcacheStores()) { setL1DcacheStores(other.getL1DcacheStores()); } if (other.hasL1DcacheStoreMisses()) { setL1DcacheStoreMisses(other.getL1DcacheStoreMisses()); } if (other.hasL1DcachePrefetches()) { setL1DcachePrefetches(other.getL1DcachePrefetches()); } if (other.hasL1DcachePrefetchMisses()) { setL1DcachePrefetchMisses(other.getL1DcachePrefetchMisses()); } if (other.hasL1IcacheLoads()) { setL1IcacheLoads(other.getL1IcacheLoads()); } if (other.hasL1IcacheLoadMisses()) { setL1IcacheLoadMisses(other.getL1IcacheLoadMisses()); } if (other.hasL1IcachePrefetches()) { setL1IcachePrefetches(other.getL1IcachePrefetches()); } if (other.hasL1IcachePrefetchMisses()) { setL1IcachePrefetchMisses(other.getL1IcachePrefetchMisses()); } if (other.hasLlcLoads()) { setLlcLoads(other.getLlcLoads()); } if (other.hasLlcLoadMisses()) { setLlcLoadMisses(other.getLlcLoadMisses()); } if (other.hasLlcStores()) { setLlcStores(other.getLlcStores()); } if (other.hasLlcStoreMisses()) { setLlcStoreMisses(other.getLlcStoreMisses()); } if (other.hasLlcPrefetches()) { setLlcPrefetches(other.getLlcPrefetches()); } if (other.hasLlcPrefetchMisses()) { setLlcPrefetchMisses(other.getLlcPrefetchMisses()); } if (other.hasDtlbLoads()) { setDtlbLoads(other.getDtlbLoads()); } if (other.hasDtlbLoadMisses()) { setDtlbLoadMisses(other.getDtlbLoadMisses()); } if (other.hasDtlbStores()) { setDtlbStores(other.getDtlbStores()); } if (other.hasDtlbStoreMisses()) { setDtlbStoreMisses(other.getDtlbStoreMisses()); } if (other.hasDtlbPrefetches()) { setDtlbPrefetches(other.getDtlbPrefetches()); } if (other.hasDtlbPrefetchMisses()) { setDtlbPrefetchMisses(other.getDtlbPrefetchMisses()); } if (other.hasItlbLoads()) { setItlbLoads(other.getItlbLoads()); } if (other.hasItlbLoadMisses()) { setItlbLoadMisses(other.getItlbLoadMisses()); } if (other.hasBranchLoads()) { setBranchLoads(other.getBranchLoads()); } if (other.hasBranchLoadMisses()) { setBranchLoadMisses(other.getBranchLoadMisses()); } if (other.hasNodeLoads()) { setNodeLoads(other.getNodeLoads()); } if (other.hasNodeLoadMisses()) { setNodeLoadMisses(other.getNodeLoadMisses()); } if (other.hasNodeStores()) { setNodeStores(other.getNodeStores()); } if (other.hasNodeStoreMisses()) { setNodeStoreMisses(other.getNodeStoreMisses()); } if (other.hasNodePrefetches()) { setNodePrefetches(other.getNodePrefetches()); } if (other.hasNodePrefetchMisses()) { setNodePrefetchMisses(other.getNodePrefetchMisses()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasTimestamp()) { return false; } if (!hasDuration()) { 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.Protos.PerfStatistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.PerfStatistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bitField1_; private double timestamp_ ; /** *
       * Start of sample interval, in seconds since the Epoch.
       * 
* * required double timestamp = 1; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Start of sample interval, in seconds since the Epoch.
       * 
* * required double timestamp = 1; */ public double getTimestamp() { return timestamp_; } /** *
       * Start of sample interval, in seconds since the Epoch.
       * 
* * required double timestamp = 1; */ public Builder setTimestamp(double value) { bitField0_ |= 0x00000001; timestamp_ = value; onChanged(); return this; } /** *
       * Start of sample interval, in seconds since the Epoch.
       * 
* * required double timestamp = 1; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = 0D; onChanged(); return this; } private double duration_ ; /** *
       * Duration of sample interval, in seconds.
       * 
* * required double duration = 2; */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Duration of sample interval, in seconds.
       * 
* * required double duration = 2; */ public double getDuration() { return duration_; } /** *
       * Duration of sample interval, in seconds.
       * 
* * required double duration = 2; */ public Builder setDuration(double value) { bitField0_ |= 0x00000002; duration_ = value; onChanged(); return this; } /** *
       * Duration of sample interval, in seconds.
       * 
* * required double duration = 2; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000002); duration_ = 0D; onChanged(); return this; } private long cycles_ ; /** *
       * Hardware event.
       * 
* * optional uint64 cycles = 3; */ public boolean hasCycles() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Hardware event.
       * 
* * optional uint64 cycles = 3; */ public long getCycles() { return cycles_; } /** *
       * Hardware event.
       * 
* * optional uint64 cycles = 3; */ public Builder setCycles(long value) { bitField0_ |= 0x00000004; cycles_ = value; onChanged(); return this; } /** *
       * Hardware event.
       * 
* * optional uint64 cycles = 3; */ public Builder clearCycles() { bitField0_ = (bitField0_ & ~0x00000004); cycles_ = 0L; onChanged(); return this; } private long stalledCyclesFrontend_ ; /** * optional uint64 stalled_cycles_frontend = 4; */ public boolean hasStalledCyclesFrontend() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 stalled_cycles_frontend = 4; */ public long getStalledCyclesFrontend() { return stalledCyclesFrontend_; } /** * optional uint64 stalled_cycles_frontend = 4; */ public Builder setStalledCyclesFrontend(long value) { bitField0_ |= 0x00000008; stalledCyclesFrontend_ = value; onChanged(); return this; } /** * optional uint64 stalled_cycles_frontend = 4; */ public Builder clearStalledCyclesFrontend() { bitField0_ = (bitField0_ & ~0x00000008); stalledCyclesFrontend_ = 0L; onChanged(); return this; } private long stalledCyclesBackend_ ; /** * optional uint64 stalled_cycles_backend = 5; */ public boolean hasStalledCyclesBackend() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint64 stalled_cycles_backend = 5; */ public long getStalledCyclesBackend() { return stalledCyclesBackend_; } /** * optional uint64 stalled_cycles_backend = 5; */ public Builder setStalledCyclesBackend(long value) { bitField0_ |= 0x00000010; stalledCyclesBackend_ = value; onChanged(); return this; } /** * optional uint64 stalled_cycles_backend = 5; */ public Builder clearStalledCyclesBackend() { bitField0_ = (bitField0_ & ~0x00000010); stalledCyclesBackend_ = 0L; onChanged(); return this; } private long instructions_ ; /** * optional uint64 instructions = 6; */ public boolean hasInstructions() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint64 instructions = 6; */ public long getInstructions() { return instructions_; } /** * optional uint64 instructions = 6; */ public Builder setInstructions(long value) { bitField0_ |= 0x00000020; instructions_ = value; onChanged(); return this; } /** * optional uint64 instructions = 6; */ public Builder clearInstructions() { bitField0_ = (bitField0_ & ~0x00000020); instructions_ = 0L; onChanged(); return this; } private long cacheReferences_ ; /** * optional uint64 cache_references = 7; */ public boolean hasCacheReferences() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 cache_references = 7; */ public long getCacheReferences() { return cacheReferences_; } /** * optional uint64 cache_references = 7; */ public Builder setCacheReferences(long value) { bitField0_ |= 0x00000040; cacheReferences_ = value; onChanged(); return this; } /** * optional uint64 cache_references = 7; */ public Builder clearCacheReferences() { bitField0_ = (bitField0_ & ~0x00000040); cacheReferences_ = 0L; onChanged(); return this; } private long cacheMisses_ ; /** * optional uint64 cache_misses = 8; */ public boolean hasCacheMisses() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint64 cache_misses = 8; */ public long getCacheMisses() { return cacheMisses_; } /** * optional uint64 cache_misses = 8; */ public Builder setCacheMisses(long value) { bitField0_ |= 0x00000080; cacheMisses_ = value; onChanged(); return this; } /** * optional uint64 cache_misses = 8; */ public Builder clearCacheMisses() { bitField0_ = (bitField0_ & ~0x00000080); cacheMisses_ = 0L; onChanged(); return this; } private long branches_ ; /** * optional uint64 branches = 9; */ public boolean hasBranches() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint64 branches = 9; */ public long getBranches() { return branches_; } /** * optional uint64 branches = 9; */ public Builder setBranches(long value) { bitField0_ |= 0x00000100; branches_ = value; onChanged(); return this; } /** * optional uint64 branches = 9; */ public Builder clearBranches() { bitField0_ = (bitField0_ & ~0x00000100); branches_ = 0L; onChanged(); return this; } private long branchMisses_ ; /** * optional uint64 branch_misses = 10; */ public boolean hasBranchMisses() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint64 branch_misses = 10; */ public long getBranchMisses() { return branchMisses_; } /** * optional uint64 branch_misses = 10; */ public Builder setBranchMisses(long value) { bitField0_ |= 0x00000200; branchMisses_ = value; onChanged(); return this; } /** * optional uint64 branch_misses = 10; */ public Builder clearBranchMisses() { bitField0_ = (bitField0_ & ~0x00000200); branchMisses_ = 0L; onChanged(); return this; } private long busCycles_ ; /** * optional uint64 bus_cycles = 11; */ public boolean hasBusCycles() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional uint64 bus_cycles = 11; */ public long getBusCycles() { return busCycles_; } /** * optional uint64 bus_cycles = 11; */ public Builder setBusCycles(long value) { bitField0_ |= 0x00000400; busCycles_ = value; onChanged(); return this; } /** * optional uint64 bus_cycles = 11; */ public Builder clearBusCycles() { bitField0_ = (bitField0_ & ~0x00000400); busCycles_ = 0L; onChanged(); return this; } private long refCycles_ ; /** * optional uint64 ref_cycles = 12; */ public boolean hasRefCycles() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint64 ref_cycles = 12; */ public long getRefCycles() { return refCycles_; } /** * optional uint64 ref_cycles = 12; */ public Builder setRefCycles(long value) { bitField0_ |= 0x00000800; refCycles_ = value; onChanged(); return this; } /** * optional uint64 ref_cycles = 12; */ public Builder clearRefCycles() { bitField0_ = (bitField0_ & ~0x00000800); refCycles_ = 0L; onChanged(); return this; } private double cpuClock_ ; /** *
       * Software event.
       * 
* * optional double cpu_clock = 13; */ public boolean hasCpuClock() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
       * Software event.
       * 
* * optional double cpu_clock = 13; */ public double getCpuClock() { return cpuClock_; } /** *
       * Software event.
       * 
* * optional double cpu_clock = 13; */ public Builder setCpuClock(double value) { bitField0_ |= 0x00001000; cpuClock_ = value; onChanged(); return this; } /** *
       * Software event.
       * 
* * optional double cpu_clock = 13; */ public Builder clearCpuClock() { bitField0_ = (bitField0_ & ~0x00001000); cpuClock_ = 0D; onChanged(); return this; } private double taskClock_ ; /** * optional double task_clock = 14; */ public boolean hasTaskClock() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional double task_clock = 14; */ public double getTaskClock() { return taskClock_; } /** * optional double task_clock = 14; */ public Builder setTaskClock(double value) { bitField0_ |= 0x00002000; taskClock_ = value; onChanged(); return this; } /** * optional double task_clock = 14; */ public Builder clearTaskClock() { bitField0_ = (bitField0_ & ~0x00002000); taskClock_ = 0D; onChanged(); return this; } private long pageFaults_ ; /** * optional uint64 page_faults = 15; */ public boolean hasPageFaults() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional uint64 page_faults = 15; */ public long getPageFaults() { return pageFaults_; } /** * optional uint64 page_faults = 15; */ public Builder setPageFaults(long value) { bitField0_ |= 0x00004000; pageFaults_ = value; onChanged(); return this; } /** * optional uint64 page_faults = 15; */ public Builder clearPageFaults() { bitField0_ = (bitField0_ & ~0x00004000); pageFaults_ = 0L; onChanged(); return this; } private long minorFaults_ ; /** * optional uint64 minor_faults = 16; */ public boolean hasMinorFaults() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional uint64 minor_faults = 16; */ public long getMinorFaults() { return minorFaults_; } /** * optional uint64 minor_faults = 16; */ public Builder setMinorFaults(long value) { bitField0_ |= 0x00008000; minorFaults_ = value; onChanged(); return this; } /** * optional uint64 minor_faults = 16; */ public Builder clearMinorFaults() { bitField0_ = (bitField0_ & ~0x00008000); minorFaults_ = 0L; onChanged(); return this; } private long majorFaults_ ; /** * optional uint64 major_faults = 17; */ public boolean hasMajorFaults() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional uint64 major_faults = 17; */ public long getMajorFaults() { return majorFaults_; } /** * optional uint64 major_faults = 17; */ public Builder setMajorFaults(long value) { bitField0_ |= 0x00010000; majorFaults_ = value; onChanged(); return this; } /** * optional uint64 major_faults = 17; */ public Builder clearMajorFaults() { bitField0_ = (bitField0_ & ~0x00010000); majorFaults_ = 0L; onChanged(); return this; } private long contextSwitches_ ; /** * optional uint64 context_switches = 18; */ public boolean hasContextSwitches() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional uint64 context_switches = 18; */ public long getContextSwitches() { return contextSwitches_; } /** * optional uint64 context_switches = 18; */ public Builder setContextSwitches(long value) { bitField0_ |= 0x00020000; contextSwitches_ = value; onChanged(); return this; } /** * optional uint64 context_switches = 18; */ public Builder clearContextSwitches() { bitField0_ = (bitField0_ & ~0x00020000); contextSwitches_ = 0L; onChanged(); return this; } private long cpuMigrations_ ; /** * optional uint64 cpu_migrations = 19; */ public boolean hasCpuMigrations() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional uint64 cpu_migrations = 19; */ public long getCpuMigrations() { return cpuMigrations_; } /** * optional uint64 cpu_migrations = 19; */ public Builder setCpuMigrations(long value) { bitField0_ |= 0x00040000; cpuMigrations_ = value; onChanged(); return this; } /** * optional uint64 cpu_migrations = 19; */ public Builder clearCpuMigrations() { bitField0_ = (bitField0_ & ~0x00040000); cpuMigrations_ = 0L; onChanged(); return this; } private long alignmentFaults_ ; /** * optional uint64 alignment_faults = 20; */ public boolean hasAlignmentFaults() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional uint64 alignment_faults = 20; */ public long getAlignmentFaults() { return alignmentFaults_; } /** * optional uint64 alignment_faults = 20; */ public Builder setAlignmentFaults(long value) { bitField0_ |= 0x00080000; alignmentFaults_ = value; onChanged(); return this; } /** * optional uint64 alignment_faults = 20; */ public Builder clearAlignmentFaults() { bitField0_ = (bitField0_ & ~0x00080000); alignmentFaults_ = 0L; onChanged(); return this; } private long emulationFaults_ ; /** * optional uint64 emulation_faults = 21; */ public boolean hasEmulationFaults() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional uint64 emulation_faults = 21; */ public long getEmulationFaults() { return emulationFaults_; } /** * optional uint64 emulation_faults = 21; */ public Builder setEmulationFaults(long value) { bitField0_ |= 0x00100000; emulationFaults_ = value; onChanged(); return this; } /** * optional uint64 emulation_faults = 21; */ public Builder clearEmulationFaults() { bitField0_ = (bitField0_ & ~0x00100000); emulationFaults_ = 0L; onChanged(); return this; } private long l1DcacheLoads_ ; /** *
       * Hardware cache event.
       * 
* * optional uint64 l1_dcache_loads = 22; */ public boolean hasL1DcacheLoads() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** *
       * Hardware cache event.
       * 
* * optional uint64 l1_dcache_loads = 22; */ public long getL1DcacheLoads() { return l1DcacheLoads_; } /** *
       * Hardware cache event.
       * 
* * optional uint64 l1_dcache_loads = 22; */ public Builder setL1DcacheLoads(long value) { bitField0_ |= 0x00200000; l1DcacheLoads_ = value; onChanged(); return this; } /** *
       * Hardware cache event.
       * 
* * optional uint64 l1_dcache_loads = 22; */ public Builder clearL1DcacheLoads() { bitField0_ = (bitField0_ & ~0x00200000); l1DcacheLoads_ = 0L; onChanged(); return this; } private long l1DcacheLoadMisses_ ; /** * optional uint64 l1_dcache_load_misses = 23; */ public boolean hasL1DcacheLoadMisses() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional uint64 l1_dcache_load_misses = 23; */ public long getL1DcacheLoadMisses() { return l1DcacheLoadMisses_; } /** * optional uint64 l1_dcache_load_misses = 23; */ public Builder setL1DcacheLoadMisses(long value) { bitField0_ |= 0x00400000; l1DcacheLoadMisses_ = value; onChanged(); return this; } /** * optional uint64 l1_dcache_load_misses = 23; */ public Builder clearL1DcacheLoadMisses() { bitField0_ = (bitField0_ & ~0x00400000); l1DcacheLoadMisses_ = 0L; onChanged(); return this; } private long l1DcacheStores_ ; /** * optional uint64 l1_dcache_stores = 24; */ public boolean hasL1DcacheStores() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional uint64 l1_dcache_stores = 24; */ public long getL1DcacheStores() { return l1DcacheStores_; } /** * optional uint64 l1_dcache_stores = 24; */ public Builder setL1DcacheStores(long value) { bitField0_ |= 0x00800000; l1DcacheStores_ = value; onChanged(); return this; } /** * optional uint64 l1_dcache_stores = 24; */ public Builder clearL1DcacheStores() { bitField0_ = (bitField0_ & ~0x00800000); l1DcacheStores_ = 0L; onChanged(); return this; } private long l1DcacheStoreMisses_ ; /** * optional uint64 l1_dcache_store_misses = 25; */ public boolean hasL1DcacheStoreMisses() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional uint64 l1_dcache_store_misses = 25; */ public long getL1DcacheStoreMisses() { return l1DcacheStoreMisses_; } /** * optional uint64 l1_dcache_store_misses = 25; */ public Builder setL1DcacheStoreMisses(long value) { bitField0_ |= 0x01000000; l1DcacheStoreMisses_ = value; onChanged(); return this; } /** * optional uint64 l1_dcache_store_misses = 25; */ public Builder clearL1DcacheStoreMisses() { bitField0_ = (bitField0_ & ~0x01000000); l1DcacheStoreMisses_ = 0L; onChanged(); return this; } private long l1DcachePrefetches_ ; /** * optional uint64 l1_dcache_prefetches = 26; */ public boolean hasL1DcachePrefetches() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional uint64 l1_dcache_prefetches = 26; */ public long getL1DcachePrefetches() { return l1DcachePrefetches_; } /** * optional uint64 l1_dcache_prefetches = 26; */ public Builder setL1DcachePrefetches(long value) { bitField0_ |= 0x02000000; l1DcachePrefetches_ = value; onChanged(); return this; } /** * optional uint64 l1_dcache_prefetches = 26; */ public Builder clearL1DcachePrefetches() { bitField0_ = (bitField0_ & ~0x02000000); l1DcachePrefetches_ = 0L; onChanged(); return this; } private long l1DcachePrefetchMisses_ ; /** * optional uint64 l1_dcache_prefetch_misses = 27; */ public boolean hasL1DcachePrefetchMisses() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional uint64 l1_dcache_prefetch_misses = 27; */ public long getL1DcachePrefetchMisses() { return l1DcachePrefetchMisses_; } /** * optional uint64 l1_dcache_prefetch_misses = 27; */ public Builder setL1DcachePrefetchMisses(long value) { bitField0_ |= 0x04000000; l1DcachePrefetchMisses_ = value; onChanged(); return this; } /** * optional uint64 l1_dcache_prefetch_misses = 27; */ public Builder clearL1DcachePrefetchMisses() { bitField0_ = (bitField0_ & ~0x04000000); l1DcachePrefetchMisses_ = 0L; onChanged(); return this; } private long l1IcacheLoads_ ; /** * optional uint64 l1_icache_loads = 28; */ public boolean hasL1IcacheLoads() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * optional uint64 l1_icache_loads = 28; */ public long getL1IcacheLoads() { return l1IcacheLoads_; } /** * optional uint64 l1_icache_loads = 28; */ public Builder setL1IcacheLoads(long value) { bitField0_ |= 0x08000000; l1IcacheLoads_ = value; onChanged(); return this; } /** * optional uint64 l1_icache_loads = 28; */ public Builder clearL1IcacheLoads() { bitField0_ = (bitField0_ & ~0x08000000); l1IcacheLoads_ = 0L; onChanged(); return this; } private long l1IcacheLoadMisses_ ; /** * optional uint64 l1_icache_load_misses = 29; */ public boolean hasL1IcacheLoadMisses() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * optional uint64 l1_icache_load_misses = 29; */ public long getL1IcacheLoadMisses() { return l1IcacheLoadMisses_; } /** * optional uint64 l1_icache_load_misses = 29; */ public Builder setL1IcacheLoadMisses(long value) { bitField0_ |= 0x10000000; l1IcacheLoadMisses_ = value; onChanged(); return this; } /** * optional uint64 l1_icache_load_misses = 29; */ public Builder clearL1IcacheLoadMisses() { bitField0_ = (bitField0_ & ~0x10000000); l1IcacheLoadMisses_ = 0L; onChanged(); return this; } private long l1IcachePrefetches_ ; /** * optional uint64 l1_icache_prefetches = 30; */ public boolean hasL1IcachePrefetches() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * optional uint64 l1_icache_prefetches = 30; */ public long getL1IcachePrefetches() { return l1IcachePrefetches_; } /** * optional uint64 l1_icache_prefetches = 30; */ public Builder setL1IcachePrefetches(long value) { bitField0_ |= 0x20000000; l1IcachePrefetches_ = value; onChanged(); return this; } /** * optional uint64 l1_icache_prefetches = 30; */ public Builder clearL1IcachePrefetches() { bitField0_ = (bitField0_ & ~0x20000000); l1IcachePrefetches_ = 0L; onChanged(); return this; } private long l1IcachePrefetchMisses_ ; /** * optional uint64 l1_icache_prefetch_misses = 31; */ public boolean hasL1IcachePrefetchMisses() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * optional uint64 l1_icache_prefetch_misses = 31; */ public long getL1IcachePrefetchMisses() { return l1IcachePrefetchMisses_; } /** * optional uint64 l1_icache_prefetch_misses = 31; */ public Builder setL1IcachePrefetchMisses(long value) { bitField0_ |= 0x40000000; l1IcachePrefetchMisses_ = value; onChanged(); return this; } /** * optional uint64 l1_icache_prefetch_misses = 31; */ public Builder clearL1IcachePrefetchMisses() { bitField0_ = (bitField0_ & ~0x40000000); l1IcachePrefetchMisses_ = 0L; onChanged(); return this; } private long llcLoads_ ; /** * optional uint64 llc_loads = 32; */ public boolean hasLlcLoads() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * optional uint64 llc_loads = 32; */ public long getLlcLoads() { return llcLoads_; } /** * optional uint64 llc_loads = 32; */ public Builder setLlcLoads(long value) { bitField0_ |= 0x80000000; llcLoads_ = value; onChanged(); return this; } /** * optional uint64 llc_loads = 32; */ public Builder clearLlcLoads() { bitField0_ = (bitField0_ & ~0x80000000); llcLoads_ = 0L; onChanged(); return this; } private long llcLoadMisses_ ; /** * optional uint64 llc_load_misses = 33; */ public boolean hasLlcLoadMisses() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * optional uint64 llc_load_misses = 33; */ public long getLlcLoadMisses() { return llcLoadMisses_; } /** * optional uint64 llc_load_misses = 33; */ public Builder setLlcLoadMisses(long value) { bitField1_ |= 0x00000001; llcLoadMisses_ = value; onChanged(); return this; } /** * optional uint64 llc_load_misses = 33; */ public Builder clearLlcLoadMisses() { bitField1_ = (bitField1_ & ~0x00000001); llcLoadMisses_ = 0L; onChanged(); return this; } private long llcStores_ ; /** * optional uint64 llc_stores = 34; */ public boolean hasLlcStores() { return ((bitField1_ & 0x00000002) == 0x00000002); } /** * optional uint64 llc_stores = 34; */ public long getLlcStores() { return llcStores_; } /** * optional uint64 llc_stores = 34; */ public Builder setLlcStores(long value) { bitField1_ |= 0x00000002; llcStores_ = value; onChanged(); return this; } /** * optional uint64 llc_stores = 34; */ public Builder clearLlcStores() { bitField1_ = (bitField1_ & ~0x00000002); llcStores_ = 0L; onChanged(); return this; } private long llcStoreMisses_ ; /** * optional uint64 llc_store_misses = 35; */ public boolean hasLlcStoreMisses() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** * optional uint64 llc_store_misses = 35; */ public long getLlcStoreMisses() { return llcStoreMisses_; } /** * optional uint64 llc_store_misses = 35; */ public Builder setLlcStoreMisses(long value) { bitField1_ |= 0x00000004; llcStoreMisses_ = value; onChanged(); return this; } /** * optional uint64 llc_store_misses = 35; */ public Builder clearLlcStoreMisses() { bitField1_ = (bitField1_ & ~0x00000004); llcStoreMisses_ = 0L; onChanged(); return this; } private long llcPrefetches_ ; /** * optional uint64 llc_prefetches = 36; */ public boolean hasLlcPrefetches() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** * optional uint64 llc_prefetches = 36; */ public long getLlcPrefetches() { return llcPrefetches_; } /** * optional uint64 llc_prefetches = 36; */ public Builder setLlcPrefetches(long value) { bitField1_ |= 0x00000008; llcPrefetches_ = value; onChanged(); return this; } /** * optional uint64 llc_prefetches = 36; */ public Builder clearLlcPrefetches() { bitField1_ = (bitField1_ & ~0x00000008); llcPrefetches_ = 0L; onChanged(); return this; } private long llcPrefetchMisses_ ; /** * optional uint64 llc_prefetch_misses = 37; */ public boolean hasLlcPrefetchMisses() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** * optional uint64 llc_prefetch_misses = 37; */ public long getLlcPrefetchMisses() { return llcPrefetchMisses_; } /** * optional uint64 llc_prefetch_misses = 37; */ public Builder setLlcPrefetchMisses(long value) { bitField1_ |= 0x00000010; llcPrefetchMisses_ = value; onChanged(); return this; } /** * optional uint64 llc_prefetch_misses = 37; */ public Builder clearLlcPrefetchMisses() { bitField1_ = (bitField1_ & ~0x00000010); llcPrefetchMisses_ = 0L; onChanged(); return this; } private long dtlbLoads_ ; /** * optional uint64 dtlb_loads = 38; */ public boolean hasDtlbLoads() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** * optional uint64 dtlb_loads = 38; */ public long getDtlbLoads() { return dtlbLoads_; } /** * optional uint64 dtlb_loads = 38; */ public Builder setDtlbLoads(long value) { bitField1_ |= 0x00000020; dtlbLoads_ = value; onChanged(); return this; } /** * optional uint64 dtlb_loads = 38; */ public Builder clearDtlbLoads() { bitField1_ = (bitField1_ & ~0x00000020); dtlbLoads_ = 0L; onChanged(); return this; } private long dtlbLoadMisses_ ; /** * optional uint64 dtlb_load_misses = 39; */ public boolean hasDtlbLoadMisses() { return ((bitField1_ & 0x00000040) == 0x00000040); } /** * optional uint64 dtlb_load_misses = 39; */ public long getDtlbLoadMisses() { return dtlbLoadMisses_; } /** * optional uint64 dtlb_load_misses = 39; */ public Builder setDtlbLoadMisses(long value) { bitField1_ |= 0x00000040; dtlbLoadMisses_ = value; onChanged(); return this; } /** * optional uint64 dtlb_load_misses = 39; */ public Builder clearDtlbLoadMisses() { bitField1_ = (bitField1_ & ~0x00000040); dtlbLoadMisses_ = 0L; onChanged(); return this; } private long dtlbStores_ ; /** * optional uint64 dtlb_stores = 40; */ public boolean hasDtlbStores() { return ((bitField1_ & 0x00000080) == 0x00000080); } /** * optional uint64 dtlb_stores = 40; */ public long getDtlbStores() { return dtlbStores_; } /** * optional uint64 dtlb_stores = 40; */ public Builder setDtlbStores(long value) { bitField1_ |= 0x00000080; dtlbStores_ = value; onChanged(); return this; } /** * optional uint64 dtlb_stores = 40; */ public Builder clearDtlbStores() { bitField1_ = (bitField1_ & ~0x00000080); dtlbStores_ = 0L; onChanged(); return this; } private long dtlbStoreMisses_ ; /** * optional uint64 dtlb_store_misses = 41; */ public boolean hasDtlbStoreMisses() { return ((bitField1_ & 0x00000100) == 0x00000100); } /** * optional uint64 dtlb_store_misses = 41; */ public long getDtlbStoreMisses() { return dtlbStoreMisses_; } /** * optional uint64 dtlb_store_misses = 41; */ public Builder setDtlbStoreMisses(long value) { bitField1_ |= 0x00000100; dtlbStoreMisses_ = value; onChanged(); return this; } /** * optional uint64 dtlb_store_misses = 41; */ public Builder clearDtlbStoreMisses() { bitField1_ = (bitField1_ & ~0x00000100); dtlbStoreMisses_ = 0L; onChanged(); return this; } private long dtlbPrefetches_ ; /** * optional uint64 dtlb_prefetches = 42; */ public boolean hasDtlbPrefetches() { return ((bitField1_ & 0x00000200) == 0x00000200); } /** * optional uint64 dtlb_prefetches = 42; */ public long getDtlbPrefetches() { return dtlbPrefetches_; } /** * optional uint64 dtlb_prefetches = 42; */ public Builder setDtlbPrefetches(long value) { bitField1_ |= 0x00000200; dtlbPrefetches_ = value; onChanged(); return this; } /** * optional uint64 dtlb_prefetches = 42; */ public Builder clearDtlbPrefetches() { bitField1_ = (bitField1_ & ~0x00000200); dtlbPrefetches_ = 0L; onChanged(); return this; } private long dtlbPrefetchMisses_ ; /** * optional uint64 dtlb_prefetch_misses = 43; */ public boolean hasDtlbPrefetchMisses() { return ((bitField1_ & 0x00000400) == 0x00000400); } /** * optional uint64 dtlb_prefetch_misses = 43; */ public long getDtlbPrefetchMisses() { return dtlbPrefetchMisses_; } /** * optional uint64 dtlb_prefetch_misses = 43; */ public Builder setDtlbPrefetchMisses(long value) { bitField1_ |= 0x00000400; dtlbPrefetchMisses_ = value; onChanged(); return this; } /** * optional uint64 dtlb_prefetch_misses = 43; */ public Builder clearDtlbPrefetchMisses() { bitField1_ = (bitField1_ & ~0x00000400); dtlbPrefetchMisses_ = 0L; onChanged(); return this; } private long itlbLoads_ ; /** * optional uint64 itlb_loads = 44; */ public boolean hasItlbLoads() { return ((bitField1_ & 0x00000800) == 0x00000800); } /** * optional uint64 itlb_loads = 44; */ public long getItlbLoads() { return itlbLoads_; } /** * optional uint64 itlb_loads = 44; */ public Builder setItlbLoads(long value) { bitField1_ |= 0x00000800; itlbLoads_ = value; onChanged(); return this; } /** * optional uint64 itlb_loads = 44; */ public Builder clearItlbLoads() { bitField1_ = (bitField1_ & ~0x00000800); itlbLoads_ = 0L; onChanged(); return this; } private long itlbLoadMisses_ ; /** * optional uint64 itlb_load_misses = 45; */ public boolean hasItlbLoadMisses() { return ((bitField1_ & 0x00001000) == 0x00001000); } /** * optional uint64 itlb_load_misses = 45; */ public long getItlbLoadMisses() { return itlbLoadMisses_; } /** * optional uint64 itlb_load_misses = 45; */ public Builder setItlbLoadMisses(long value) { bitField1_ |= 0x00001000; itlbLoadMisses_ = value; onChanged(); return this; } /** * optional uint64 itlb_load_misses = 45; */ public Builder clearItlbLoadMisses() { bitField1_ = (bitField1_ & ~0x00001000); itlbLoadMisses_ = 0L; onChanged(); return this; } private long branchLoads_ ; /** * optional uint64 branch_loads = 46; */ public boolean hasBranchLoads() { return ((bitField1_ & 0x00002000) == 0x00002000); } /** * optional uint64 branch_loads = 46; */ public long getBranchLoads() { return branchLoads_; } /** * optional uint64 branch_loads = 46; */ public Builder setBranchLoads(long value) { bitField1_ |= 0x00002000; branchLoads_ = value; onChanged(); return this; } /** * optional uint64 branch_loads = 46; */ public Builder clearBranchLoads() { bitField1_ = (bitField1_ & ~0x00002000); branchLoads_ = 0L; onChanged(); return this; } private long branchLoadMisses_ ; /** * optional uint64 branch_load_misses = 47; */ public boolean hasBranchLoadMisses() { return ((bitField1_ & 0x00004000) == 0x00004000); } /** * optional uint64 branch_load_misses = 47; */ public long getBranchLoadMisses() { return branchLoadMisses_; } /** * optional uint64 branch_load_misses = 47; */ public Builder setBranchLoadMisses(long value) { bitField1_ |= 0x00004000; branchLoadMisses_ = value; onChanged(); return this; } /** * optional uint64 branch_load_misses = 47; */ public Builder clearBranchLoadMisses() { bitField1_ = (bitField1_ & ~0x00004000); branchLoadMisses_ = 0L; onChanged(); return this; } private long nodeLoads_ ; /** * optional uint64 node_loads = 48; */ public boolean hasNodeLoads() { return ((bitField1_ & 0x00008000) == 0x00008000); } /** * optional uint64 node_loads = 48; */ public long getNodeLoads() { return nodeLoads_; } /** * optional uint64 node_loads = 48; */ public Builder setNodeLoads(long value) { bitField1_ |= 0x00008000; nodeLoads_ = value; onChanged(); return this; } /** * optional uint64 node_loads = 48; */ public Builder clearNodeLoads() { bitField1_ = (bitField1_ & ~0x00008000); nodeLoads_ = 0L; onChanged(); return this; } private long nodeLoadMisses_ ; /** * optional uint64 node_load_misses = 49; */ public boolean hasNodeLoadMisses() { return ((bitField1_ & 0x00010000) == 0x00010000); } /** * optional uint64 node_load_misses = 49; */ public long getNodeLoadMisses() { return nodeLoadMisses_; } /** * optional uint64 node_load_misses = 49; */ public Builder setNodeLoadMisses(long value) { bitField1_ |= 0x00010000; nodeLoadMisses_ = value; onChanged(); return this; } /** * optional uint64 node_load_misses = 49; */ public Builder clearNodeLoadMisses() { bitField1_ = (bitField1_ & ~0x00010000); nodeLoadMisses_ = 0L; onChanged(); return this; } private long nodeStores_ ; /** * optional uint64 node_stores = 50; */ public boolean hasNodeStores() { return ((bitField1_ & 0x00020000) == 0x00020000); } /** * optional uint64 node_stores = 50; */ public long getNodeStores() { return nodeStores_; } /** * optional uint64 node_stores = 50; */ public Builder setNodeStores(long value) { bitField1_ |= 0x00020000; nodeStores_ = value; onChanged(); return this; } /** * optional uint64 node_stores = 50; */ public Builder clearNodeStores() { bitField1_ = (bitField1_ & ~0x00020000); nodeStores_ = 0L; onChanged(); return this; } private long nodeStoreMisses_ ; /** * optional uint64 node_store_misses = 51; */ public boolean hasNodeStoreMisses() { return ((bitField1_ & 0x00040000) == 0x00040000); } /** * optional uint64 node_store_misses = 51; */ public long getNodeStoreMisses() { return nodeStoreMisses_; } /** * optional uint64 node_store_misses = 51; */ public Builder setNodeStoreMisses(long value) { bitField1_ |= 0x00040000; nodeStoreMisses_ = value; onChanged(); return this; } /** * optional uint64 node_store_misses = 51; */ public Builder clearNodeStoreMisses() { bitField1_ = (bitField1_ & ~0x00040000); nodeStoreMisses_ = 0L; onChanged(); return this; } private long nodePrefetches_ ; /** * optional uint64 node_prefetches = 52; */ public boolean hasNodePrefetches() { return ((bitField1_ & 0x00080000) == 0x00080000); } /** * optional uint64 node_prefetches = 52; */ public long getNodePrefetches() { return nodePrefetches_; } /** * optional uint64 node_prefetches = 52; */ public Builder setNodePrefetches(long value) { bitField1_ |= 0x00080000; nodePrefetches_ = value; onChanged(); return this; } /** * optional uint64 node_prefetches = 52; */ public Builder clearNodePrefetches() { bitField1_ = (bitField1_ & ~0x00080000); nodePrefetches_ = 0L; onChanged(); return this; } private long nodePrefetchMisses_ ; /** * optional uint64 node_prefetch_misses = 53; */ public boolean hasNodePrefetchMisses() { return ((bitField1_ & 0x00100000) == 0x00100000); } /** * optional uint64 node_prefetch_misses = 53; */ public long getNodePrefetchMisses() { return nodePrefetchMisses_; } /** * optional uint64 node_prefetch_misses = 53; */ public Builder setNodePrefetchMisses(long value) { bitField1_ |= 0x00100000; nodePrefetchMisses_ = value; onChanged(); return this; } /** * optional uint64 node_prefetch_misses = 53; */ public Builder clearNodePrefetchMisses() { bitField1_ = (bitField1_ & ~0x00100000); nodePrefetchMisses_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.PerfStatistics) } // @@protoc_insertion_point(class_scope:mesos.v1.PerfStatistics) private static final org.apache.mesos.v1.Protos.PerfStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.PerfStatistics(); } public static org.apache.mesos.v1.Protos.PerfStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PerfStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PerfStatistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.PerfStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OfferFiltersOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.OfferFilters) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ boolean hasMinAllocatableResources(); /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources getMinAllocatableResources(); /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResourcesOrBuilder getMinAllocatableResourcesOrBuilder(); } /** *
   **
   * Represents filters that allow a framework to control the shape of
   * offers that will be sent to its role(s). These filters apply
   * globally to any agent (unlike the existing `DECLINE` filter which
   * us a time-based resource subset filter that only applies to the
   * agent that was declined).
   * NOTE: Custom allocators might interpret these fields in a different
   * way, or not at all.
   * 
* * Protobuf type {@code mesos.v1.OfferFilters} */ public static final class OfferFilters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.OfferFilters) OfferFiltersOrBuilder { private static final long serialVersionUID = 0L; // Use OfferFilters.newBuilder() to construct. private OfferFilters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OfferFilters() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OfferFilters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = minAllocatableResources_.toBuilder(); } minAllocatableResources_ = input.readMessage(org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minAllocatableResources_); minAllocatableResources_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OfferFilters.class, org.apache.mesos.v1.Protos.OfferFilters.Builder.class); } public interface ResourceQuantitiesOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.OfferFilters.ResourceQuantities) com.google.protobuf.MessageOrBuilder { /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ int getQuantitiesCount(); /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ boolean containsQuantities( java.lang.String key); /** * Use {@link #getQuantitiesMap()} instead. */ @java.lang.Deprecated java.util.Map getQuantities(); /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ java.util.Map getQuantitiesMap(); /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ org.apache.mesos.v1.Protos.Value.Scalar getQuantitiesOrDefault( java.lang.String key, org.apache.mesos.v1.Protos.Value.Scalar defaultValue); /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ org.apache.mesos.v1.Protos.Value.Scalar getQuantitiesOrThrow( java.lang.String key); } /** * Protobuf type {@code mesos.v1.OfferFilters.ResourceQuantities} */ public static final class ResourceQuantities extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.OfferFilters.ResourceQuantities) ResourceQuantitiesOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceQuantities.newBuilder() to construct. private ResourceQuantities(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceQuantities() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceQuantities( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { quantities_ = com.google.protobuf.MapField.newMapField( QuantitiesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry quantities__ = input.readMessage( QuantitiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); quantities_.getMutableMap().put( quantities__.getKey(), quantities__.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_ResourceQuantities_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetQuantities(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_ResourceQuantities_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.class, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder.class); } public static final int QUANTITIES_FIELD_NUMBER = 1; private static final class QuantitiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.apache.mesos.v1.Protos.Value.Scalar> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_ResourceQuantities_QuantitiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.apache.mesos.v1.Protos.Value.Scalar> quantities_; private com.google.protobuf.MapField internalGetQuantities() { if (quantities_ == null) { return com.google.protobuf.MapField.emptyMapField( QuantitiesDefaultEntryHolder.defaultEntry); } return quantities_; } public int getQuantitiesCount() { return internalGetQuantities().getMap().size(); } /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public boolean containsQuantities( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetQuantities().getMap().containsKey(key); } /** * Use {@link #getQuantitiesMap()} instead. */ @java.lang.Deprecated public java.util.Map getQuantities() { return getQuantitiesMap(); } /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public java.util.Map getQuantitiesMap() { return internalGetQuantities().getMap(); } /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public org.apache.mesos.v1.Protos.Value.Scalar getQuantitiesOrDefault( java.lang.String key, org.apache.mesos.v1.Protos.Value.Scalar defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQuantities().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Quantities are pairs of identifiers of scalar resources and
       * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
       * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public org.apache.mesos.v1.Protos.Value.Scalar getQuantitiesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQuantities().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (org.apache.mesos.v1.Protos.Value.Scalar item : getQuantitiesMap().values()) { if (!item.isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetQuantities(), QuantitiesDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetQuantities().getMap().entrySet()) { com.google.protobuf.MapEntry quantities__ = QuantitiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, quantities__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities)) { return super.equals(obj); } org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities other = (org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities) obj; boolean result = true; result = result && internalGetQuantities().equals( other.internalGetQuantities()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetQuantities().getMap().isEmpty()) { hash = (37 * hash) + QUANTITIES_FIELD_NUMBER; hash = (53 * hash) + internalGetQuantities().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities 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.Protos.OfferFilters.ResourceQuantities parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.OfferFilters.ResourceQuantities} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.OfferFilters.ResourceQuantities) org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantitiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_ResourceQuantities_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetQuantities(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableQuantities(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_ResourceQuantities_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.class, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder.class); } // Construct using org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); internalGetMutableQuantities().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_ResourceQuantities_descriptor; } public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.getDefaultInstance(); } public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities build() { org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities buildPartial() { org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities result = new org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities(this); int from_bitField0_ = bitField0_; result.quantities_ = internalGetQuantities(); result.quantities_.makeImmutable(); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities) { return mergeFrom((org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities other) { if (other == org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.getDefaultInstance()) return this; internalGetMutableQuantities().mergeFrom( other.internalGetQuantities()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (org.apache.mesos.v1.Protos.Value.Scalar item : getQuantitiesMap().values()) { if (!item.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.Protos.OfferFilters.ResourceQuantities parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, org.apache.mesos.v1.Protos.Value.Scalar> quantities_; private com.google.protobuf.MapField internalGetQuantities() { if (quantities_ == null) { return com.google.protobuf.MapField.emptyMapField( QuantitiesDefaultEntryHolder.defaultEntry); } return quantities_; } private com.google.protobuf.MapField internalGetMutableQuantities() { onChanged();; if (quantities_ == null) { quantities_ = com.google.protobuf.MapField.newMapField( QuantitiesDefaultEntryHolder.defaultEntry); } if (!quantities_.isMutable()) { quantities_ = quantities_.copy(); } return quantities_; } public int getQuantitiesCount() { return internalGetQuantities().getMap().size(); } /** *
         * Quantities are pairs of identifiers of scalar resources and
         * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
         * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public boolean containsQuantities( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetQuantities().getMap().containsKey(key); } /** * Use {@link #getQuantitiesMap()} instead. */ @java.lang.Deprecated public java.util.Map getQuantities() { return getQuantitiesMap(); } /** *
         * Quantities are pairs of identifiers of scalar resources and
         * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
         * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public java.util.Map getQuantitiesMap() { return internalGetQuantities().getMap(); } /** *
         * Quantities are pairs of identifiers of scalar resources and
         * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
         * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public org.apache.mesos.v1.Protos.Value.Scalar getQuantitiesOrDefault( java.lang.String key, org.apache.mesos.v1.Protos.Value.Scalar defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQuantities().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
         * Quantities are pairs of identifiers of scalar resources and
         * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
         * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public org.apache.mesos.v1.Protos.Value.Scalar getQuantitiesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQuantities().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearQuantities() { internalGetMutableQuantities().getMutableMap() .clear(); return this; } /** *
         * Quantities are pairs of identifiers of scalar resources and
         * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
         * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public Builder removeQuantities( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableQuantities().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableQuantities() { return internalGetMutableQuantities().getMutableMap(); } /** *
         * Quantities are pairs of identifiers of scalar resources and
         * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
         * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public Builder putQuantities( java.lang.String key, org.apache.mesos.v1.Protos.Value.Scalar value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableQuantities().getMutableMap() .put(key, value); return this; } /** *
         * Quantities are pairs of identifiers of scalar resources and
         * an associated value, e.g., `{"disk": Scalar {"value": 30}}`.
         * 
* * map<string, .mesos.v1.Value.Scalar> quantities = 1; */ public Builder putAllQuantities( java.util.Map values) { internalGetMutableQuantities().getMutableMap() .putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.OfferFilters.ResourceQuantities) } // @@protoc_insertion_point(class_scope:mesos.v1.OfferFilters.ResourceQuantities) private static final org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities(); } public static org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResourceQuantities parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceQuantities(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MinAllocatableResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.OfferFilters.MinAllocatableResources) com.google.protobuf.MessageOrBuilder { /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ java.util.List getQuantitiesList(); /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities getQuantities(int index); /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ int getQuantitiesCount(); /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ java.util.List getQuantitiesOrBuilderList(); /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantitiesOrBuilder getQuantitiesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.OfferFilters.MinAllocatableResources} */ public static final class MinAllocatableResources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.OfferFilters.MinAllocatableResources) MinAllocatableResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use MinAllocatableResources.newBuilder() to construct. private MinAllocatableResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MinAllocatableResources() { quantities_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MinAllocatableResources( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { quantities_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } quantities_.add( input.readMessage(org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { quantities_ = java.util.Collections.unmodifiableList(quantities_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_MinAllocatableResources_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_MinAllocatableResources_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.class, org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.Builder.class); } public static final int QUANTITIES_FIELD_NUMBER = 1; private java.util.List quantities_; /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public java.util.List getQuantitiesList() { return quantities_; } /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public java.util.List getQuantitiesOrBuilderList() { return quantities_; } /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public int getQuantitiesCount() { return quantities_.size(); } /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities getQuantities(int index) { return quantities_.get(index); } /** *
       * A set of resources is considered allocatable if contained in any of
       * the following quantities. If no quantities are specified any resource
       * is considered allocatable.
       * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantitiesOrBuilder getQuantitiesOrBuilder( int index) { return quantities_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getQuantitiesCount(); i++) { if (!getQuantities(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < quantities_.size(); i++) { output.writeMessage(1, quantities_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < quantities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, quantities_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources)) { return super.equals(obj); } org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources other = (org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources) obj; boolean result = true; result = result && getQuantitiesList() .equals(other.getQuantitiesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getQuantitiesCount() > 0) { hash = (37 * hash) + QUANTITIES_FIELD_NUMBER; hash = (53 * hash) + getQuantitiesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources 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.Protos.OfferFilters.MinAllocatableResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.OfferFilters.MinAllocatableResources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.OfferFilters.MinAllocatableResources) org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_MinAllocatableResources_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_MinAllocatableResources_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.class, org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.Builder.class); } // Construct using org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getQuantitiesFieldBuilder(); } } public Builder clear() { super.clear(); if (quantitiesBuilder_ == null) { quantities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { quantitiesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_MinAllocatableResources_descriptor; } public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.getDefaultInstance(); } public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources build() { org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources buildPartial() { org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources result = new org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources(this); int from_bitField0_ = bitField0_; if (quantitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { quantities_ = java.util.Collections.unmodifiableList(quantities_); bitField0_ = (bitField0_ & ~0x00000001); } result.quantities_ = quantities_; } else { result.quantities_ = quantitiesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources) { return mergeFrom((org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources other) { if (other == org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.getDefaultInstance()) return this; if (quantitiesBuilder_ == null) { if (!other.quantities_.isEmpty()) { if (quantities_.isEmpty()) { quantities_ = other.quantities_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureQuantitiesIsMutable(); quantities_.addAll(other.quantities_); } onChanged(); } } else { if (!other.quantities_.isEmpty()) { if (quantitiesBuilder_.isEmpty()) { quantitiesBuilder_.dispose(); quantitiesBuilder_ = null; quantities_ = other.quantities_; bitField0_ = (bitField0_ & ~0x00000001); quantitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQuantitiesFieldBuilder() : null; } else { quantitiesBuilder_.addAllMessages(other.quantities_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getQuantitiesCount(); i++) { if (!getQuantities(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.Protos.OfferFilters.MinAllocatableResources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List quantities_ = java.util.Collections.emptyList(); private void ensureQuantitiesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { quantities_ = new java.util.ArrayList(quantities_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantitiesOrBuilder> quantitiesBuilder_; /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public java.util.List getQuantitiesList() { if (quantitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(quantities_); } else { return quantitiesBuilder_.getMessageList(); } } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public int getQuantitiesCount() { if (quantitiesBuilder_ == null) { return quantities_.size(); } else { return quantitiesBuilder_.getCount(); } } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities getQuantities(int index) { if (quantitiesBuilder_ == null) { return quantities_.get(index); } else { return quantitiesBuilder_.getMessage(index); } } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder setQuantities( int index, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities value) { if (quantitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQuantitiesIsMutable(); quantities_.set(index, value); onChanged(); } else { quantitiesBuilder_.setMessage(index, value); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder setQuantities( int index, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder builderForValue) { if (quantitiesBuilder_ == null) { ensureQuantitiesIsMutable(); quantities_.set(index, builderForValue.build()); onChanged(); } else { quantitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder addQuantities(org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities value) { if (quantitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQuantitiesIsMutable(); quantities_.add(value); onChanged(); } else { quantitiesBuilder_.addMessage(value); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder addQuantities( int index, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities value) { if (quantitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQuantitiesIsMutable(); quantities_.add(index, value); onChanged(); } else { quantitiesBuilder_.addMessage(index, value); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder addQuantities( org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder builderForValue) { if (quantitiesBuilder_ == null) { ensureQuantitiesIsMutable(); quantities_.add(builderForValue.build()); onChanged(); } else { quantitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder addQuantities( int index, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder builderForValue) { if (quantitiesBuilder_ == null) { ensureQuantitiesIsMutable(); quantities_.add(index, builderForValue.build()); onChanged(); } else { quantitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder addAllQuantities( java.lang.Iterable values) { if (quantitiesBuilder_ == null) { ensureQuantitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, quantities_); onChanged(); } else { quantitiesBuilder_.addAllMessages(values); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder clearQuantities() { if (quantitiesBuilder_ == null) { quantities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { quantitiesBuilder_.clear(); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public Builder removeQuantities(int index) { if (quantitiesBuilder_ == null) { ensureQuantitiesIsMutable(); quantities_.remove(index); onChanged(); } else { quantitiesBuilder_.remove(index); } return this; } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder getQuantitiesBuilder( int index) { return getQuantitiesFieldBuilder().getBuilder(index); } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantitiesOrBuilder getQuantitiesOrBuilder( int index) { if (quantitiesBuilder_ == null) { return quantities_.get(index); } else { return quantitiesBuilder_.getMessageOrBuilder(index); } } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public java.util.List getQuantitiesOrBuilderList() { if (quantitiesBuilder_ != null) { return quantitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(quantities_); } } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder addQuantitiesBuilder() { return getQuantitiesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.getDefaultInstance()); } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder addQuantitiesBuilder( int index) { return getQuantitiesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.getDefaultInstance()); } /** *
         * A set of resources is considered allocatable if contained in any of
         * the following quantities. If no quantities are specified any resource
         * is considered allocatable.
         * 
* * repeated .mesos.v1.OfferFilters.ResourceQuantities quantities = 1; */ public java.util.List getQuantitiesBuilderList() { return getQuantitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantitiesOrBuilder> getQuantitiesFieldBuilder() { if (quantitiesBuilder_ == null) { quantitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantities.Builder, org.apache.mesos.v1.Protos.OfferFilters.ResourceQuantitiesOrBuilder>( quantities_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); quantities_ = null; } return quantitiesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.OfferFilters.MinAllocatableResources) } // @@protoc_insertion_point(class_scope:mesos.v1.OfferFilters.MinAllocatableResources) private static final org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources(); } public static org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MinAllocatableResources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MinAllocatableResources(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int MIN_ALLOCATABLE_RESOURCES_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources minAllocatableResources_; /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public boolean hasMinAllocatableResources() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources getMinAllocatableResources() { return minAllocatableResources_ == null ? org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.getDefaultInstance() : minAllocatableResources_; } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResourcesOrBuilder getMinAllocatableResourcesOrBuilder() { return minAllocatableResources_ == null ? org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.getDefaultInstance() : minAllocatableResources_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasMinAllocatableResources()) { if (!getMinAllocatableResources().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getMinAllocatableResources()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMinAllocatableResources()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.OfferFilters)) { return super.equals(obj); } org.apache.mesos.v1.Protos.OfferFilters other = (org.apache.mesos.v1.Protos.OfferFilters) obj; boolean result = true; result = result && (hasMinAllocatableResources() == other.hasMinAllocatableResources()); if (hasMinAllocatableResources()) { result = result && getMinAllocatableResources() .equals(other.getMinAllocatableResources()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMinAllocatableResources()) { hash = (37 * hash) + MIN_ALLOCATABLE_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getMinAllocatableResources().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.OfferFilters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters 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.Protos.OfferFilters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OfferFilters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OfferFilters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OfferFilters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.OfferFilters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Represents filters that allow a framework to control the shape of
     * offers that will be sent to its role(s). These filters apply
     * globally to any agent (unlike the existing `DECLINE` filter which
     * us a time-based resource subset filter that only applies to the
     * agent that was declined).
     * NOTE: Custom allocators might interpret these fields in a different
     * way, or not at all.
     * 
* * Protobuf type {@code mesos.v1.OfferFilters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.OfferFilters) org.apache.mesos.v1.Protos.OfferFiltersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OfferFilters.class, org.apache.mesos.v1.Protos.OfferFilters.Builder.class); } // Construct using org.apache.mesos.v1.Protos.OfferFilters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMinAllocatableResourcesFieldBuilder(); } } public Builder clear() { super.clear(); if (minAllocatableResourcesBuilder_ == null) { minAllocatableResources_ = null; } else { minAllocatableResourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OfferFilters_descriptor; } public org.apache.mesos.v1.Protos.OfferFilters getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.OfferFilters.getDefaultInstance(); } public org.apache.mesos.v1.Protos.OfferFilters build() { org.apache.mesos.v1.Protos.OfferFilters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.OfferFilters buildPartial() { org.apache.mesos.v1.Protos.OfferFilters result = new org.apache.mesos.v1.Protos.OfferFilters(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (minAllocatableResourcesBuilder_ == null) { result.minAllocatableResources_ = minAllocatableResources_; } else { result.minAllocatableResources_ = minAllocatableResourcesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.OfferFilters) { return mergeFrom((org.apache.mesos.v1.Protos.OfferFilters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.OfferFilters other) { if (other == org.apache.mesos.v1.Protos.OfferFilters.getDefaultInstance()) return this; if (other.hasMinAllocatableResources()) { mergeMinAllocatableResources(other.getMinAllocatableResources()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasMinAllocatableResources()) { if (!getMinAllocatableResources().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.Protos.OfferFilters parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.OfferFilters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources minAllocatableResources_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources, org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.Builder, org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResourcesOrBuilder> minAllocatableResourcesBuilder_; /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public boolean hasMinAllocatableResources() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources getMinAllocatableResources() { if (minAllocatableResourcesBuilder_ == null) { return minAllocatableResources_ == null ? org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.getDefaultInstance() : minAllocatableResources_; } else { return minAllocatableResourcesBuilder_.getMessage(); } } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public Builder setMinAllocatableResources(org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources value) { if (minAllocatableResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minAllocatableResources_ = value; onChanged(); } else { minAllocatableResourcesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public Builder setMinAllocatableResources( org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.Builder builderForValue) { if (minAllocatableResourcesBuilder_ == null) { minAllocatableResources_ = builderForValue.build(); onChanged(); } else { minAllocatableResourcesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public Builder mergeMinAllocatableResources(org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources value) { if (minAllocatableResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && minAllocatableResources_ != null && minAllocatableResources_ != org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.getDefaultInstance()) { minAllocatableResources_ = org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.newBuilder(minAllocatableResources_).mergeFrom(value).buildPartial(); } else { minAllocatableResources_ = value; } onChanged(); } else { minAllocatableResourcesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public Builder clearMinAllocatableResources() { if (minAllocatableResourcesBuilder_ == null) { minAllocatableResources_ = null; onChanged(); } else { minAllocatableResourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.Builder getMinAllocatableResourcesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMinAllocatableResourcesFieldBuilder().getBuilder(); } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ public org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResourcesOrBuilder getMinAllocatableResourcesOrBuilder() { if (minAllocatableResourcesBuilder_ != null) { return minAllocatableResourcesBuilder_.getMessageOrBuilder(); } else { return minAllocatableResources_ == null ? org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.getDefaultInstance() : minAllocatableResources_; } } /** * optional .mesos.v1.OfferFilters.MinAllocatableResources min_allocatable_resources = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources, org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.Builder, org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResourcesOrBuilder> getMinAllocatableResourcesFieldBuilder() { if (minAllocatableResourcesBuilder_ == null) { minAllocatableResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources, org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResources.Builder, org.apache.mesos.v1.Protos.OfferFilters.MinAllocatableResourcesOrBuilder>( getMinAllocatableResources(), getParentForChildren(), isClean()); minAllocatableResources_ = null; } return minAllocatableResourcesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.OfferFilters) } // @@protoc_insertion_point(class_scope:mesos.v1.OfferFilters) private static final org.apache.mesos.v1.Protos.OfferFilters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.OfferFilters(); } public static org.apache.mesos.v1.Protos.OfferFilters getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OfferFilters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OfferFilters(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.OfferFilters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Request) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.AgentID agent_id = 1; */ boolean hasAgentId(); /** * optional .mesos.v1.AgentID agent_id = 1; */ org.apache.mesos.v1.Protos.AgentID getAgentId(); /** * optional .mesos.v1.AgentID agent_id = 1; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder(); /** * repeated .mesos.v1.Resource resources = 2; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 2; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 2; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 2; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 2; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); } /** *
   **
   * Describes a request for resources that can be used by a framework
   * to proactively influence the allocator.  If 'agent_id' is provided
   * then this request is assumed to only apply to resources on that
   * agent.
   * 
* * Protobuf type {@code mesos.v1.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { resources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Request( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = agentId_.toBuilder(); } agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentId_); agentId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Request.class, org.apache.mesos.v1.Protos.Request.Builder.class); } private int bitField0_; public static final int AGENT_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.AgentID agentId_; /** * optional .mesos.v1.AgentID agent_id = 1; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.AgentID agent_id = 1; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } /** * optional .mesos.v1.AgentID agent_id = 1; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } public static final int RESOURCES_FIELD_NUMBER = 2; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 2; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 2; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 2; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 2; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 2; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasAgentId()) { if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getAgentId()); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(2, resources_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAgentId()); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, resources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Request)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Request other = (org.apache.mesos.v1.Protos.Request) obj; boolean result = true; result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Request parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Request 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.Protos.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Request parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Request parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Request parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Request prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a request for resources that can be used by a framework
     * to proactively influence the allocator.  If 'agent_id' is provided
     * then this request is assumed to only apply to resources on that
     * agent.
     * 
* * Protobuf type {@code mesos.v1.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Request) org.apache.mesos.v1.Protos.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Request.class, org.apache.mesos.v1.Protos.Request.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Request.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAgentIdFieldBuilder(); getResourcesFieldBuilder(); } } public Builder clear() { super.clear(); if (agentIdBuilder_ == null) { agentId_ = null; } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { resourcesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Request_descriptor; } public org.apache.mesos.v1.Protos.Request getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Request.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Request build() { org.apache.mesos.v1.Protos.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Request buildPartial() { org.apache.mesos.v1.Protos.Request result = new org.apache.mesos.v1.Protos.Request(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (agentIdBuilder_ == null) { result.agentId_ = agentId_; } else { result.agentId_ = agentIdBuilder_.build(); } if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000002); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Request) { return mergeFrom((org.apache.mesos.v1.Protos.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Request other) { if (other == org.apache.mesos.v1.Protos.Request.getDefaultInstance()) return this; if (other.hasAgentId()) { mergeAgentId(other.getAgentId()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000002); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasAgentId()) { if (!getAgentId().isInitialized()) { return false; } } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.Protos.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.AgentID agentId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_; /** * optional .mesos.v1.AgentID agent_id = 1; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.AgentID agent_id = 1; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { if (agentIdBuilder_ == null) { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } else { return agentIdBuilder_.getMessage(); } } /** * optional .mesos.v1.AgentID agent_id = 1; */ public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentId_ = value; onChanged(); } else { agentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.AgentID agent_id = 1; */ public Builder setAgentId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (agentIdBuilder_ == null) { agentId_ = builderForValue.build(); onChanged(); } else { agentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.AgentID agent_id = 1; */ public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && agentId_ != null && agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { agentId_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial(); } else { agentId_ = value; } onChanged(); } else { agentIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.AgentID agent_id = 1; */ public Builder clearAgentId() { if (agentIdBuilder_ == null) { agentId_ = null; onChanged(); } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.AgentID agent_id = 1; */ public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAgentIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.AgentID agent_id = 1; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { if (agentIdBuilder_ != null) { return agentIdBuilder_.getMessageOrBuilder(); } else { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } } /** * optional .mesos.v1.AgentID agent_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getAgentIdFieldBuilder() { if (agentIdBuilder_ == null) { agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getAgentId(), getParentForChildren(), isClean()); agentId_ = null; } return agentIdBuilder_; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 2; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 2; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 2; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 2; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 2; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 2; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Request) } // @@protoc_insertion_point(class_scope:mesos.v1.Request) private static final org.apache.mesos.v1.Protos.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Request(); } public static org.apache.mesos.v1.Protos.Request getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Request(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OfferOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.OfferID id = 1; */ boolean hasId(); /** * required .mesos.v1.OfferID id = 1; */ org.apache.mesos.v1.Protos.OfferID getId(); /** * required .mesos.v1.OfferID id = 1; */ org.apache.mesos.v1.Protos.OfferIDOrBuilder getIdOrBuilder(); /** * required .mesos.v1.FrameworkID framework_id = 2; */ boolean hasFrameworkId(); /** * required .mesos.v1.FrameworkID framework_id = 2; */ org.apache.mesos.v1.Protos.FrameworkID getFrameworkId(); /** * required .mesos.v1.FrameworkID framework_id = 2; */ org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder(); /** * required .mesos.v1.AgentID agent_id = 3; */ boolean hasAgentId(); /** * required .mesos.v1.AgentID agent_id = 3; */ org.apache.mesos.v1.Protos.AgentID getAgentId(); /** * required .mesos.v1.AgentID agent_id = 3; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder(); /** * required string hostname = 4; */ boolean hasHostname(); /** * required string hostname = 4; */ java.lang.String getHostname(); /** * required string hostname = 4; */ com.google.protobuf.ByteString getHostnameBytes(); /** *
     * URL for reaching the agent running on the host.
     * 
* * optional .mesos.v1.URL url = 8; */ boolean hasUrl(); /** *
     * URL for reaching the agent running on the host.
     * 
* * optional .mesos.v1.URL url = 8; */ org.apache.mesos.v1.Protos.URL getUrl(); /** *
     * URL for reaching the agent running on the host.
     * 
* * optional .mesos.v1.URL url = 8; */ org.apache.mesos.v1.Protos.URLOrBuilder getUrlOrBuilder(); /** *
     * The domain of the agent.
     * 
* * optional .mesos.v1.DomainInfo domain = 11; */ boolean hasDomain(); /** *
     * The domain of the agent.
     * 
* * optional .mesos.v1.DomainInfo domain = 11; */ org.apache.mesos.v1.Protos.DomainInfo getDomain(); /** *
     * The domain of the agent.
     * 
* * optional .mesos.v1.DomainInfo domain = 11; */ org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder(); /** * repeated .mesos.v1.Resource resources = 5; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 5; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 5; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 5; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 5; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); /** * repeated .mesos.v1.Attribute attributes = 7; */ java.util.List getAttributesList(); /** * repeated .mesos.v1.Attribute attributes = 7; */ org.apache.mesos.v1.Protos.Attribute getAttributes(int index); /** * repeated .mesos.v1.Attribute attributes = 7; */ int getAttributesCount(); /** * repeated .mesos.v1.Attribute attributes = 7; */ java.util.List getAttributesOrBuilderList(); /** * repeated .mesos.v1.Attribute attributes = 7; */ org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index); /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ java.util.List getExecutorIdsList(); /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ org.apache.mesos.v1.Protos.ExecutorID getExecutorIds(int index); /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ int getExecutorIdsCount(); /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ java.util.List getExecutorIdsOrBuilderList(); /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdsOrBuilder( int index); /** *
     * Signifies that the resources in this Offer may be unavailable during
     * the given interval.  Any tasks launched using these resources may be
     * killed when the interval arrives.  For example, these resources may be
     * part of a planned maintenance schedule.
     * This field only provides information about a planned unavailability.
     * The unavailability interval may not necessarily start at exactly this
     * interval, nor last for exactly the duration of this interval.
     * The unavailability may also be forever!  See comments in
     * `Unavailability` for more details.
     * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ boolean hasUnavailability(); /** *
     * Signifies that the resources in this Offer may be unavailable during
     * the given interval.  Any tasks launched using these resources may be
     * killed when the interval arrives.  For example, these resources may be
     * part of a planned maintenance schedule.
     * This field only provides information about a planned unavailability.
     * The unavailability interval may not necessarily start at exactly this
     * interval, nor last for exactly the duration of this interval.
     * The unavailability may also be forever!  See comments in
     * `Unavailability` for more details.
     * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ org.apache.mesos.v1.Protos.Unavailability getUnavailability(); /** *
     * Signifies that the resources in this Offer may be unavailable during
     * the given interval.  Any tasks launched using these resources may be
     * killed when the interval arrives.  For example, these resources may be
     * part of a planned maintenance schedule.
     * This field only provides information about a planned unavailability.
     * The unavailability interval may not necessarily start at exactly this
     * interval, nor last for exactly the duration of this interval.
     * The unavailability may also be forever!  See comments in
     * `Unavailability` for more details.
     * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder(); /** *
     * An offer represents resources allocated to *one* of the
     * roles managed by the scheduler. (Therefore, each
     * `Offer.resources[i].allocation_info` will match the
     * top level `Offer.allocation_info`).
     * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ boolean hasAllocationInfo(); /** *
     * An offer represents resources allocated to *one* of the
     * roles managed by the scheduler. (Therefore, each
     * `Offer.resources[i].allocation_info` will match the
     * top level `Offer.allocation_info`).
     * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ org.apache.mesos.v1.Protos.Resource.AllocationInfo getAllocationInfo(); /** *
     * An offer represents resources allocated to *one* of the
     * roles managed by the scheduler. (Therefore, each
     * `Offer.resources[i].allocation_info` will match the
     * top level `Offer.allocation_info`).
     * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder(); } /** *
   **
   * Describes some resources available on an agent. An offer only
   * contains resources from a single agent.
   * 
* * Protobuf type {@code mesos.v1.Offer} */ public static final class Offer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer) OfferOrBuilder { private static final long serialVersionUID = 0L; // Use Offer.newBuilder() to construct. private Offer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Offer() { hostname_ = ""; resources_ = java.util.Collections.emptyList(); attributes_ = java.util.Collections.emptyList(); executorIds_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Offer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.OfferID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.apache.mesos.v1.Protos.OfferID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.FrameworkID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = frameworkId_.toBuilder(); } frameworkId_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(frameworkId_); frameworkId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = agentId_.toBuilder(); } agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentId_); agentId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; hostname_ = bs; break; } case 42: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { executorIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } executorIds_.add( input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { attributes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } attributes_.add( input.readMessage(org.apache.mesos.v1.Protos.Attribute.PARSER, extensionRegistry)); break; } case 66: { org.apache.mesos.v1.Protos.URL.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = url_.toBuilder(); } url_ = input.readMessage(org.apache.mesos.v1.Protos.URL.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(url_); url_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 74: { org.apache.mesos.v1.Protos.Unavailability.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = unavailability_.toBuilder(); } unavailability_ = input.readMessage(org.apache.mesos.v1.Protos.Unavailability.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unavailability_); unavailability_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 82: { org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = allocationInfo_.toBuilder(); } allocationInfo_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.AllocationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allocationInfo_); allocationInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 90: { org.apache.mesos.v1.Protos.DomainInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = domain_.toBuilder(); } domain_ = input.readMessage(org.apache.mesos.v1.Protos.DomainInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(domain_); domain_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { resources_ = java.util.Collections.unmodifiableList(resources_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { executorIds_ = java.util.Collections.unmodifiableList(executorIds_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.class, org.apache.mesos.v1.Protos.Offer.Builder.class); } public interface OperationOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.Offer.Operation.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.Offer.Operation.Type type = 1; */ org.apache.mesos.v1.Protos.Offer.Operation.Type getType(); /** *
       * The `id` field allows frameworks to indicate that they wish to receive
       * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
       * v1 scheduler API.
       * 
* * optional .mesos.v1.OperationID id = 12; */ boolean hasId(); /** *
       * The `id` field allows frameworks to indicate that they wish to receive
       * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
       * v1 scheduler API.
       * 
* * optional .mesos.v1.OperationID id = 12; */ org.apache.mesos.v1.Protos.OperationID getId(); /** *
       * The `id` field allows frameworks to indicate that they wish to receive
       * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
       * v1 scheduler API.
       * 
* * optional .mesos.v1.OperationID id = 12; */ org.apache.mesos.v1.Protos.OperationIDOrBuilder getIdOrBuilder(); /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ boolean hasLaunch(); /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ org.apache.mesos.v1.Protos.Offer.Operation.Launch getLaunch(); /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ org.apache.mesos.v1.Protos.Offer.Operation.LaunchOrBuilder getLaunchOrBuilder(); /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ boolean hasLaunchGroup(); /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup getLaunchGroup(); /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroupOrBuilder getLaunchGroupOrBuilder(); /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ boolean hasReserve(); /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ org.apache.mesos.v1.Protos.Offer.Operation.Reserve getReserve(); /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ org.apache.mesos.v1.Protos.Offer.Operation.ReserveOrBuilder getReserveOrBuilder(); /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ boolean hasUnreserve(); /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ org.apache.mesos.v1.Protos.Offer.Operation.Unreserve getUnreserve(); /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ org.apache.mesos.v1.Protos.Offer.Operation.UnreserveOrBuilder getUnreserveOrBuilder(); /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ boolean hasCreate(); /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ org.apache.mesos.v1.Protos.Offer.Operation.Create getCreate(); /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ org.apache.mesos.v1.Protos.Offer.Operation.CreateOrBuilder getCreateOrBuilder(); /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ boolean hasDestroy(); /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ org.apache.mesos.v1.Protos.Offer.Operation.Destroy getDestroy(); /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ org.apache.mesos.v1.Protos.Offer.Operation.DestroyOrBuilder getDestroyOrBuilder(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ boolean hasGrowVolume(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume getGrowVolume(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ org.apache.mesos.v1.Protos.Offer.Operation.GrowVolumeOrBuilder getGrowVolumeOrBuilder(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ boolean hasShrinkVolume(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume getShrinkVolume(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolumeOrBuilder getShrinkVolumeOrBuilder(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ boolean hasCreateDisk(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk getCreateDisk(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ org.apache.mesos.v1.Protos.Offer.Operation.CreateDiskOrBuilder getCreateDiskOrBuilder(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ boolean hasDestroyDisk(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk getDestroyDisk(); /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ org.apache.mesos.v1.Protos.Offer.Operation.DestroyDiskOrBuilder getDestroyDiskOrBuilder(); } /** *
     * Defines an operation that can be performed against offers.
     * 
* * Protobuf type {@code mesos.v1.Offer.Operation} */ public static final class Operation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation) OperationOrBuilder { private static final long serialVersionUID = 0L; // Use Operation.newBuilder() to construct. private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Operation() { type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Operation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Offer.Operation.Type value = org.apache.mesos.v1.Protos.Offer.Operation.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { org.apache.mesos.v1.Protos.Offer.Operation.Launch.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = launch_.toBuilder(); } launch_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.Launch.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(launch_); launch_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 26: { org.apache.mesos.v1.Protos.Offer.Operation.Reserve.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = reserve_.toBuilder(); } reserve_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.Reserve.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reserve_); reserve_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 34: { org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = unreserve_.toBuilder(); } unreserve_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unreserve_); unreserve_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 42: { org.apache.mesos.v1.Protos.Offer.Operation.Create.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = create_.toBuilder(); } create_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.Create.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(create_); create_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 50: { org.apache.mesos.v1.Protos.Offer.Operation.Destroy.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = destroy_.toBuilder(); } destroy_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.Destroy.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(destroy_); destroy_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 58: { org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = launchGroup_.toBuilder(); } launchGroup_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(launchGroup_); launchGroup_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 98: { org.apache.mesos.v1.Protos.OperationID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.apache.mesos.v1.Protos.OperationID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 106: { org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = growVolume_.toBuilder(); } growVolume_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(growVolume_); growVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 114: { org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = shrinkVolume_.toBuilder(); } shrinkVolume_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shrinkVolume_); shrinkVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 122: { org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = createDisk_.toBuilder(); } createDisk_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createDisk_); createDisk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 130: { org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = destroyDisk_.toBuilder(); } destroyDisk_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(destroyDisk_); destroyDisk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.class, org.apache.mesos.v1.Protos.Offer.Operation.Builder.class); } /** * Protobuf enum {@code mesos.v1.Offer.Operation.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * LAUNCH = 1; */ LAUNCH(1), /** * LAUNCH_GROUP = 6; */ LAUNCH_GROUP(6), /** * RESERVE = 2; */ RESERVE(2), /** * UNRESERVE = 3; */ UNRESERVE(3), /** * CREATE = 4; */ CREATE(4), /** * DESTROY = 5; */ DESTROY(5), /** *
         * EXPERIMENTAL.
         * 
* * GROW_VOLUME = 11; */ GROW_VOLUME(11), /** *
         * EXPERIMENTAL.
         * 
* * SHRINK_VOLUME = 12; */ SHRINK_VOLUME(12), /** *
         * EXPERIMENTAL.
         * 
* * CREATE_DISK = 13; */ CREATE_DISK(13), /** *
         * EXPERIMENTAL.
         * 
* * DESTROY_DISK = 14; */ DESTROY_DISK(14), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * LAUNCH = 1; */ public static final int LAUNCH_VALUE = 1; /** * LAUNCH_GROUP = 6; */ public static final int LAUNCH_GROUP_VALUE = 6; /** * RESERVE = 2; */ public static final int RESERVE_VALUE = 2; /** * UNRESERVE = 3; */ public static final int UNRESERVE_VALUE = 3; /** * CREATE = 4; */ public static final int CREATE_VALUE = 4; /** * DESTROY = 5; */ public static final int DESTROY_VALUE = 5; /** *
         * EXPERIMENTAL.
         * 
* * GROW_VOLUME = 11; */ public static final int GROW_VOLUME_VALUE = 11; /** *
         * EXPERIMENTAL.
         * 
* * SHRINK_VOLUME = 12; */ public static final int SHRINK_VOLUME_VALUE = 12; /** *
         * EXPERIMENTAL.
         * 
* * CREATE_DISK = 13; */ public static final int CREATE_DISK_VALUE = 13; /** *
         * EXPERIMENTAL.
         * 
* * DESTROY_DISK = 14; */ public static final int DESTROY_DISK_VALUE = 14; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return LAUNCH; case 6: return LAUNCH_GROUP; case 2: return RESERVE; case 3: return UNRESERVE; case 4: return CREATE; case 5: return DESTROY; case 11: return GROW_VOLUME; case 12: return SHRINK_VOLUME; case 13: return CREATE_DISK; case 14: return DESTROY_DISK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Offer.Operation.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Offer.Operation.Type) } public interface LaunchOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.Launch) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ java.util.List getTaskInfosList(); /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ org.apache.mesos.v1.Protos.TaskInfo getTaskInfos(int index); /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ int getTaskInfosCount(); /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ java.util.List getTaskInfosOrBuilderList(); /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTaskInfosOrBuilder( int index); } /** *
       * TODO(vinod): Deprecate this in favor of `LaunchGroup` below.
       * 
* * Protobuf type {@code mesos.v1.Offer.Operation.Launch} */ public static final class Launch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.Launch) LaunchOrBuilder { private static final long serialVersionUID = 0L; // Use Launch.newBuilder() to construct. private Launch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Launch() { taskInfos_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Launch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { taskInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } taskInfos_.add( input.readMessage(org.apache.mesos.v1.Protos.TaskInfo.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { taskInfos_ = java.util.Collections.unmodifiableList(taskInfos_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Launch_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Launch_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Launch.class, org.apache.mesos.v1.Protos.Offer.Operation.Launch.Builder.class); } public static final int TASK_INFOS_FIELD_NUMBER = 1; private java.util.List taskInfos_; /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public java.util.List getTaskInfosList() { return taskInfos_; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public java.util.List getTaskInfosOrBuilderList() { return taskInfos_; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public int getTaskInfosCount() { return taskInfos_.size(); } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public org.apache.mesos.v1.Protos.TaskInfo getTaskInfos(int index) { return taskInfos_.get(index); } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTaskInfosOrBuilder( int index) { return taskInfos_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getTaskInfosCount(); i++) { if (!getTaskInfos(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < taskInfos_.size(); i++) { output.writeMessage(1, taskInfos_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < taskInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, taskInfos_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.Launch)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.Launch other = (org.apache.mesos.v1.Protos.Offer.Operation.Launch) obj; boolean result = true; result = result && getTaskInfosList() .equals(other.getTaskInfosList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTaskInfosCount() > 0) { hash = (37 * hash) + TASK_INFOS_FIELD_NUMBER; hash = (53 * hash) + getTaskInfosList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.Launch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * TODO(vinod): Deprecate this in favor of `LaunchGroup` below.
         * 
* * Protobuf type {@code mesos.v1.Offer.Operation.Launch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.Launch) org.apache.mesos.v1.Protos.Offer.Operation.LaunchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Launch_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Launch_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Launch.class, org.apache.mesos.v1.Protos.Offer.Operation.Launch.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.Launch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTaskInfosFieldBuilder(); } } public Builder clear() { super.clear(); if (taskInfosBuilder_ == null) { taskInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { taskInfosBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Launch_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.Launch getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.Launch.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.Launch build() { org.apache.mesos.v1.Protos.Offer.Operation.Launch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.Launch buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.Launch result = new org.apache.mesos.v1.Protos.Offer.Operation.Launch(this); int from_bitField0_ = bitField0_; if (taskInfosBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { taskInfos_ = java.util.Collections.unmodifiableList(taskInfos_); bitField0_ = (bitField0_ & ~0x00000001); } result.taskInfos_ = taskInfos_; } else { result.taskInfos_ = taskInfosBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.Launch) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.Launch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.Launch other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.Launch.getDefaultInstance()) return this; if (taskInfosBuilder_ == null) { if (!other.taskInfos_.isEmpty()) { if (taskInfos_.isEmpty()) { taskInfos_ = other.taskInfos_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTaskInfosIsMutable(); taskInfos_.addAll(other.taskInfos_); } onChanged(); } } else { if (!other.taskInfos_.isEmpty()) { if (taskInfosBuilder_.isEmpty()) { taskInfosBuilder_.dispose(); taskInfosBuilder_ = null; taskInfos_ = other.taskInfos_; bitField0_ = (bitField0_ & ~0x00000001); taskInfosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTaskInfosFieldBuilder() : null; } else { taskInfosBuilder_.addAllMessages(other.taskInfos_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getTaskInfosCount(); i++) { if (!getTaskInfos(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.Protos.Offer.Operation.Launch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.Launch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List taskInfos_ = java.util.Collections.emptyList(); private void ensureTaskInfosIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { taskInfos_ = new java.util.ArrayList(taskInfos_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder> taskInfosBuilder_; /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public java.util.List getTaskInfosList() { if (taskInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(taskInfos_); } else { return taskInfosBuilder_.getMessageList(); } } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public int getTaskInfosCount() { if (taskInfosBuilder_ == null) { return taskInfos_.size(); } else { return taskInfosBuilder_.getCount(); } } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public org.apache.mesos.v1.Protos.TaskInfo getTaskInfos(int index) { if (taskInfosBuilder_ == null) { return taskInfos_.get(index); } else { return taskInfosBuilder_.getMessage(index); } } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder setTaskInfos( int index, org.apache.mesos.v1.Protos.TaskInfo value) { if (taskInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskInfosIsMutable(); taskInfos_.set(index, value); onChanged(); } else { taskInfosBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder setTaskInfos( int index, org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); taskInfos_.set(index, builderForValue.build()); onChanged(); } else { taskInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder addTaskInfos(org.apache.mesos.v1.Protos.TaskInfo value) { if (taskInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskInfosIsMutable(); taskInfos_.add(value); onChanged(); } else { taskInfosBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder addTaskInfos( int index, org.apache.mesos.v1.Protos.TaskInfo value) { if (taskInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskInfosIsMutable(); taskInfos_.add(index, value); onChanged(); } else { taskInfosBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder addTaskInfos( org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); taskInfos_.add(builderForValue.build()); onChanged(); } else { taskInfosBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder addTaskInfos( int index, org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); taskInfos_.add(index, builderForValue.build()); onChanged(); } else { taskInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder addAllTaskInfos( java.lang.Iterable values) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, taskInfos_); onChanged(); } else { taskInfosBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder clearTaskInfos() { if (taskInfosBuilder_ == null) { taskInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { taskInfosBuilder_.clear(); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public Builder removeTaskInfos(int index) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); taskInfos_.remove(index); onChanged(); } else { taskInfosBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public org.apache.mesos.v1.Protos.TaskInfo.Builder getTaskInfosBuilder( int index) { return getTaskInfosFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTaskInfosOrBuilder( int index) { if (taskInfosBuilder_ == null) { return taskInfos_.get(index); } else { return taskInfosBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public java.util.List getTaskInfosOrBuilderList() { if (taskInfosBuilder_ != null) { return taskInfosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(taskInfos_); } } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public org.apache.mesos.v1.Protos.TaskInfo.Builder addTaskInfosBuilder() { return getTaskInfosFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance()); } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public org.apache.mesos.v1.Protos.TaskInfo.Builder addTaskInfosBuilder( int index) { return getTaskInfosFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance()); } /** * repeated .mesos.v1.TaskInfo task_infos = 1; */ public java.util.List getTaskInfosBuilderList() { return getTaskInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder> getTaskInfosFieldBuilder() { if (taskInfosBuilder_ == null) { taskInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder>( taskInfos_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); taskInfos_ = null; } return taskInfosBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.Launch) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.Launch) private static final org.apache.mesos.v1.Protos.Offer.Operation.Launch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.Launch(); } public static org.apache.mesos.v1.Protos.Offer.Operation.Launch getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Launch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Launch(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.Launch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LaunchGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.LaunchGroup) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ExecutorInfo executor = 1; */ boolean hasExecutor(); /** * required .mesos.v1.ExecutorInfo executor = 1; */ org.apache.mesos.v1.Protos.ExecutorInfo getExecutor(); /** * required .mesos.v1.ExecutorInfo executor = 1; */ org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorOrBuilder(); /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ boolean hasTaskGroup(); /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ org.apache.mesos.v1.Protos.TaskGroupInfo getTaskGroup(); /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder getTaskGroupOrBuilder(); } /** *
       * Unlike `Launch` above, all the tasks in a `task_group` are
       * atomically delivered to an executor.
       * `NetworkInfo` set on executor will be shared by all tasks in
       * the task group.
       * TODO(vinod): Any volumes set on executor could be used by a
       * task by explicitly setting `Volume.source` in its resources.
       * 
* * Protobuf type {@code mesos.v1.Offer.Operation.LaunchGroup} */ public static final class LaunchGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.LaunchGroup) LaunchGroupOrBuilder { private static final long serialVersionUID = 0L; // Use LaunchGroup.newBuilder() to construct. private LaunchGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LaunchGroup() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LaunchGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.ExecutorInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = executor_.toBuilder(); } executor_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executor_); executor_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.TaskGroupInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = taskGroup_.toBuilder(); } taskGroup_ = input.readMessage(org.apache.mesos.v1.Protos.TaskGroupInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(taskGroup_); taskGroup_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_LaunchGroup_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_LaunchGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.class, org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.Builder.class); } private int bitField0_; public static final int EXECUTOR_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ExecutorInfo executor_; /** * required .mesos.v1.ExecutorInfo executor = 1; */ public boolean hasExecutor() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfo getExecutor() { return executor_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executor_; } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorOrBuilder() { return executor_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executor_; } public static final int TASK_GROUP_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.TaskGroupInfo taskGroup_; /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public boolean hasTaskGroup() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public org.apache.mesos.v1.Protos.TaskGroupInfo getTaskGroup() { return taskGroup_ == null ? org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance() : taskGroup_; } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder getTaskGroupOrBuilder() { return taskGroup_ == null ? org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance() : taskGroup_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasExecutor()) { memoizedIsInitialized = 0; return false; } if (!hasTaskGroup()) { memoizedIsInitialized = 0; return false; } if (!getExecutor().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getTaskGroup().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getExecutor()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getTaskGroup()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getExecutor()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTaskGroup()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup other = (org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup) obj; boolean result = true; result = result && (hasExecutor() == other.hasExecutor()); if (hasExecutor()) { result = result && getExecutor() .equals(other.getExecutor()); } result = result && (hasTaskGroup() == other.hasTaskGroup()); if (hasTaskGroup()) { result = result && getTaskGroup() .equals(other.getTaskGroup()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExecutor()) { hash = (37 * hash) + EXECUTOR_FIELD_NUMBER; hash = (53 * hash) + getExecutor().hashCode(); } if (hasTaskGroup()) { hash = (37 * hash) + TASK_GROUP_FIELD_NUMBER; hash = (53 * hash) + getTaskGroup().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Unlike `Launch` above, all the tasks in a `task_group` are
         * atomically delivered to an executor.
         * `NetworkInfo` set on executor will be shared by all tasks in
         * the task group.
         * TODO(vinod): Any volumes set on executor could be used by a
         * task by explicitly setting `Volume.source` in its resources.
         * 
* * Protobuf type {@code mesos.v1.Offer.Operation.LaunchGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.LaunchGroup) org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_LaunchGroup_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_LaunchGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.class, org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getExecutorFieldBuilder(); getTaskGroupFieldBuilder(); } } public Builder clear() { super.clear(); if (executorBuilder_ == null) { executor_ = null; } else { executorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (taskGroupBuilder_ == null) { taskGroup_ = null; } else { taskGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_LaunchGroup_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup build() { org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup result = new org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (executorBuilder_ == null) { result.executor_ = executor_; } else { result.executor_ = executorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (taskGroupBuilder_ == null) { result.taskGroup_ = taskGroup_; } else { result.taskGroup_ = taskGroupBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.getDefaultInstance()) return this; if (other.hasExecutor()) { mergeExecutor(other.getExecutor()); } if (other.hasTaskGroup()) { mergeTaskGroup(other.getTaskGroup()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasExecutor()) { return false; } if (!hasTaskGroup()) { return false; } if (!getExecutor().isInitialized()) { return false; } if (!getTaskGroup().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.ExecutorInfo executor_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder> executorBuilder_; /** * required .mesos.v1.ExecutorInfo executor = 1; */ public boolean hasExecutor() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfo getExecutor() { if (executorBuilder_ == null) { return executor_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executor_; } else { return executorBuilder_.getMessage(); } } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public Builder setExecutor(org.apache.mesos.v1.Protos.ExecutorInfo value) { if (executorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executor_ = value; onChanged(); } else { executorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public Builder setExecutor( org.apache.mesos.v1.Protos.ExecutorInfo.Builder builderForValue) { if (executorBuilder_ == null) { executor_ = builderForValue.build(); onChanged(); } else { executorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public Builder mergeExecutor(org.apache.mesos.v1.Protos.ExecutorInfo value) { if (executorBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && executor_ != null && executor_ != org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance()) { executor_ = org.apache.mesos.v1.Protos.ExecutorInfo.newBuilder(executor_).mergeFrom(value).buildPartial(); } else { executor_ = value; } onChanged(); } else { executorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public Builder clearExecutor() { if (executorBuilder_ == null) { executor_ = null; onChanged(); } else { executorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfo.Builder getExecutorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getExecutorFieldBuilder().getBuilder(); } /** * required .mesos.v1.ExecutorInfo executor = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorOrBuilder() { if (executorBuilder_ != null) { return executorBuilder_.getMessageOrBuilder(); } else { return executor_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executor_; } } /** * required .mesos.v1.ExecutorInfo executor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder> getExecutorFieldBuilder() { if (executorBuilder_ == null) { executorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder>( getExecutor(), getParentForChildren(), isClean()); executor_ = null; } return executorBuilder_; } private org.apache.mesos.v1.Protos.TaskGroupInfo taskGroup_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskGroupInfo, org.apache.mesos.v1.Protos.TaskGroupInfo.Builder, org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder> taskGroupBuilder_; /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public boolean hasTaskGroup() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public org.apache.mesos.v1.Protos.TaskGroupInfo getTaskGroup() { if (taskGroupBuilder_ == null) { return taskGroup_ == null ? org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance() : taskGroup_; } else { return taskGroupBuilder_.getMessage(); } } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public Builder setTaskGroup(org.apache.mesos.v1.Protos.TaskGroupInfo value) { if (taskGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } taskGroup_ = value; onChanged(); } else { taskGroupBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public Builder setTaskGroup( org.apache.mesos.v1.Protos.TaskGroupInfo.Builder builderForValue) { if (taskGroupBuilder_ == null) { taskGroup_ = builderForValue.build(); onChanged(); } else { taskGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public Builder mergeTaskGroup(org.apache.mesos.v1.Protos.TaskGroupInfo value) { if (taskGroupBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && taskGroup_ != null && taskGroup_ != org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance()) { taskGroup_ = org.apache.mesos.v1.Protos.TaskGroupInfo.newBuilder(taskGroup_).mergeFrom(value).buildPartial(); } else { taskGroup_ = value; } onChanged(); } else { taskGroupBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public Builder clearTaskGroup() { if (taskGroupBuilder_ == null) { taskGroup_ = null; onChanged(); } else { taskGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public org.apache.mesos.v1.Protos.TaskGroupInfo.Builder getTaskGroupBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTaskGroupFieldBuilder().getBuilder(); } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ public org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder getTaskGroupOrBuilder() { if (taskGroupBuilder_ != null) { return taskGroupBuilder_.getMessageOrBuilder(); } else { return taskGroup_ == null ? org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance() : taskGroup_; } } /** * required .mesos.v1.TaskGroupInfo task_group = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskGroupInfo, org.apache.mesos.v1.Protos.TaskGroupInfo.Builder, org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder> getTaskGroupFieldBuilder() { if (taskGroupBuilder_ == null) { taskGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskGroupInfo, org.apache.mesos.v1.Protos.TaskGroupInfo.Builder, org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder>( getTaskGroup(), getParentForChildren(), isClean()); taskGroup_ = null; } return taskGroupBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.LaunchGroup) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.LaunchGroup) private static final org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup(); } public static org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LaunchGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LaunchGroup(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReserveOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.Reserve) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Resource resources = 1; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 1; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 1; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 1; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.Offer.Operation.Reserve} */ public static final class Reserve extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.Reserve) ReserveOrBuilder { private static final long serialVersionUID = 0L; // Use Reserve.newBuilder() to construct. private Reserve(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Reserve() { resources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Reserve( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Reserve_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Reserve_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Reserve.class, org.apache.mesos.v1.Protos.Offer.Operation.Reserve.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 1; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, resources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.Reserve)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.Reserve other = (org.apache.mesos.v1.Protos.Offer.Operation.Reserve) obj; boolean result = true; result = result && getResourcesList() .equals(other.getResourcesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve 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.Protos.Offer.Operation.Reserve parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.Reserve prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Offer.Operation.Reserve} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.Reserve) org.apache.mesos.v1.Protos.Offer.Operation.ReserveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Reserve_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Reserve_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Reserve.class, org.apache.mesos.v1.Protos.Offer.Operation.Reserve.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.Reserve.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } public Builder clear() { super.clear(); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourcesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Reserve_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.Reserve getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.Reserve.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.Reserve build() { org.apache.mesos.v1.Protos.Offer.Operation.Reserve result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.Reserve buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.Reserve result = new org.apache.mesos.v1.Protos.Offer.Operation.Reserve(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.Reserve) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.Reserve)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.Reserve other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.Reserve.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.Protos.Offer.Operation.Reserve parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.Reserve) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 1; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.Reserve) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.Reserve) private static final org.apache.mesos.v1.Protos.Offer.Operation.Reserve DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.Reserve(); } public static org.apache.mesos.v1.Protos.Offer.Operation.Reserve getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Reserve parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Reserve(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.Reserve getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnreserveOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.Unreserve) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Resource resources = 1; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 1; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 1; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 1; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.Offer.Operation.Unreserve} */ public static final class Unreserve extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.Unreserve) UnreserveOrBuilder { private static final long serialVersionUID = 0L; // Use Unreserve.newBuilder() to construct. private Unreserve(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Unreserve() { resources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Unreserve( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Unreserve_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Unreserve_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.class, org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 1; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, resources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.Unreserve)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.Unreserve other = (org.apache.mesos.v1.Protos.Offer.Operation.Unreserve) obj; boolean result = true; result = result && getResourcesList() .equals(other.getResourcesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve 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.Protos.Offer.Operation.Unreserve parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.Unreserve prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Offer.Operation.Unreserve} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.Unreserve) org.apache.mesos.v1.Protos.Offer.Operation.UnreserveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Unreserve_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Unreserve_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.class, org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } public Builder clear() { super.clear(); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourcesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Unreserve_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.Unreserve getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.Unreserve build() { org.apache.mesos.v1.Protos.Offer.Operation.Unreserve result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.Unreserve buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.Unreserve result = new org.apache.mesos.v1.Protos.Offer.Operation.Unreserve(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.Unreserve) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.Unreserve)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.Unreserve other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.Protos.Offer.Operation.Unreserve parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.Unreserve) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 1; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.Unreserve) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.Unreserve) private static final org.apache.mesos.v1.Protos.Offer.Operation.Unreserve DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.Unreserve(); } public static org.apache.mesos.v1.Protos.Offer.Operation.Unreserve getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Unreserve parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Unreserve(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.Unreserve getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.Create) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Resource volumes = 1; */ java.util.List getVolumesList(); /** * repeated .mesos.v1.Resource volumes = 1; */ org.apache.mesos.v1.Protos.Resource getVolumes(int index); /** * repeated .mesos.v1.Resource volumes = 1; */ int getVolumesCount(); /** * repeated .mesos.v1.Resource volumes = 1; */ java.util.List getVolumesOrBuilderList(); /** * repeated .mesos.v1.Resource volumes = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.Offer.Operation.Create} */ public static final class Create extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.Create) CreateOrBuilder { private static final long serialVersionUID = 0L; // Use Create.newBuilder() to construct. private Create(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Create() { volumes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Create( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } volumes_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Create.class, org.apache.mesos.v1.Protos.Offer.Operation.Create.Builder.class); } public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesList() { return volumes_; } /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesOrBuilderList() { return volumes_; } /** * repeated .mesos.v1.Resource volumes = 1; */ public int getVolumesCount() { return volumes_.size(); } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource getVolumes(int index) { return volumes_.get(index); } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumesOrBuilder( int index) { return volumes_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getVolumesCount(); i++) { if (!getVolumes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < volumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, volumes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.Create)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.Create other = (org.apache.mesos.v1.Protos.Offer.Operation.Create) obj; boolean result = true; result = result && getVolumesList() .equals(other.getVolumesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVolumesCount() > 0) { hash = (37 * hash) + VOLUMES_FIELD_NUMBER; hash = (53 * hash) + getVolumesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create 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.Protos.Offer.Operation.Create parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.Create prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Offer.Operation.Create} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.Create) org.apache.mesos.v1.Protos.Offer.Operation.CreateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Create_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Create_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Create.class, org.apache.mesos.v1.Protos.Offer.Operation.Create.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.Create.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVolumesFieldBuilder(); } } public Builder clear() { super.clear(); if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { volumesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Create_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.Create getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.Create.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.Create build() { org.apache.mesos.v1.Protos.Offer.Operation.Create result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.Create buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.Create result = new org.apache.mesos.v1.Protos.Offer.Operation.Create(this); int from_bitField0_ = bitField0_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); bitField0_ = (bitField0_ & ~0x00000001); } result.volumes_ = volumes_; } else { result.volumes_ = volumesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.Create) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.Create)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.Create other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.Create.getDefaultInstance()) return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVolumesIsMutable(); volumes_.addAll(other.volumes_); } onChanged(); } } else { if (!other.volumes_.isEmpty()) { if (volumesBuilder_.isEmpty()) { volumesBuilder_.dispose(); volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); volumesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumesFieldBuilder() : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getVolumesCount(); i++) { if (!getVolumes(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.Protos.Offer.Operation.Create parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.Create) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List volumes_ = java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> volumesBuilder_; /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesList() { if (volumesBuilder_ == null) { return java.util.Collections.unmodifiableList(volumes_); } else { return volumesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public int getVolumesCount() { if (volumesBuilder_ == null) { return volumes_.size(); } else { return volumesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource getVolumes(int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder setVolumes( int index, org.apache.mesos.v1.Protos.Resource value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.set(index, value); onChanged(); } else { volumesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder setVolumes( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addVolumes(org.apache.mesos.v1.Protos.Resource value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(value); onChanged(); } else { volumesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addVolumes( int index, org.apache.mesos.v1.Protos.Resource value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(index, value); onChanged(); } else { volumesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addVolumes( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addVolumes( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder clearVolumes() { if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { volumesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder removeVolumes(int index) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.remove(index); onChanged(); } else { volumesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getVolumesBuilder( int index) { return getVolumesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumesOrBuilder( int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumes_); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addVolumesBuilder() { return getVolumesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addVolumesBuilder( int index) { return getVolumesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( volumes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.Create) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.Create) private static final org.apache.mesos.v1.Protos.Offer.Operation.Create DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.Create(); } public static org.apache.mesos.v1.Protos.Offer.Operation.Create getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Create parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Create(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.Create getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DestroyOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.Destroy) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Resource volumes = 1; */ java.util.List getVolumesList(); /** * repeated .mesos.v1.Resource volumes = 1; */ org.apache.mesos.v1.Protos.Resource getVolumes(int index); /** * repeated .mesos.v1.Resource volumes = 1; */ int getVolumesCount(); /** * repeated .mesos.v1.Resource volumes = 1; */ java.util.List getVolumesOrBuilderList(); /** * repeated .mesos.v1.Resource volumes = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.Offer.Operation.Destroy} */ public static final class Destroy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.Destroy) DestroyOrBuilder { private static final long serialVersionUID = 0L; // Use Destroy.newBuilder() to construct. private Destroy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Destroy() { volumes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Destroy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } volumes_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Destroy_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Destroy_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Destroy.class, org.apache.mesos.v1.Protos.Offer.Operation.Destroy.Builder.class); } public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesList() { return volumes_; } /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesOrBuilderList() { return volumes_; } /** * repeated .mesos.v1.Resource volumes = 1; */ public int getVolumesCount() { return volumes_.size(); } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource getVolumes(int index) { return volumes_.get(index); } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumesOrBuilder( int index) { return volumes_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getVolumesCount(); i++) { if (!getVolumes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < volumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, volumes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.Destroy)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.Destroy other = (org.apache.mesos.v1.Protos.Offer.Operation.Destroy) obj; boolean result = true; result = result && getVolumesList() .equals(other.getVolumesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVolumesCount() > 0) { hash = (37 * hash) + VOLUMES_FIELD_NUMBER; hash = (53 * hash) + getVolumesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.Destroy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Offer.Operation.Destroy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.Destroy) org.apache.mesos.v1.Protos.Offer.Operation.DestroyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Destroy_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Destroy_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.Destroy.class, org.apache.mesos.v1.Protos.Offer.Operation.Destroy.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.Destroy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVolumesFieldBuilder(); } } public Builder clear() { super.clear(); if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { volumesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_Destroy_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.Destroy getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.Destroy.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.Destroy build() { org.apache.mesos.v1.Protos.Offer.Operation.Destroy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.Destroy buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.Destroy result = new org.apache.mesos.v1.Protos.Offer.Operation.Destroy(this); int from_bitField0_ = bitField0_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); bitField0_ = (bitField0_ & ~0x00000001); } result.volumes_ = volumes_; } else { result.volumes_ = volumesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.Destroy) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.Destroy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.Destroy other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.Destroy.getDefaultInstance()) return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVolumesIsMutable(); volumes_.addAll(other.volumes_); } onChanged(); } } else { if (!other.volumes_.isEmpty()) { if (volumesBuilder_.isEmpty()) { volumesBuilder_.dispose(); volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); volumesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumesFieldBuilder() : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getVolumesCount(); i++) { if (!getVolumes(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.Protos.Offer.Operation.Destroy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.Destroy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List volumes_ = java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> volumesBuilder_; /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesList() { if (volumesBuilder_ == null) { return java.util.Collections.unmodifiableList(volumes_); } else { return volumesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public int getVolumesCount() { if (volumesBuilder_ == null) { return volumes_.size(); } else { return volumesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource getVolumes(int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder setVolumes( int index, org.apache.mesos.v1.Protos.Resource value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.set(index, value); onChanged(); } else { volumesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder setVolumes( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addVolumes(org.apache.mesos.v1.Protos.Resource value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(value); onChanged(); } else { volumesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addVolumes( int index, org.apache.mesos.v1.Protos.Resource value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(index, value); onChanged(); } else { volumesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addVolumes( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addVolumes( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder clearVolumes() { if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { volumesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public Builder removeVolumes(int index) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.remove(index); onChanged(); } else { volumesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getVolumesBuilder( int index) { return getVolumesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumesOrBuilder( int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumes_); } } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addVolumesBuilder() { return getVolumesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource volumes = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addVolumesBuilder( int index) { return getVolumesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource volumes = 1; */ public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( volumes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.Destroy) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.Destroy) private static final org.apache.mesos.v1.Protos.Offer.Operation.Destroy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.Destroy(); } public static org.apache.mesos.v1.Protos.Offer.Operation.Destroy getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Destroy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Destroy(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.Destroy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GrowVolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.GrowVolume) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.Resource volume = 1; */ boolean hasVolume(); /** * required .mesos.v1.Resource volume = 1; */ org.apache.mesos.v1.Protos.Resource getVolume(); /** * required .mesos.v1.Resource volume = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumeOrBuilder(); /** * required .mesos.v1.Resource addition = 2; */ boolean hasAddition(); /** * required .mesos.v1.Resource addition = 2; */ org.apache.mesos.v1.Protos.Resource getAddition(); /** * required .mesos.v1.Resource addition = 2; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getAdditionOrBuilder(); } /** *
       * Grow a volume by an additional disk resource.
       * NOTE: This is currently experimental and only for persistent volumes
       * created on ROOT/PATH disk.
       * 
* * Protobuf type {@code mesos.v1.Offer.Operation.GrowVolume} */ public static final class GrowVolume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.GrowVolume) GrowVolumeOrBuilder { private static final long serialVersionUID = 0L; // Use GrowVolume.newBuilder() to construct. private GrowVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GrowVolume() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GrowVolume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Resource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = volume_.toBuilder(); } volume_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(volume_); volume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.Resource.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = addition_.toBuilder(); } addition_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(addition_); addition_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_GrowVolume_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_GrowVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.class, org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.Builder.class); } private int bitField0_; public static final int VOLUME_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Resource volume_; /** * required .mesos.v1.Resource volume = 1; */ public boolean hasVolume() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.Resource getVolume() { return volume_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : volume_; } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumeOrBuilder() { return volume_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : volume_; } public static final int ADDITION_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Resource addition_; /** * required .mesos.v1.Resource addition = 2; */ public boolean hasAddition() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.Resource addition = 2; */ public org.apache.mesos.v1.Protos.Resource getAddition() { return addition_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : addition_; } /** * required .mesos.v1.Resource addition = 2; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getAdditionOrBuilder() { return addition_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : addition_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasVolume()) { memoizedIsInitialized = 0; return false; } if (!hasAddition()) { memoizedIsInitialized = 0; return false; } if (!getVolume().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getAddition().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getVolume()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getAddition()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getVolume()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAddition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume other = (org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume) obj; boolean result = true; result = result && (hasVolume() == other.hasVolume()); if (hasVolume()) { result = result && getVolume() .equals(other.getVolume()); } result = result && (hasAddition() == other.hasAddition()); if (hasAddition()) { result = result && getAddition() .equals(other.getAddition()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasVolume()) { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); } if (hasAddition()) { hash = (37 * hash) + ADDITION_FIELD_NUMBER; hash = (53 * hash) + getAddition().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume 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.Protos.Offer.Operation.GrowVolume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Grow a volume by an additional disk resource.
         * NOTE: This is currently experimental and only for persistent volumes
         * created on ROOT/PATH disk.
         * 
* * Protobuf type {@code mesos.v1.Offer.Operation.GrowVolume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.GrowVolume) org.apache.mesos.v1.Protos.Offer.Operation.GrowVolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_GrowVolume_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_GrowVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.class, org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVolumeFieldBuilder(); getAdditionFieldBuilder(); } } public Builder clear() { super.clear(); if (volumeBuilder_ == null) { volume_ = null; } else { volumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (additionBuilder_ == null) { addition_ = null; } else { additionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_GrowVolume_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume build() { org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume result = new org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (volumeBuilder_ == null) { result.volume_ = volume_; } else { result.volume_ = volumeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (additionBuilder_ == null) { result.addition_ = addition_; } else { result.addition_ = additionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.getDefaultInstance()) return this; if (other.hasVolume()) { mergeVolume(other.getVolume()); } if (other.hasAddition()) { mergeAddition(other.getAddition()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasVolume()) { return false; } if (!hasAddition()) { return false; } if (!getVolume().isInitialized()) { return false; } if (!getAddition().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.Protos.Offer.Operation.GrowVolume parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Resource volume_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> volumeBuilder_; /** * required .mesos.v1.Resource volume = 1; */ public boolean hasVolume() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.Resource getVolume() { if (volumeBuilder_ == null) { return volume_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : volume_; } else { return volumeBuilder_.getMessage(); } } /** * required .mesos.v1.Resource volume = 1; */ public Builder setVolume(org.apache.mesos.v1.Protos.Resource value) { if (volumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } volume_ = value; onChanged(); } else { volumeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource volume = 1; */ public Builder setVolume( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); } else { volumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource volume = 1; */ public Builder mergeVolume(org.apache.mesos.v1.Protos.Resource value) { if (volumeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && volume_ != null && volume_ != org.apache.mesos.v1.Protos.Resource.getDefaultInstance()) { volume_ = org.apache.mesos.v1.Protos.Resource.newBuilder(volume_).mergeFrom(value).buildPartial(); } else { volume_ = value; } onChanged(); } else { volumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource volume = 1; */ public Builder clearVolume() { if (volumeBuilder_ == null) { volume_ = null; onChanged(); } else { volumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getVolumeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { return volume_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : volume_; } } /** * required .mesos.v1.Resource volume = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( getVolume(), getParentForChildren(), isClean()); volume_ = null; } return volumeBuilder_; } private org.apache.mesos.v1.Protos.Resource addition_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> additionBuilder_; /** * required .mesos.v1.Resource addition = 2; */ public boolean hasAddition() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.Resource addition = 2; */ public org.apache.mesos.v1.Protos.Resource getAddition() { if (additionBuilder_ == null) { return addition_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : addition_; } else { return additionBuilder_.getMessage(); } } /** * required .mesos.v1.Resource addition = 2; */ public Builder setAddition(org.apache.mesos.v1.Protos.Resource value) { if (additionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } addition_ = value; onChanged(); } else { additionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.Resource addition = 2; */ public Builder setAddition( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (additionBuilder_ == null) { addition_ = builderForValue.build(); onChanged(); } else { additionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.Resource addition = 2; */ public Builder mergeAddition(org.apache.mesos.v1.Protos.Resource value) { if (additionBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && addition_ != null && addition_ != org.apache.mesos.v1.Protos.Resource.getDefaultInstance()) { addition_ = org.apache.mesos.v1.Protos.Resource.newBuilder(addition_).mergeFrom(value).buildPartial(); } else { addition_ = value; } onChanged(); } else { additionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.Resource addition = 2; */ public Builder clearAddition() { if (additionBuilder_ == null) { addition_ = null; onChanged(); } else { additionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.Resource addition = 2; */ public org.apache.mesos.v1.Protos.Resource.Builder getAdditionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAdditionFieldBuilder().getBuilder(); } /** * required .mesos.v1.Resource addition = 2; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getAdditionOrBuilder() { if (additionBuilder_ != null) { return additionBuilder_.getMessageOrBuilder(); } else { return addition_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : addition_; } } /** * required .mesos.v1.Resource addition = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getAdditionFieldBuilder() { if (additionBuilder_ == null) { additionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( getAddition(), getParentForChildren(), isClean()); addition_ = null; } return additionBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.GrowVolume) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.GrowVolume) private static final org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume(); } public static org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GrowVolume parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GrowVolume(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShrinkVolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.ShrinkVolume) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.Resource volume = 1; */ boolean hasVolume(); /** * required .mesos.v1.Resource volume = 1; */ org.apache.mesos.v1.Protos.Resource getVolume(); /** * required .mesos.v1.Resource volume = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumeOrBuilder(); /** *
         * See comments in `Value.Scalar` for maximum precision supported.
         * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ boolean hasSubtract(); /** *
         * See comments in `Value.Scalar` for maximum precision supported.
         * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ org.apache.mesos.v1.Protos.Value.Scalar getSubtract(); /** *
         * See comments in `Value.Scalar` for maximum precision supported.
         * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getSubtractOrBuilder(); } /** *
       * Shrink a volume by the size specified in the `subtract` field.
       * NOTE: This is currently experimental and only for persistent volumes
       * created on ROOT/PATH disk.
       * 
* * Protobuf type {@code mesos.v1.Offer.Operation.ShrinkVolume} */ public static final class ShrinkVolume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.ShrinkVolume) ShrinkVolumeOrBuilder { private static final long serialVersionUID = 0L; // Use ShrinkVolume.newBuilder() to construct. private ShrinkVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShrinkVolume() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ShrinkVolume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Resource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = volume_.toBuilder(); } volume_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(volume_); volume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.Value.Scalar.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = subtract_.toBuilder(); } subtract_ = input.readMessage(org.apache.mesos.v1.Protos.Value.Scalar.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(subtract_); subtract_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_ShrinkVolume_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_ShrinkVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.class, org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.Builder.class); } private int bitField0_; public static final int VOLUME_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Resource volume_; /** * required .mesos.v1.Resource volume = 1; */ public boolean hasVolume() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.Resource getVolume() { return volume_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : volume_; } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumeOrBuilder() { return volume_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : volume_; } public static final int SUBTRACT_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Value.Scalar subtract_; /** *
         * See comments in `Value.Scalar` for maximum precision supported.
         * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public boolean hasSubtract() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * See comments in `Value.Scalar` for maximum precision supported.
         * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public org.apache.mesos.v1.Protos.Value.Scalar getSubtract() { return subtract_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : subtract_; } /** *
         * See comments in `Value.Scalar` for maximum precision supported.
         * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getSubtractOrBuilder() { return subtract_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : subtract_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasVolume()) { memoizedIsInitialized = 0; return false; } if (!hasSubtract()) { memoizedIsInitialized = 0; return false; } if (!getVolume().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getSubtract().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getVolume()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getSubtract()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getVolume()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSubtract()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume other = (org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume) obj; boolean result = true; result = result && (hasVolume() == other.hasVolume()); if (hasVolume()) { result = result && getVolume() .equals(other.getVolume()); } result = result && (hasSubtract() == other.hasSubtract()); if (hasSubtract()) { result = result && getSubtract() .equals(other.getSubtract()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasVolume()) { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); } if (hasSubtract()) { hash = (37 * hash) + SUBTRACT_FIELD_NUMBER; hash = (53 * hash) + getSubtract().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume 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.Protos.Offer.Operation.ShrinkVolume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Shrink a volume by the size specified in the `subtract` field.
         * NOTE: This is currently experimental and only for persistent volumes
         * created on ROOT/PATH disk.
         * 
* * Protobuf type {@code mesos.v1.Offer.Operation.ShrinkVolume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.ShrinkVolume) org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_ShrinkVolume_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_ShrinkVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.class, org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVolumeFieldBuilder(); getSubtractFieldBuilder(); } } public Builder clear() { super.clear(); if (volumeBuilder_ == null) { volume_ = null; } else { volumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (subtractBuilder_ == null) { subtract_ = null; } else { subtractBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_ShrinkVolume_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume build() { org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume result = new org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (volumeBuilder_ == null) { result.volume_ = volume_; } else { result.volume_ = volumeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (subtractBuilder_ == null) { result.subtract_ = subtract_; } else { result.subtract_ = subtractBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.getDefaultInstance()) return this; if (other.hasVolume()) { mergeVolume(other.getVolume()); } if (other.hasSubtract()) { mergeSubtract(other.getSubtract()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasVolume()) { return false; } if (!hasSubtract()) { return false; } if (!getVolume().isInitialized()) { return false; } if (!getSubtract().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.Protos.Offer.Operation.ShrinkVolume parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Resource volume_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> volumeBuilder_; /** * required .mesos.v1.Resource volume = 1; */ public boolean hasVolume() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.Resource getVolume() { if (volumeBuilder_ == null) { return volume_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : volume_; } else { return volumeBuilder_.getMessage(); } } /** * required .mesos.v1.Resource volume = 1; */ public Builder setVolume(org.apache.mesos.v1.Protos.Resource value) { if (volumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } volume_ = value; onChanged(); } else { volumeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource volume = 1; */ public Builder setVolume( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); } else { volumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource volume = 1; */ public Builder mergeVolume(org.apache.mesos.v1.Protos.Resource value) { if (volumeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && volume_ != null && volume_ != org.apache.mesos.v1.Protos.Resource.getDefaultInstance()) { volume_ = org.apache.mesos.v1.Protos.Resource.newBuilder(volume_).mergeFrom(value).buildPartial(); } else { volume_ = value; } onChanged(); } else { volumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource volume = 1; */ public Builder clearVolume() { if (volumeBuilder_ == null) { volume_ = null; onChanged(); } else { volumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getVolumeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** * required .mesos.v1.Resource volume = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { return volume_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : volume_; } } /** * required .mesos.v1.Resource volume = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( getVolume(), getParentForChildren(), isClean()); volume_ = null; } return volumeBuilder_; } private org.apache.mesos.v1.Protos.Value.Scalar subtract_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder> subtractBuilder_; /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public boolean hasSubtract() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public org.apache.mesos.v1.Protos.Value.Scalar getSubtract() { if (subtractBuilder_ == null) { return subtract_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : subtract_; } else { return subtractBuilder_.getMessage(); } } /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public Builder setSubtract(org.apache.mesos.v1.Protos.Value.Scalar value) { if (subtractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subtract_ = value; onChanged(); } else { subtractBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public Builder setSubtract( org.apache.mesos.v1.Protos.Value.Scalar.Builder builderForValue) { if (subtractBuilder_ == null) { subtract_ = builderForValue.build(); onChanged(); } else { subtractBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public Builder mergeSubtract(org.apache.mesos.v1.Protos.Value.Scalar value) { if (subtractBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && subtract_ != null && subtract_ != org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance()) { subtract_ = org.apache.mesos.v1.Protos.Value.Scalar.newBuilder(subtract_).mergeFrom(value).buildPartial(); } else { subtract_ = value; } onChanged(); } else { subtractBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public Builder clearSubtract() { if (subtractBuilder_ == null) { subtract_ = null; onChanged(); } else { subtractBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public org.apache.mesos.v1.Protos.Value.Scalar.Builder getSubtractBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSubtractFieldBuilder().getBuilder(); } /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ public org.apache.mesos.v1.Protos.Value.ScalarOrBuilder getSubtractOrBuilder() { if (subtractBuilder_ != null) { return subtractBuilder_.getMessageOrBuilder(); } else { return subtract_ == null ? org.apache.mesos.v1.Protos.Value.Scalar.getDefaultInstance() : subtract_; } } /** *
           * See comments in `Value.Scalar` for maximum precision supported.
           * 
* * required .mesos.v1.Value.Scalar subtract = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder> getSubtractFieldBuilder() { if (subtractBuilder_ == null) { subtractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Value.Scalar, org.apache.mesos.v1.Protos.Value.Scalar.Builder, org.apache.mesos.v1.Protos.Value.ScalarOrBuilder>( getSubtract(), getParentForChildren(), isClean()); subtract_ = null; } return subtractBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.ShrinkVolume) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.ShrinkVolume) private static final org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume(); } public static org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ShrinkVolume parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ShrinkVolume(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateDiskOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.CreateDisk) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.Resource source = 1; */ boolean hasSource(); /** * required .mesos.v1.Resource source = 1; */ org.apache.mesos.v1.Protos.Resource getSource(); /** * required .mesos.v1.Resource source = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getSourceOrBuilder(); /** *
         * NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
         * 
* * required .mesos.v1.Resource.DiskInfo.Source.Type target_type = 2; */ boolean hasTargetType(); /** *
         * NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
         * 
* * required .mesos.v1.Resource.DiskInfo.Source.Type target_type = 2; */ org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type getTargetType(); /** *
         * Apply the specified profile to the created disk. This field must be set
         * if `source` does not have a profile, and must not be set if it has one.
         * NOTE: The operation will fail If the specified profile is unknown to
         * Mesos, i.e., not reported by the disk profile adaptor.
         * 
* * optional string target_profile = 3; */ boolean hasTargetProfile(); /** *
         * Apply the specified profile to the created disk. This field must be set
         * if `source` does not have a profile, and must not be set if it has one.
         * NOTE: The operation will fail If the specified profile is unknown to
         * Mesos, i.e., not reported by the disk profile adaptor.
         * 
* * optional string target_profile = 3; */ java.lang.String getTargetProfile(); /** *
         * Apply the specified profile to the created disk. This field must be set
         * if `source` does not have a profile, and must not be set if it has one.
         * NOTE: The operation will fail If the specified profile is unknown to
         * Mesos, i.e., not reported by the disk profile adaptor.
         * 
* * optional string target_profile = 3; */ com.google.protobuf.ByteString getTargetProfileBytes(); } /** *
       * Create a `MOUNT` or `BLOCK` disk resource backed by a CSI volume from a
       * `RAW` disk resource.
       * In the typical case where the `RAW` disk resource has a profile and no
       * source ID, a new CSI volume will be provisioned by Mesos to back the
       * returned `MOUNT` or `BLOCK` disk resource. However, the `RAW` disk
       * resource can instead have no profile but a source ID, indicating that
       * it is already backed by a CSI volume in one of the following scenarios:
       * (1) The CSI volume is preprovisioned out-of-band.
       * (2) The CSI volume is provisioned by Mesos, but Mesos has lost the
       *     corresponding `MOUNT` or `BLOCK` resource metadata. This could
       *     happen if there has been a change in the agent ID or resource
       *     provider ID where the volume belongs.
       * In the above cases, Mesos won't provision a new CSI volume, but instead
       * will simply return a `MOUNT` or `BLOCK` disk resource backed by the same
       * CSI volume, with the profile specified in this call.
       * NOTE: For the time being, this API is subject to change and the related
       * feature is experimental.
       * 
* * Protobuf type {@code mesos.v1.Offer.Operation.CreateDisk} */ public static final class CreateDisk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.CreateDisk) CreateDiskOrBuilder { private static final long serialVersionUID = 0L; // Use CreateDisk.newBuilder() to construct. private CreateDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateDisk() { targetType_ = 0; targetProfile_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateDisk( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Resource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type value = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; targetType_ = rawValue; } break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; targetProfile_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_CreateDisk_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_CreateDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.class, org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.Builder.class); } private int bitField0_; public static final int SOURCE_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Resource source_; /** * required .mesos.v1.Resource source = 1; */ public boolean hasSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.Resource getSource() { return source_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : source_; } /** * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getSourceOrBuilder() { return source_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : source_; } public static final int TARGET_TYPE_FIELD_NUMBER = 2; private int targetType_; /** *
         * NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
         * 
* * required .mesos.v1.Resource.DiskInfo.Source.Type target_type = 2; */ public boolean hasTargetType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
         * 
* * required .mesos.v1.Resource.DiskInfo.Source.Type target_type = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type getTargetType() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type result = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.valueOf(targetType_); return result == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.UNKNOWN : result; } public static final int TARGET_PROFILE_FIELD_NUMBER = 3; private volatile java.lang.Object targetProfile_; /** *
         * Apply the specified profile to the created disk. This field must be set
         * if `source` does not have a profile, and must not be set if it has one.
         * NOTE: The operation will fail If the specified profile is unknown to
         * Mesos, i.e., not reported by the disk profile adaptor.
         * 
* * optional string target_profile = 3; */ public boolean hasTargetProfile() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Apply the specified profile to the created disk. This field must be set
         * if `source` does not have a profile, and must not be set if it has one.
         * NOTE: The operation will fail If the specified profile is unknown to
         * Mesos, i.e., not reported by the disk profile adaptor.
         * 
* * optional string target_profile = 3; */ public java.lang.String getTargetProfile() { java.lang.Object ref = targetProfile_; 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()) { targetProfile_ = s; } return s; } } /** *
         * Apply the specified profile to the created disk. This field must be set
         * if `source` does not have a profile, and must not be set if it has one.
         * NOTE: The operation will fail If the specified profile is unknown to
         * Mesos, i.e., not reported by the disk profile adaptor.
         * 
* * optional string target_profile = 3; */ public com.google.protobuf.ByteString getTargetProfileBytes() { java.lang.Object ref = targetProfile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetProfile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSource()) { memoizedIsInitialized = 0; return false; } if (!hasTargetType()) { memoizedIsInitialized = 0; return false; } if (!getSource().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getSource()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, targetType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetProfile_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSource()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, targetType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetProfile_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk other = (org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk) obj; boolean result = true; result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource() .equals(other.getSource()); } result = result && (hasTargetType() == other.hasTargetType()); if (hasTargetType()) { result = result && targetType_ == other.targetType_; } result = result && (hasTargetProfile() == other.hasTargetProfile()); if (hasTargetProfile()) { result = result && getTargetProfile() .equals(other.getTargetProfile()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasTargetType()) { hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; hash = (53 * hash) + targetType_; } if (hasTargetProfile()) { hash = (37 * hash) + TARGET_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getTargetProfile().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk 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.Protos.Offer.Operation.CreateDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Create a `MOUNT` or `BLOCK` disk resource backed by a CSI volume from a
         * `RAW` disk resource.
         * In the typical case where the `RAW` disk resource has a profile and no
         * source ID, a new CSI volume will be provisioned by Mesos to back the
         * returned `MOUNT` or `BLOCK` disk resource. However, the `RAW` disk
         * resource can instead have no profile but a source ID, indicating that
         * it is already backed by a CSI volume in one of the following scenarios:
         * (1) The CSI volume is preprovisioned out-of-band.
         * (2) The CSI volume is provisioned by Mesos, but Mesos has lost the
         *     corresponding `MOUNT` or `BLOCK` resource metadata. This could
         *     happen if there has been a change in the agent ID or resource
         *     provider ID where the volume belongs.
         * In the above cases, Mesos won't provision a new CSI volume, but instead
         * will simply return a `MOUNT` or `BLOCK` disk resource backed by the same
         * CSI volume, with the profile specified in this call.
         * NOTE: For the time being, this API is subject to change and the related
         * feature is experimental.
         * 
* * Protobuf type {@code mesos.v1.Offer.Operation.CreateDisk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.CreateDisk) org.apache.mesos.v1.Protos.Offer.Operation.CreateDiskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_CreateDisk_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_CreateDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.class, org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSourceFieldBuilder(); } } public Builder clear() { super.clear(); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); targetType_ = 0; bitField0_ = (bitField0_ & ~0x00000002); targetProfile_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_CreateDisk_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk build() { org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk result = new org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.targetType_ = targetType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.targetProfile_ = targetProfile_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasTargetType()) { setTargetType(other.getTargetType()); } if (other.hasTargetProfile()) { bitField0_ |= 0x00000004; targetProfile_ = other.targetProfile_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasSource()) { return false; } if (!hasTargetType()) { return false; } if (!getSource().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.Protos.Offer.Operation.CreateDisk parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Resource source_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> sourceBuilder_; /** * required .mesos.v1.Resource source = 1; */ public boolean hasSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.Resource getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * required .mesos.v1.Resource source = 1; */ public Builder setSource(org.apache.mesos.v1.Protos.Resource value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource source = 1; */ public Builder setSource( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource source = 1; */ public Builder mergeSource(org.apache.mesos.v1.Protos.Resource value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && source_ != null && source_ != org.apache.mesos.v1.Protos.Resource.getDefaultInstance()) { source_ = org.apache.mesos.v1.Protos.Resource.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.Resource source = 1; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getSourceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : source_; } } /** * required .mesos.v1.Resource source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private int targetType_ = 0; /** *
           * NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
           * 
* * required .mesos.v1.Resource.DiskInfo.Source.Type target_type = 2; */ public boolean hasTargetType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
           * NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
           * 
* * required .mesos.v1.Resource.DiskInfo.Source.Type target_type = 2; */ public org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type getTargetType() { org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type result = org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.valueOf(targetType_); return result == null ? org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type.UNKNOWN : result; } /** *
           * NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
           * 
* * required .mesos.v1.Resource.DiskInfo.Source.Type target_type = 2; */ public Builder setTargetType(org.apache.mesos.v1.Protos.Resource.DiskInfo.Source.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; targetType_ = value.getNumber(); onChanged(); return this; } /** *
           * NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
           * 
* * required .mesos.v1.Resource.DiskInfo.Source.Type target_type = 2; */ public Builder clearTargetType() { bitField0_ = (bitField0_ & ~0x00000002); targetType_ = 0; onChanged(); return this; } private java.lang.Object targetProfile_ = ""; /** *
           * Apply the specified profile to the created disk. This field must be set
           * if `source` does not have a profile, and must not be set if it has one.
           * NOTE: The operation will fail If the specified profile is unknown to
           * Mesos, i.e., not reported by the disk profile adaptor.
           * 
* * optional string target_profile = 3; */ public boolean hasTargetProfile() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
           * Apply the specified profile to the created disk. This field must be set
           * if `source` does not have a profile, and must not be set if it has one.
           * NOTE: The operation will fail If the specified profile is unknown to
           * Mesos, i.e., not reported by the disk profile adaptor.
           * 
* * optional string target_profile = 3; */ public java.lang.String getTargetProfile() { java.lang.Object ref = targetProfile_; 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()) { targetProfile_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * Apply the specified profile to the created disk. This field must be set
           * if `source` does not have a profile, and must not be set if it has one.
           * NOTE: The operation will fail If the specified profile is unknown to
           * Mesos, i.e., not reported by the disk profile adaptor.
           * 
* * optional string target_profile = 3; */ public com.google.protobuf.ByteString getTargetProfileBytes() { java.lang.Object ref = targetProfile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetProfile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Apply the specified profile to the created disk. This field must be set
           * if `source` does not have a profile, and must not be set if it has one.
           * NOTE: The operation will fail If the specified profile is unknown to
           * Mesos, i.e., not reported by the disk profile adaptor.
           * 
* * optional string target_profile = 3; */ public Builder setTargetProfile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; targetProfile_ = value; onChanged(); return this; } /** *
           * Apply the specified profile to the created disk. This field must be set
           * if `source` does not have a profile, and must not be set if it has one.
           * NOTE: The operation will fail If the specified profile is unknown to
           * Mesos, i.e., not reported by the disk profile adaptor.
           * 
* * optional string target_profile = 3; */ public Builder clearTargetProfile() { bitField0_ = (bitField0_ & ~0x00000004); targetProfile_ = getDefaultInstance().getTargetProfile(); onChanged(); return this; } /** *
           * Apply the specified profile to the created disk. This field must be set
           * if `source` does not have a profile, and must not be set if it has one.
           * NOTE: The operation will fail If the specified profile is unknown to
           * Mesos, i.e., not reported by the disk profile adaptor.
           * 
* * optional string target_profile = 3; */ public Builder setTargetProfileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; targetProfile_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.CreateDisk) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.CreateDisk) private static final org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk(); } public static org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CreateDisk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateDisk(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DestroyDiskOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Offer.Operation.DestroyDisk) com.google.protobuf.MessageOrBuilder { /** *
         * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
         * 
* * required .mesos.v1.Resource source = 1; */ boolean hasSource(); /** *
         * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
         * 
* * required .mesos.v1.Resource source = 1; */ org.apache.mesos.v1.Protos.Resource getSource(); /** *
         * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
         * 
* * required .mesos.v1.Resource source = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getSourceOrBuilder(); } /** *
       * Destroy a disk resource backed by a CSI volume.
       * In the typical case where the CSI plugin of the volume supports volume
       * deprovisioning and the disk resource is a `MOUNT` or `BLOCK` disk with a
       * profile known to Mesos, the volume will be deprovisioned and a `RAW` disk
       * resource with the same profile but no source ID will be returned.
       * However, the following scenarios could lead to different outcomes:
       * (1) If the CSI plugin supports volume deprovisioning but the profile of
       *     the disk resource is unknown to the disk profile adaptor, or the disk
       *     resource is a `RAW` disk with no profile but a source ID (see above
       *     for possible scenarios), the volume will be deprovisioned but no
       *     resource will be returned.
       * (2) If the CSI plugin does not support volume deprovisioning, the volume
       *     won't be deprovisioned and a `RAW` disk resource with no profile but
       *     the same source ID will be returned.
       * NOTE: For the time being, this API is subject to change and the related
       * feature is experimental.
       * 
* * Protobuf type {@code mesos.v1.Offer.Operation.DestroyDisk} */ public static final class DestroyDisk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Offer.Operation.DestroyDisk) DestroyDiskOrBuilder { private static final long serialVersionUID = 0L; // Use DestroyDisk.newBuilder() to construct. private DestroyDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DestroyDisk() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DestroyDisk( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Resource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_DestroyDisk_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_DestroyDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.class, org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.Builder.class); } private int bitField0_; public static final int SOURCE_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Resource source_; /** *
         * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
         * 
* * required .mesos.v1.Resource source = 1; */ public boolean hasSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
         * 
* * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.Resource getSource() { return source_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : source_; } /** *
         * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
         * 
* * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getSourceOrBuilder() { return source_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : source_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSource()) { memoizedIsInitialized = 0; return false; } if (!getSource().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getSource()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk other = (org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk) obj; boolean result = true; result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource() .equals(other.getSource()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk 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.Protos.Offer.Operation.DestroyDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Destroy a disk resource backed by a CSI volume.
         * In the typical case where the CSI plugin of the volume supports volume
         * deprovisioning and the disk resource is a `MOUNT` or `BLOCK` disk with a
         * profile known to Mesos, the volume will be deprovisioned and a `RAW` disk
         * resource with the same profile but no source ID will be returned.
         * However, the following scenarios could lead to different outcomes:
         * (1) If the CSI plugin supports volume deprovisioning but the profile of
         *     the disk resource is unknown to the disk profile adaptor, or the disk
         *     resource is a `RAW` disk with no profile but a source ID (see above
         *     for possible scenarios), the volume will be deprovisioned but no
         *     resource will be returned.
         * (2) If the CSI plugin does not support volume deprovisioning, the volume
         *     won't be deprovisioned and a `RAW` disk resource with no profile but
         *     the same source ID will be returned.
         * NOTE: For the time being, this API is subject to change and the related
         * feature is experimental.
         * 
* * Protobuf type {@code mesos.v1.Offer.Operation.DestroyDisk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation.DestroyDisk) org.apache.mesos.v1.Protos.Offer.Operation.DestroyDiskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_DestroyDisk_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_DestroyDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.class, org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSourceFieldBuilder(); } } public Builder clear() { super.clear(); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_DestroyDisk_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk build() { org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk result = new org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasSource()) { return false; } if (!getSource().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.Protos.Offer.Operation.DestroyDisk parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Resource source_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> sourceBuilder_; /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ public boolean hasSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.Resource getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ public Builder setSource(org.apache.mesos.v1.Protos.Resource value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ public Builder setSource( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ public Builder mergeSource(org.apache.mesos.v1.Protos.Resource value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && source_ != null && source_ != org.apache.mesos.v1.Protos.Resource.getDefaultInstance()) { source_ = org.apache.mesos.v1.Protos.Resource.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getSourceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.apache.mesos.v1.Protos.Resource.getDefaultInstance() : source_; } } /** *
           * NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
           * 
* * required .mesos.v1.Resource source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation.DestroyDisk) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation.DestroyDisk) private static final org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk(); } public static org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DestroyDisk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DestroyDisk(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .mesos.v1.Offer.Operation.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Offer.Operation.Type type = 1; */ public org.apache.mesos.v1.Protos.Offer.Operation.Type getType() { org.apache.mesos.v1.Protos.Offer.Operation.Type result = org.apache.mesos.v1.Protos.Offer.Operation.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Offer.Operation.Type.UNKNOWN : result; } public static final int ID_FIELD_NUMBER = 12; private org.apache.mesos.v1.Protos.OperationID id_; /** *
       * The `id` field allows frameworks to indicate that they wish to receive
       * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
       * v1 scheduler API.
       * 
* * optional .mesos.v1.OperationID id = 12; */ public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * The `id` field allows frameworks to indicate that they wish to receive
       * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
       * v1 scheduler API.
       * 
* * optional .mesos.v1.OperationID id = 12; */ public org.apache.mesos.v1.Protos.OperationID getId() { return id_ == null ? org.apache.mesos.v1.Protos.OperationID.getDefaultInstance() : id_; } /** *
       * The `id` field allows frameworks to indicate that they wish to receive
       * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
       * v1 scheduler API.
       * 
* * optional .mesos.v1.OperationID id = 12; */ public org.apache.mesos.v1.Protos.OperationIDOrBuilder getIdOrBuilder() { return id_ == null ? org.apache.mesos.v1.Protos.OperationID.getDefaultInstance() : id_; } public static final int LAUNCH_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Offer.Operation.Launch launch_; /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public boolean hasLaunch() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public org.apache.mesos.v1.Protos.Offer.Operation.Launch getLaunch() { return launch_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Launch.getDefaultInstance() : launch_; } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public org.apache.mesos.v1.Protos.Offer.Operation.LaunchOrBuilder getLaunchOrBuilder() { return launch_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Launch.getDefaultInstance() : launch_; } public static final int LAUNCH_GROUP_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup launchGroup_; /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public boolean hasLaunchGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup getLaunchGroup() { return launchGroup_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.getDefaultInstance() : launchGroup_; } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroupOrBuilder getLaunchGroupOrBuilder() { return launchGroup_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.getDefaultInstance() : launchGroup_; } public static final int RESERVE_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Offer.Operation.Reserve reserve_; /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public boolean hasReserve() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public org.apache.mesos.v1.Protos.Offer.Operation.Reserve getReserve() { return reserve_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Reserve.getDefaultInstance() : reserve_; } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public org.apache.mesos.v1.Protos.Offer.Operation.ReserveOrBuilder getReserveOrBuilder() { return reserve_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Reserve.getDefaultInstance() : reserve_; } public static final int UNRESERVE_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Offer.Operation.Unreserve unreserve_; /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public boolean hasUnreserve() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public org.apache.mesos.v1.Protos.Offer.Operation.Unreserve getUnreserve() { return unreserve_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.getDefaultInstance() : unreserve_; } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public org.apache.mesos.v1.Protos.Offer.Operation.UnreserveOrBuilder getUnreserveOrBuilder() { return unreserve_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.getDefaultInstance() : unreserve_; } public static final int CREATE_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.Offer.Operation.Create create_; /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public boolean hasCreate() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public org.apache.mesos.v1.Protos.Offer.Operation.Create getCreate() { return create_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Create.getDefaultInstance() : create_; } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public org.apache.mesos.v1.Protos.Offer.Operation.CreateOrBuilder getCreateOrBuilder() { return create_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Create.getDefaultInstance() : create_; } public static final int DESTROY_FIELD_NUMBER = 6; private org.apache.mesos.v1.Protos.Offer.Operation.Destroy destroy_; /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public boolean hasDestroy() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public org.apache.mesos.v1.Protos.Offer.Operation.Destroy getDestroy() { return destroy_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Destroy.getDefaultInstance() : destroy_; } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public org.apache.mesos.v1.Protos.Offer.Operation.DestroyOrBuilder getDestroyOrBuilder() { return destroy_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Destroy.getDefaultInstance() : destroy_; } public static final int GROW_VOLUME_FIELD_NUMBER = 13; private org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume growVolume_; /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public boolean hasGrowVolume() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume getGrowVolume() { return growVolume_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.getDefaultInstance() : growVolume_; } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolumeOrBuilder getGrowVolumeOrBuilder() { return growVolume_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.getDefaultInstance() : growVolume_; } public static final int SHRINK_VOLUME_FIELD_NUMBER = 14; private org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume shrinkVolume_; /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public boolean hasShrinkVolume() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume getShrinkVolume() { return shrinkVolume_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.getDefaultInstance() : shrinkVolume_; } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolumeOrBuilder getShrinkVolumeOrBuilder() { return shrinkVolume_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.getDefaultInstance() : shrinkVolume_; } public static final int CREATE_DISK_FIELD_NUMBER = 15; private org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk createDisk_; /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public boolean hasCreateDisk() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk getCreateDisk() { return createDisk_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.getDefaultInstance() : createDisk_; } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public org.apache.mesos.v1.Protos.Offer.Operation.CreateDiskOrBuilder getCreateDiskOrBuilder() { return createDisk_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.getDefaultInstance() : createDisk_; } public static final int DESTROY_DISK_FIELD_NUMBER = 16; private org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk destroyDisk_; /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public boolean hasDestroyDisk() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk getDestroyDisk() { return destroyDisk_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.getDefaultInstance() : destroyDisk_; } /** *
       * EXPERIMENTAL.
       * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDiskOrBuilder getDestroyDiskOrBuilder() { return destroyDisk_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.getDefaultInstance() : destroyDisk_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasId()) { if (!getId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLaunch()) { if (!getLaunch().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLaunchGroup()) { if (!getLaunchGroup().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasReserve()) { if (!getReserve().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasUnreserve()) { if (!getUnreserve().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCreate()) { if (!getCreate().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDestroy()) { if (!getDestroy().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGrowVolume()) { if (!getGrowVolume().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasShrinkVolume()) { if (!getShrinkVolume().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCreateDisk()) { if (!getCreateDisk().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDestroyDisk()) { if (!getDestroyDisk().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(2, getLaunch()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(3, getReserve()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(4, getUnreserve()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(5, getCreate()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(6, getDestroy()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(7, getLaunchGroup()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(12, getId()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(13, getGrowVolume()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(14, getShrinkVolume()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(15, getCreateDisk()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(16, getDestroyDisk()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLaunch()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getReserve()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUnreserve()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCreate()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDestroy()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getLaunchGroup()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getId()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getGrowVolume()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getShrinkVolume()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getCreateDisk()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getDestroyDisk()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer.Operation)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer.Operation other = (org.apache.mesos.v1.Protos.Offer.Operation) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasLaunch() == other.hasLaunch()); if (hasLaunch()) { result = result && getLaunch() .equals(other.getLaunch()); } result = result && (hasLaunchGroup() == other.hasLaunchGroup()); if (hasLaunchGroup()) { result = result && getLaunchGroup() .equals(other.getLaunchGroup()); } result = result && (hasReserve() == other.hasReserve()); if (hasReserve()) { result = result && getReserve() .equals(other.getReserve()); } result = result && (hasUnreserve() == other.hasUnreserve()); if (hasUnreserve()) { result = result && getUnreserve() .equals(other.getUnreserve()); } result = result && (hasCreate() == other.hasCreate()); if (hasCreate()) { result = result && getCreate() .equals(other.getCreate()); } result = result && (hasDestroy() == other.hasDestroy()); if (hasDestroy()) { result = result && getDestroy() .equals(other.getDestroy()); } result = result && (hasGrowVolume() == other.hasGrowVolume()); if (hasGrowVolume()) { result = result && getGrowVolume() .equals(other.getGrowVolume()); } result = result && (hasShrinkVolume() == other.hasShrinkVolume()); if (hasShrinkVolume()) { result = result && getShrinkVolume() .equals(other.getShrinkVolume()); } result = result && (hasCreateDisk() == other.hasCreateDisk()); if (hasCreateDisk()) { result = result && getCreateDisk() .equals(other.getCreateDisk()); } result = result && (hasDestroyDisk() == other.hasDestroyDisk()); if (hasDestroyDisk()) { result = result && getDestroyDisk() .equals(other.getDestroyDisk()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasLaunch()) { hash = (37 * hash) + LAUNCH_FIELD_NUMBER; hash = (53 * hash) + getLaunch().hashCode(); } if (hasLaunchGroup()) { hash = (37 * hash) + LAUNCH_GROUP_FIELD_NUMBER; hash = (53 * hash) + getLaunchGroup().hashCode(); } if (hasReserve()) { hash = (37 * hash) + RESERVE_FIELD_NUMBER; hash = (53 * hash) + getReserve().hashCode(); } if (hasUnreserve()) { hash = (37 * hash) + UNRESERVE_FIELD_NUMBER; hash = (53 * hash) + getUnreserve().hashCode(); } if (hasCreate()) { hash = (37 * hash) + CREATE_FIELD_NUMBER; hash = (53 * hash) + getCreate().hashCode(); } if (hasDestroy()) { hash = (37 * hash) + DESTROY_FIELD_NUMBER; hash = (53 * hash) + getDestroy().hashCode(); } if (hasGrowVolume()) { hash = (37 * hash) + GROW_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getGrowVolume().hashCode(); } if (hasShrinkVolume()) { hash = (37 * hash) + SHRINK_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getShrinkVolume().hashCode(); } if (hasCreateDisk()) { hash = (37 * hash) + CREATE_DISK_FIELD_NUMBER; hash = (53 * hash) + getCreateDisk().hashCode(); } if (hasDestroyDisk()) { hash = (37 * hash) + DESTROY_DISK_FIELD_NUMBER; hash = (53 * hash) + getDestroyDisk().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer.Operation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation 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.Protos.Offer.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer.Operation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer.Operation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer.Operation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer.Operation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Defines an operation that can be performed against offers.
       * 
* * Protobuf type {@code mesos.v1.Offer.Operation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer.Operation) org.apache.mesos.v1.Protos.Offer.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.Operation.class, org.apache.mesos.v1.Protos.Offer.Operation.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.Operation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdFieldBuilder(); getLaunchFieldBuilder(); getLaunchGroupFieldBuilder(); getReserveFieldBuilder(); getUnreserveFieldBuilder(); getCreateFieldBuilder(); getDestroyFieldBuilder(); getGrowVolumeFieldBuilder(); getShrinkVolumeFieldBuilder(); getCreateDiskFieldBuilder(); getDestroyDiskFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (launchBuilder_ == null) { launch_ = null; } else { launchBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (launchGroupBuilder_ == null) { launchGroup_ = null; } else { launchGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (reserveBuilder_ == null) { reserve_ = null; } else { reserveBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (unreserveBuilder_ == null) { unreserve_ = null; } else { unreserveBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (createBuilder_ == null) { create_ = null; } else { createBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (destroyBuilder_ == null) { destroy_ = null; } else { destroyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (growVolumeBuilder_ == null) { growVolume_ = null; } else { growVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (shrinkVolumeBuilder_ == null) { shrinkVolume_ = null; } else { shrinkVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (createDiskBuilder_ == null) { createDisk_ = null; } else { createDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (destroyDiskBuilder_ == null) { destroyDisk_ = null; } else { destroyDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_Operation_descriptor; } public org.apache.mesos.v1.Protos.Offer.Operation getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer.Operation build() { org.apache.mesos.v1.Protos.Offer.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer.Operation buildPartial() { org.apache.mesos.v1.Protos.Offer.Operation result = new org.apache.mesos.v1.Protos.Offer.Operation(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 (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (launchBuilder_ == null) { result.launch_ = launch_; } else { result.launch_ = launchBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (launchGroupBuilder_ == null) { result.launchGroup_ = launchGroup_; } else { result.launchGroup_ = launchGroupBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (reserveBuilder_ == null) { result.reserve_ = reserve_; } else { result.reserve_ = reserveBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (unreserveBuilder_ == null) { result.unreserve_ = unreserve_; } else { result.unreserve_ = unreserveBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (createBuilder_ == null) { result.create_ = create_; } else { result.create_ = createBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (destroyBuilder_ == null) { result.destroy_ = destroy_; } else { result.destroy_ = destroyBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (growVolumeBuilder_ == null) { result.growVolume_ = growVolume_; } else { result.growVolume_ = growVolumeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } if (shrinkVolumeBuilder_ == null) { result.shrinkVolume_ = shrinkVolume_; } else { result.shrinkVolume_ = shrinkVolumeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } if (createDiskBuilder_ == null) { result.createDisk_ = createDisk_; } else { result.createDisk_ = createDiskBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } if (destroyDiskBuilder_ == null) { result.destroyDisk_ = destroyDisk_; } else { result.destroyDisk_ = destroyDiskBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer.Operation) { return mergeFrom((org.apache.mesos.v1.Protos.Offer.Operation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer.Operation other) { if (other == org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasId()) { mergeId(other.getId()); } if (other.hasLaunch()) { mergeLaunch(other.getLaunch()); } if (other.hasLaunchGroup()) { mergeLaunchGroup(other.getLaunchGroup()); } if (other.hasReserve()) { mergeReserve(other.getReserve()); } if (other.hasUnreserve()) { mergeUnreserve(other.getUnreserve()); } if (other.hasCreate()) { mergeCreate(other.getCreate()); } if (other.hasDestroy()) { mergeDestroy(other.getDestroy()); } if (other.hasGrowVolume()) { mergeGrowVolume(other.getGrowVolume()); } if (other.hasShrinkVolume()) { mergeShrinkVolume(other.getShrinkVolume()); } if (other.hasCreateDisk()) { mergeCreateDisk(other.getCreateDisk()); } if (other.hasDestroyDisk()) { mergeDestroyDisk(other.getDestroyDisk()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasId()) { if (!getId().isInitialized()) { return false; } } if (hasLaunch()) { if (!getLaunch().isInitialized()) { return false; } } if (hasLaunchGroup()) { if (!getLaunchGroup().isInitialized()) { return false; } } if (hasReserve()) { if (!getReserve().isInitialized()) { return false; } } if (hasUnreserve()) { if (!getUnreserve().isInitialized()) { return false; } } if (hasCreate()) { if (!getCreate().isInitialized()) { return false; } } if (hasDestroy()) { if (!getDestroy().isInitialized()) { return false; } } if (hasGrowVolume()) { if (!getGrowVolume().isInitialized()) { return false; } } if (hasShrinkVolume()) { if (!getShrinkVolume().isInitialized()) { return false; } } if (hasCreateDisk()) { if (!getCreateDisk().isInitialized()) { return false; } } if (hasDestroyDisk()) { if (!getDestroyDisk().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.Protos.Offer.Operation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer.Operation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * optional .mesos.v1.Offer.Operation.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Offer.Operation.Type type = 1; */ public org.apache.mesos.v1.Protos.Offer.Operation.Type getType() { org.apache.mesos.v1.Protos.Offer.Operation.Type result = org.apache.mesos.v1.Protos.Offer.Operation.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Offer.Operation.Type.UNKNOWN : result; } /** * optional .mesos.v1.Offer.Operation.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.Offer.Operation.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.Offer.Operation.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.OperationID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationID, org.apache.mesos.v1.Protos.OperationID.Builder, org.apache.mesos.v1.Protos.OperationIDOrBuilder> idBuilder_; /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ public org.apache.mesos.v1.Protos.OperationID getId() { if (idBuilder_ == null) { return id_ == null ? org.apache.mesos.v1.Protos.OperationID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ public Builder setId(org.apache.mesos.v1.Protos.OperationID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ public Builder setId( org.apache.mesos.v1.Protos.OperationID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ public Builder mergeId(org.apache.mesos.v1.Protos.OperationID value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && id_ != null && id_ != org.apache.mesos.v1.Protos.OperationID.getDefaultInstance()) { id_ = org.apache.mesos.v1.Protos.OperationID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ public org.apache.mesos.v1.Protos.OperationID.Builder getIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ public org.apache.mesos.v1.Protos.OperationIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.apache.mesos.v1.Protos.OperationID.getDefaultInstance() : id_; } } /** *
         * The `id` field allows frameworks to indicate that they wish to receive
         * feedback about an operation via the UPDATE_OPERATION_STATUS event in the
         * v1 scheduler API.
         * 
* * optional .mesos.v1.OperationID id = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationID, org.apache.mesos.v1.Protos.OperationID.Builder, org.apache.mesos.v1.Protos.OperationIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationID, org.apache.mesos.v1.Protos.OperationID.Builder, org.apache.mesos.v1.Protos.OperationIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.Launch launch_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Launch, org.apache.mesos.v1.Protos.Offer.Operation.Launch.Builder, org.apache.mesos.v1.Protos.Offer.Operation.LaunchOrBuilder> launchBuilder_; /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public boolean hasLaunch() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public org.apache.mesos.v1.Protos.Offer.Operation.Launch getLaunch() { if (launchBuilder_ == null) { return launch_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Launch.getDefaultInstance() : launch_; } else { return launchBuilder_.getMessage(); } } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public Builder setLaunch(org.apache.mesos.v1.Protos.Offer.Operation.Launch value) { if (launchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } launch_ = value; onChanged(); } else { launchBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public Builder setLaunch( org.apache.mesos.v1.Protos.Offer.Operation.Launch.Builder builderForValue) { if (launchBuilder_ == null) { launch_ = builderForValue.build(); onChanged(); } else { launchBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public Builder mergeLaunch(org.apache.mesos.v1.Protos.Offer.Operation.Launch value) { if (launchBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && launch_ != null && launch_ != org.apache.mesos.v1.Protos.Offer.Operation.Launch.getDefaultInstance()) { launch_ = org.apache.mesos.v1.Protos.Offer.Operation.Launch.newBuilder(launch_).mergeFrom(value).buildPartial(); } else { launch_ = value; } onChanged(); } else { launchBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public Builder clearLaunch() { if (launchBuilder_ == null) { launch_ = null; onChanged(); } else { launchBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public org.apache.mesos.v1.Protos.Offer.Operation.Launch.Builder getLaunchBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLaunchFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ public org.apache.mesos.v1.Protos.Offer.Operation.LaunchOrBuilder getLaunchOrBuilder() { if (launchBuilder_ != null) { return launchBuilder_.getMessageOrBuilder(); } else { return launch_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Launch.getDefaultInstance() : launch_; } } /** * optional .mesos.v1.Offer.Operation.Launch launch = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Launch, org.apache.mesos.v1.Protos.Offer.Operation.Launch.Builder, org.apache.mesos.v1.Protos.Offer.Operation.LaunchOrBuilder> getLaunchFieldBuilder() { if (launchBuilder_ == null) { launchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Launch, org.apache.mesos.v1.Protos.Offer.Operation.Launch.Builder, org.apache.mesos.v1.Protos.Offer.Operation.LaunchOrBuilder>( getLaunch(), getParentForChildren(), isClean()); launch_ = null; } return launchBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup launchGroup_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup, org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.Builder, org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroupOrBuilder> launchGroupBuilder_; /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public boolean hasLaunchGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup getLaunchGroup() { if (launchGroupBuilder_ == null) { return launchGroup_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.getDefaultInstance() : launchGroup_; } else { return launchGroupBuilder_.getMessage(); } } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public Builder setLaunchGroup(org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup value) { if (launchGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } launchGroup_ = value; onChanged(); } else { launchGroupBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public Builder setLaunchGroup( org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.Builder builderForValue) { if (launchGroupBuilder_ == null) { launchGroup_ = builderForValue.build(); onChanged(); } else { launchGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public Builder mergeLaunchGroup(org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup value) { if (launchGroupBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && launchGroup_ != null && launchGroup_ != org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.getDefaultInstance()) { launchGroup_ = org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.newBuilder(launchGroup_).mergeFrom(value).buildPartial(); } else { launchGroup_ = value; } onChanged(); } else { launchGroupBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public Builder clearLaunchGroup() { if (launchGroupBuilder_ == null) { launchGroup_ = null; onChanged(); } else { launchGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.Builder getLaunchGroupBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLaunchGroupFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ public org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroupOrBuilder getLaunchGroupOrBuilder() { if (launchGroupBuilder_ != null) { return launchGroupBuilder_.getMessageOrBuilder(); } else { return launchGroup_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.getDefaultInstance() : launchGroup_; } } /** * optional .mesos.v1.Offer.Operation.LaunchGroup launch_group = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup, org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.Builder, org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroupOrBuilder> getLaunchGroupFieldBuilder() { if (launchGroupBuilder_ == null) { launchGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup, org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroup.Builder, org.apache.mesos.v1.Protos.Offer.Operation.LaunchGroupOrBuilder>( getLaunchGroup(), getParentForChildren(), isClean()); launchGroup_ = null; } return launchGroupBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.Reserve reserve_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Reserve, org.apache.mesos.v1.Protos.Offer.Operation.Reserve.Builder, org.apache.mesos.v1.Protos.Offer.Operation.ReserveOrBuilder> reserveBuilder_; /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public boolean hasReserve() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public org.apache.mesos.v1.Protos.Offer.Operation.Reserve getReserve() { if (reserveBuilder_ == null) { return reserve_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Reserve.getDefaultInstance() : reserve_; } else { return reserveBuilder_.getMessage(); } } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public Builder setReserve(org.apache.mesos.v1.Protos.Offer.Operation.Reserve value) { if (reserveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reserve_ = value; onChanged(); } else { reserveBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public Builder setReserve( org.apache.mesos.v1.Protos.Offer.Operation.Reserve.Builder builderForValue) { if (reserveBuilder_ == null) { reserve_ = builderForValue.build(); onChanged(); } else { reserveBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public Builder mergeReserve(org.apache.mesos.v1.Protos.Offer.Operation.Reserve value) { if (reserveBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && reserve_ != null && reserve_ != org.apache.mesos.v1.Protos.Offer.Operation.Reserve.getDefaultInstance()) { reserve_ = org.apache.mesos.v1.Protos.Offer.Operation.Reserve.newBuilder(reserve_).mergeFrom(value).buildPartial(); } else { reserve_ = value; } onChanged(); } else { reserveBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public Builder clearReserve() { if (reserveBuilder_ == null) { reserve_ = null; onChanged(); } else { reserveBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public org.apache.mesos.v1.Protos.Offer.Operation.Reserve.Builder getReserveBuilder() { bitField0_ |= 0x00000010; onChanged(); return getReserveFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ public org.apache.mesos.v1.Protos.Offer.Operation.ReserveOrBuilder getReserveOrBuilder() { if (reserveBuilder_ != null) { return reserveBuilder_.getMessageOrBuilder(); } else { return reserve_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Reserve.getDefaultInstance() : reserve_; } } /** * optional .mesos.v1.Offer.Operation.Reserve reserve = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Reserve, org.apache.mesos.v1.Protos.Offer.Operation.Reserve.Builder, org.apache.mesos.v1.Protos.Offer.Operation.ReserveOrBuilder> getReserveFieldBuilder() { if (reserveBuilder_ == null) { reserveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Reserve, org.apache.mesos.v1.Protos.Offer.Operation.Reserve.Builder, org.apache.mesos.v1.Protos.Offer.Operation.ReserveOrBuilder>( getReserve(), getParentForChildren(), isClean()); reserve_ = null; } return reserveBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.Unreserve unreserve_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Unreserve, org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.Builder, org.apache.mesos.v1.Protos.Offer.Operation.UnreserveOrBuilder> unreserveBuilder_; /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public boolean hasUnreserve() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public org.apache.mesos.v1.Protos.Offer.Operation.Unreserve getUnreserve() { if (unreserveBuilder_ == null) { return unreserve_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.getDefaultInstance() : unreserve_; } else { return unreserveBuilder_.getMessage(); } } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public Builder setUnreserve(org.apache.mesos.v1.Protos.Offer.Operation.Unreserve value) { if (unreserveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unreserve_ = value; onChanged(); } else { unreserveBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public Builder setUnreserve( org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.Builder builderForValue) { if (unreserveBuilder_ == null) { unreserve_ = builderForValue.build(); onChanged(); } else { unreserveBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public Builder mergeUnreserve(org.apache.mesos.v1.Protos.Offer.Operation.Unreserve value) { if (unreserveBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && unreserve_ != null && unreserve_ != org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.getDefaultInstance()) { unreserve_ = org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.newBuilder(unreserve_).mergeFrom(value).buildPartial(); } else { unreserve_ = value; } onChanged(); } else { unreserveBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public Builder clearUnreserve() { if (unreserveBuilder_ == null) { unreserve_ = null; onChanged(); } else { unreserveBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.Builder getUnreserveBuilder() { bitField0_ |= 0x00000020; onChanged(); return getUnreserveFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ public org.apache.mesos.v1.Protos.Offer.Operation.UnreserveOrBuilder getUnreserveOrBuilder() { if (unreserveBuilder_ != null) { return unreserveBuilder_.getMessageOrBuilder(); } else { return unreserve_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.getDefaultInstance() : unreserve_; } } /** * optional .mesos.v1.Offer.Operation.Unreserve unreserve = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Unreserve, org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.Builder, org.apache.mesos.v1.Protos.Offer.Operation.UnreserveOrBuilder> getUnreserveFieldBuilder() { if (unreserveBuilder_ == null) { unreserveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Unreserve, org.apache.mesos.v1.Protos.Offer.Operation.Unreserve.Builder, org.apache.mesos.v1.Protos.Offer.Operation.UnreserveOrBuilder>( getUnreserve(), getParentForChildren(), isClean()); unreserve_ = null; } return unreserveBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.Create create_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Create, org.apache.mesos.v1.Protos.Offer.Operation.Create.Builder, org.apache.mesos.v1.Protos.Offer.Operation.CreateOrBuilder> createBuilder_; /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public boolean hasCreate() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public org.apache.mesos.v1.Protos.Offer.Operation.Create getCreate() { if (createBuilder_ == null) { return create_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Create.getDefaultInstance() : create_; } else { return createBuilder_.getMessage(); } } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public Builder setCreate(org.apache.mesos.v1.Protos.Offer.Operation.Create value) { if (createBuilder_ == null) { if (value == null) { throw new NullPointerException(); } create_ = value; onChanged(); } else { createBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public Builder setCreate( org.apache.mesos.v1.Protos.Offer.Operation.Create.Builder builderForValue) { if (createBuilder_ == null) { create_ = builderForValue.build(); onChanged(); } else { createBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public Builder mergeCreate(org.apache.mesos.v1.Protos.Offer.Operation.Create value) { if (createBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && create_ != null && create_ != org.apache.mesos.v1.Protos.Offer.Operation.Create.getDefaultInstance()) { create_ = org.apache.mesos.v1.Protos.Offer.Operation.Create.newBuilder(create_).mergeFrom(value).buildPartial(); } else { create_ = value; } onChanged(); } else { createBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public Builder clearCreate() { if (createBuilder_ == null) { create_ = null; onChanged(); } else { createBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public org.apache.mesos.v1.Protos.Offer.Operation.Create.Builder getCreateBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCreateFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ public org.apache.mesos.v1.Protos.Offer.Operation.CreateOrBuilder getCreateOrBuilder() { if (createBuilder_ != null) { return createBuilder_.getMessageOrBuilder(); } else { return create_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Create.getDefaultInstance() : create_; } } /** * optional .mesos.v1.Offer.Operation.Create create = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Create, org.apache.mesos.v1.Protos.Offer.Operation.Create.Builder, org.apache.mesos.v1.Protos.Offer.Operation.CreateOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Create, org.apache.mesos.v1.Protos.Offer.Operation.Create.Builder, org.apache.mesos.v1.Protos.Offer.Operation.CreateOrBuilder>( getCreate(), getParentForChildren(), isClean()); create_ = null; } return createBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.Destroy destroy_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Destroy, org.apache.mesos.v1.Protos.Offer.Operation.Destroy.Builder, org.apache.mesos.v1.Protos.Offer.Operation.DestroyOrBuilder> destroyBuilder_; /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public boolean hasDestroy() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public org.apache.mesos.v1.Protos.Offer.Operation.Destroy getDestroy() { if (destroyBuilder_ == null) { return destroy_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Destroy.getDefaultInstance() : destroy_; } else { return destroyBuilder_.getMessage(); } } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public Builder setDestroy(org.apache.mesos.v1.Protos.Offer.Operation.Destroy value) { if (destroyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } destroy_ = value; onChanged(); } else { destroyBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public Builder setDestroy( org.apache.mesos.v1.Protos.Offer.Operation.Destroy.Builder builderForValue) { if (destroyBuilder_ == null) { destroy_ = builderForValue.build(); onChanged(); } else { destroyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public Builder mergeDestroy(org.apache.mesos.v1.Protos.Offer.Operation.Destroy value) { if (destroyBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && destroy_ != null && destroy_ != org.apache.mesos.v1.Protos.Offer.Operation.Destroy.getDefaultInstance()) { destroy_ = org.apache.mesos.v1.Protos.Offer.Operation.Destroy.newBuilder(destroy_).mergeFrom(value).buildPartial(); } else { destroy_ = value; } onChanged(); } else { destroyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public Builder clearDestroy() { if (destroyBuilder_ == null) { destroy_ = null; onChanged(); } else { destroyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public org.apache.mesos.v1.Protos.Offer.Operation.Destroy.Builder getDestroyBuilder() { bitField0_ |= 0x00000080; onChanged(); return getDestroyFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ public org.apache.mesos.v1.Protos.Offer.Operation.DestroyOrBuilder getDestroyOrBuilder() { if (destroyBuilder_ != null) { return destroyBuilder_.getMessageOrBuilder(); } else { return destroy_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.Destroy.getDefaultInstance() : destroy_; } } /** * optional .mesos.v1.Offer.Operation.Destroy destroy = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Destroy, org.apache.mesos.v1.Protos.Offer.Operation.Destroy.Builder, org.apache.mesos.v1.Protos.Offer.Operation.DestroyOrBuilder> getDestroyFieldBuilder() { if (destroyBuilder_ == null) { destroyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.Destroy, org.apache.mesos.v1.Protos.Offer.Operation.Destroy.Builder, org.apache.mesos.v1.Protos.Offer.Operation.DestroyOrBuilder>( getDestroy(), getParentForChildren(), isClean()); destroy_ = null; } return destroyBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume growVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume, org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.Builder, org.apache.mesos.v1.Protos.Offer.Operation.GrowVolumeOrBuilder> growVolumeBuilder_; /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public boolean hasGrowVolume() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume getGrowVolume() { if (growVolumeBuilder_ == null) { return growVolume_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.getDefaultInstance() : growVolume_; } else { return growVolumeBuilder_.getMessage(); } } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public Builder setGrowVolume(org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume value) { if (growVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } growVolume_ = value; onChanged(); } else { growVolumeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public Builder setGrowVolume( org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.Builder builderForValue) { if (growVolumeBuilder_ == null) { growVolume_ = builderForValue.build(); onChanged(); } else { growVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public Builder mergeGrowVolume(org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume value) { if (growVolumeBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && growVolume_ != null && growVolume_ != org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.getDefaultInstance()) { growVolume_ = org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.newBuilder(growVolume_).mergeFrom(value).buildPartial(); } else { growVolume_ = value; } onChanged(); } else { growVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public Builder clearGrowVolume() { if (growVolumeBuilder_ == null) { growVolume_ = null; onChanged(); } else { growVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.Builder getGrowVolumeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getGrowVolumeFieldBuilder().getBuilder(); } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ public org.apache.mesos.v1.Protos.Offer.Operation.GrowVolumeOrBuilder getGrowVolumeOrBuilder() { if (growVolumeBuilder_ != null) { return growVolumeBuilder_.getMessageOrBuilder(); } else { return growVolume_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.getDefaultInstance() : growVolume_; } } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.GrowVolume grow_volume = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume, org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.Builder, org.apache.mesos.v1.Protos.Offer.Operation.GrowVolumeOrBuilder> getGrowVolumeFieldBuilder() { if (growVolumeBuilder_ == null) { growVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume, org.apache.mesos.v1.Protos.Offer.Operation.GrowVolume.Builder, org.apache.mesos.v1.Protos.Offer.Operation.GrowVolumeOrBuilder>( getGrowVolume(), getParentForChildren(), isClean()); growVolume_ = null; } return growVolumeBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume shrinkVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume, org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.Builder, org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolumeOrBuilder> shrinkVolumeBuilder_; /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public boolean hasShrinkVolume() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume getShrinkVolume() { if (shrinkVolumeBuilder_ == null) { return shrinkVolume_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.getDefaultInstance() : shrinkVolume_; } else { return shrinkVolumeBuilder_.getMessage(); } } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public Builder setShrinkVolume(org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume value) { if (shrinkVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shrinkVolume_ = value; onChanged(); } else { shrinkVolumeBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public Builder setShrinkVolume( org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.Builder builderForValue) { if (shrinkVolumeBuilder_ == null) { shrinkVolume_ = builderForValue.build(); onChanged(); } else { shrinkVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public Builder mergeShrinkVolume(org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume value) { if (shrinkVolumeBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && shrinkVolume_ != null && shrinkVolume_ != org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.getDefaultInstance()) { shrinkVolume_ = org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.newBuilder(shrinkVolume_).mergeFrom(value).buildPartial(); } else { shrinkVolume_ = value; } onChanged(); } else { shrinkVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public Builder clearShrinkVolume() { if (shrinkVolumeBuilder_ == null) { shrinkVolume_ = null; onChanged(); } else { shrinkVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.Builder getShrinkVolumeBuilder() { bitField0_ |= 0x00000200; onChanged(); return getShrinkVolumeFieldBuilder().getBuilder(); } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ public org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolumeOrBuilder getShrinkVolumeOrBuilder() { if (shrinkVolumeBuilder_ != null) { return shrinkVolumeBuilder_.getMessageOrBuilder(); } else { return shrinkVolume_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.getDefaultInstance() : shrinkVolume_; } } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.ShrinkVolume shrink_volume = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume, org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.Builder, org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolumeOrBuilder> getShrinkVolumeFieldBuilder() { if (shrinkVolumeBuilder_ == null) { shrinkVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume, org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolume.Builder, org.apache.mesos.v1.Protos.Offer.Operation.ShrinkVolumeOrBuilder>( getShrinkVolume(), getParentForChildren(), isClean()); shrinkVolume_ = null; } return shrinkVolumeBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk createDisk_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk, org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.Builder, org.apache.mesos.v1.Protos.Offer.Operation.CreateDiskOrBuilder> createDiskBuilder_; /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public boolean hasCreateDisk() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk getCreateDisk() { if (createDiskBuilder_ == null) { return createDisk_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.getDefaultInstance() : createDisk_; } else { return createDiskBuilder_.getMessage(); } } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public Builder setCreateDisk(org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk value) { if (createDiskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createDisk_ = value; onChanged(); } else { createDiskBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public Builder setCreateDisk( org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.Builder builderForValue) { if (createDiskBuilder_ == null) { createDisk_ = builderForValue.build(); onChanged(); } else { createDiskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public Builder mergeCreateDisk(org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk value) { if (createDiskBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && createDisk_ != null && createDisk_ != org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.getDefaultInstance()) { createDisk_ = org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.newBuilder(createDisk_).mergeFrom(value).buildPartial(); } else { createDisk_ = value; } onChanged(); } else { createDiskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public Builder clearCreateDisk() { if (createDiskBuilder_ == null) { createDisk_ = null; onChanged(); } else { createDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.Builder getCreateDiskBuilder() { bitField0_ |= 0x00000400; onChanged(); return getCreateDiskFieldBuilder().getBuilder(); } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ public org.apache.mesos.v1.Protos.Offer.Operation.CreateDiskOrBuilder getCreateDiskOrBuilder() { if (createDiskBuilder_ != null) { return createDiskBuilder_.getMessageOrBuilder(); } else { return createDisk_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.getDefaultInstance() : createDisk_; } } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.CreateDisk create_disk = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk, org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.Builder, org.apache.mesos.v1.Protos.Offer.Operation.CreateDiskOrBuilder> getCreateDiskFieldBuilder() { if (createDiskBuilder_ == null) { createDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk, org.apache.mesos.v1.Protos.Offer.Operation.CreateDisk.Builder, org.apache.mesos.v1.Protos.Offer.Operation.CreateDiskOrBuilder>( getCreateDisk(), getParentForChildren(), isClean()); createDisk_ = null; } return createDiskBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk destroyDisk_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk, org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.Builder, org.apache.mesos.v1.Protos.Offer.Operation.DestroyDiskOrBuilder> destroyDiskBuilder_; /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public boolean hasDestroyDisk() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk getDestroyDisk() { if (destroyDiskBuilder_ == null) { return destroyDisk_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.getDefaultInstance() : destroyDisk_; } else { return destroyDiskBuilder_.getMessage(); } } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public Builder setDestroyDisk(org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk value) { if (destroyDiskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } destroyDisk_ = value; onChanged(); } else { destroyDiskBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public Builder setDestroyDisk( org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.Builder builderForValue) { if (destroyDiskBuilder_ == null) { destroyDisk_ = builderForValue.build(); onChanged(); } else { destroyDiskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public Builder mergeDestroyDisk(org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk value) { if (destroyDiskBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && destroyDisk_ != null && destroyDisk_ != org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.getDefaultInstance()) { destroyDisk_ = org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.newBuilder(destroyDisk_).mergeFrom(value).buildPartial(); } else { destroyDisk_ = value; } onChanged(); } else { destroyDiskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public Builder clearDestroyDisk() { if (destroyDiskBuilder_ == null) { destroyDisk_ = null; onChanged(); } else { destroyDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.Builder getDestroyDiskBuilder() { bitField0_ |= 0x00000800; onChanged(); return getDestroyDiskFieldBuilder().getBuilder(); } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ public org.apache.mesos.v1.Protos.Offer.Operation.DestroyDiskOrBuilder getDestroyDiskOrBuilder() { if (destroyDiskBuilder_ != null) { return destroyDiskBuilder_.getMessageOrBuilder(); } else { return destroyDisk_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.getDefaultInstance() : destroyDisk_; } } /** *
         * EXPERIMENTAL.
         * 
* * optional .mesos.v1.Offer.Operation.DestroyDisk destroy_disk = 16; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk, org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.Builder, org.apache.mesos.v1.Protos.Offer.Operation.DestroyDiskOrBuilder> getDestroyDiskFieldBuilder() { if (destroyDiskBuilder_ == null) { destroyDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk, org.apache.mesos.v1.Protos.Offer.Operation.DestroyDisk.Builder, org.apache.mesos.v1.Protos.Offer.Operation.DestroyDiskOrBuilder>( getDestroyDisk(), getParentForChildren(), isClean()); destroyDisk_ = null; } return destroyDiskBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer.Operation) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer.Operation) private static final org.apache.mesos.v1.Protos.Offer.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer.Operation(); } public static org.apache.mesos.v1.Protos.Offer.Operation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Operation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Operation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer.Operation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.OfferID id_; /** * required .mesos.v1.OfferID id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferID getId() { return id_ == null ? org.apache.mesos.v1.Protos.OfferID.getDefaultInstance() : id_; } /** * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferIDOrBuilder getIdOrBuilder() { return id_ == null ? org.apache.mesos.v1.Protos.OfferID.getDefaultInstance() : id_; } public static final int FRAMEWORK_ID_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.FrameworkID frameworkId_; /** * required .mesos.v1.FrameworkID framework_id = 2; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } public static final int AGENT_ID_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.AgentID agentId_; /** * required .mesos.v1.AgentID agent_id = 3; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } public static final int HOSTNAME_FIELD_NUMBER = 4; private volatile java.lang.Object hostname_; /** * required string hostname = 4; */ public boolean hasHostname() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required string hostname = 4; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** * required string hostname = 4; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URL_FIELD_NUMBER = 8; private org.apache.mesos.v1.Protos.URL url_; /** *
     * URL for reaching the agent running on the host.
     * 
* * optional .mesos.v1.URL url = 8; */ public boolean hasUrl() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * URL for reaching the agent running on the host.
     * 
* * optional .mesos.v1.URL url = 8; */ public org.apache.mesos.v1.Protos.URL getUrl() { return url_ == null ? org.apache.mesos.v1.Protos.URL.getDefaultInstance() : url_; } /** *
     * URL for reaching the agent running on the host.
     * 
* * optional .mesos.v1.URL url = 8; */ public org.apache.mesos.v1.Protos.URLOrBuilder getUrlOrBuilder() { return url_ == null ? org.apache.mesos.v1.Protos.URL.getDefaultInstance() : url_; } public static final int DOMAIN_FIELD_NUMBER = 11; private org.apache.mesos.v1.Protos.DomainInfo domain_; /** *
     * The domain of the agent.
     * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public boolean hasDomain() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * The domain of the agent.
     * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public org.apache.mesos.v1.Protos.DomainInfo getDomain() { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } /** *
     * The domain of the agent.
     * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder() { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } public static final int RESOURCES_FIELD_NUMBER = 5; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 5; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int ATTRIBUTES_FIELD_NUMBER = 7; private java.util.List attributes_; /** * repeated .mesos.v1.Attribute attributes = 7; */ public java.util.List getAttributesList() { return attributes_; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public java.util.List getAttributesOrBuilderList() { return attributes_; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public int getAttributesCount() { return attributes_.size(); } /** * repeated .mesos.v1.Attribute attributes = 7; */ public org.apache.mesos.v1.Protos.Attribute getAttributes(int index) { return attributes_.get(index); } /** * repeated .mesos.v1.Attribute attributes = 7; */ public org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index) { return attributes_.get(index); } public static final int EXECUTOR_IDS_FIELD_NUMBER = 6; private java.util.List executorIds_; /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public java.util.List getExecutorIdsList() { return executorIds_; } /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public java.util.List getExecutorIdsOrBuilderList() { return executorIds_; } /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public int getExecutorIdsCount() { return executorIds_.size(); } /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorIds(int index) { return executorIds_.get(index); } /** *
     * Executors of the same framework running on this agent.
     * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdsOrBuilder( int index) { return executorIds_.get(index); } public static final int UNAVAILABILITY_FIELD_NUMBER = 9; private org.apache.mesos.v1.Protos.Unavailability unavailability_; /** *
     * Signifies that the resources in this Offer may be unavailable during
     * the given interval.  Any tasks launched using these resources may be
     * killed when the interval arrives.  For example, these resources may be
     * part of a planned maintenance schedule.
     * This field only provides information about a planned unavailability.
     * The unavailability interval may not necessarily start at exactly this
     * interval, nor last for exactly the duration of this interval.
     * The unavailability may also be forever!  See comments in
     * `Unavailability` for more details.
     * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public boolean hasUnavailability() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * Signifies that the resources in this Offer may be unavailable during
     * the given interval.  Any tasks launched using these resources may be
     * killed when the interval arrives.  For example, these resources may be
     * part of a planned maintenance schedule.
     * This field only provides information about a planned unavailability.
     * The unavailability interval may not necessarily start at exactly this
     * interval, nor last for exactly the duration of this interval.
     * The unavailability may also be forever!  See comments in
     * `Unavailability` for more details.
     * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public org.apache.mesos.v1.Protos.Unavailability getUnavailability() { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } /** *
     * Signifies that the resources in this Offer may be unavailable during
     * the given interval.  Any tasks launched using these resources may be
     * killed when the interval arrives.  For example, these resources may be
     * part of a planned maintenance schedule.
     * This field only provides information about a planned unavailability.
     * The unavailability interval may not necessarily start at exactly this
     * interval, nor last for exactly the duration of this interval.
     * The unavailability may also be forever!  See comments in
     * `Unavailability` for more details.
     * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder() { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } public static final int ALLOCATION_INFO_FIELD_NUMBER = 10; private org.apache.mesos.v1.Protos.Resource.AllocationInfo allocationInfo_; /** *
     * An offer represents resources allocated to *one* of the
     * roles managed by the scheduler. (Therefore, each
     * `Offer.resources[i].allocation_info` will match the
     * top level `Offer.allocation_info`).
     * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public boolean hasAllocationInfo() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     * An offer represents resources allocated to *one* of the
     * roles managed by the scheduler. (Therefore, each
     * `Offer.resources[i].allocation_info` will match the
     * top level `Offer.allocation_info`).
     * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfo getAllocationInfo() { return allocationInfo_ == null ? org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance() : allocationInfo_; } /** *
     * An offer represents resources allocated to *one* of the
     * roles managed by the scheduler. (Therefore, each
     * `Offer.resources[i].allocation_info` will match the
     * top level `Offer.allocation_info`).
     * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder() { return allocationInfo_ == null ? org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance() : allocationInfo_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasFrameworkId()) { memoizedIsInitialized = 0; return false; } if (!hasAgentId()) { memoizedIsInitialized = 0; return false; } if (!hasHostname()) { memoizedIsInitialized = 0; return false; } if (!getId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getFrameworkId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasUrl()) { if (!getUrl().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDomain()) { if (!getDomain().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getAttributesCount(); i++) { if (!getAttributes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getExecutorIdsCount(); i++) { if (!getExecutorIds(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasUnavailability()) { if (!getUnavailability().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getFrameworkId()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getAgentId()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hostname_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(5, resources_.get(i)); } for (int i = 0; i < executorIds_.size(); i++) { output.writeMessage(6, executorIds_.get(i)); } for (int i = 0; i < attributes_.size(); i++) { output.writeMessage(7, attributes_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(8, getUrl()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(9, getUnavailability()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(10, getAllocationInfo()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(11, getDomain()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFrameworkId()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAgentId()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hostname_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, resources_.get(i)); } for (int i = 0; i < executorIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, executorIds_.get(i)); } for (int i = 0; i < attributes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, attributes_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getUrl()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getUnavailability()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAllocationInfo()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getDomain()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Offer)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Offer other = (org.apache.mesos.v1.Protos.Offer) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasFrameworkId() == other.hasFrameworkId()); if (hasFrameworkId()) { result = result && getFrameworkId() .equals(other.getFrameworkId()); } result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname() .equals(other.getHostname()); } result = result && (hasUrl() == other.hasUrl()); if (hasUrl()) { result = result && getUrl() .equals(other.getUrl()); } result = result && (hasDomain() == other.hasDomain()); if (hasDomain()) { result = result && getDomain() .equals(other.getDomain()); } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && getAttributesList() .equals(other.getAttributesList()); result = result && getExecutorIdsList() .equals(other.getExecutorIdsList()); result = result && (hasUnavailability() == other.hasUnavailability()); if (hasUnavailability()) { result = result && getUnavailability() .equals(other.getUnavailability()); } result = result && (hasAllocationInfo() == other.hasAllocationInfo()); if (hasAllocationInfo()) { result = result && getAllocationInfo() .equals(other.getAllocationInfo()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasFrameworkId()) { hash = (37 * hash) + FRAMEWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getFrameworkId().hashCode(); } if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasUrl()) { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); } if (hasDomain()) { hash = (37 * hash) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getDomain().hashCode(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (getAttributesCount() > 0) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributesList().hashCode(); } if (getExecutorIdsCount() > 0) { hash = (37 * hash) + EXECUTOR_IDS_FIELD_NUMBER; hash = (53 * hash) + getExecutorIdsList().hashCode(); } if (hasUnavailability()) { hash = (37 * hash) + UNAVAILABILITY_FIELD_NUMBER; hash = (53 * hash) + getUnavailability().hashCode(); } if (hasAllocationInfo()) { hash = (37 * hash) + ALLOCATION_INFO_FIELD_NUMBER; hash = (53 * hash) + getAllocationInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Offer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer 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.Protos.Offer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Offer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Offer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Offer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Offer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes some resources available on an agent. An offer only
     * contains resources from a single agent.
     * 
* * Protobuf type {@code mesos.v1.Offer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Offer) org.apache.mesos.v1.Protos.OfferOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Offer.class, org.apache.mesos.v1.Protos.Offer.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Offer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdFieldBuilder(); getFrameworkIdFieldBuilder(); getAgentIdFieldBuilder(); getUrlFieldBuilder(); getDomainFieldBuilder(); getResourcesFieldBuilder(); getAttributesFieldBuilder(); getExecutorIdsFieldBuilder(); getUnavailabilityFieldBuilder(); getAllocationInfoFieldBuilder(); } } public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (frameworkIdBuilder_ == null) { frameworkId_ = null; } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (agentIdBuilder_ == null) { agentId_ = null; } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (urlBuilder_ == null) { url_ = null; } else { urlBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (domainBuilder_ == null) { domain_ = null; } else { domainBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { resourcesBuilder_.clear(); } if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { attributesBuilder_.clear(); } if (executorIdsBuilder_ == null) { executorIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { executorIdsBuilder_.clear(); } if (unavailabilityBuilder_ == null) { unavailability_ = null; } else { unavailabilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (allocationInfoBuilder_ == null) { allocationInfo_ = null; } else { allocationInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Offer_descriptor; } public org.apache.mesos.v1.Protos.Offer getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Offer.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Offer build() { org.apache.mesos.v1.Protos.Offer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Offer buildPartial() { org.apache.mesos.v1.Protos.Offer result = new org.apache.mesos.v1.Protos.Offer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (frameworkIdBuilder_ == null) { result.frameworkId_ = frameworkId_; } else { result.frameworkId_ = frameworkIdBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (agentIdBuilder_ == null) { result.agentId_ = agentId_; } else { result.agentId_ = agentIdBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (urlBuilder_ == null) { result.url_ = url_; } else { result.url_ = urlBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (domainBuilder_ == null) { result.domain_ = domain_; } else { result.domain_ = domainBuilder_.build(); } if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000040); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (attributesBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); bitField0_ = (bitField0_ & ~0x00000080); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } if (executorIdsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { executorIds_ = java.util.Collections.unmodifiableList(executorIds_); bitField0_ = (bitField0_ & ~0x00000100); } result.executorIds_ = executorIds_; } else { result.executorIds_ = executorIdsBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000040; } if (unavailabilityBuilder_ == null) { result.unavailability_ = unavailability_; } else { result.unavailability_ = unavailabilityBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000080; } if (allocationInfoBuilder_ == null) { result.allocationInfo_ = allocationInfo_; } else { result.allocationInfo_ = allocationInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Offer) { return mergeFrom((org.apache.mesos.v1.Protos.Offer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Offer other) { if (other == org.apache.mesos.v1.Protos.Offer.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasFrameworkId()) { mergeFrameworkId(other.getFrameworkId()); } if (other.hasAgentId()) { mergeAgentId(other.getAgentId()); } if (other.hasHostname()) { bitField0_ |= 0x00000008; hostname_ = other.hostname_; onChanged(); } if (other.hasUrl()) { mergeUrl(other.getUrl()); } if (other.hasDomain()) { mergeDomain(other.getDomain()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000040); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (attributesBuilder_ == null) { if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } } else { if (!other.attributes_.isEmpty()) { if (attributesBuilder_.isEmpty()) { attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000080); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() : null; } else { attributesBuilder_.addAllMessages(other.attributes_); } } } if (executorIdsBuilder_ == null) { if (!other.executorIds_.isEmpty()) { if (executorIds_.isEmpty()) { executorIds_ = other.executorIds_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureExecutorIdsIsMutable(); executorIds_.addAll(other.executorIds_); } onChanged(); } } else { if (!other.executorIds_.isEmpty()) { if (executorIdsBuilder_.isEmpty()) { executorIdsBuilder_.dispose(); executorIdsBuilder_ = null; executorIds_ = other.executorIds_; bitField0_ = (bitField0_ & ~0x00000100); executorIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExecutorIdsFieldBuilder() : null; } else { executorIdsBuilder_.addAllMessages(other.executorIds_); } } } if (other.hasUnavailability()) { mergeUnavailability(other.getUnavailability()); } if (other.hasAllocationInfo()) { mergeAllocationInfo(other.getAllocationInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasFrameworkId()) { return false; } if (!hasAgentId()) { return false; } if (!hasHostname()) { return false; } if (!getId().isInitialized()) { return false; } if (!getFrameworkId().isInitialized()) { return false; } if (!getAgentId().isInitialized()) { return false; } if (hasUrl()) { if (!getUrl().isInitialized()) { return false; } } if (hasDomain()) { if (!getDomain().isInitialized()) { return false; } } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } for (int i = 0; i < getAttributesCount(); i++) { if (!getAttributes(i).isInitialized()) { return false; } } for (int i = 0; i < getExecutorIdsCount(); i++) { if (!getExecutorIds(i).isInitialized()) { return false; } } if (hasUnavailability()) { if (!getUnavailability().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.Protos.Offer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Offer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.OfferID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> idBuilder_; /** * required .mesos.v1.OfferID id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferID getId() { if (idBuilder_ == null) { return id_ == null ? org.apache.mesos.v1.Protos.OfferID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * required .mesos.v1.OfferID id = 1; */ public Builder setId(org.apache.mesos.v1.Protos.OfferID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.OfferID id = 1; */ public Builder setId( org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.OfferID id = 1; */ public Builder mergeId(org.apache.mesos.v1.Protos.OfferID value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && id_ != null && id_ != org.apache.mesos.v1.Protos.OfferID.getDefaultInstance()) { id_ = org.apache.mesos.v1.Protos.OfferID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.OfferID id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferID.Builder getIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.apache.mesos.v1.Protos.OfferID.getDefaultInstance() : id_; } } /** * required .mesos.v1.OfferID id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private org.apache.mesos.v1.Protos.FrameworkID frameworkId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_; /** * required .mesos.v1.FrameworkID framework_id = 2; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { if (frameworkIdBuilder_ == null) { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } else { return frameworkIdBuilder_.getMessage(); } } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public Builder setFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) { if (frameworkIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } frameworkId_ = value; onChanged(); } else { frameworkIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public Builder setFrameworkId( org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) { if (frameworkIdBuilder_ == null) { frameworkId_ = builderForValue.build(); onChanged(); } else { frameworkIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) { if (frameworkIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && frameworkId_ != null && frameworkId_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial(); } else { frameworkId_ = value; } onChanged(); } else { frameworkIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public Builder clearFrameworkId() { if (frameworkIdBuilder_ == null) { frameworkId_ = null; onChanged(); } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFrameworkIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { if (frameworkIdBuilder_ != null) { return frameworkIdBuilder_.getMessageOrBuilder(); } else { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } } /** * required .mesos.v1.FrameworkID framework_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> getFrameworkIdFieldBuilder() { if (frameworkIdBuilder_ == null) { frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>( getFrameworkId(), getParentForChildren(), isClean()); frameworkId_ = null; } return frameworkIdBuilder_; } private org.apache.mesos.v1.Protos.AgentID agentId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_; /** * required .mesos.v1.AgentID agent_id = 3; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { if (agentIdBuilder_ == null) { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } else { return agentIdBuilder_.getMessage(); } } /** * required .mesos.v1.AgentID agent_id = 3; */ public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentId_ = value; onChanged(); } else { agentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.AgentID agent_id = 3; */ public Builder setAgentId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (agentIdBuilder_ == null) { agentId_ = builderForValue.build(); onChanged(); } else { agentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.AgentID agent_id = 3; */ public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && agentId_ != null && agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { agentId_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial(); } else { agentId_ = value; } onChanged(); } else { agentIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.AgentID agent_id = 3; */ public Builder clearAgentId() { if (agentIdBuilder_ == null) { agentId_ = null; onChanged(); } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAgentIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { if (agentIdBuilder_ != null) { return agentIdBuilder_.getMessageOrBuilder(); } else { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } } /** * required .mesos.v1.AgentID agent_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getAgentIdFieldBuilder() { if (agentIdBuilder_ == null) { agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getAgentId(), getParentForChildren(), isClean()); agentId_ = null; } return agentIdBuilder_; } private java.lang.Object hostname_ = ""; /** * required string hostname = 4; */ public boolean hasHostname() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required string hostname = 4; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string hostname = 4; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string hostname = 4; */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; hostname_ = value; onChanged(); return this; } /** * required string hostname = 4; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000008); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** * required string hostname = 4; */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; hostname_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.URL url_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.URL, org.apache.mesos.v1.Protos.URL.Builder, org.apache.mesos.v1.Protos.URLOrBuilder> urlBuilder_; /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ public boolean hasUrl() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ public org.apache.mesos.v1.Protos.URL getUrl() { if (urlBuilder_ == null) { return url_ == null ? org.apache.mesos.v1.Protos.URL.getDefaultInstance() : url_; } else { return urlBuilder_.getMessage(); } } /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ public Builder setUrl(org.apache.mesos.v1.Protos.URL value) { if (urlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); } else { urlBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ public Builder setUrl( org.apache.mesos.v1.Protos.URL.Builder builderForValue) { if (urlBuilder_ == null) { url_ = builderForValue.build(); onChanged(); } else { urlBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ public Builder mergeUrl(org.apache.mesos.v1.Protos.URL value) { if (urlBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && url_ != null && url_ != org.apache.mesos.v1.Protos.URL.getDefaultInstance()) { url_ = org.apache.mesos.v1.Protos.URL.newBuilder(url_).mergeFrom(value).buildPartial(); } else { url_ = value; } onChanged(); } else { urlBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ public Builder clearUrl() { if (urlBuilder_ == null) { url_ = null; onChanged(); } else { urlBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ public org.apache.mesos.v1.Protos.URL.Builder getUrlBuilder() { bitField0_ |= 0x00000010; onChanged(); return getUrlFieldBuilder().getBuilder(); } /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ public org.apache.mesos.v1.Protos.URLOrBuilder getUrlOrBuilder() { if (urlBuilder_ != null) { return urlBuilder_.getMessageOrBuilder(); } else { return url_ == null ? org.apache.mesos.v1.Protos.URL.getDefaultInstance() : url_; } } /** *
       * URL for reaching the agent running on the host.
       * 
* * optional .mesos.v1.URL url = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.URL, org.apache.mesos.v1.Protos.URL.Builder, org.apache.mesos.v1.Protos.URLOrBuilder> getUrlFieldBuilder() { if (urlBuilder_ == null) { urlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.URL, org.apache.mesos.v1.Protos.URL.Builder, org.apache.mesos.v1.Protos.URLOrBuilder>( getUrl(), getParentForChildren(), isClean()); url_ = null; } return urlBuilder_; } private org.apache.mesos.v1.Protos.DomainInfo domain_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder> domainBuilder_; /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public boolean hasDomain() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public org.apache.mesos.v1.Protos.DomainInfo getDomain() { if (domainBuilder_ == null) { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } else { return domainBuilder_.getMessage(); } } /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public Builder setDomain(org.apache.mesos.v1.Protos.DomainInfo value) { if (domainBuilder_ == null) { if (value == null) { throw new NullPointerException(); } domain_ = value; onChanged(); } else { domainBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public Builder setDomain( org.apache.mesos.v1.Protos.DomainInfo.Builder builderForValue) { if (domainBuilder_ == null) { domain_ = builderForValue.build(); onChanged(); } else { domainBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public Builder mergeDomain(org.apache.mesos.v1.Protos.DomainInfo value) { if (domainBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && domain_ != null && domain_ != org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance()) { domain_ = org.apache.mesos.v1.Protos.DomainInfo.newBuilder(domain_).mergeFrom(value).buildPartial(); } else { domain_ = value; } onChanged(); } else { domainBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public Builder clearDomain() { if (domainBuilder_ == null) { domain_ = null; onChanged(); } else { domainBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public org.apache.mesos.v1.Protos.DomainInfo.Builder getDomainBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDomainFieldBuilder().getBuilder(); } /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ public org.apache.mesos.v1.Protos.DomainInfoOrBuilder getDomainOrBuilder() { if (domainBuilder_ != null) { return domainBuilder_.getMessageOrBuilder(); } else { return domain_ == null ? org.apache.mesos.v1.Protos.DomainInfo.getDefaultInstance() : domain_; } } /** *
       * The domain of the agent.
       * 
* * optional .mesos.v1.DomainInfo domain = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder> getDomainFieldBuilder() { if (domainBuilder_ == null) { domainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DomainInfo, org.apache.mesos.v1.Protos.DomainInfo.Builder, org.apache.mesos.v1.Protos.DomainInfoOrBuilder>( getDomain(), getParentForChildren(), isClean()); domain_ = null; } return domainBuilder_; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 5; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 5; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 5; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { attributes_ = new java.util.ArrayList(attributes_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder> attributesBuilder_; /** * repeated .mesos.v1.Attribute attributes = 7; */ public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); } else { return attributesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Attribute attributes = 7; */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); } else { return attributesBuilder_.getCount(); } } /** * repeated .mesos.v1.Attribute attributes = 7; */ public org.apache.mesos.v1.Protos.Attribute getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder setAttributes( int index, org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.set(index, value); onChanged(); } else { attributesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder setAttributes( int index, org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.set(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder addAttributes(org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(value); onChanged(); } else { attributesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder addAttributes( int index, org.apache.mesos.v1.Protos.Attribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(index, value); onChanged(); } else { attributesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder addAttributes( org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder addAttributes( int index, org.apache.mesos.v1.Protos.Attribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributes_); onChanged(); } else { attributesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { attributesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.remove(index); onChanged(); } else { attributesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Attribute attributes = 7; */ public org.apache.mesos.v1.Protos.Attribute.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Attribute attributes = 7; */ public org.apache.mesos.v1.Protos.AttributeOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Attribute attributes = 7; */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributes_); } } /** * repeated .mesos.v1.Attribute attributes = 7; */ public org.apache.mesos.v1.Protos.Attribute.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Attribute.getDefaultInstance()); } /** * repeated .mesos.v1.Attribute attributes = 7; */ public org.apache.mesos.v1.Protos.Attribute.Builder addAttributesBuilder( int index) { return getAttributesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Attribute.getDefaultInstance()); } /** * repeated .mesos.v1.Attribute attributes = 7; */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Attribute, org.apache.mesos.v1.Protos.Attribute.Builder, org.apache.mesos.v1.Protos.AttributeOrBuilder>( attributes_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } private java.util.List executorIds_ = java.util.Collections.emptyList(); private void ensureExecutorIdsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { executorIds_ = new java.util.ArrayList(executorIds_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdsBuilder_; /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public java.util.List getExecutorIdsList() { if (executorIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(executorIds_); } else { return executorIdsBuilder_.getMessageList(); } } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public int getExecutorIdsCount() { if (executorIdsBuilder_ == null) { return executorIds_.size(); } else { return executorIdsBuilder_.getCount(); } } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorIds(int index) { if (executorIdsBuilder_ == null) { return executorIds_.get(index); } else { return executorIdsBuilder_.getMessage(index); } } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder setExecutorIds( int index, org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExecutorIdsIsMutable(); executorIds_.set(index, value); onChanged(); } else { executorIdsBuilder_.setMessage(index, value); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder setExecutorIds( int index, org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdsBuilder_ == null) { ensureExecutorIdsIsMutable(); executorIds_.set(index, builderForValue.build()); onChanged(); } else { executorIdsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder addExecutorIds(org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExecutorIdsIsMutable(); executorIds_.add(value); onChanged(); } else { executorIdsBuilder_.addMessage(value); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder addExecutorIds( int index, org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExecutorIdsIsMutable(); executorIds_.add(index, value); onChanged(); } else { executorIdsBuilder_.addMessage(index, value); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder addExecutorIds( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdsBuilder_ == null) { ensureExecutorIdsIsMutable(); executorIds_.add(builderForValue.build()); onChanged(); } else { executorIdsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder addExecutorIds( int index, org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdsBuilder_ == null) { ensureExecutorIdsIsMutable(); executorIds_.add(index, builderForValue.build()); onChanged(); } else { executorIdsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder addAllExecutorIds( java.lang.Iterable values) { if (executorIdsBuilder_ == null) { ensureExecutorIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, executorIds_); onChanged(); } else { executorIdsBuilder_.addAllMessages(values); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder clearExecutorIds() { if (executorIdsBuilder_ == null) { executorIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { executorIdsBuilder_.clear(); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public Builder removeExecutorIds(int index) { if (executorIdsBuilder_ == null) { ensureExecutorIdsIsMutable(); executorIds_.remove(index); onChanged(); } else { executorIdsBuilder_.remove(index); } return this; } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdsBuilder( int index) { return getExecutorIdsFieldBuilder().getBuilder(index); } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdsOrBuilder( int index) { if (executorIdsBuilder_ == null) { return executorIds_.get(index); } else { return executorIdsBuilder_.getMessageOrBuilder(index); } } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public java.util.List getExecutorIdsOrBuilderList() { if (executorIdsBuilder_ != null) { return executorIdsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(executorIds_); } } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public org.apache.mesos.v1.Protos.ExecutorID.Builder addExecutorIdsBuilder() { return getExecutorIdsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()); } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public org.apache.mesos.v1.Protos.ExecutorID.Builder addExecutorIdsBuilder( int index) { return getExecutorIdsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()); } /** *
       * Executors of the same framework running on this agent.
       * 
* * repeated .mesos.v1.ExecutorID executor_ids = 6; */ public java.util.List getExecutorIdsBuilderList() { return getExecutorIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> getExecutorIdsFieldBuilder() { if (executorIdsBuilder_ == null) { executorIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>( executorIds_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); executorIds_ = null; } return executorIdsBuilder_; } private org.apache.mesos.v1.Protos.Unavailability unavailability_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder> unavailabilityBuilder_; /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public boolean hasUnavailability() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public org.apache.mesos.v1.Protos.Unavailability getUnavailability() { if (unavailabilityBuilder_ == null) { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } else { return unavailabilityBuilder_.getMessage(); } } /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public Builder setUnavailability(org.apache.mesos.v1.Protos.Unavailability value) { if (unavailabilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unavailability_ = value; onChanged(); } else { unavailabilityBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public Builder setUnavailability( org.apache.mesos.v1.Protos.Unavailability.Builder builderForValue) { if (unavailabilityBuilder_ == null) { unavailability_ = builderForValue.build(); onChanged(); } else { unavailabilityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public Builder mergeUnavailability(org.apache.mesos.v1.Protos.Unavailability value) { if (unavailabilityBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && unavailability_ != null && unavailability_ != org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance()) { unavailability_ = org.apache.mesos.v1.Protos.Unavailability.newBuilder(unavailability_).mergeFrom(value).buildPartial(); } else { unavailability_ = value; } onChanged(); } else { unavailabilityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public Builder clearUnavailability() { if (unavailabilityBuilder_ == null) { unavailability_ = null; onChanged(); } else { unavailabilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public org.apache.mesos.v1.Protos.Unavailability.Builder getUnavailabilityBuilder() { bitField0_ |= 0x00000200; onChanged(); return getUnavailabilityFieldBuilder().getBuilder(); } /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ public org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder() { if (unavailabilityBuilder_ != null) { return unavailabilityBuilder_.getMessageOrBuilder(); } else { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } } /** *
       * Signifies that the resources in this Offer may be unavailable during
       * the given interval.  Any tasks launched using these resources may be
       * killed when the interval arrives.  For example, these resources may be
       * part of a planned maintenance schedule.
       * This field only provides information about a planned unavailability.
       * The unavailability interval may not necessarily start at exactly this
       * interval, nor last for exactly the duration of this interval.
       * The unavailability may also be forever!  See comments in
       * `Unavailability` for more details.
       * 
* * optional .mesos.v1.Unavailability unavailability = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder> getUnavailabilityFieldBuilder() { if (unavailabilityBuilder_ == null) { unavailabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder>( getUnavailability(), getParentForChildren(), isClean()); unavailability_ = null; } return unavailabilityBuilder_; } private org.apache.mesos.v1.Protos.Resource.AllocationInfo allocationInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.AllocationInfo, org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder, org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder> allocationInfoBuilder_; /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public boolean hasAllocationInfo() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfo getAllocationInfo() { if (allocationInfoBuilder_ == null) { return allocationInfo_ == null ? org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance() : allocationInfo_; } else { return allocationInfoBuilder_.getMessage(); } } /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public Builder setAllocationInfo(org.apache.mesos.v1.Protos.Resource.AllocationInfo value) { if (allocationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allocationInfo_ = value; onChanged(); } else { allocationInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public Builder setAllocationInfo( org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder builderForValue) { if (allocationInfoBuilder_ == null) { allocationInfo_ = builderForValue.build(); onChanged(); } else { allocationInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public Builder mergeAllocationInfo(org.apache.mesos.v1.Protos.Resource.AllocationInfo value) { if (allocationInfoBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && allocationInfo_ != null && allocationInfo_ != org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance()) { allocationInfo_ = org.apache.mesos.v1.Protos.Resource.AllocationInfo.newBuilder(allocationInfo_).mergeFrom(value).buildPartial(); } else { allocationInfo_ = value; } onChanged(); } else { allocationInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public Builder clearAllocationInfo() { if (allocationInfoBuilder_ == null) { allocationInfo_ = null; onChanged(); } else { allocationInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder getAllocationInfoBuilder() { bitField0_ |= 0x00000400; onChanged(); return getAllocationInfoFieldBuilder().getBuilder(); } /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ public org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder() { if (allocationInfoBuilder_ != null) { return allocationInfoBuilder_.getMessageOrBuilder(); } else { return allocationInfo_ == null ? org.apache.mesos.v1.Protos.Resource.AllocationInfo.getDefaultInstance() : allocationInfo_; } } /** *
       * An offer represents resources allocated to *one* of the
       * roles managed by the scheduler. (Therefore, each
       * `Offer.resources[i].allocation_info` will match the
       * top level `Offer.allocation_info`).
       * 
* * optional .mesos.v1.Resource.AllocationInfo allocation_info = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.AllocationInfo, org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder, org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder> getAllocationInfoFieldBuilder() { if (allocationInfoBuilder_ == null) { allocationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Resource.AllocationInfo, org.apache.mesos.v1.Protos.Resource.AllocationInfo.Builder, org.apache.mesos.v1.Protos.Resource.AllocationInfoOrBuilder>( getAllocationInfo(), getParentForChildren(), isClean()); allocationInfo_ = null; } return allocationInfoBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Offer) } // @@protoc_insertion_point(class_scope:mesos.v1.Offer) private static final org.apache.mesos.v1.Protos.Offer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Offer(); } public static org.apache.mesos.v1.Protos.Offer getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Offer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Offer(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Offer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InverseOfferOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.InverseOffer) com.google.protobuf.MessageOrBuilder { /** *
     * This is the same OfferID as found in normal offers, which allows
     * re-use of some of the OfferID-only messages.
     * 
* * required .mesos.v1.OfferID id = 1; */ boolean hasId(); /** *
     * This is the same OfferID as found in normal offers, which allows
     * re-use of some of the OfferID-only messages.
     * 
* * required .mesos.v1.OfferID id = 1; */ org.apache.mesos.v1.Protos.OfferID getId(); /** *
     * This is the same OfferID as found in normal offers, which allows
     * re-use of some of the OfferID-only messages.
     * 
* * required .mesos.v1.OfferID id = 1; */ org.apache.mesos.v1.Protos.OfferIDOrBuilder getIdOrBuilder(); /** *
     * URL for reaching the agent running on the host.  This enables some
     * optimizations as described in MESOS-3012, such as allowing the
     * scheduler driver to bypass the master and talk directly with an agent.
     * 
* * optional .mesos.v1.URL url = 2; */ boolean hasUrl(); /** *
     * URL for reaching the agent running on the host.  This enables some
     * optimizations as described in MESOS-3012, such as allowing the
     * scheduler driver to bypass the master and talk directly with an agent.
     * 
* * optional .mesos.v1.URL url = 2; */ org.apache.mesos.v1.Protos.URL getUrl(); /** *
     * URL for reaching the agent running on the host.  This enables some
     * optimizations as described in MESOS-3012, such as allowing the
     * scheduler driver to bypass the master and talk directly with an agent.
     * 
* * optional .mesos.v1.URL url = 2; */ org.apache.mesos.v1.Protos.URLOrBuilder getUrlOrBuilder(); /** *
     * The framework that should release its resources.
     * If no specifics are provided (i.e. which agent), all the framework's
     * resources are requested back.
     * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ boolean hasFrameworkId(); /** *
     * The framework that should release its resources.
     * If no specifics are provided (i.e. which agent), all the framework's
     * resources are requested back.
     * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ org.apache.mesos.v1.Protos.FrameworkID getFrameworkId(); /** *
     * The framework that should release its resources.
     * If no specifics are provided (i.e. which agent), all the framework's
     * resources are requested back.
     * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder(); /** *
     * Specified if the resources need to be released from a particular agent.
     * All the framework's resources on this agent are requested back,
     * unless further qualified by the `resources` field.
     * 
* * optional .mesos.v1.AgentID agent_id = 4; */ boolean hasAgentId(); /** *
     * Specified if the resources need to be released from a particular agent.
     * All the framework's resources on this agent are requested back,
     * unless further qualified by the `resources` field.
     * 
* * optional .mesos.v1.AgentID agent_id = 4; */ org.apache.mesos.v1.Protos.AgentID getAgentId(); /** *
     * Specified if the resources need to be released from a particular agent.
     * All the framework's resources on this agent are requested back,
     * unless further qualified by the `resources` field.
     * 
* * optional .mesos.v1.AgentID agent_id = 4; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder(); /** *
     * This InverseOffer represents a planned unavailability event in the
     * specified interval.  Any tasks running on the given framework or agent
     * may be killed when the interval arrives.  Therefore, frameworks should
     * aim to gracefully terminate tasks prior to the arrival of the interval.
     * For reserved resources, the resources are expected to be returned to the
     * framework after the unavailability interval.  This is an expectation,
     * not a guarantee.  For example, if the unavailability duration is not set,
     * the resources may be removed permanently.
     * For other resources, there is no guarantee that requested resources will
     * be returned after the unavailability interval.  The allocator has no
     * obligation to re-offer these resources to the prior framework after
     * the unavailability.
     * 
* * required .mesos.v1.Unavailability unavailability = 5; */ boolean hasUnavailability(); /** *
     * This InverseOffer represents a planned unavailability event in the
     * specified interval.  Any tasks running on the given framework or agent
     * may be killed when the interval arrives.  Therefore, frameworks should
     * aim to gracefully terminate tasks prior to the arrival of the interval.
     * For reserved resources, the resources are expected to be returned to the
     * framework after the unavailability interval.  This is an expectation,
     * not a guarantee.  For example, if the unavailability duration is not set,
     * the resources may be removed permanently.
     * For other resources, there is no guarantee that requested resources will
     * be returned after the unavailability interval.  The allocator has no
     * obligation to re-offer these resources to the prior framework after
     * the unavailability.
     * 
* * required .mesos.v1.Unavailability unavailability = 5; */ org.apache.mesos.v1.Protos.Unavailability getUnavailability(); /** *
     * This InverseOffer represents a planned unavailability event in the
     * specified interval.  Any tasks running on the given framework or agent
     * may be killed when the interval arrives.  Therefore, frameworks should
     * aim to gracefully terminate tasks prior to the arrival of the interval.
     * For reserved resources, the resources are expected to be returned to the
     * framework after the unavailability interval.  This is an expectation,
     * not a guarantee.  For example, if the unavailability duration is not set,
     * the resources may be removed permanently.
     * For other resources, there is no guarantee that requested resources will
     * be returned after the unavailability interval.  The allocator has no
     * obligation to re-offer these resources to the prior framework after
     * the unavailability.
     * 
* * required .mesos.v1.Unavailability unavailability = 5; */ org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder(); /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ java.util.List getResourcesList(); /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ int getResourcesCount(); /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ java.util.List getResourcesOrBuilderList(); /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); } /** *
   **
   * A request to return some resources occupied by a framework.
   * 
* * Protobuf type {@code mesos.v1.InverseOffer} */ public static final class InverseOffer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.InverseOffer) InverseOfferOrBuilder { private static final long serialVersionUID = 0L; // Use InverseOffer.newBuilder() to construct. private InverseOffer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InverseOffer() { resources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InverseOffer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.OfferID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.apache.mesos.v1.Protos.OfferID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.URL.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = url_.toBuilder(); } url_ = input.readMessage(org.apache.mesos.v1.Protos.URL.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(url_); url_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.FrameworkID.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = frameworkId_.toBuilder(); } frameworkId_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(frameworkId_); frameworkId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = agentId_.toBuilder(); } agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentId_); agentId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { org.apache.mesos.v1.Protos.Unavailability.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = unavailability_.toBuilder(); } unavailability_ = input.readMessage(org.apache.mesos.v1.Protos.Unavailability.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unavailability_); unavailability_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_InverseOffer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_InverseOffer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.InverseOffer.class, org.apache.mesos.v1.Protos.InverseOffer.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.OfferID id_; /** *
     * This is the same OfferID as found in normal offers, which allows
     * re-use of some of the OfferID-only messages.
     * 
* * required .mesos.v1.OfferID id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * This is the same OfferID as found in normal offers, which allows
     * re-use of some of the OfferID-only messages.
     * 
* * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferID getId() { return id_ == null ? org.apache.mesos.v1.Protos.OfferID.getDefaultInstance() : id_; } /** *
     * This is the same OfferID as found in normal offers, which allows
     * re-use of some of the OfferID-only messages.
     * 
* * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferIDOrBuilder getIdOrBuilder() { return id_ == null ? org.apache.mesos.v1.Protos.OfferID.getDefaultInstance() : id_; } public static final int URL_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.URL url_; /** *
     * URL for reaching the agent running on the host.  This enables some
     * optimizations as described in MESOS-3012, such as allowing the
     * scheduler driver to bypass the master and talk directly with an agent.
     * 
* * optional .mesos.v1.URL url = 2; */ public boolean hasUrl() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * URL for reaching the agent running on the host.  This enables some
     * optimizations as described in MESOS-3012, such as allowing the
     * scheduler driver to bypass the master and talk directly with an agent.
     * 
* * optional .mesos.v1.URL url = 2; */ public org.apache.mesos.v1.Protos.URL getUrl() { return url_ == null ? org.apache.mesos.v1.Protos.URL.getDefaultInstance() : url_; } /** *
     * URL for reaching the agent running on the host.  This enables some
     * optimizations as described in MESOS-3012, such as allowing the
     * scheduler driver to bypass the master and talk directly with an agent.
     * 
* * optional .mesos.v1.URL url = 2; */ public org.apache.mesos.v1.Protos.URLOrBuilder getUrlOrBuilder() { return url_ == null ? org.apache.mesos.v1.Protos.URL.getDefaultInstance() : url_; } public static final int FRAMEWORK_ID_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.FrameworkID frameworkId_; /** *
     * The framework that should release its resources.
     * If no specifics are provided (i.e. which agent), all the framework's
     * resources are requested back.
     * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * The framework that should release its resources.
     * If no specifics are provided (i.e. which agent), all the framework's
     * resources are requested back.
     * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } /** *
     * The framework that should release its resources.
     * If no specifics are provided (i.e. which agent), all the framework's
     * resources are requested back.
     * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } public static final int AGENT_ID_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.AgentID agentId_; /** *
     * Specified if the resources need to be released from a particular agent.
     * All the framework's resources on this agent are requested back,
     * unless further qualified by the `resources` field.
     * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * Specified if the resources need to be released from a particular agent.
     * All the framework's resources on this agent are requested back,
     * unless further qualified by the `resources` field.
     * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } /** *
     * Specified if the resources need to be released from a particular agent.
     * All the framework's resources on this agent are requested back,
     * unless further qualified by the `resources` field.
     * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } public static final int UNAVAILABILITY_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.Unavailability unavailability_; /** *
     * This InverseOffer represents a planned unavailability event in the
     * specified interval.  Any tasks running on the given framework or agent
     * may be killed when the interval arrives.  Therefore, frameworks should
     * aim to gracefully terminate tasks prior to the arrival of the interval.
     * For reserved resources, the resources are expected to be returned to the
     * framework after the unavailability interval.  This is an expectation,
     * not a guarantee.  For example, if the unavailability duration is not set,
     * the resources may be removed permanently.
     * For other resources, there is no guarantee that requested resources will
     * be returned after the unavailability interval.  The allocator has no
     * obligation to re-offer these resources to the prior framework after
     * the unavailability.
     * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public boolean hasUnavailability() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * This InverseOffer represents a planned unavailability event in the
     * specified interval.  Any tasks running on the given framework or agent
     * may be killed when the interval arrives.  Therefore, frameworks should
     * aim to gracefully terminate tasks prior to the arrival of the interval.
     * For reserved resources, the resources are expected to be returned to the
     * framework after the unavailability interval.  This is an expectation,
     * not a guarantee.  For example, if the unavailability duration is not set,
     * the resources may be removed permanently.
     * For other resources, there is no guarantee that requested resources will
     * be returned after the unavailability interval.  The allocator has no
     * obligation to re-offer these resources to the prior framework after
     * the unavailability.
     * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public org.apache.mesos.v1.Protos.Unavailability getUnavailability() { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } /** *
     * This InverseOffer represents a planned unavailability event in the
     * specified interval.  Any tasks running on the given framework or agent
     * may be killed when the interval arrives.  Therefore, frameworks should
     * aim to gracefully terminate tasks prior to the arrival of the interval.
     * For reserved resources, the resources are expected to be returned to the
     * framework after the unavailability interval.  This is an expectation,
     * not a guarantee.  For example, if the unavailability duration is not set,
     * the resources may be removed permanently.
     * For other resources, there is no guarantee that requested resources will
     * be returned after the unavailability interval.  The allocator has no
     * obligation to re-offer these resources to the prior framework after
     * the unavailability.
     * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder() { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } public static final int RESOURCES_FIELD_NUMBER = 6; private java.util.List resources_; /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ public java.util.List getResourcesList() { return resources_; } /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ public int getResourcesCount() { return resources_.size(); } /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** *
     * A list of resources being requested back from the framework,
     * on the agent identified by `agent_id`.  If no resources are specified
     * then all resources are being requested back.  For the purpose of
     * maintenance, this field is always empty (maintenance always requests
     * all resources back).
     * 
* * repeated .mesos.v1.Resource resources = 6; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasFrameworkId()) { memoizedIsInitialized = 0; return false; } if (!hasUnavailability()) { memoizedIsInitialized = 0; return false; } if (!getId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasUrl()) { if (!getUrl().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!getFrameworkId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasAgentId()) { if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!getUnavailability().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getUrl()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getFrameworkId()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getAgentId()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getUnavailability()); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(6, resources_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUrl()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFrameworkId()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAgentId()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUnavailability()); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, resources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.InverseOffer)) { return super.equals(obj); } org.apache.mesos.v1.Protos.InverseOffer other = (org.apache.mesos.v1.Protos.InverseOffer) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasUrl() == other.hasUrl()); if (hasUrl()) { result = result && getUrl() .equals(other.getUrl()); } result = result && (hasFrameworkId() == other.hasFrameworkId()); if (hasFrameworkId()) { result = result && getFrameworkId() .equals(other.getFrameworkId()); } result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasUnavailability() == other.hasUnavailability()); if (hasUnavailability()) { result = result && getUnavailability() .equals(other.getUnavailability()); } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasUrl()) { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); } if (hasFrameworkId()) { hash = (37 * hash) + FRAMEWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getFrameworkId().hashCode(); } if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (hasUnavailability()) { hash = (37 * hash) + UNAVAILABILITY_FIELD_NUMBER; hash = (53 * hash) + getUnavailability().hashCode(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.InverseOffer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.InverseOffer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.InverseOffer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.InverseOffer 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.Protos.InverseOffer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.InverseOffer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.InverseOffer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.InverseOffer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.InverseOffer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.InverseOffer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.InverseOffer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.InverseOffer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.InverseOffer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A request to return some resources occupied by a framework.
     * 
* * Protobuf type {@code mesos.v1.InverseOffer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.InverseOffer) org.apache.mesos.v1.Protos.InverseOfferOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_InverseOffer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_InverseOffer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.InverseOffer.class, org.apache.mesos.v1.Protos.InverseOffer.Builder.class); } // Construct using org.apache.mesos.v1.Protos.InverseOffer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdFieldBuilder(); getUrlFieldBuilder(); getFrameworkIdFieldBuilder(); getAgentIdFieldBuilder(); getUnavailabilityFieldBuilder(); getResourcesFieldBuilder(); } } public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (urlBuilder_ == null) { url_ = null; } else { urlBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (frameworkIdBuilder_ == null) { frameworkId_ = null; } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (agentIdBuilder_ == null) { agentId_ = null; } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (unavailabilityBuilder_ == null) { unavailability_ = null; } else { unavailabilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { resourcesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_InverseOffer_descriptor; } public org.apache.mesos.v1.Protos.InverseOffer getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.InverseOffer.getDefaultInstance(); } public org.apache.mesos.v1.Protos.InverseOffer build() { org.apache.mesos.v1.Protos.InverseOffer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.InverseOffer buildPartial() { org.apache.mesos.v1.Protos.InverseOffer result = new org.apache.mesos.v1.Protos.InverseOffer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (urlBuilder_ == null) { result.url_ = url_; } else { result.url_ = urlBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (frameworkIdBuilder_ == null) { result.frameworkId_ = frameworkId_; } else { result.frameworkId_ = frameworkIdBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (agentIdBuilder_ == null) { result.agentId_ = agentId_; } else { result.agentId_ = agentIdBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (unavailabilityBuilder_ == null) { result.unavailability_ = unavailability_; } else { result.unavailability_ = unavailabilityBuilder_.build(); } if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000020); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.InverseOffer) { return mergeFrom((org.apache.mesos.v1.Protos.InverseOffer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.InverseOffer other) { if (other == org.apache.mesos.v1.Protos.InverseOffer.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasUrl()) { mergeUrl(other.getUrl()); } if (other.hasFrameworkId()) { mergeFrameworkId(other.getFrameworkId()); } if (other.hasAgentId()) { mergeAgentId(other.getAgentId()); } if (other.hasUnavailability()) { mergeUnavailability(other.getUnavailability()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000020); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasFrameworkId()) { return false; } if (!hasUnavailability()) { return false; } if (!getId().isInitialized()) { return false; } if (hasUrl()) { if (!getUrl().isInitialized()) { return false; } } if (!getFrameworkId().isInitialized()) { return false; } if (hasAgentId()) { if (!getAgentId().isInitialized()) { return false; } } if (!getUnavailability().isInitialized()) { return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.Protos.InverseOffer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.InverseOffer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.OfferID id_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> idBuilder_; /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferID getId() { if (idBuilder_ == null) { return id_ == null ? org.apache.mesos.v1.Protos.OfferID.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ public Builder setId(org.apache.mesos.v1.Protos.OfferID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ public Builder setId( org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ public Builder mergeId(org.apache.mesos.v1.Protos.OfferID value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && id_ != null && id_ != org.apache.mesos.v1.Protos.OfferID.getDefaultInstance()) { id_ = org.apache.mesos.v1.Protos.OfferID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferID.Builder getIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ public org.apache.mesos.v1.Protos.OfferIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.apache.mesos.v1.Protos.OfferID.getDefaultInstance() : id_; } } /** *
       * This is the same OfferID as found in normal offers, which allows
       * re-use of some of the OfferID-only messages.
       * 
* * required .mesos.v1.OfferID id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private org.apache.mesos.v1.Protos.URL url_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.URL, org.apache.mesos.v1.Protos.URL.Builder, org.apache.mesos.v1.Protos.URLOrBuilder> urlBuilder_; /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ public boolean hasUrl() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ public org.apache.mesos.v1.Protos.URL getUrl() { if (urlBuilder_ == null) { return url_ == null ? org.apache.mesos.v1.Protos.URL.getDefaultInstance() : url_; } else { return urlBuilder_.getMessage(); } } /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ public Builder setUrl(org.apache.mesos.v1.Protos.URL value) { if (urlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); } else { urlBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ public Builder setUrl( org.apache.mesos.v1.Protos.URL.Builder builderForValue) { if (urlBuilder_ == null) { url_ = builderForValue.build(); onChanged(); } else { urlBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ public Builder mergeUrl(org.apache.mesos.v1.Protos.URL value) { if (urlBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && url_ != null && url_ != org.apache.mesos.v1.Protos.URL.getDefaultInstance()) { url_ = org.apache.mesos.v1.Protos.URL.newBuilder(url_).mergeFrom(value).buildPartial(); } else { url_ = value; } onChanged(); } else { urlBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ public Builder clearUrl() { if (urlBuilder_ == null) { url_ = null; onChanged(); } else { urlBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ public org.apache.mesos.v1.Protos.URL.Builder getUrlBuilder() { bitField0_ |= 0x00000002; onChanged(); return getUrlFieldBuilder().getBuilder(); } /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ public org.apache.mesos.v1.Protos.URLOrBuilder getUrlOrBuilder() { if (urlBuilder_ != null) { return urlBuilder_.getMessageOrBuilder(); } else { return url_ == null ? org.apache.mesos.v1.Protos.URL.getDefaultInstance() : url_; } } /** *
       * URL for reaching the agent running on the host.  This enables some
       * optimizations as described in MESOS-3012, such as allowing the
       * scheduler driver to bypass the master and talk directly with an agent.
       * 
* * optional .mesos.v1.URL url = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.URL, org.apache.mesos.v1.Protos.URL.Builder, org.apache.mesos.v1.Protos.URLOrBuilder> getUrlFieldBuilder() { if (urlBuilder_ == null) { urlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.URL, org.apache.mesos.v1.Protos.URL.Builder, org.apache.mesos.v1.Protos.URLOrBuilder>( getUrl(), getParentForChildren(), isClean()); url_ = null; } return urlBuilder_; } private org.apache.mesos.v1.Protos.FrameworkID frameworkId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_; /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { if (frameworkIdBuilder_ == null) { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } else { return frameworkIdBuilder_.getMessage(); } } /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ 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_ |= 0x00000004; return this; } /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public Builder setFrameworkId( org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) { if (frameworkIdBuilder_ == null) { frameworkId_ = builderForValue.build(); onChanged(); } else { frameworkIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) { if (frameworkIdBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && frameworkId_ != null && frameworkId_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial(); } else { frameworkId_ = value; } onChanged(); } else { frameworkIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public Builder clearFrameworkId() { if (frameworkIdBuilder_ == null) { frameworkId_ = null; onChanged(); } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFrameworkIdFieldBuilder().getBuilder(); } /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { if (frameworkIdBuilder_ != null) { return frameworkIdBuilder_.getMessageOrBuilder(); } else { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } } /** *
       * The framework that should release its resources.
       * If no specifics are provided (i.e. which agent), all the framework's
       * resources are requested back.
       * 
* * required .mesos.v1.FrameworkID framework_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> getFrameworkIdFieldBuilder() { if (frameworkIdBuilder_ == null) { frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>( getFrameworkId(), getParentForChildren(), isClean()); frameworkId_ = null; } return frameworkIdBuilder_; } private org.apache.mesos.v1.Protos.AgentID agentId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_; /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { if (agentIdBuilder_ == null) { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } else { return agentIdBuilder_.getMessage(); } } /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentId_ = value; onChanged(); } else { agentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public Builder setAgentId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (agentIdBuilder_ == null) { agentId_ = builderForValue.build(); onChanged(); } else { agentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && agentId_ != null && agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { agentId_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial(); } else { agentId_ = value; } onChanged(); } else { agentIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public Builder clearAgentId() { if (agentIdBuilder_ == null) { agentId_ = null; onChanged(); } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAgentIdFieldBuilder().getBuilder(); } /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { if (agentIdBuilder_ != null) { return agentIdBuilder_.getMessageOrBuilder(); } else { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } } /** *
       * Specified if the resources need to be released from a particular agent.
       * All the framework's resources on this agent are requested back,
       * unless further qualified by the `resources` field.
       * 
* * optional .mesos.v1.AgentID agent_id = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getAgentIdFieldBuilder() { if (agentIdBuilder_ == null) { agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getAgentId(), getParentForChildren(), isClean()); agentId_ = null; } return agentIdBuilder_; } private org.apache.mesos.v1.Protos.Unavailability unavailability_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder> unavailabilityBuilder_; /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public boolean hasUnavailability() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public org.apache.mesos.v1.Protos.Unavailability getUnavailability() { if (unavailabilityBuilder_ == null) { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } else { return unavailabilityBuilder_.getMessage(); } } /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public Builder setUnavailability(org.apache.mesos.v1.Protos.Unavailability value) { if (unavailabilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unavailability_ = value; onChanged(); } else { unavailabilityBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public Builder setUnavailability( org.apache.mesos.v1.Protos.Unavailability.Builder builderForValue) { if (unavailabilityBuilder_ == null) { unavailability_ = builderForValue.build(); onChanged(); } else { unavailabilityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public Builder mergeUnavailability(org.apache.mesos.v1.Protos.Unavailability value) { if (unavailabilityBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && unavailability_ != null && unavailability_ != org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance()) { unavailability_ = org.apache.mesos.v1.Protos.Unavailability.newBuilder(unavailability_).mergeFrom(value).buildPartial(); } else { unavailability_ = value; } onChanged(); } else { unavailabilityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public Builder clearUnavailability() { if (unavailabilityBuilder_ == null) { unavailability_ = null; onChanged(); } else { unavailabilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public org.apache.mesos.v1.Protos.Unavailability.Builder getUnavailabilityBuilder() { bitField0_ |= 0x00000010; onChanged(); return getUnavailabilityFieldBuilder().getBuilder(); } /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ public org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder() { if (unavailabilityBuilder_ != null) { return unavailabilityBuilder_.getMessageOrBuilder(); } else { return unavailability_ == null ? org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance() : unavailability_; } } /** *
       * This InverseOffer represents a planned unavailability event in the
       * specified interval.  Any tasks running on the given framework or agent
       * may be killed when the interval arrives.  Therefore, frameworks should
       * aim to gracefully terminate tasks prior to the arrival of the interval.
       * For reserved resources, the resources are expected to be returned to the
       * framework after the unavailability interval.  This is an expectation,
       * not a guarantee.  For example, if the unavailability duration is not set,
       * the resources may be removed permanently.
       * For other resources, there is no guarantee that requested resources will
       * be returned after the unavailability interval.  The allocator has no
       * obligation to re-offer these resources to the prior framework after
       * the unavailability.
       * 
* * required .mesos.v1.Unavailability unavailability = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder> getUnavailabilityFieldBuilder() { if (unavailabilityBuilder_ == null) { unavailabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder>( getUnavailability(), getParentForChildren(), isClean()); unavailability_ = null; } return unavailabilityBuilder_; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * A list of resources being requested back from the framework,
       * on the agent identified by `agent_id`.  If no resources are specified
       * then all resources are being requested back.  For the purpose of
       * maintenance, this field is always empty (maintenance always requests
       * all resources back).
       * 
* * repeated .mesos.v1.Resource resources = 6; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.InverseOffer) } // @@protoc_insertion_point(class_scope:mesos.v1.InverseOffer) private static final org.apache.mesos.v1.Protos.InverseOffer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.InverseOffer(); } public static org.apache.mesos.v1.Protos.InverseOffer getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public InverseOffer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InverseOffer(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.InverseOffer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TaskInfo) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required .mesos.v1.TaskID task_id = 2; */ boolean hasTaskId(); /** * required .mesos.v1.TaskID task_id = 2; */ org.apache.mesos.v1.Protos.TaskID getTaskId(); /** * required .mesos.v1.TaskID task_id = 2; */ org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder(); /** * required .mesos.v1.AgentID agent_id = 3; */ boolean hasAgentId(); /** * required .mesos.v1.AgentID agent_id = 3; */ org.apache.mesos.v1.Protos.AgentID getAgentId(); /** * required .mesos.v1.AgentID agent_id = 3; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder(); /** * repeated .mesos.v1.Resource resources = 4; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 4; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 4; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 4; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 4; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); /** * optional .mesos.v1.ExecutorInfo executor = 5; */ boolean hasExecutor(); /** * optional .mesos.v1.ExecutorInfo executor = 5; */ org.apache.mesos.v1.Protos.ExecutorInfo getExecutor(); /** * optional .mesos.v1.ExecutorInfo executor = 5; */ org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorOrBuilder(); /** * optional .mesos.v1.CommandInfo command = 7; */ boolean hasCommand(); /** * optional .mesos.v1.CommandInfo command = 7; */ org.apache.mesos.v1.Protos.CommandInfo getCommand(); /** * optional .mesos.v1.CommandInfo command = 7; */ org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder(); /** *
     * Task provided with a container will launch the container as part
     * of this task paired with the task's CommandInfo.
     * 
* * optional .mesos.v1.ContainerInfo container = 9; */ boolean hasContainer(); /** *
     * Task provided with a container will launch the container as part
     * of this task paired with the task's CommandInfo.
     * 
* * optional .mesos.v1.ContainerInfo container = 9; */ org.apache.mesos.v1.Protos.ContainerInfo getContainer(); /** *
     * Task provided with a container will launch the container as part
     * of this task paired with the task's CommandInfo.
     * 
* * optional .mesos.v1.ContainerInfo container = 9; */ org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder(); /** *
     * A health check for the task. Implemented for executor-less
     * command-based tasks. For tasks that specify an executor, it is
     * the executor's responsibility to implement the health checking.
     * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ boolean hasHealthCheck(); /** *
     * A health check for the task. Implemented for executor-less
     * command-based tasks. For tasks that specify an executor, it is
     * the executor's responsibility to implement the health checking.
     * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ org.apache.mesos.v1.Protos.HealthCheck getHealthCheck(); /** *
     * A health check for the task. Implemented for executor-less
     * command-based tasks. For tasks that specify an executor, it is
     * the executor's responsibility to implement the health checking.
     * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ org.apache.mesos.v1.Protos.HealthCheckOrBuilder getHealthCheckOrBuilder(); /** *
     * A general check for the task. Implemented for all built-in executors.
     * For tasks that specify an executor, it is the executor's responsibility
     * to implement checking support. Executors should (all built-in executors
     * will) neither interpret nor act on the check's result.
     * NOTE: Check support in built-in executors is experimental.
     * TODO(alexr): Consider supporting multiple checks per task.
     * 
* * optional .mesos.v1.CheckInfo check = 13; */ boolean hasCheck(); /** *
     * A general check for the task. Implemented for all built-in executors.
     * For tasks that specify an executor, it is the executor's responsibility
     * to implement checking support. Executors should (all built-in executors
     * will) neither interpret nor act on the check's result.
     * NOTE: Check support in built-in executors is experimental.
     * TODO(alexr): Consider supporting multiple checks per task.
     * 
* * optional .mesos.v1.CheckInfo check = 13; */ org.apache.mesos.v1.Protos.CheckInfo getCheck(); /** *
     * A general check for the task. Implemented for all built-in executors.
     * For tasks that specify an executor, it is the executor's responsibility
     * to implement checking support. Executors should (all built-in executors
     * will) neither interpret nor act on the check's result.
     * NOTE: Check support in built-in executors is experimental.
     * TODO(alexr): Consider supporting multiple checks per task.
     * 
* * optional .mesos.v1.CheckInfo check = 13; */ org.apache.mesos.v1.Protos.CheckInfoOrBuilder getCheckOrBuilder(); /** *
     * A kill policy for the task. Implemented for executor-less
     * command-based and docker tasks. For tasks that specify an
     * executor, it is the executor's responsibility to implement
     * the kill policy.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ boolean hasKillPolicy(); /** *
     * A kill policy for the task. Implemented for executor-less
     * command-based and docker tasks. For tasks that specify an
     * executor, it is the executor's responsibility to implement
     * the kill policy.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ org.apache.mesos.v1.Protos.KillPolicy getKillPolicy(); /** *
     * A kill policy for the task. Implemented for executor-less
     * command-based and docker tasks. For tasks that specify an
     * executor, it is the executor's responsibility to implement
     * the kill policy.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder(); /** * optional bytes data = 6; */ boolean hasData(); /** * optional bytes data = 6; */ com.google.protobuf.ByteString getData(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag tasks with light-weight meta-data.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 10; */ boolean hasLabels(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag tasks with light-weight meta-data.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 10; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag tasks with light-weight meta-data.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 10; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ boolean hasDiscovery(); /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery(); /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder(); /** *
     * Maximum duration for task completion. If the task is non-terminal at the
     * end of this duration, it will fail with the reason
     * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
     * executor-less tasks, and tasks that use Docker or default executors.
     * It is the executor's responsibility to implement this, so it might not be
     * supported by all custom executors.
     * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ boolean hasMaxCompletionTime(); /** *
     * Maximum duration for task completion. If the task is non-terminal at the
     * end of this duration, it will fail with the reason
     * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
     * executor-less tasks, and tasks that use Docker or default executors.
     * It is the executor's responsibility to implement this, so it might not be
     * supported by all custom executors.
     * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ org.apache.mesos.v1.Protos.DurationInfo getMaxCompletionTime(); /** *
     * Maximum duration for task completion. If the task is non-terminal at the
     * end of this duration, it will fail with the reason
     * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
     * executor-less tasks, and tasks that use Docker or default executors.
     * It is the executor's responsibility to implement this, so it might not be
     * supported by all custom executors.
     * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ org.apache.mesos.v1.Protos.DurationInfoOrBuilder getMaxCompletionTimeOrBuilder(); } /** *
   **
   * Describes a task. Passed from the scheduler all the way to an
   * executor (see SchedulerDriver::launchTasks and
   * Executor::launchTask). Either ExecutorInfo or CommandInfo should be set.
   * A different executor can be used to launch this task, and subsequent tasks
   * meant for the same executor can reuse the same ExecutorInfo struct.
   * 
* * Protobuf type {@code mesos.v1.TaskInfo} */ public static final class TaskInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TaskInfo) TaskInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TaskInfo.newBuilder() to construct. private TaskInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskInfo() { name_ = ""; resources_ = java.util.Collections.emptyList(); data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { org.apache.mesos.v1.Protos.TaskID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = taskId_.toBuilder(); } taskId_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(taskId_); taskId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = agentId_.toBuilder(); } agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentId_); agentId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 42: { org.apache.mesos.v1.Protos.ExecutorInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = executor_.toBuilder(); } executor_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executor_); executor_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 50: { bitField0_ |= 0x00000200; data_ = input.readBytes(); break; } case 58: { org.apache.mesos.v1.Protos.CommandInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CommandInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 66: { org.apache.mesos.v1.Protos.HealthCheck.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = healthCheck_.toBuilder(); } healthCheck_ = input.readMessage(org.apache.mesos.v1.Protos.HealthCheck.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(healthCheck_); healthCheck_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 74: { org.apache.mesos.v1.Protos.ContainerInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = container_.toBuilder(); } container_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(container_); container_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 82: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 90: { org.apache.mesos.v1.Protos.DiscoveryInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = discovery_.toBuilder(); } discovery_ = input.readMessage(org.apache.mesos.v1.Protos.DiscoveryInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(discovery_); discovery_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 98: { org.apache.mesos.v1.Protos.KillPolicy.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = killPolicy_.toBuilder(); } killPolicy_ = input.readMessage(org.apache.mesos.v1.Protos.KillPolicy.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(killPolicy_); killPolicy_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 106: { org.apache.mesos.v1.Protos.CheckInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = check_.toBuilder(); } check_ = input.readMessage(org.apache.mesos.v1.Protos.CheckInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(check_); check_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 114: { org.apache.mesos.v1.Protos.DurationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = maxCompletionTime_.toBuilder(); } maxCompletionTime_ = input.readMessage(org.apache.mesos.v1.Protos.DurationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxCompletionTime_); maxCompletionTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskInfo.class, org.apache.mesos.v1.Protos.TaskInfo.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TASK_ID_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.TaskID taskId_; /** * required .mesos.v1.TaskID task_id = 2; */ public boolean hasTaskId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskID getTaskId() { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } public static final int AGENT_ID_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.AgentID agentId_; /** * required .mesos.v1.AgentID agent_id = 3; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } public static final int RESOURCES_FIELD_NUMBER = 4; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 4; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 4; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 4; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 4; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 4; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int EXECUTOR_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.ExecutorInfo executor_; /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public boolean hasExecutor() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public org.apache.mesos.v1.Protos.ExecutorInfo getExecutor() { return executor_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executor_; } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorOrBuilder() { return executor_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executor_; } public static final int COMMAND_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.CommandInfo command_; /** * optional .mesos.v1.CommandInfo command = 7; */ public boolean hasCommand() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } public static final int CONTAINER_FIELD_NUMBER = 9; private org.apache.mesos.v1.Protos.ContainerInfo container_; /** *
     * Task provided with a container will launch the container as part
     * of this task paired with the task's CommandInfo.
     * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public boolean hasContainer() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * Task provided with a container will launch the container as part
     * of this task paired with the task's CommandInfo.
     * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } /** *
     * Task provided with a container will launch the container as part
     * of this task paired with the task's CommandInfo.
     * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } public static final int HEALTH_CHECK_FIELD_NUMBER = 8; private org.apache.mesos.v1.Protos.HealthCheck healthCheck_; /** *
     * A health check for the task. Implemented for executor-less
     * command-based tasks. For tasks that specify an executor, it is
     * the executor's responsibility to implement the health checking.
     * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public boolean hasHealthCheck() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * A health check for the task. Implemented for executor-less
     * command-based tasks. For tasks that specify an executor, it is
     * the executor's responsibility to implement the health checking.
     * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public org.apache.mesos.v1.Protos.HealthCheck getHealthCheck() { return healthCheck_ == null ? org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance() : healthCheck_; } /** *
     * A health check for the task. Implemented for executor-less
     * command-based tasks. For tasks that specify an executor, it is
     * the executor's responsibility to implement the health checking.
     * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public org.apache.mesos.v1.Protos.HealthCheckOrBuilder getHealthCheckOrBuilder() { return healthCheck_ == null ? org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance() : healthCheck_; } public static final int CHECK_FIELD_NUMBER = 13; private org.apache.mesos.v1.Protos.CheckInfo check_; /** *
     * A general check for the task. Implemented for all built-in executors.
     * For tasks that specify an executor, it is the executor's responsibility
     * to implement checking support. Executors should (all built-in executors
     * will) neither interpret nor act on the check's result.
     * NOTE: Check support in built-in executors is experimental.
     * TODO(alexr): Consider supporting multiple checks per task.
     * 
* * optional .mesos.v1.CheckInfo check = 13; */ public boolean hasCheck() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     * A general check for the task. Implemented for all built-in executors.
     * For tasks that specify an executor, it is the executor's responsibility
     * to implement checking support. Executors should (all built-in executors
     * will) neither interpret nor act on the check's result.
     * NOTE: Check support in built-in executors is experimental.
     * TODO(alexr): Consider supporting multiple checks per task.
     * 
* * optional .mesos.v1.CheckInfo check = 13; */ public org.apache.mesos.v1.Protos.CheckInfo getCheck() { return check_ == null ? org.apache.mesos.v1.Protos.CheckInfo.getDefaultInstance() : check_; } /** *
     * A general check for the task. Implemented for all built-in executors.
     * For tasks that specify an executor, it is the executor's responsibility
     * to implement checking support. Executors should (all built-in executors
     * will) neither interpret nor act on the check's result.
     * NOTE: Check support in built-in executors is experimental.
     * TODO(alexr): Consider supporting multiple checks per task.
     * 
* * optional .mesos.v1.CheckInfo check = 13; */ public org.apache.mesos.v1.Protos.CheckInfoOrBuilder getCheckOrBuilder() { return check_ == null ? org.apache.mesos.v1.Protos.CheckInfo.getDefaultInstance() : check_; } public static final int KILL_POLICY_FIELD_NUMBER = 12; private org.apache.mesos.v1.Protos.KillPolicy killPolicy_; /** *
     * A kill policy for the task. Implemented for executor-less
     * command-based and docker tasks. For tasks that specify an
     * executor, it is the executor's responsibility to implement
     * the kill policy.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public boolean hasKillPolicy() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
     * A kill policy for the task. Implemented for executor-less
     * command-based and docker tasks. For tasks that specify an
     * executor, it is the executor's responsibility to implement
     * the kill policy.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() { return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_; } /** *
     * A kill policy for the task. Implemented for executor-less
     * command-based and docker tasks. For tasks that specify an
     * executor, it is the executor's responsibility to implement
     * the kill policy.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() { return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_; } public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.ByteString data_; /** * optional bytes data = 6; */ public boolean hasData() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bytes data = 6; */ public com.google.protobuf.ByteString getData() { return data_; } public static final int LABELS_FIELD_NUMBER = 10; private org.apache.mesos.v1.Protos.Labels labels_; /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag tasks with light-weight meta-data.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 10; */ public boolean hasLabels() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag tasks with light-weight meta-data.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 10; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag tasks with light-weight meta-data.
     * Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 10; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } public static final int DISCOVERY_FIELD_NUMBER = 11; private org.apache.mesos.v1.Protos.DiscoveryInfo discovery_; /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public boolean hasDiscovery() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery() { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder() { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } public static final int MAX_COMPLETION_TIME_FIELD_NUMBER = 14; private org.apache.mesos.v1.Protos.DurationInfo maxCompletionTime_; /** *
     * Maximum duration for task completion. If the task is non-terminal at the
     * end of this duration, it will fail with the reason
     * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
     * executor-less tasks, and tasks that use Docker or default executors.
     * It is the executor's responsibility to implement this, so it might not be
     * supported by all custom executors.
     * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public boolean hasMaxCompletionTime() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
     * Maximum duration for task completion. If the task is non-terminal at the
     * end of this duration, it will fail with the reason
     * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
     * executor-less tasks, and tasks that use Docker or default executors.
     * It is the executor's responsibility to implement this, so it might not be
     * supported by all custom executors.
     * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public org.apache.mesos.v1.Protos.DurationInfo getMaxCompletionTime() { return maxCompletionTime_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : maxCompletionTime_; } /** *
     * Maximum duration for task completion. If the task is non-terminal at the
     * end of this duration, it will fail with the reason
     * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
     * executor-less tasks, and tasks that use Docker or default executors.
     * It is the executor's responsibility to implement this, so it might not be
     * supported by all custom executors.
     * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getMaxCompletionTimeOrBuilder() { return maxCompletionTime_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : maxCompletionTime_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasTaskId()) { memoizedIsInitialized = 0; return false; } if (!hasAgentId()) { memoizedIsInitialized = 0; return false; } if (!getTaskId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasExecutor()) { if (!getExecutor().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCommand()) { if (!getCommand().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasContainer()) { if (!getContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasHealthCheck()) { if (!getHealthCheck().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCheck()) { if (!getCheck().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasKillPolicy()) { if (!getKillPolicy().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDiscovery()) { if (!getDiscovery().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasMaxCompletionTime()) { if (!getMaxCompletionTime().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getTaskId()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getAgentId()); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(4, resources_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, getExecutor()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(6, data_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(7, getCommand()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(8, getHealthCheck()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(9, getContainer()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(10, getLabels()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(11, getDiscovery()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(12, getKillPolicy()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(13, getCheck()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(14, getMaxCompletionTime()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTaskId()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAgentId()); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, resources_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getExecutor()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, data_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCommand()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getHealthCheck()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getContainer()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getLabels()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getDiscovery()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getKillPolicy()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getCheck()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getMaxCompletionTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TaskInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TaskInfo other = (org.apache.mesos.v1.Protos.TaskInfo) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasTaskId() == other.hasTaskId()); if (hasTaskId()) { result = result && getTaskId() .equals(other.getTaskId()); } result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && (hasExecutor() == other.hasExecutor()); if (hasExecutor()) { result = result && getExecutor() .equals(other.getExecutor()); } result = result && (hasCommand() == other.hasCommand()); if (hasCommand()) { result = result && getCommand() .equals(other.getCommand()); } result = result && (hasContainer() == other.hasContainer()); if (hasContainer()) { result = result && getContainer() .equals(other.getContainer()); } result = result && (hasHealthCheck() == other.hasHealthCheck()); if (hasHealthCheck()) { result = result && getHealthCheck() .equals(other.getHealthCheck()); } result = result && (hasCheck() == other.hasCheck()); if (hasCheck()) { result = result && getCheck() .equals(other.getCheck()); } result = result && (hasKillPolicy() == other.hasKillPolicy()); if (hasKillPolicy()) { result = result && getKillPolicy() .equals(other.getKillPolicy()); } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && (hasDiscovery() == other.hasDiscovery()); if (hasDiscovery()) { result = result && getDiscovery() .equals(other.getDiscovery()); } result = result && (hasMaxCompletionTime() == other.hasMaxCompletionTime()); if (hasMaxCompletionTime()) { result = result && getMaxCompletionTime() .equals(other.getMaxCompletionTime()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasTaskId()) { hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); } if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (hasExecutor()) { hash = (37 * hash) + EXECUTOR_FIELD_NUMBER; hash = (53 * hash) + getExecutor().hashCode(); } if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } if (hasContainer()) { hash = (37 * hash) + CONTAINER_FIELD_NUMBER; hash = (53 * hash) + getContainer().hashCode(); } if (hasHealthCheck()) { hash = (37 * hash) + HEALTH_CHECK_FIELD_NUMBER; hash = (53 * hash) + getHealthCheck().hashCode(); } if (hasCheck()) { hash = (37 * hash) + CHECK_FIELD_NUMBER; hash = (53 * hash) + getCheck().hashCode(); } if (hasKillPolicy()) { hash = (37 * hash) + KILL_POLICY_FIELD_NUMBER; hash = (53 * hash) + getKillPolicy().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } if (hasDiscovery()) { hash = (37 * hash) + DISCOVERY_FIELD_NUMBER; hash = (53 * hash) + getDiscovery().hashCode(); } if (hasMaxCompletionTime()) { hash = (37 * hash) + MAX_COMPLETION_TIME_FIELD_NUMBER; hash = (53 * hash) + getMaxCompletionTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TaskInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskInfo 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.Protos.TaskInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TaskInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a task. Passed from the scheduler all the way to an
     * executor (see SchedulerDriver::launchTasks and
     * Executor::launchTask). Either ExecutorInfo or CommandInfo should be set.
     * A different executor can be used to launch this task, and subsequent tasks
     * meant for the same executor can reuse the same ExecutorInfo struct.
     * 
* * Protobuf type {@code mesos.v1.TaskInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TaskInfo) org.apache.mesos.v1.Protos.TaskInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskInfo.class, org.apache.mesos.v1.Protos.TaskInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TaskInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTaskIdFieldBuilder(); getAgentIdFieldBuilder(); getResourcesFieldBuilder(); getExecutorFieldBuilder(); getCommandFieldBuilder(); getContainerFieldBuilder(); getHealthCheckFieldBuilder(); getCheckFieldBuilder(); getKillPolicyFieldBuilder(); getLabelsFieldBuilder(); getDiscoveryFieldBuilder(); getMaxCompletionTimeFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (taskIdBuilder_ == null) { taskId_ = null; } else { taskIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (agentIdBuilder_ == null) { agentId_ = null; } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { resourcesBuilder_.clear(); } if (executorBuilder_ == null) { executor_ = null; } else { executorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (commandBuilder_ == null) { command_ = null; } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (containerBuilder_ == null) { container_ = null; } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (healthCheckBuilder_ == null) { healthCheck_ = null; } else { healthCheckBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (checkBuilder_ == null) { check_ = null; } else { checkBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (killPolicyBuilder_ == null) { killPolicy_ = null; } else { killPolicyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000400); if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (discoveryBuilder_ == null) { discovery_ = null; } else { discoveryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (maxCompletionTimeBuilder_ == null) { maxCompletionTime_ = null; } else { maxCompletionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskInfo_descriptor; } public org.apache.mesos.v1.Protos.TaskInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TaskInfo build() { org.apache.mesos.v1.Protos.TaskInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TaskInfo buildPartial() { org.apache.mesos.v1.Protos.TaskInfo result = new org.apache.mesos.v1.Protos.TaskInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (taskIdBuilder_ == null) { result.taskId_ = taskId_; } else { result.taskId_ = taskIdBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (agentIdBuilder_ == null) { result.agentId_ = agentId_; } else { result.agentId_ = agentIdBuilder_.build(); } if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000008); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (executorBuilder_ == null) { result.executor_ = executor_; } else { result.executor_ = executorBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } if (containerBuilder_ == null) { result.container_ = container_; } else { result.container_ = containerBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } if (healthCheckBuilder_ == null) { result.healthCheck_ = healthCheck_; } else { result.healthCheck_ = healthCheckBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } if (checkBuilder_ == null) { result.check_ = check_; } else { result.check_ = checkBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000100; } if (killPolicyBuilder_ == null) { result.killPolicy_ = killPolicy_; } else { result.killPolicy_ = killPolicyBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000200; } result.data_ = data_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000400; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000800; } if (discoveryBuilder_ == null) { result.discovery_ = discovery_; } else { result.discovery_ = discoveryBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00001000; } if (maxCompletionTimeBuilder_ == null) { result.maxCompletionTime_ = maxCompletionTime_; } else { result.maxCompletionTime_ = maxCompletionTimeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TaskInfo) { return mergeFrom((org.apache.mesos.v1.Protos.TaskInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TaskInfo other) { if (other == org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasTaskId()) { mergeTaskId(other.getTaskId()); } if (other.hasAgentId()) { mergeAgentId(other.getAgentId()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000008); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (other.hasExecutor()) { mergeExecutor(other.getExecutor()); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (other.hasContainer()) { mergeContainer(other.getContainer()); } if (other.hasHealthCheck()) { mergeHealthCheck(other.getHealthCheck()); } if (other.hasCheck()) { mergeCheck(other.getCheck()); } if (other.hasKillPolicy()) { mergeKillPolicy(other.getKillPolicy()); } if (other.hasData()) { setData(other.getData()); } if (other.hasLabels()) { mergeLabels(other.getLabels()); } if (other.hasDiscovery()) { mergeDiscovery(other.getDiscovery()); } if (other.hasMaxCompletionTime()) { mergeMaxCompletionTime(other.getMaxCompletionTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasTaskId()) { return false; } if (!hasAgentId()) { return false; } if (!getTaskId().isInitialized()) { return false; } if (!getAgentId().isInitialized()) { return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } if (hasExecutor()) { if (!getExecutor().isInitialized()) { return false; } } if (hasCommand()) { if (!getCommand().isInitialized()) { return false; } } if (hasContainer()) { if (!getContainer().isInitialized()) { return false; } } if (hasHealthCheck()) { if (!getHealthCheck().isInitialized()) { return false; } } if (hasCheck()) { if (!getCheck().isInitialized()) { return false; } } if (hasKillPolicy()) { if (!getKillPolicy().isInitialized()) { return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { return false; } } if (hasDiscovery()) { if (!getDiscovery().isInitialized()) { return false; } } if (hasMaxCompletionTime()) { if (!getMaxCompletionTime().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.Protos.TaskInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TaskInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.TaskID taskId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> taskIdBuilder_; /** * required .mesos.v1.TaskID task_id = 2; */ public boolean hasTaskId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskID getTaskId() { if (taskIdBuilder_ == null) { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } else { return taskIdBuilder_.getMessage(); } } /** * required .mesos.v1.TaskID task_id = 2; */ public Builder setTaskId(org.apache.mesos.v1.Protos.TaskID value) { if (taskIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } taskId_ = value; onChanged(); } else { taskIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID task_id = 2; */ public Builder setTaskId( org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) { if (taskIdBuilder_ == null) { taskId_ = builderForValue.build(); onChanged(); } else { taskIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID task_id = 2; */ public Builder mergeTaskId(org.apache.mesos.v1.Protos.TaskID value) { if (taskIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && taskId_ != null && taskId_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) { taskId_ = org.apache.mesos.v1.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial(); } else { taskId_ = value; } onChanged(); } else { taskIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID task_id = 2; */ public Builder clearTaskId() { if (taskIdBuilder_ == null) { taskId_ = null; onChanged(); } else { taskIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskID.Builder getTaskIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTaskIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { if (taskIdBuilder_ != null) { return taskIdBuilder_.getMessageOrBuilder(); } else { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } } /** * required .mesos.v1.TaskID task_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> getTaskIdFieldBuilder() { if (taskIdBuilder_ == null) { taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>( getTaskId(), getParentForChildren(), isClean()); taskId_ = null; } return taskIdBuilder_; } private org.apache.mesos.v1.Protos.AgentID agentId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_; /** * required .mesos.v1.AgentID agent_id = 3; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { if (agentIdBuilder_ == null) { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } else { return agentIdBuilder_.getMessage(); } } /** * required .mesos.v1.AgentID agent_id = 3; */ public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentId_ = value; onChanged(); } else { agentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.AgentID agent_id = 3; */ public Builder setAgentId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (agentIdBuilder_ == null) { agentId_ = builderForValue.build(); onChanged(); } else { agentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.AgentID agent_id = 3; */ public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && agentId_ != null && agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { agentId_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial(); } else { agentId_ = value; } onChanged(); } else { agentIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.AgentID agent_id = 3; */ public Builder clearAgentId() { if (agentIdBuilder_ == null) { agentId_ = null; onChanged(); } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAgentIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.AgentID agent_id = 3; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { if (agentIdBuilder_ != null) { return agentIdBuilder_.getMessageOrBuilder(); } else { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } } /** * required .mesos.v1.AgentID agent_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getAgentIdFieldBuilder() { if (agentIdBuilder_ == null) { agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getAgentId(), getParentForChildren(), isClean()); agentId_ = null; } return agentIdBuilder_; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 4; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 4; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 4; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 4; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 4; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 4; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 4; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 4; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 4; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private org.apache.mesos.v1.Protos.ExecutorInfo executor_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder> executorBuilder_; /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public boolean hasExecutor() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public org.apache.mesos.v1.Protos.ExecutorInfo getExecutor() { if (executorBuilder_ == null) { return executor_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executor_; } else { return executorBuilder_.getMessage(); } } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public Builder setExecutor(org.apache.mesos.v1.Protos.ExecutorInfo value) { if (executorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executor_ = value; onChanged(); } else { executorBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public Builder setExecutor( org.apache.mesos.v1.Protos.ExecutorInfo.Builder builderForValue) { if (executorBuilder_ == null) { executor_ = builderForValue.build(); onChanged(); } else { executorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public Builder mergeExecutor(org.apache.mesos.v1.Protos.ExecutorInfo value) { if (executorBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && executor_ != null && executor_ != org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance()) { executor_ = org.apache.mesos.v1.Protos.ExecutorInfo.newBuilder(executor_).mergeFrom(value).buildPartial(); } else { executor_ = value; } onChanged(); } else { executorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public Builder clearExecutor() { if (executorBuilder_ == null) { executor_ = null; onChanged(); } else { executorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public org.apache.mesos.v1.Protos.ExecutorInfo.Builder getExecutorBuilder() { bitField0_ |= 0x00000010; onChanged(); return getExecutorFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorOrBuilder() { if (executorBuilder_ != null) { return executorBuilder_.getMessageOrBuilder(); } else { return executor_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executor_; } } /** * optional .mesos.v1.ExecutorInfo executor = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder> getExecutorFieldBuilder() { if (executorBuilder_ == null) { executorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder>( getExecutor(), getParentForChildren(), isClean()); executor_ = null; } return executorBuilder_; } private org.apache.mesos.v1.Protos.CommandInfo command_ = null; private com.google.protobuf.SingleFieldBuilderV3< 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 = 7; */ public boolean hasCommand() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { if (commandBuilder_ == null) { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } else { return commandBuilder_.getMessage(); } } /** * optional .mesos.v1.CommandInfo command = 7; */ 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_ |= 0x00000020; return this; } /** * optional .mesos.v1.CommandInfo command = 7; */ public Builder setCommand( org.apache.mesos.v1.Protos.CommandInfo.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.CommandInfo command = 7; */ public Builder mergeCommand(org.apache.mesos.v1.Protos.CommandInfo value) { if (commandBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && command_ != null && 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_ |= 0x00000020; return this; } /** * optional .mesos.v1.CommandInfo command = 7; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = null; onChanged(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfo.Builder getCommandBuilder() { bitField0_ |= 0x00000020; onChanged(); return getCommandFieldBuilder().getBuilder(); } /** * optional .mesos.v1.CommandInfo command = 7; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_ == null ? org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance() : command_; } } /** * optional .mesos.v1.CommandInfo command = 7; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder> containerBuilder_; /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public boolean hasContainer() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { if (containerBuilder_ == null) { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } else { return containerBuilder_.getMessage(); } } /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ 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_ |= 0x00000040; return this; } /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public Builder setContainer( org.apache.mesos.v1.Protos.ContainerInfo.Builder builderForValue) { if (containerBuilder_ == null) { container_ = builderForValue.build(); onChanged(); } else { containerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public Builder mergeContainer(org.apache.mesos.v1.Protos.ContainerInfo value) { if (containerBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && container_ != null && 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_ |= 0x00000040; return this; } /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public Builder clearContainer() { if (containerBuilder_ == null) { container_ = null; onChanged(); } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public org.apache.mesos.v1.Protos.ContainerInfo.Builder getContainerBuilder() { bitField0_ |= 0x00000040; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } } /** *
       * Task provided with a container will launch the container as part
       * of this task paired with the task's CommandInfo.
       * 
* * optional .mesos.v1.ContainerInfo container = 9; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_; } private org.apache.mesos.v1.Protos.HealthCheck healthCheck_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck, org.apache.mesos.v1.Protos.HealthCheck.Builder, org.apache.mesos.v1.Protos.HealthCheckOrBuilder> healthCheckBuilder_; /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public boolean hasHealthCheck() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public org.apache.mesos.v1.Protos.HealthCheck getHealthCheck() { if (healthCheckBuilder_ == null) { return healthCheck_ == null ? org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance() : healthCheck_; } else { return healthCheckBuilder_.getMessage(); } } /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public Builder setHealthCheck(org.apache.mesos.v1.Protos.HealthCheck value) { if (healthCheckBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthCheck_ = value; onChanged(); } else { healthCheckBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public Builder setHealthCheck( org.apache.mesos.v1.Protos.HealthCheck.Builder builderForValue) { if (healthCheckBuilder_ == null) { healthCheck_ = builderForValue.build(); onChanged(); } else { healthCheckBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public Builder mergeHealthCheck(org.apache.mesos.v1.Protos.HealthCheck value) { if (healthCheckBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && healthCheck_ != null && healthCheck_ != org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance()) { healthCheck_ = org.apache.mesos.v1.Protos.HealthCheck.newBuilder(healthCheck_).mergeFrom(value).buildPartial(); } else { healthCheck_ = value; } onChanged(); } else { healthCheckBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public Builder clearHealthCheck() { if (healthCheckBuilder_ == null) { healthCheck_ = null; onChanged(); } else { healthCheckBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public org.apache.mesos.v1.Protos.HealthCheck.Builder getHealthCheckBuilder() { bitField0_ |= 0x00000080; onChanged(); return getHealthCheckFieldBuilder().getBuilder(); } /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ public org.apache.mesos.v1.Protos.HealthCheckOrBuilder getHealthCheckOrBuilder() { if (healthCheckBuilder_ != null) { return healthCheckBuilder_.getMessageOrBuilder(); } else { return healthCheck_ == null ? org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance() : healthCheck_; } } /** *
       * A health check for the task. Implemented for executor-less
       * command-based tasks. For tasks that specify an executor, it is
       * the executor's responsibility to implement the health checking.
       * 
* * optional .mesos.v1.HealthCheck health_check = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck, org.apache.mesos.v1.Protos.HealthCheck.Builder, org.apache.mesos.v1.Protos.HealthCheckOrBuilder> getHealthCheckFieldBuilder() { if (healthCheckBuilder_ == null) { healthCheckBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck, org.apache.mesos.v1.Protos.HealthCheck.Builder, org.apache.mesos.v1.Protos.HealthCheckOrBuilder>( getHealthCheck(), getParentForChildren(), isClean()); healthCheck_ = null; } return healthCheckBuilder_; } private org.apache.mesos.v1.Protos.CheckInfo check_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo, org.apache.mesos.v1.Protos.CheckInfo.Builder, org.apache.mesos.v1.Protos.CheckInfoOrBuilder> checkBuilder_; /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ public boolean hasCheck() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ public org.apache.mesos.v1.Protos.CheckInfo getCheck() { if (checkBuilder_ == null) { return check_ == null ? org.apache.mesos.v1.Protos.CheckInfo.getDefaultInstance() : check_; } else { return checkBuilder_.getMessage(); } } /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ public Builder setCheck(org.apache.mesos.v1.Protos.CheckInfo value) { if (checkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } check_ = value; onChanged(); } else { checkBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ public Builder setCheck( org.apache.mesos.v1.Protos.CheckInfo.Builder builderForValue) { if (checkBuilder_ == null) { check_ = builderForValue.build(); onChanged(); } else { checkBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ public Builder mergeCheck(org.apache.mesos.v1.Protos.CheckInfo value) { if (checkBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && check_ != null && check_ != org.apache.mesos.v1.Protos.CheckInfo.getDefaultInstance()) { check_ = org.apache.mesos.v1.Protos.CheckInfo.newBuilder(check_).mergeFrom(value).buildPartial(); } else { check_ = value; } onChanged(); } else { checkBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ public Builder clearCheck() { if (checkBuilder_ == null) { check_ = null; onChanged(); } else { checkBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ public org.apache.mesos.v1.Protos.CheckInfo.Builder getCheckBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCheckFieldBuilder().getBuilder(); } /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ public org.apache.mesos.v1.Protos.CheckInfoOrBuilder getCheckOrBuilder() { if (checkBuilder_ != null) { return checkBuilder_.getMessageOrBuilder(); } else { return check_ == null ? org.apache.mesos.v1.Protos.CheckInfo.getDefaultInstance() : check_; } } /** *
       * A general check for the task. Implemented for all built-in executors.
       * For tasks that specify an executor, it is the executor's responsibility
       * to implement checking support. Executors should (all built-in executors
       * will) neither interpret nor act on the check's result.
       * NOTE: Check support in built-in executors is experimental.
       * TODO(alexr): Consider supporting multiple checks per task.
       * 
* * optional .mesos.v1.CheckInfo check = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo, org.apache.mesos.v1.Protos.CheckInfo.Builder, org.apache.mesos.v1.Protos.CheckInfoOrBuilder> getCheckFieldBuilder() { if (checkBuilder_ == null) { checkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckInfo, org.apache.mesos.v1.Protos.CheckInfo.Builder, org.apache.mesos.v1.Protos.CheckInfoOrBuilder>( getCheck(), getParentForChildren(), isClean()); check_ = null; } return checkBuilder_; } private org.apache.mesos.v1.Protos.KillPolicy killPolicy_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder> killPolicyBuilder_; /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public boolean hasKillPolicy() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() { if (killPolicyBuilder_ == null) { return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_; } else { return killPolicyBuilder_.getMessage(); } } /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public Builder setKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) { if (killPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } killPolicy_ = value; onChanged(); } else { killPolicyBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public Builder setKillPolicy( org.apache.mesos.v1.Protos.KillPolicy.Builder builderForValue) { if (killPolicyBuilder_ == null) { killPolicy_ = builderForValue.build(); onChanged(); } else { killPolicyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public Builder mergeKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) { if (killPolicyBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && killPolicy_ != null && killPolicy_ != org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance()) { killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.newBuilder(killPolicy_).mergeFrom(value).buildPartial(); } else { killPolicy_ = value; } onChanged(); } else { killPolicyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public Builder clearKillPolicy() { if (killPolicyBuilder_ == null) { killPolicy_ = null; onChanged(); } else { killPolicyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public org.apache.mesos.v1.Protos.KillPolicy.Builder getKillPolicyBuilder() { bitField0_ |= 0x00000200; onChanged(); return getKillPolicyFieldBuilder().getBuilder(); } /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() { if (killPolicyBuilder_ != null) { return killPolicyBuilder_.getMessageOrBuilder(); } else { return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_; } } /** *
       * A kill policy for the task. Implemented for executor-less
       * command-based and docker tasks. For tasks that specify an
       * executor, it is the executor's responsibility to implement
       * the kill policy.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder> getKillPolicyFieldBuilder() { if (killPolicyBuilder_ == null) { killPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder>( getKillPolicy(), getParentForChildren(), isClean()); killPolicy_ = null; } return killPolicyBuilder_; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 6; */ public boolean hasData() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bytes data = 6; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 6; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; data_ = value; onChanged(); return this; } /** * optional bytes data = 6; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000400); data_ = getDefaultInstance().getData(); onChanged(); return this; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ public boolean hasLabels() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00000800; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag tasks with light-weight meta-data.
       * Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } private org.apache.mesos.v1.Protos.DiscoveryInfo discovery_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder> discoveryBuilder_; /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public boolean hasDiscovery() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery() { if (discoveryBuilder_ == null) { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } else { return discoveryBuilder_.getMessage(); } } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public Builder setDiscovery(org.apache.mesos.v1.Protos.DiscoveryInfo value) { if (discoveryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } discovery_ = value; onChanged(); } else { discoveryBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public Builder setDiscovery( org.apache.mesos.v1.Protos.DiscoveryInfo.Builder builderForValue) { if (discoveryBuilder_ == null) { discovery_ = builderForValue.build(); onChanged(); } else { discoveryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public Builder mergeDiscovery(org.apache.mesos.v1.Protos.DiscoveryInfo value) { if (discoveryBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && discovery_ != null && discovery_ != org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance()) { discovery_ = org.apache.mesos.v1.Protos.DiscoveryInfo.newBuilder(discovery_).mergeFrom(value).buildPartial(); } else { discovery_ = value; } onChanged(); } else { discoveryBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public Builder clearDiscovery() { if (discoveryBuilder_ == null) { discovery_ = null; onChanged(); } else { discoveryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public org.apache.mesos.v1.Protos.DiscoveryInfo.Builder getDiscoveryBuilder() { bitField0_ |= 0x00001000; onChanged(); return getDiscoveryFieldBuilder().getBuilder(); } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ public org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder() { if (discoveryBuilder_ != null) { return discoveryBuilder_.getMessageOrBuilder(); } else { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder> getDiscoveryFieldBuilder() { if (discoveryBuilder_ == null) { discoveryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder>( getDiscovery(), getParentForChildren(), isClean()); discovery_ = null; } return discoveryBuilder_; } private org.apache.mesos.v1.Protos.DurationInfo maxCompletionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> maxCompletionTimeBuilder_; /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public boolean hasMaxCompletionTime() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public org.apache.mesos.v1.Protos.DurationInfo getMaxCompletionTime() { if (maxCompletionTimeBuilder_ == null) { return maxCompletionTime_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : maxCompletionTime_; } else { return maxCompletionTimeBuilder_.getMessage(); } } /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public Builder setMaxCompletionTime(org.apache.mesos.v1.Protos.DurationInfo value) { if (maxCompletionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxCompletionTime_ = value; onChanged(); } else { maxCompletionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public Builder setMaxCompletionTime( org.apache.mesos.v1.Protos.DurationInfo.Builder builderForValue) { if (maxCompletionTimeBuilder_ == null) { maxCompletionTime_ = builderForValue.build(); onChanged(); } else { maxCompletionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public Builder mergeMaxCompletionTime(org.apache.mesos.v1.Protos.DurationInfo value) { if (maxCompletionTimeBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && maxCompletionTime_ != null && maxCompletionTime_ != org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance()) { maxCompletionTime_ = org.apache.mesos.v1.Protos.DurationInfo.newBuilder(maxCompletionTime_).mergeFrom(value).buildPartial(); } else { maxCompletionTime_ = value; } onChanged(); } else { maxCompletionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public Builder clearMaxCompletionTime() { if (maxCompletionTimeBuilder_ == null) { maxCompletionTime_ = null; onChanged(); } else { maxCompletionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public org.apache.mesos.v1.Protos.DurationInfo.Builder getMaxCompletionTimeBuilder() { bitField0_ |= 0x00002000; onChanged(); return getMaxCompletionTimeFieldBuilder().getBuilder(); } /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getMaxCompletionTimeOrBuilder() { if (maxCompletionTimeBuilder_ != null) { return maxCompletionTimeBuilder_.getMessageOrBuilder(); } else { return maxCompletionTime_ == null ? org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance() : maxCompletionTime_; } } /** *
       * Maximum duration for task completion. If the task is non-terminal at the
       * end of this duration, it will fail with the reason
       * `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
       * executor-less tasks, and tasks that use Docker or default executors.
       * It is the executor's responsibility to implement this, so it might not be
       * supported by all custom executors.
       * 
* * optional .mesos.v1.DurationInfo max_completion_time = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> getMaxCompletionTimeFieldBuilder() { if (maxCompletionTimeBuilder_ == null) { maxCompletionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder>( getMaxCompletionTime(), getParentForChildren(), isClean()); maxCompletionTime_ = null; } return maxCompletionTimeBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TaskInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.TaskInfo) private static final org.apache.mesos.v1.Protos.TaskInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TaskInfo(); } public static org.apache.mesos.v1.Protos.TaskInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TaskInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TaskInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskGroupInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TaskGroupInfo) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.TaskInfo tasks = 1; */ java.util.List getTasksList(); /** * repeated .mesos.v1.TaskInfo tasks = 1; */ org.apache.mesos.v1.Protos.TaskInfo getTasks(int index); /** * repeated .mesos.v1.TaskInfo tasks = 1; */ int getTasksCount(); /** * repeated .mesos.v1.TaskInfo tasks = 1; */ java.util.List getTasksOrBuilderList(); /** * repeated .mesos.v1.TaskInfo tasks = 1; */ org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTasksOrBuilder( int index); } /** *
   **
   * Describes a group of tasks that belong to an executor. The
   * executor will receive the task group in a single message to
   * allow the group to be launched "atomically".
   * NOTES:
   * 1) `NetworkInfo` must not be set inside task's `ContainerInfo`.
   * 2) `TaskInfo.executor` doesn't need to set. If set, it should match
   *    `LaunchGroup.executor`.
   * 
* * Protobuf type {@code mesos.v1.TaskGroupInfo} */ public static final class TaskGroupInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TaskGroupInfo) TaskGroupInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TaskGroupInfo.newBuilder() to construct. private TaskGroupInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskGroupInfo() { tasks_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskGroupInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { tasks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } tasks_.add( input.readMessage(org.apache.mesos.v1.Protos.TaskInfo.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { tasks_ = java.util.Collections.unmodifiableList(tasks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskGroupInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskGroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskGroupInfo.class, org.apache.mesos.v1.Protos.TaskGroupInfo.Builder.class); } public static final int TASKS_FIELD_NUMBER = 1; private java.util.List tasks_; /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public java.util.List getTasksList() { return tasks_; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public java.util.List getTasksOrBuilderList() { return tasks_; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public int getTasksCount() { return tasks_.size(); } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public org.apache.mesos.v1.Protos.TaskInfo getTasks(int index) { return tasks_.get(index); } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTasksOrBuilder( int index) { return tasks_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getTasksCount(); i++) { if (!getTasks(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < tasks_.size(); i++) { output.writeMessage(1, tasks_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < tasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tasks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TaskGroupInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TaskGroupInfo other = (org.apache.mesos.v1.Protos.TaskGroupInfo) obj; boolean result = true; result = result && getTasksList() .equals(other.getTasksList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTasksCount() > 0) { hash = (37 * hash) + TASKS_FIELD_NUMBER; hash = (53 * hash) + getTasksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskGroupInfo 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.Protos.TaskGroupInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskGroupInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TaskGroupInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a group of tasks that belong to an executor. The
     * executor will receive the task group in a single message to
     * allow the group to be launched "atomically".
     * NOTES:
     * 1) `NetworkInfo` must not be set inside task's `ContainerInfo`.
     * 2) `TaskInfo.executor` doesn't need to set. If set, it should match
     *    `LaunchGroup.executor`.
     * 
* * Protobuf type {@code mesos.v1.TaskGroupInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TaskGroupInfo) org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskGroupInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskGroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskGroupInfo.class, org.apache.mesos.v1.Protos.TaskGroupInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TaskGroupInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTasksFieldBuilder(); } } public Builder clear() { super.clear(); if (tasksBuilder_ == null) { tasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { tasksBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskGroupInfo_descriptor; } public org.apache.mesos.v1.Protos.TaskGroupInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TaskGroupInfo build() { org.apache.mesos.v1.Protos.TaskGroupInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TaskGroupInfo buildPartial() { org.apache.mesos.v1.Protos.TaskGroupInfo result = new org.apache.mesos.v1.Protos.TaskGroupInfo(this); int from_bitField0_ = bitField0_; if (tasksBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { tasks_ = java.util.Collections.unmodifiableList(tasks_); bitField0_ = (bitField0_ & ~0x00000001); } result.tasks_ = tasks_; } else { result.tasks_ = tasksBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TaskGroupInfo) { return mergeFrom((org.apache.mesos.v1.Protos.TaskGroupInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TaskGroupInfo other) { if (other == org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance()) return this; if (tasksBuilder_ == null) { if (!other.tasks_.isEmpty()) { if (tasks_.isEmpty()) { tasks_ = other.tasks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTasksIsMutable(); tasks_.addAll(other.tasks_); } onChanged(); } } else { if (!other.tasks_.isEmpty()) { if (tasksBuilder_.isEmpty()) { tasksBuilder_.dispose(); tasksBuilder_ = null; tasks_ = other.tasks_; bitField0_ = (bitField0_ & ~0x00000001); tasksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTasksFieldBuilder() : null; } else { tasksBuilder_.addAllMessages(other.tasks_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getTasksCount(); i++) { if (!getTasks(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.Protos.TaskGroupInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TaskGroupInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List tasks_ = java.util.Collections.emptyList(); private void ensureTasksIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { tasks_ = new java.util.ArrayList(tasks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder> tasksBuilder_; /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public java.util.List getTasksList() { if (tasksBuilder_ == null) { return java.util.Collections.unmodifiableList(tasks_); } else { return tasksBuilder_.getMessageList(); } } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public int getTasksCount() { if (tasksBuilder_ == null) { return tasks_.size(); } else { return tasksBuilder_.getCount(); } } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public org.apache.mesos.v1.Protos.TaskInfo getTasks(int index) { if (tasksBuilder_ == null) { return tasks_.get(index); } else { return tasksBuilder_.getMessage(index); } } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder setTasks( int index, org.apache.mesos.v1.Protos.TaskInfo value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTasksIsMutable(); tasks_.set(index, value); onChanged(); } else { tasksBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder setTasks( int index, org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.set(index, builderForValue.build()); onChanged(); } else { tasksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder addTasks(org.apache.mesos.v1.Protos.TaskInfo value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTasksIsMutable(); tasks_.add(value); onChanged(); } else { tasksBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder addTasks( int index, org.apache.mesos.v1.Protos.TaskInfo value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTasksIsMutable(); tasks_.add(index, value); onChanged(); } else { tasksBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder addTasks( org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.add(builderForValue.build()); onChanged(); } else { tasksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder addTasks( int index, org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.add(index, builderForValue.build()); onChanged(); } else { tasksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder addAllTasks( java.lang.Iterable values) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tasks_); onChanged(); } else { tasksBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder clearTasks() { if (tasksBuilder_ == null) { tasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tasksBuilder_.clear(); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public Builder removeTasks(int index) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.remove(index); onChanged(); } else { tasksBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public org.apache.mesos.v1.Protos.TaskInfo.Builder getTasksBuilder( int index) { return getTasksFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTasksOrBuilder( int index) { if (tasksBuilder_ == null) { return tasks_.get(index); } else { return tasksBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public java.util.List getTasksOrBuilderList() { if (tasksBuilder_ != null) { return tasksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tasks_); } } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public org.apache.mesos.v1.Protos.TaskInfo.Builder addTasksBuilder() { return getTasksFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance()); } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public org.apache.mesos.v1.Protos.TaskInfo.Builder addTasksBuilder( int index) { return getTasksFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance()); } /** * repeated .mesos.v1.TaskInfo tasks = 1; */ public java.util.List getTasksBuilderList() { return getTasksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder> getTasksFieldBuilder() { if (tasksBuilder_ == null) { tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder>( tasks_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); tasks_ = null; } return tasksBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TaskGroupInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.TaskGroupInfo) private static final org.apache.mesos.v1.Protos.TaskGroupInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TaskGroupInfo(); } public static org.apache.mesos.v1.Protos.TaskGroupInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TaskGroupInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskGroupInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TaskGroupInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Task) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required .mesos.v1.TaskID task_id = 2; */ boolean hasTaskId(); /** * required .mesos.v1.TaskID task_id = 2; */ org.apache.mesos.v1.Protos.TaskID getTaskId(); /** * required .mesos.v1.TaskID task_id = 2; */ org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder(); /** * required .mesos.v1.FrameworkID framework_id = 3; */ boolean hasFrameworkId(); /** * required .mesos.v1.FrameworkID framework_id = 3; */ org.apache.mesos.v1.Protos.FrameworkID getFrameworkId(); /** * required .mesos.v1.FrameworkID framework_id = 3; */ org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder(); /** * optional .mesos.v1.ExecutorID executor_id = 4; */ boolean hasExecutorId(); /** * optional .mesos.v1.ExecutorID executor_id = 4; */ org.apache.mesos.v1.Protos.ExecutorID getExecutorId(); /** * optional .mesos.v1.ExecutorID executor_id = 4; */ org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder(); /** * required .mesos.v1.AgentID agent_id = 5; */ boolean hasAgentId(); /** * required .mesos.v1.AgentID agent_id = 5; */ org.apache.mesos.v1.Protos.AgentID getAgentId(); /** * required .mesos.v1.AgentID agent_id = 5; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder(); /** *
     * Latest state of the task.
     * 
* * required .mesos.v1.TaskState state = 6; */ boolean hasState(); /** *
     * Latest state of the task.
     * 
* * required .mesos.v1.TaskState state = 6; */ org.apache.mesos.v1.Protos.TaskState getState(); /** * repeated .mesos.v1.Resource resources = 7; */ java.util.List getResourcesList(); /** * repeated .mesos.v1.Resource resources = 7; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** * repeated .mesos.v1.Resource resources = 7; */ int getResourcesCount(); /** * repeated .mesos.v1.Resource resources = 7; */ java.util.List getResourcesOrBuilderList(); /** * repeated .mesos.v1.Resource resources = 7; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); /** * repeated .mesos.v1.TaskStatus statuses = 8; */ java.util.List getStatusesList(); /** * repeated .mesos.v1.TaskStatus statuses = 8; */ org.apache.mesos.v1.Protos.TaskStatus getStatuses(int index); /** * repeated .mesos.v1.TaskStatus statuses = 8; */ int getStatusesCount(); /** * repeated .mesos.v1.TaskStatus statuses = 8; */ java.util.List getStatusesOrBuilderList(); /** * repeated .mesos.v1.TaskStatus statuses = 8; */ org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusesOrBuilder( int index); /** *
     * These fields correspond to the state and uuid of the latest
     * status update forwarded to the master.
     * NOTE: Either both the fields must be set or both must be unset.
     * 
* * optional .mesos.v1.TaskState status_update_state = 9; */ boolean hasStatusUpdateState(); /** *
     * These fields correspond to the state and uuid of the latest
     * status update forwarded to the master.
     * NOTE: Either both the fields must be set or both must be unset.
     * 
* * optional .mesos.v1.TaskState status_update_state = 9; */ org.apache.mesos.v1.Protos.TaskState getStatusUpdateState(); /** * optional bytes status_update_uuid = 10; */ boolean hasStatusUpdateUuid(); /** * optional bytes status_update_uuid = 10; */ com.google.protobuf.ByteString getStatusUpdateUuid(); /** * optional .mesos.v1.Labels labels = 11; */ boolean hasLabels(); /** * optional .mesos.v1.Labels labels = 11; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** * optional .mesos.v1.Labels labels = 11; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ boolean hasDiscovery(); /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery(); /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder(); /** *
     * Container information for the task.
     * 
* * optional .mesos.v1.ContainerInfo container = 13; */ boolean hasContainer(); /** *
     * Container information for the task.
     * 
* * optional .mesos.v1.ContainerInfo container = 13; */ org.apache.mesos.v1.Protos.ContainerInfo getContainer(); /** *
     * Container information for the task.
     * 
* * optional .mesos.v1.ContainerInfo container = 13; */ org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder(); /** * optional .mesos.v1.HealthCheck health_check = 15; */ boolean hasHealthCheck(); /** * optional .mesos.v1.HealthCheck health_check = 15; */ org.apache.mesos.v1.Protos.HealthCheck getHealthCheck(); /** * optional .mesos.v1.HealthCheck health_check = 15; */ org.apache.mesos.v1.Protos.HealthCheckOrBuilder getHealthCheckOrBuilder(); /** *
     * The kill policy used for this task when it is killed. It's possible for
     * this policy to be overridden by the scheduler when killing the task.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ boolean hasKillPolicy(); /** *
     * The kill policy used for this task when it is killed. It's possible for
     * this policy to be overridden by the scheduler when killing the task.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ org.apache.mesos.v1.Protos.KillPolicy getKillPolicy(); /** *
     * The kill policy used for this task when it is killed. It's possible for
     * this policy to be overridden by the scheduler when killing the task.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder(); /** *
     * Specific user under which task is running.
     * 
* * optional string user = 14; */ boolean hasUser(); /** *
     * Specific user under which task is running.
     * 
* * optional string user = 14; */ java.lang.String getUser(); /** *
     * Specific user under which task is running.
     * 
* * optional string user = 14; */ com.google.protobuf.ByteString getUserBytes(); } /** *
   **
   * Describes a task, similar to `TaskInfo`.
   * `Task` is used in some of the Mesos messages found below.
   * `Task` is used instead of `TaskInfo` if:
   *   1) we need additional IDs, such as a specific
   *      framework, executor, or agent; or
   *   2) we do not need the additional data, such as the command run by the
   *      task. These additional fields may be large and unnecessary for some
   *      Mesos messages.
   * `Task` is generally constructed from a `TaskInfo`.  See protobuf::createTask.
   * 
* * Protobuf type {@code mesos.v1.Task} */ public static final class Task extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Task) TaskOrBuilder { private static final long serialVersionUID = 0L; // Use Task.newBuilder() to construct. private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Task() { name_ = ""; state_ = 6; resources_ = java.util.Collections.emptyList(); statuses_ = java.util.Collections.emptyList(); statusUpdateState_ = 6; statusUpdateUuid_ = com.google.protobuf.ByteString.EMPTY; user_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Task( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { org.apache.mesos.v1.Protos.TaskID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = taskId_.toBuilder(); } taskId_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(taskId_); taskId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.FrameworkID.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = frameworkId_.toBuilder(); } frameworkId_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(frameworkId_); frameworkId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = executorId_.toBuilder(); } executorId_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executorId_); executorId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = agentId_.toBuilder(); } agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentId_); agentId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 48: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.TaskState value = org.apache.mesos.v1.Protos.TaskState.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { bitField0_ |= 0x00000020; state_ = rawValue; } break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { statuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } statuses_.add( input.readMessage(org.apache.mesos.v1.Protos.TaskStatus.PARSER, extensionRegistry)); break; } case 72: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.TaskState value = org.apache.mesos.v1.Protos.TaskState.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { bitField0_ |= 0x00000040; statusUpdateState_ = rawValue; } break; } case 82: { bitField0_ |= 0x00000080; statusUpdateUuid_ = input.readBytes(); break; } case 90: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 98: { org.apache.mesos.v1.Protos.DiscoveryInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = discovery_.toBuilder(); } discovery_ = input.readMessage(org.apache.mesos.v1.Protos.DiscoveryInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(discovery_); discovery_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 106: { org.apache.mesos.v1.Protos.ContainerInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = container_.toBuilder(); } container_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(container_); container_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 114: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00002000; user_ = bs; break; } case 122: { org.apache.mesos.v1.Protos.HealthCheck.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = healthCheck_.toBuilder(); } healthCheck_ = input.readMessage(org.apache.mesos.v1.Protos.HealthCheck.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(healthCheck_); healthCheck_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 130: { org.apache.mesos.v1.Protos.KillPolicy.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = killPolicy_.toBuilder(); } killPolicy_ = input.readMessage(org.apache.mesos.v1.Protos.KillPolicy.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(killPolicy_); killPolicy_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { resources_ = java.util.Collections.unmodifiableList(resources_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { statuses_ = java.util.Collections.unmodifiableList(statuses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Task_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Task.class, org.apache.mesos.v1.Protos.Task.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TASK_ID_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.TaskID taskId_; /** * required .mesos.v1.TaskID task_id = 2; */ public boolean hasTaskId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskID getTaskId() { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } public static final int FRAMEWORK_ID_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.FrameworkID frameworkId_; /** * required .mesos.v1.FrameworkID framework_id = 3; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } /** * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } public static final int EXECUTOR_ID_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.ExecutorID executorId_; /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public boolean hasExecutorId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } public static final int AGENT_ID_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.AgentID agentId_; /** * required .mesos.v1.AgentID agent_id = 5; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } /** * required .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } public static final int STATE_FIELD_NUMBER = 6; private int state_; /** *
     * Latest state of the task.
     * 
* * required .mesos.v1.TaskState state = 6; */ public boolean hasState() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * Latest state of the task.
     * 
* * required .mesos.v1.TaskState state = 6; */ public org.apache.mesos.v1.Protos.TaskState getState() { org.apache.mesos.v1.Protos.TaskState result = org.apache.mesos.v1.Protos.TaskState.valueOf(state_); return result == null ? org.apache.mesos.v1.Protos.TaskState.TASK_STAGING : result; } public static final int RESOURCES_FIELD_NUMBER = 7; private java.util.List resources_; /** * repeated .mesos.v1.Resource resources = 7; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 7; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .mesos.v1.Resource resources = 7; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .mesos.v1.Resource resources = 7; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** * repeated .mesos.v1.Resource resources = 7; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int STATUSES_FIELD_NUMBER = 8; private java.util.List statuses_; /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public java.util.List getStatusesList() { return statuses_; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public java.util.List getStatusesOrBuilderList() { return statuses_; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public int getStatusesCount() { return statuses_.size(); } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public org.apache.mesos.v1.Protos.TaskStatus getStatuses(int index) { return statuses_.get(index); } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusesOrBuilder( int index) { return statuses_.get(index); } public static final int STATUS_UPDATE_STATE_FIELD_NUMBER = 9; private int statusUpdateState_; /** *
     * These fields correspond to the state and uuid of the latest
     * status update forwarded to the master.
     * NOTE: Either both the fields must be set or both must be unset.
     * 
* * optional .mesos.v1.TaskState status_update_state = 9; */ public boolean hasStatusUpdateState() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * These fields correspond to the state and uuid of the latest
     * status update forwarded to the master.
     * NOTE: Either both the fields must be set or both must be unset.
     * 
* * optional .mesos.v1.TaskState status_update_state = 9; */ public org.apache.mesos.v1.Protos.TaskState getStatusUpdateState() { org.apache.mesos.v1.Protos.TaskState result = org.apache.mesos.v1.Protos.TaskState.valueOf(statusUpdateState_); return result == null ? org.apache.mesos.v1.Protos.TaskState.TASK_STAGING : result; } public static final int STATUS_UPDATE_UUID_FIELD_NUMBER = 10; private com.google.protobuf.ByteString statusUpdateUuid_; /** * optional bytes status_update_uuid = 10; */ public boolean hasStatusUpdateUuid() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bytes status_update_uuid = 10; */ public com.google.protobuf.ByteString getStatusUpdateUuid() { return statusUpdateUuid_; } public static final int LABELS_FIELD_NUMBER = 11; private org.apache.mesos.v1.Protos.Labels labels_; /** * optional .mesos.v1.Labels labels = 11; */ public boolean hasLabels() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } public static final int DISCOVERY_FIELD_NUMBER = 12; private org.apache.mesos.v1.Protos.DiscoveryInfo discovery_; /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public boolean hasDiscovery() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery() { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } /** *
     * Service discovery information for the task. It is not interpreted
     * or acted upon by Mesos. It is up to a service discovery system
     * to use this information as needed and to handle tasks without
     * service discovery information.
     * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder() { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } public static final int CONTAINER_FIELD_NUMBER = 13; private org.apache.mesos.v1.Protos.ContainerInfo container_; /** *
     * Container information for the task.
     * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public boolean hasContainer() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
     * Container information for the task.
     * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } /** *
     * Container information for the task.
     * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } public static final int HEALTH_CHECK_FIELD_NUMBER = 15; private org.apache.mesos.v1.Protos.HealthCheck healthCheck_; /** * optional .mesos.v1.HealthCheck health_check = 15; */ public boolean hasHealthCheck() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public org.apache.mesos.v1.Protos.HealthCheck getHealthCheck() { return healthCheck_ == null ? org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance() : healthCheck_; } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public org.apache.mesos.v1.Protos.HealthCheckOrBuilder getHealthCheckOrBuilder() { return healthCheck_ == null ? org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance() : healthCheck_; } public static final int KILL_POLICY_FIELD_NUMBER = 16; private org.apache.mesos.v1.Protos.KillPolicy killPolicy_; /** *
     * The kill policy used for this task when it is killed. It's possible for
     * this policy to be overridden by the scheduler when killing the task.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public boolean hasKillPolicy() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
     * The kill policy used for this task when it is killed. It's possible for
     * this policy to be overridden by the scheduler when killing the task.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() { return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_; } /** *
     * The kill policy used for this task when it is killed. It's possible for
     * this policy to be overridden by the scheduler when killing the task.
     * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() { return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_; } public static final int USER_FIELD_NUMBER = 14; private volatile java.lang.Object user_; /** *
     * Specific user under which task is running.
     * 
* * optional string user = 14; */ public boolean hasUser() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
     * Specific user under which task is running.
     * 
* * optional string user = 14; */ public java.lang.String getUser() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { user_ = s; } return s; } } /** *
     * Specific user under which task is running.
     * 
* * optional string user = 14; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasTaskId()) { memoizedIsInitialized = 0; return false; } if (!hasFrameworkId()) { memoizedIsInitialized = 0; return false; } if (!hasAgentId()) { memoizedIsInitialized = 0; return false; } if (!hasState()) { memoizedIsInitialized = 0; return false; } if (!getTaskId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getFrameworkId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasExecutorId()) { if (!getExecutorId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getStatusesCount(); i++) { if (!getStatuses(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDiscovery()) { if (!getDiscovery().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasContainer()) { if (!getContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasHealthCheck()) { if (!getHealthCheck().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasKillPolicy()) { if (!getKillPolicy().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getTaskId()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getFrameworkId()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getExecutorId()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getAgentId()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeEnum(6, state_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(7, resources_.get(i)); } for (int i = 0; i < statuses_.size(); i++) { output.writeMessage(8, statuses_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeEnum(9, statusUpdateState_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(10, statusUpdateUuid_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(11, getLabels()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(12, getDiscovery()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(13, getContainer()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, user_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(15, getHealthCheck()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(16, getKillPolicy()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTaskId()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFrameworkId()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExecutorId()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAgentId()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, state_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, resources_.get(i)); } for (int i = 0; i < statuses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, statuses_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, statusUpdateState_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, statusUpdateUuid_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getLabels()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getDiscovery()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getContainer()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, user_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getHealthCheck()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getKillPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Task)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Task other = (org.apache.mesos.v1.Protos.Task) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasTaskId() == other.hasTaskId()); if (hasTaskId()) { result = result && getTaskId() .equals(other.getTaskId()); } result = result && (hasFrameworkId() == other.hasFrameworkId()); if (hasFrameworkId()) { result = result && getFrameworkId() .equals(other.getFrameworkId()); } result = result && (hasExecutorId() == other.hasExecutorId()); if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId()); } result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasState() == other.hasState()); if (hasState()) { result = result && state_ == other.state_; } result = result && getResourcesList() .equals(other.getResourcesList()); result = result && getStatusesList() .equals(other.getStatusesList()); result = result && (hasStatusUpdateState() == other.hasStatusUpdateState()); if (hasStatusUpdateState()) { result = result && statusUpdateState_ == other.statusUpdateState_; } result = result && (hasStatusUpdateUuid() == other.hasStatusUpdateUuid()); if (hasStatusUpdateUuid()) { result = result && getStatusUpdateUuid() .equals(other.getStatusUpdateUuid()); } result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && (hasDiscovery() == other.hasDiscovery()); if (hasDiscovery()) { result = result && getDiscovery() .equals(other.getDiscovery()); } result = result && (hasContainer() == other.hasContainer()); if (hasContainer()) { result = result && getContainer() .equals(other.getContainer()); } result = result && (hasHealthCheck() == other.hasHealthCheck()); if (hasHealthCheck()) { result = result && getHealthCheck() .equals(other.getHealthCheck()); } result = result && (hasKillPolicy() == other.hasKillPolicy()); if (hasKillPolicy()) { result = result && getKillPolicy() .equals(other.getKillPolicy()); } result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser() .equals(other.getUser()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasTaskId()) { hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); } if (hasFrameworkId()) { hash = (37 * hash) + FRAMEWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getFrameworkId().hashCode(); } if (hasExecutorId()) { hash = (37 * hash) + EXECUTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getExecutorId().hashCode(); } if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (getStatusesCount() > 0) { hash = (37 * hash) + STATUSES_FIELD_NUMBER; hash = (53 * hash) + getStatusesList().hashCode(); } if (hasStatusUpdateState()) { hash = (37 * hash) + STATUS_UPDATE_STATE_FIELD_NUMBER; hash = (53 * hash) + statusUpdateState_; } if (hasStatusUpdateUuid()) { hash = (37 * hash) + STATUS_UPDATE_UUID_FIELD_NUMBER; hash = (53 * hash) + getStatusUpdateUuid().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } if (hasDiscovery()) { hash = (37 * hash) + DISCOVERY_FIELD_NUMBER; hash = (53 * hash) + getDiscovery().hashCode(); } if (hasContainer()) { hash = (37 * hash) + CONTAINER_FIELD_NUMBER; hash = (53 * hash) + getContainer().hashCode(); } if (hasHealthCheck()) { hash = (37 * hash) + HEALTH_CHECK_FIELD_NUMBER; hash = (53 * hash) + getHealthCheck().hashCode(); } if (hasKillPolicy()) { hash = (37 * hash) + KILL_POLICY_FIELD_NUMBER; hash = (53 * hash) + getKillPolicy().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Task parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Task parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Task parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Task 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.Protos.Task parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Task parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Task parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Task parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Task parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Task parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Task parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Task parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Task prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a task, similar to `TaskInfo`.
     * `Task` is used in some of the Mesos messages found below.
     * `Task` is used instead of `TaskInfo` if:
     *   1) we need additional IDs, such as a specific
     *      framework, executor, or agent; or
     *   2) we do not need the additional data, such as the command run by the
     *      task. These additional fields may be large and unnecessary for some
     *      Mesos messages.
     * `Task` is generally constructed from a `TaskInfo`.  See protobuf::createTask.
     * 
* * Protobuf type {@code mesos.v1.Task} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Task) org.apache.mesos.v1.Protos.TaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Task_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Task.class, org.apache.mesos.v1.Protos.Task.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Task.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTaskIdFieldBuilder(); getFrameworkIdFieldBuilder(); getExecutorIdFieldBuilder(); getAgentIdFieldBuilder(); getResourcesFieldBuilder(); getStatusesFieldBuilder(); getLabelsFieldBuilder(); getDiscoveryFieldBuilder(); getContainerFieldBuilder(); getHealthCheckFieldBuilder(); getKillPolicyFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (taskIdBuilder_ == null) { taskId_ = null; } else { taskIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (frameworkIdBuilder_ == null) { frameworkId_ = null; } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (executorIdBuilder_ == null) { executorId_ = null; } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (agentIdBuilder_ == null) { agentId_ = null; } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); state_ = 6; bitField0_ = (bitField0_ & ~0x00000020); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { resourcesBuilder_.clear(); } if (statusesBuilder_ == null) { statuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { statusesBuilder_.clear(); } statusUpdateState_ = 6; bitField0_ = (bitField0_ & ~0x00000100); statusUpdateUuid_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (discoveryBuilder_ == null) { discovery_ = null; } else { discoveryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (containerBuilder_ == null) { container_ = null; } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (healthCheckBuilder_ == null) { healthCheck_ = null; } else { healthCheckBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (killPolicyBuilder_ == null) { killPolicy_ = null; } else { killPolicyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); user_ = ""; bitField0_ = (bitField0_ & ~0x00008000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Task_descriptor; } public org.apache.mesos.v1.Protos.Task getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Task.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Task build() { org.apache.mesos.v1.Protos.Task result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Task buildPartial() { org.apache.mesos.v1.Protos.Task result = new org.apache.mesos.v1.Protos.Task(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (taskIdBuilder_ == null) { result.taskId_ = taskId_; } else { result.taskId_ = taskIdBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (frameworkIdBuilder_ == null) { result.frameworkId_ = frameworkId_; } else { result.frameworkId_ = frameworkIdBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (executorIdBuilder_ == null) { result.executorId_ = executorId_; } else { result.executorId_ = executorIdBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (agentIdBuilder_ == null) { result.agentId_ = agentId_; } else { result.agentId_ = agentIdBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.state_ = state_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000040); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (statusesBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { statuses_ = java.util.Collections.unmodifiableList(statuses_); bitField0_ = (bitField0_ & ~0x00000080); } result.statuses_ = statuses_; } else { result.statuses_ = statusesBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } result.statusUpdateState_ = statusUpdateState_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000080; } result.statusUpdateUuid_ = statusUpdateUuid_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000100; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000200; } if (discoveryBuilder_ == null) { result.discovery_ = discovery_; } else { result.discovery_ = discoveryBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000400; } if (containerBuilder_ == null) { result.container_ = container_; } else { result.container_ = containerBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000800; } if (healthCheckBuilder_ == null) { result.healthCheck_ = healthCheck_; } else { result.healthCheck_ = healthCheckBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00001000; } if (killPolicyBuilder_ == null) { result.killPolicy_ = killPolicy_; } else { result.killPolicy_ = killPolicyBuilder_.build(); } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00002000; } result.user_ = user_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Task) { return mergeFrom((org.apache.mesos.v1.Protos.Task)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Task other) { if (other == org.apache.mesos.v1.Protos.Task.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasTaskId()) { mergeTaskId(other.getTaskId()); } if (other.hasFrameworkId()) { mergeFrameworkId(other.getFrameworkId()); } if (other.hasExecutorId()) { mergeExecutorId(other.getExecutorId()); } if (other.hasAgentId()) { mergeAgentId(other.getAgentId()); } if (other.hasState()) { setState(other.getState()); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000040); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (statusesBuilder_ == null) { if (!other.statuses_.isEmpty()) { if (statuses_.isEmpty()) { statuses_ = other.statuses_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureStatusesIsMutable(); statuses_.addAll(other.statuses_); } onChanged(); } } else { if (!other.statuses_.isEmpty()) { if (statusesBuilder_.isEmpty()) { statusesBuilder_.dispose(); statusesBuilder_ = null; statuses_ = other.statuses_; bitField0_ = (bitField0_ & ~0x00000080); statusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStatusesFieldBuilder() : null; } else { statusesBuilder_.addAllMessages(other.statuses_); } } } if (other.hasStatusUpdateState()) { setStatusUpdateState(other.getStatusUpdateState()); } if (other.hasStatusUpdateUuid()) { setStatusUpdateUuid(other.getStatusUpdateUuid()); } if (other.hasLabels()) { mergeLabels(other.getLabels()); } if (other.hasDiscovery()) { mergeDiscovery(other.getDiscovery()); } if (other.hasContainer()) { mergeContainer(other.getContainer()); } if (other.hasHealthCheck()) { mergeHealthCheck(other.getHealthCheck()); } if (other.hasKillPolicy()) { mergeKillPolicy(other.getKillPolicy()); } if (other.hasUser()) { bitField0_ |= 0x00008000; user_ = other.user_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasTaskId()) { return false; } if (!hasFrameworkId()) { return false; } if (!hasAgentId()) { return false; } if (!hasState()) { return false; } if (!getTaskId().isInitialized()) { return false; } if (!getFrameworkId().isInitialized()) { return false; } if (hasExecutorId()) { if (!getExecutorId().isInitialized()) { return false; } } if (!getAgentId().isInitialized()) { return false; } for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } for (int i = 0; i < getStatusesCount(); i++) { if (!getStatuses(i).isInitialized()) { return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { return false; } } if (hasDiscovery()) { if (!getDiscovery().isInitialized()) { return false; } } if (hasContainer()) { if (!getContainer().isInitialized()) { return false; } } if (hasHealthCheck()) { if (!getHealthCheck().isInitialized()) { return false; } } if (hasKillPolicy()) { if (!getKillPolicy().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.Protos.Task parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Task) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.TaskID taskId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> taskIdBuilder_; /** * required .mesos.v1.TaskID task_id = 2; */ public boolean hasTaskId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskID getTaskId() { if (taskIdBuilder_ == null) { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } else { return taskIdBuilder_.getMessage(); } } /** * required .mesos.v1.TaskID task_id = 2; */ public Builder setTaskId(org.apache.mesos.v1.Protos.TaskID value) { if (taskIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } taskId_ = value; onChanged(); } else { taskIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID task_id = 2; */ public Builder setTaskId( org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) { if (taskIdBuilder_ == null) { taskId_ = builderForValue.build(); onChanged(); } else { taskIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID task_id = 2; */ public Builder mergeTaskId(org.apache.mesos.v1.Protos.TaskID value) { if (taskIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && taskId_ != null && taskId_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) { taskId_ = org.apache.mesos.v1.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial(); } else { taskId_ = value; } onChanged(); } else { taskIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.TaskID task_id = 2; */ public Builder clearTaskId() { if (taskIdBuilder_ == null) { taskId_ = null; onChanged(); } else { taskIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskID.Builder getTaskIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTaskIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.TaskID task_id = 2; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { if (taskIdBuilder_ != null) { return taskIdBuilder_.getMessageOrBuilder(); } else { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } } /** * required .mesos.v1.TaskID task_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> getTaskIdFieldBuilder() { if (taskIdBuilder_ == null) { taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>( getTaskId(), getParentForChildren(), isClean()); taskId_ = null; } return taskIdBuilder_; } private org.apache.mesos.v1.Protos.FrameworkID frameworkId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_; /** * required .mesos.v1.FrameworkID framework_id = 3; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { if (frameworkIdBuilder_ == null) { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } else { return frameworkIdBuilder_.getMessage(); } } /** * required .mesos.v1.FrameworkID framework_id = 3; */ 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_ |= 0x00000004; return this; } /** * required .mesos.v1.FrameworkID framework_id = 3; */ public Builder setFrameworkId( org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) { if (frameworkIdBuilder_ == null) { frameworkId_ = builderForValue.build(); onChanged(); } else { frameworkIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.FrameworkID framework_id = 3; */ public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) { if (frameworkIdBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && frameworkId_ != null && frameworkId_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial(); } else { frameworkId_ = value; } onChanged(); } else { frameworkIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.FrameworkID framework_id = 3; */ public Builder clearFrameworkId() { if (frameworkIdBuilder_ == null) { frameworkId_ = null; onChanged(); } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFrameworkIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.FrameworkID framework_id = 3; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { if (frameworkIdBuilder_ != null) { return frameworkIdBuilder_.getMessageOrBuilder(); } else { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } } /** * required .mesos.v1.FrameworkID framework_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> getFrameworkIdFieldBuilder() { if (frameworkIdBuilder_ == null) { frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>( getFrameworkId(), getParentForChildren(), isClean()); frameworkId_ = null; } return frameworkIdBuilder_; } private org.apache.mesos.v1.Protos.ExecutorID executorId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_; /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public boolean hasExecutorId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { if (executorIdBuilder_ == null) { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } else { return executorIdBuilder_.getMessage(); } } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ 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_ |= 0x00000008; return this; } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && executorId_ != null && executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial(); } else { executorId_ = value; } onChanged(); } else { executorIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public Builder clearExecutorId() { if (executorIdBuilder_ == null) { executorId_ = null; onChanged(); } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() { bitField0_ |= 0x00000008; onChanged(); return getExecutorIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { if (executorIdBuilder_ != null) { return executorIdBuilder_.getMessageOrBuilder(); } else { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } } /** * optional .mesos.v1.ExecutorID executor_id = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> getExecutorIdFieldBuilder() { if (executorIdBuilder_ == null) { executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>( getExecutorId(), getParentForChildren(), isClean()); executorId_ = null; } return executorIdBuilder_; } private org.apache.mesos.v1.Protos.AgentID agentId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_; /** * required .mesos.v1.AgentID agent_id = 5; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { if (agentIdBuilder_ == null) { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } else { return agentIdBuilder_.getMessage(); } } /** * required .mesos.v1.AgentID agent_id = 5; */ public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentId_ = value; onChanged(); } else { agentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * required .mesos.v1.AgentID agent_id = 5; */ public Builder setAgentId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (agentIdBuilder_ == null) { agentId_ = builderForValue.build(); onChanged(); } else { agentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * required .mesos.v1.AgentID agent_id = 5; */ public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && agentId_ != null && agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { agentId_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial(); } else { agentId_ = value; } onChanged(); } else { agentIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * required .mesos.v1.AgentID agent_id = 5; */ public Builder clearAgentId() { if (agentIdBuilder_ == null) { agentId_ = null; onChanged(); } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * required .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAgentIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { if (agentIdBuilder_ != null) { return agentIdBuilder_.getMessageOrBuilder(); } else { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } } /** * required .mesos.v1.AgentID agent_id = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getAgentIdFieldBuilder() { if (agentIdBuilder_ == null) { agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getAgentId(), getParentForChildren(), isClean()); agentId_ = null; } return agentIdBuilder_; } private int state_ = 6; /** *
       * Latest state of the task.
       * 
* * required .mesos.v1.TaskState state = 6; */ public boolean hasState() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * Latest state of the task.
       * 
* * required .mesos.v1.TaskState state = 6; */ public org.apache.mesos.v1.Protos.TaskState getState() { org.apache.mesos.v1.Protos.TaskState result = org.apache.mesos.v1.Protos.TaskState.valueOf(state_); return result == null ? org.apache.mesos.v1.Protos.TaskState.TASK_STAGING : result; } /** *
       * Latest state of the task.
       * 
* * required .mesos.v1.TaskState state = 6; */ public Builder setState(org.apache.mesos.v1.Protos.TaskState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; } /** *
       * Latest state of the task.
       * 
* * required .mesos.v1.TaskState state = 6; */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000020); state_ = 6; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** * repeated .mesos.v1.Resource resources = 7; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Resource resources = 7; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .mesos.v1.Resource resources = 7; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Resource resources = 7; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Resource resources = 7; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Resource resources = 7; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .mesos.v1.Resource resources = 7; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 7; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** * repeated .mesos.v1.Resource resources = 7; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.util.List statuses_ = java.util.Collections.emptyList(); private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder> statusesBuilder_; /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public java.util.List getStatusesList() { if (statusesBuilder_ == null) { return java.util.Collections.unmodifiableList(statuses_); } else { return statusesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public int getStatusesCount() { if (statusesBuilder_ == null) { return statuses_.size(); } else { return statusesBuilder_.getCount(); } } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public org.apache.mesos.v1.Protos.TaskStatus getStatuses(int index) { if (statusesBuilder_ == null) { return statuses_.get(index); } else { return statusesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder setStatuses( int index, org.apache.mesos.v1.Protos.TaskStatus value) { if (statusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusesIsMutable(); statuses_.set(index, value); onChanged(); } else { statusesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder setStatuses( int index, org.apache.mesos.v1.Protos.TaskStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.set(index, builderForValue.build()); onChanged(); } else { statusesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder addStatuses(org.apache.mesos.v1.Protos.TaskStatus value) { if (statusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusesIsMutable(); statuses_.add(value); onChanged(); } else { statusesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder addStatuses( int index, org.apache.mesos.v1.Protos.TaskStatus value) { if (statusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusesIsMutable(); statuses_.add(index, value); onChanged(); } else { statusesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder addStatuses( org.apache.mesos.v1.Protos.TaskStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.add(builderForValue.build()); onChanged(); } else { statusesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder addStatuses( int index, org.apache.mesos.v1.Protos.TaskStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.add(index, builderForValue.build()); onChanged(); } else { statusesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder addAllStatuses( java.lang.Iterable values) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, statuses_); onChanged(); } else { statusesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder clearStatuses() { if (statusesBuilder_ == null) { statuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { statusesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public Builder removeStatuses(int index) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.remove(index); onChanged(); } else { statusesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public org.apache.mesos.v1.Protos.TaskStatus.Builder getStatusesBuilder( int index) { return getStatusesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusesOrBuilder( int index) { if (statusesBuilder_ == null) { return statuses_.get(index); } else { return statusesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public java.util.List getStatusesOrBuilderList() { if (statusesBuilder_ != null) { return statusesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(statuses_); } } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public org.apache.mesos.v1.Protos.TaskStatus.Builder addStatusesBuilder() { return getStatusesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance()); } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public org.apache.mesos.v1.Protos.TaskStatus.Builder addStatusesBuilder( int index) { return getStatusesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance()); } /** * repeated .mesos.v1.TaskStatus statuses = 8; */ public java.util.List getStatusesBuilderList() { return getStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder> getStatusesFieldBuilder() { if (statusesBuilder_ == null) { statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder>( statuses_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); statuses_ = null; } return statusesBuilder_; } private int statusUpdateState_ = 6; /** *
       * These fields correspond to the state and uuid of the latest
       * status update forwarded to the master.
       * NOTE: Either both the fields must be set or both must be unset.
       * 
* * optional .mesos.v1.TaskState status_update_state = 9; */ public boolean hasStatusUpdateState() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * These fields correspond to the state and uuid of the latest
       * status update forwarded to the master.
       * NOTE: Either both the fields must be set or both must be unset.
       * 
* * optional .mesos.v1.TaskState status_update_state = 9; */ public org.apache.mesos.v1.Protos.TaskState getStatusUpdateState() { org.apache.mesos.v1.Protos.TaskState result = org.apache.mesos.v1.Protos.TaskState.valueOf(statusUpdateState_); return result == null ? org.apache.mesos.v1.Protos.TaskState.TASK_STAGING : result; } /** *
       * These fields correspond to the state and uuid of the latest
       * status update forwarded to the master.
       * NOTE: Either both the fields must be set or both must be unset.
       * 
* * optional .mesos.v1.TaskState status_update_state = 9; */ public Builder setStatusUpdateState(org.apache.mesos.v1.Protos.TaskState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; statusUpdateState_ = value.getNumber(); onChanged(); return this; } /** *
       * These fields correspond to the state and uuid of the latest
       * status update forwarded to the master.
       * NOTE: Either both the fields must be set or both must be unset.
       * 
* * optional .mesos.v1.TaskState status_update_state = 9; */ public Builder clearStatusUpdateState() { bitField0_ = (bitField0_ & ~0x00000100); statusUpdateState_ = 6; onChanged(); return this; } private com.google.protobuf.ByteString statusUpdateUuid_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes status_update_uuid = 10; */ public boolean hasStatusUpdateUuid() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bytes status_update_uuid = 10; */ public com.google.protobuf.ByteString getStatusUpdateUuid() { return statusUpdateUuid_; } /** * optional bytes status_update_uuid = 10; */ public Builder setStatusUpdateUuid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; statusUpdateUuid_ = value; onChanged(); return this; } /** * optional bytes status_update_uuid = 10; */ public Builder clearStatusUpdateUuid() { bitField0_ = (bitField0_ & ~0x00000200); statusUpdateUuid_ = getDefaultInstance().getStatusUpdateUuid(); onChanged(); return this; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** * optional .mesos.v1.Labels labels = 11; */ public boolean hasLabels() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** * optional .mesos.v1.Labels labels = 11; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.Labels labels = 11; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.Labels labels = 11; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.Labels labels = 11; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00000400; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Labels labels = 11; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** * optional .mesos.v1.Labels labels = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } private org.apache.mesos.v1.Protos.DiscoveryInfo discovery_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder> discoveryBuilder_; /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public boolean hasDiscovery() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfo getDiscovery() { if (discoveryBuilder_ == null) { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } else { return discoveryBuilder_.getMessage(); } } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public Builder setDiscovery(org.apache.mesos.v1.Protos.DiscoveryInfo value) { if (discoveryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } discovery_ = value; onChanged(); } else { discoveryBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public Builder setDiscovery( org.apache.mesos.v1.Protos.DiscoveryInfo.Builder builderForValue) { if (discoveryBuilder_ == null) { discovery_ = builderForValue.build(); onChanged(); } else { discoveryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public Builder mergeDiscovery(org.apache.mesos.v1.Protos.DiscoveryInfo value) { if (discoveryBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && discovery_ != null && discovery_ != org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance()) { discovery_ = org.apache.mesos.v1.Protos.DiscoveryInfo.newBuilder(discovery_).mergeFrom(value).buildPartial(); } else { discovery_ = value; } onChanged(); } else { discoveryBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public Builder clearDiscovery() { if (discoveryBuilder_ == null) { discovery_ = null; onChanged(); } else { discoveryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfo.Builder getDiscoveryBuilder() { bitField0_ |= 0x00000800; onChanged(); return getDiscoveryFieldBuilder().getBuilder(); } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ public org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder() { if (discoveryBuilder_ != null) { return discoveryBuilder_.getMessageOrBuilder(); } else { return discovery_ == null ? org.apache.mesos.v1.Protos.DiscoveryInfo.getDefaultInstance() : discovery_; } } /** *
       * Service discovery information for the task. It is not interpreted
       * or acted upon by Mesos. It is up to a service discovery system
       * to use this information as needed and to handle tasks without
       * service discovery information.
       * 
* * optional .mesos.v1.DiscoveryInfo discovery = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder> getDiscoveryFieldBuilder() { if (discoveryBuilder_ == null) { discoveryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.DiscoveryInfo, org.apache.mesos.v1.Protos.DiscoveryInfo.Builder, org.apache.mesos.v1.Protos.DiscoveryInfoOrBuilder>( getDiscovery(), getParentForChildren(), isClean()); discovery_ = null; } return discoveryBuilder_; } private org.apache.mesos.v1.Protos.ContainerInfo container_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder> containerBuilder_; /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public boolean hasContainer() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { if (containerBuilder_ == null) { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } else { return containerBuilder_.getMessage(); } } /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ 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_ |= 0x00001000; return this; } /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public Builder setContainer( org.apache.mesos.v1.Protos.ContainerInfo.Builder builderForValue) { if (containerBuilder_ == null) { container_ = builderForValue.build(); onChanged(); } else { containerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public Builder mergeContainer(org.apache.mesos.v1.Protos.ContainerInfo value) { if (containerBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && container_ != null && 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_ |= 0x00001000; return this; } /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public Builder clearContainer() { if (containerBuilder_ == null) { container_ = null; onChanged(); } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public org.apache.mesos.v1.Protos.ContainerInfo.Builder getContainerBuilder() { bitField0_ |= 0x00001000; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { return container_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance() : container_; } } /** *
       * Container information for the task.
       * 
* * optional .mesos.v1.ContainerInfo container = 13; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_; } private org.apache.mesos.v1.Protos.HealthCheck healthCheck_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck, org.apache.mesos.v1.Protos.HealthCheck.Builder, org.apache.mesos.v1.Protos.HealthCheckOrBuilder> healthCheckBuilder_; /** * optional .mesos.v1.HealthCheck health_check = 15; */ public boolean hasHealthCheck() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public org.apache.mesos.v1.Protos.HealthCheck getHealthCheck() { if (healthCheckBuilder_ == null) { return healthCheck_ == null ? org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance() : healthCheck_; } else { return healthCheckBuilder_.getMessage(); } } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public Builder setHealthCheck(org.apache.mesos.v1.Protos.HealthCheck value) { if (healthCheckBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthCheck_ = value; onChanged(); } else { healthCheckBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public Builder setHealthCheck( org.apache.mesos.v1.Protos.HealthCheck.Builder builderForValue) { if (healthCheckBuilder_ == null) { healthCheck_ = builderForValue.build(); onChanged(); } else { healthCheckBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public Builder mergeHealthCheck(org.apache.mesos.v1.Protos.HealthCheck value) { if (healthCheckBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && healthCheck_ != null && healthCheck_ != org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance()) { healthCheck_ = org.apache.mesos.v1.Protos.HealthCheck.newBuilder(healthCheck_).mergeFrom(value).buildPartial(); } else { healthCheck_ = value; } onChanged(); } else { healthCheckBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public Builder clearHealthCheck() { if (healthCheckBuilder_ == null) { healthCheck_ = null; onChanged(); } else { healthCheckBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public org.apache.mesos.v1.Protos.HealthCheck.Builder getHealthCheckBuilder() { bitField0_ |= 0x00002000; onChanged(); return getHealthCheckFieldBuilder().getBuilder(); } /** * optional .mesos.v1.HealthCheck health_check = 15; */ public org.apache.mesos.v1.Protos.HealthCheckOrBuilder getHealthCheckOrBuilder() { if (healthCheckBuilder_ != null) { return healthCheckBuilder_.getMessageOrBuilder(); } else { return healthCheck_ == null ? org.apache.mesos.v1.Protos.HealthCheck.getDefaultInstance() : healthCheck_; } } /** * optional .mesos.v1.HealthCheck health_check = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck, org.apache.mesos.v1.Protos.HealthCheck.Builder, org.apache.mesos.v1.Protos.HealthCheckOrBuilder> getHealthCheckFieldBuilder() { if (healthCheckBuilder_ == null) { healthCheckBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.HealthCheck, org.apache.mesos.v1.Protos.HealthCheck.Builder, org.apache.mesos.v1.Protos.HealthCheckOrBuilder>( getHealthCheck(), getParentForChildren(), isClean()); healthCheck_ = null; } return healthCheckBuilder_; } private org.apache.mesos.v1.Protos.KillPolicy killPolicy_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder> killPolicyBuilder_; /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public boolean hasKillPolicy() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() { if (killPolicyBuilder_ == null) { return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_; } else { return killPolicyBuilder_.getMessage(); } } /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public Builder setKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) { if (killPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } killPolicy_ = value; onChanged(); } else { killPolicyBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public Builder setKillPolicy( org.apache.mesos.v1.Protos.KillPolicy.Builder builderForValue) { if (killPolicyBuilder_ == null) { killPolicy_ = builderForValue.build(); onChanged(); } else { killPolicyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public Builder mergeKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) { if (killPolicyBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && killPolicy_ != null && killPolicy_ != org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance()) { killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.newBuilder(killPolicy_).mergeFrom(value).buildPartial(); } else { killPolicy_ = value; } onChanged(); } else { killPolicyBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public Builder clearKillPolicy() { if (killPolicyBuilder_ == null) { killPolicy_ = null; onChanged(); } else { killPolicyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public org.apache.mesos.v1.Protos.KillPolicy.Builder getKillPolicyBuilder() { bitField0_ |= 0x00004000; onChanged(); return getKillPolicyFieldBuilder().getBuilder(); } /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() { if (killPolicyBuilder_ != null) { return killPolicyBuilder_.getMessageOrBuilder(); } else { return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_; } } /** *
       * The kill policy used for this task when it is killed. It's possible for
       * this policy to be overridden by the scheduler when killing the task.
       * 
* * optional .mesos.v1.KillPolicy kill_policy = 16; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder> getKillPolicyFieldBuilder() { if (killPolicyBuilder_ == null) { killPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder>( getKillPolicy(), getParentForChildren(), isClean()); killPolicy_ = null; } return killPolicyBuilder_; } private java.lang.Object user_ = ""; /** *
       * Specific user under which task is running.
       * 
* * optional string user = 14; */ public boolean hasUser() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** *
       * Specific user under which task is running.
       * 
* * optional string user = 14; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Specific user under which task is running.
       * 
* * optional string user = 14; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specific user under which task is running.
       * 
* * optional string user = 14; */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; user_ = value; onChanged(); return this; } /** *
       * Specific user under which task is running.
       * 
* * optional string user = 14; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00008000); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** *
       * Specific user under which task is running.
       * 
* * optional string user = 14; */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; user_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Task) } // @@protoc_insertion_point(class_scope:mesos.v1.Task) private static final org.apache.mesos.v1.Protos.Task DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Task(); } public static org.apache.mesos.v1.Protos.Task getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Task parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Task(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Task getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskResourceLimitationOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TaskResourceLimitation) com.google.protobuf.MessageOrBuilder { /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ java.util.List getResourcesList(); /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ org.apache.mesos.v1.Protos.Resource getResources(int index); /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ int getResourcesCount(); /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ java.util.List getResourcesOrBuilderList(); /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index); } /** *
   **
   * Describes a resource limitation that caused a task failure.
   * 
* * Protobuf type {@code mesos.v1.TaskResourceLimitation} */ public static final class TaskResourceLimitation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TaskResourceLimitation) TaskResourceLimitationOrBuilder { private static final long serialVersionUID = 0L; // Use TaskResourceLimitation.newBuilder() to construct. private TaskResourceLimitation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskResourceLimitation() { resources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskResourceLimitation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskResourceLimitation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskResourceLimitation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskResourceLimitation.class, org.apache.mesos.v1.Protos.TaskResourceLimitation.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesList() { return resources_; } /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ public int getResourcesCount() { return resources_.size(); } /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { return resources_.get(index); } /** *
     * This field contains the resource whose limits were violated.
     * NOTE: 'Resources' is used here because the resource may span
     * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
     * 
* * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, resources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TaskResourceLimitation)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TaskResourceLimitation other = (org.apache.mesos.v1.Protos.TaskResourceLimitation) obj; boolean result = true; result = result && getResourcesList() .equals(other.getResourcesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation 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.Protos.TaskResourceLimitation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TaskResourceLimitation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a resource limitation that caused a task failure.
     * 
* * Protobuf type {@code mesos.v1.TaskResourceLimitation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TaskResourceLimitation) org.apache.mesos.v1.Protos.TaskResourceLimitationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskResourceLimitation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskResourceLimitation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskResourceLimitation.class, org.apache.mesos.v1.Protos.TaskResourceLimitation.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TaskResourceLimitation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } public Builder clear() { super.clear(); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourcesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskResourceLimitation_descriptor; } public org.apache.mesos.v1.Protos.TaskResourceLimitation getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TaskResourceLimitation.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TaskResourceLimitation build() { org.apache.mesos.v1.Protos.TaskResourceLimitation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TaskResourceLimitation buildPartial() { org.apache.mesos.v1.Protos.TaskResourceLimitation result = new org.apache.mesos.v1.Protos.TaskResourceLimitation(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TaskResourceLimitation) { return mergeFrom((org.apache.mesos.v1.Protos.TaskResourceLimitation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TaskResourceLimitation other) { if (other == org.apache.mesos.v1.Protos.TaskResourceLimitation.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getResourcesCount(); i++) { if (!getResources(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.Protos.TaskResourceLimitation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TaskResourceLimitation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> resourcesBuilder_; /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder setResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources(org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder addResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public org.apache.mesos.v1.Protos.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * This field contains the resource whose limits were violated.
       * NOTE: 'Resources' is used here because the resource may span
       * multiple roles (e.g. `"mem(*):1;mem(role):2"`).
       * 
* * repeated .mesos.v1.Resource resources = 1; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TaskResourceLimitation) } // @@protoc_insertion_point(class_scope:mesos.v1.TaskResourceLimitation) private static final org.apache.mesos.v1.Protos.TaskResourceLimitation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TaskResourceLimitation(); } public static org.apache.mesos.v1.Protos.TaskResourceLimitation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TaskResourceLimitation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskResourceLimitation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TaskResourceLimitation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UUIDOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.UUID) com.google.protobuf.MessageOrBuilder { /** * required bytes value = 1; */ boolean hasValue(); /** * required bytes value = 1; */ com.google.protobuf.ByteString getValue(); } /** *
   **
   * A 128 bit (16 byte) UUID, see RFC 4122.
   * 
* * Protobuf type {@code mesos.v1.UUID} */ public static final class UUID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.UUID) UUIDOrBuilder { private static final long serialVersionUID = 0L; // Use UUID.newBuilder() to construct. private UUID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UUID() { value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UUID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; value_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UUID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UUID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.UUID.class, org.apache.mesos.v1.Protos.UUID.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_; /** * required bytes value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.UUID)) { return super.equals(obj); } org.apache.mesos.v1.Protos.UUID other = (org.apache.mesos.v1.Protos.UUID) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.UUID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.UUID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.UUID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.UUID 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.Protos.UUID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.UUID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.UUID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.UUID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.UUID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.UUID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.UUID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.UUID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.UUID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A 128 bit (16 byte) UUID, see RFC 4122.
     * 
* * Protobuf type {@code mesos.v1.UUID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.UUID) org.apache.mesos.v1.Protos.UUIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UUID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UUID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.UUID.class, org.apache.mesos.v1.Protos.UUID.Builder.class); } // Construct using org.apache.mesos.v1.Protos.UUID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_UUID_descriptor; } public org.apache.mesos.v1.Protos.UUID getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.UUID.getDefaultInstance(); } public org.apache.mesos.v1.Protos.UUID build() { org.apache.mesos.v1.Protos.UUID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.UUID buildPartial() { org.apache.mesos.v1.Protos.UUID result = new org.apache.mesos.v1.Protos.UUID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.UUID) { return mergeFrom((org.apache.mesos.v1.Protos.UUID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.UUID other) { if (other == org.apache.mesos.v1.Protos.UUID.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasValue()) { 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.Protos.UUID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.UUID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * required bytes value = 1; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required bytes value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.UUID) } // @@protoc_insertion_point(class_scope:mesos.v1.UUID) private static final org.apache.mesos.v1.Protos.UUID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.UUID(); } public static org.apache.mesos.v1.Protos.UUID getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UUID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UUID(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.UUID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperationOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Operation) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.FrameworkID framework_id = 1; */ boolean hasFrameworkId(); /** * optional .mesos.v1.FrameworkID framework_id = 1; */ org.apache.mesos.v1.Protos.FrameworkID getFrameworkId(); /** * optional .mesos.v1.FrameworkID framework_id = 1; */ org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder(); /** * optional .mesos.v1.AgentID agent_id = 2; */ boolean hasAgentId(); /** * optional .mesos.v1.AgentID agent_id = 2; */ org.apache.mesos.v1.Protos.AgentID getAgentId(); /** * optional .mesos.v1.AgentID agent_id = 2; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder(); /** * required .mesos.v1.Offer.Operation info = 3; */ boolean hasInfo(); /** * required .mesos.v1.Offer.Operation info = 3; */ org.apache.mesos.v1.Protos.Offer.Operation getInfo(); /** * required .mesos.v1.Offer.Operation info = 3; */ org.apache.mesos.v1.Protos.Offer.OperationOrBuilder getInfoOrBuilder(); /** * required .mesos.v1.OperationStatus latest_status = 4; */ boolean hasLatestStatus(); /** * required .mesos.v1.OperationStatus latest_status = 4; */ org.apache.mesos.v1.Protos.OperationStatus getLatestStatus(); /** * required .mesos.v1.OperationStatus latest_status = 4; */ org.apache.mesos.v1.Protos.OperationStatusOrBuilder getLatestStatusOrBuilder(); /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ java.util.List getStatusesList(); /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ org.apache.mesos.v1.Protos.OperationStatus getStatuses(int index); /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ int getStatusesCount(); /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ java.util.List getStatusesOrBuilderList(); /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ org.apache.mesos.v1.Protos.OperationStatusOrBuilder getStatusesOrBuilder( int index); /** *
     * This is the internal UUID for the operation, which is kept independently
     * from the framework-specified operation ID, which is optional.
     * 
* * required .mesos.v1.UUID uuid = 6; */ boolean hasUuid(); /** *
     * This is the internal UUID for the operation, which is kept independently
     * from the framework-specified operation ID, which is optional.
     * 
* * required .mesos.v1.UUID uuid = 6; */ org.apache.mesos.v1.Protos.UUID getUuid(); /** *
     * This is the internal UUID for the operation, which is kept independently
     * from the framework-specified operation ID, which is optional.
     * 
* * required .mesos.v1.UUID uuid = 6; */ org.apache.mesos.v1.Protos.UUIDOrBuilder getUuidOrBuilder(); } /** *
   **
   * Describes an operation, similar to `Offer.Operation`, with
   * some additional information.
   * 
* * Protobuf type {@code mesos.v1.Operation} */ public static final class Operation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Operation) OperationOrBuilder { private static final long serialVersionUID = 0L; // Use Operation.newBuilder() to construct. private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Operation() { statuses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Operation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.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.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = agentId_.toBuilder(); } agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentId_); agentId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.Offer.Operation.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = info_.toBuilder(); } info_ = input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(info_); info_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.Protos.OperationStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = latestStatus_.toBuilder(); } latestStatus_ = input.readMessage(org.apache.mesos.v1.Protos.OperationStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(latestStatus_); latestStatus_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { statuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } statuses_.add( input.readMessage(org.apache.mesos.v1.Protos.OperationStatus.PARSER, extensionRegistry)); break; } case 50: { org.apache.mesos.v1.Protos.UUID.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = uuid_.toBuilder(); } uuid_ = input.readMessage(org.apache.mesos.v1.Protos.UUID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(uuid_); uuid_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { statuses_ = java.util.Collections.unmodifiableList(statuses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Operation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Operation.class, org.apache.mesos.v1.Protos.Operation.Builder.class); } private int bitField0_; public static final int FRAMEWORK_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.FrameworkID frameworkId_; /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } public static final int AGENT_ID_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.AgentID agentId_; /** * optional .mesos.v1.AgentID agent_id = 2; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.AgentID agent_id = 2; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } /** * optional .mesos.v1.AgentID agent_id = 2; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } public static final int INFO_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Offer.Operation info_; /** * required .mesos.v1.Offer.Operation info = 3; */ public boolean hasInfo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.Offer.Operation info = 3; */ public org.apache.mesos.v1.Protos.Offer.Operation getInfo() { return info_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance() : info_; } /** * required .mesos.v1.Offer.Operation info = 3; */ public org.apache.mesos.v1.Protos.Offer.OperationOrBuilder getInfoOrBuilder() { return info_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance() : info_; } public static final int LATEST_STATUS_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.OperationStatus latestStatus_; /** * required .mesos.v1.OperationStatus latest_status = 4; */ public boolean hasLatestStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public org.apache.mesos.v1.Protos.OperationStatus getLatestStatus() { return latestStatus_ == null ? org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance() : latestStatus_; } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public org.apache.mesos.v1.Protos.OperationStatusOrBuilder getLatestStatusOrBuilder() { return latestStatus_ == null ? org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance() : latestStatus_; } public static final int STATUSES_FIELD_NUMBER = 5; private java.util.List statuses_; /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public java.util.List getStatusesList() { return statuses_; } /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public java.util.List getStatusesOrBuilderList() { return statuses_; } /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public int getStatusesCount() { return statuses_.size(); } /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public org.apache.mesos.v1.Protos.OperationStatus getStatuses(int index) { return statuses_.get(index); } /** *
     * All the statuses known to this operation. Some of the statuses in this
     * list might not have been acknowledged yet. The statuses are ordered.
     * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public org.apache.mesos.v1.Protos.OperationStatusOrBuilder getStatusesOrBuilder( int index) { return statuses_.get(index); } public static final int UUID_FIELD_NUMBER = 6; private org.apache.mesos.v1.Protos.UUID uuid_; /** *
     * This is the internal UUID for the operation, which is kept independently
     * from the framework-specified operation ID, which is optional.
     * 
* * required .mesos.v1.UUID uuid = 6; */ public boolean hasUuid() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * This is the internal UUID for the operation, which is kept independently
     * from the framework-specified operation ID, which is optional.
     * 
* * required .mesos.v1.UUID uuid = 6; */ public org.apache.mesos.v1.Protos.UUID getUuid() { return uuid_ == null ? org.apache.mesos.v1.Protos.UUID.getDefaultInstance() : uuid_; } /** *
     * This is the internal UUID for the operation, which is kept independently
     * from the framework-specified operation ID, which is optional.
     * 
* * required .mesos.v1.UUID uuid = 6; */ public org.apache.mesos.v1.Protos.UUIDOrBuilder getUuidOrBuilder() { return uuid_ == null ? org.apache.mesos.v1.Protos.UUID.getDefaultInstance() : uuid_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasInfo()) { memoizedIsInitialized = 0; return false; } if (!hasLatestStatus()) { memoizedIsInitialized = 0; return false; } if (!hasUuid()) { memoizedIsInitialized = 0; return false; } if (hasFrameworkId()) { if (!getFrameworkId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasAgentId()) { if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!getInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getLatestStatus().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getStatusesCount(); i++) { if (!getStatuses(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!getUuid().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getFrameworkId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getAgentId()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getInfo()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getLatestStatus()); } for (int i = 0; i < statuses_.size(); i++) { output.writeMessage(5, statuses_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(6, getUuid()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFrameworkId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAgentId()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInfo()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLatestStatus()); } for (int i = 0; i < statuses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, statuses_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getUuid()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Operation)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Operation other = (org.apache.mesos.v1.Protos.Operation) obj; boolean result = true; result = result && (hasFrameworkId() == other.hasFrameworkId()); if (hasFrameworkId()) { result = result && getFrameworkId() .equals(other.getFrameworkId()); } result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasInfo() == other.hasInfo()); if (hasInfo()) { result = result && getInfo() .equals(other.getInfo()); } result = result && (hasLatestStatus() == other.hasLatestStatus()); if (hasLatestStatus()) { result = result && getLatestStatus() .equals(other.getLatestStatus()); } result = result && getStatusesList() .equals(other.getStatusesList()); result = result && (hasUuid() == other.hasUuid()); if (hasUuid()) { result = result && getUuid() .equals(other.getUuid()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFrameworkId()) { hash = (37 * hash) + FRAMEWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getFrameworkId().hashCode(); } if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (hasInfo()) { hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); } if (hasLatestStatus()) { hash = (37 * hash) + LATEST_STATUS_FIELD_NUMBER; hash = (53 * hash) + getLatestStatus().hashCode(); } if (getStatusesCount() > 0) { hash = (37 * hash) + STATUSES_FIELD_NUMBER; hash = (53 * hash) + getStatusesList().hashCode(); } if (hasUuid()) { hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Operation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Operation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Operation 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.Protos.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Operation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Operation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Operation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Operation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Operation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Operation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Operation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Operation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes an operation, similar to `Offer.Operation`, with
     * some additional information.
     * 
* * Protobuf type {@code mesos.v1.Operation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Operation) org.apache.mesos.v1.Protos.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Operation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Operation.class, org.apache.mesos.v1.Protos.Operation.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Operation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFrameworkIdFieldBuilder(); getAgentIdFieldBuilder(); getInfoFieldBuilder(); getLatestStatusFieldBuilder(); getStatusesFieldBuilder(); getUuidFieldBuilder(); } } public Builder clear() { super.clear(); if (frameworkIdBuilder_ == null) { frameworkId_ = null; } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (agentIdBuilder_ == null) { agentId_ = null; } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (infoBuilder_ == null) { info_ = null; } else { infoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (latestStatusBuilder_ == null) { latestStatus_ = null; } else { latestStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (statusesBuilder_ == null) { statuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { statusesBuilder_.clear(); } if (uuidBuilder_ == null) { uuid_ = null; } else { uuidBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Operation_descriptor; } public org.apache.mesos.v1.Protos.Operation getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Operation.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Operation build() { org.apache.mesos.v1.Protos.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Operation buildPartial() { org.apache.mesos.v1.Protos.Operation result = new org.apache.mesos.v1.Protos.Operation(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 (agentIdBuilder_ == null) { result.agentId_ = agentId_; } else { result.agentId_ = agentIdBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (infoBuilder_ == null) { result.info_ = info_; } else { result.info_ = infoBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (latestStatusBuilder_ == null) { result.latestStatus_ = latestStatus_; } else { result.latestStatus_ = latestStatusBuilder_.build(); } if (statusesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { statuses_ = java.util.Collections.unmodifiableList(statuses_); bitField0_ = (bitField0_ & ~0x00000010); } result.statuses_ = statuses_; } else { result.statuses_ = statusesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (uuidBuilder_ == null) { result.uuid_ = uuid_; } else { result.uuid_ = uuidBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Operation) { return mergeFrom((org.apache.mesos.v1.Protos.Operation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Operation other) { if (other == org.apache.mesos.v1.Protos.Operation.getDefaultInstance()) return this; if (other.hasFrameworkId()) { mergeFrameworkId(other.getFrameworkId()); } if (other.hasAgentId()) { mergeAgentId(other.getAgentId()); } if (other.hasInfo()) { mergeInfo(other.getInfo()); } if (other.hasLatestStatus()) { mergeLatestStatus(other.getLatestStatus()); } if (statusesBuilder_ == null) { if (!other.statuses_.isEmpty()) { if (statuses_.isEmpty()) { statuses_ = other.statuses_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureStatusesIsMutable(); statuses_.addAll(other.statuses_); } onChanged(); } } else { if (!other.statuses_.isEmpty()) { if (statusesBuilder_.isEmpty()) { statusesBuilder_.dispose(); statusesBuilder_ = null; statuses_ = other.statuses_; bitField0_ = (bitField0_ & ~0x00000010); statusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStatusesFieldBuilder() : null; } else { statusesBuilder_.addAllMessages(other.statuses_); } } } if (other.hasUuid()) { mergeUuid(other.getUuid()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasInfo()) { return false; } if (!hasLatestStatus()) { return false; } if (!hasUuid()) { return false; } if (hasFrameworkId()) { if (!getFrameworkId().isInitialized()) { return false; } } if (hasAgentId()) { if (!getAgentId().isInitialized()) { return false; } } if (!getInfo().isInitialized()) { return false; } if (!getLatestStatus().isInitialized()) { return false; } for (int i = 0; i < getStatusesCount(); i++) { if (!getStatuses(i).isInitialized()) { return false; } } if (!getUuid().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.Protos.Operation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Operation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.FrameworkID frameworkId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_; /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { if (frameworkIdBuilder_ == null) { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } else { return frameworkIdBuilder_.getMessage(); } } /** * optional .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; } /** * optional .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; } /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) { if (frameworkIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && frameworkId_ != null && frameworkId_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial(); } else { frameworkId_ = value; } onChanged(); } else { frameworkIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public Builder clearFrameworkId() { if (frameworkIdBuilder_ == null) { frameworkId_ = null; onChanged(); } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFrameworkIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { if (frameworkIdBuilder_ != null) { return frameworkIdBuilder_.getMessageOrBuilder(); } else { return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_; } } /** * optional .mesos.v1.FrameworkID framework_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> getFrameworkIdFieldBuilder() { if (frameworkIdBuilder_ == null) { frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>( getFrameworkId(), getParentForChildren(), isClean()); frameworkId_ = null; } return frameworkIdBuilder_; } private org.apache.mesos.v1.Protos.AgentID agentId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_; /** * optional .mesos.v1.AgentID agent_id = 2; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.AgentID agent_id = 2; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { if (agentIdBuilder_ == null) { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } else { return agentIdBuilder_.getMessage(); } } /** * optional .mesos.v1.AgentID agent_id = 2; */ public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentId_ = value; onChanged(); } else { agentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.AgentID agent_id = 2; */ public Builder setAgentId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (agentIdBuilder_ == null) { agentId_ = builderForValue.build(); onChanged(); } else { agentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.AgentID agent_id = 2; */ public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && agentId_ != null && agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { agentId_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial(); } else { agentId_ = value; } onChanged(); } else { agentIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.AgentID agent_id = 2; */ public Builder clearAgentId() { if (agentIdBuilder_ == null) { agentId_ = null; onChanged(); } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.AgentID agent_id = 2; */ public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAgentIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.AgentID agent_id = 2; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { if (agentIdBuilder_ != null) { return agentIdBuilder_.getMessageOrBuilder(); } else { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } } /** * optional .mesos.v1.AgentID agent_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getAgentIdFieldBuilder() { if (agentIdBuilder_ == null) { agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getAgentId(), getParentForChildren(), isClean()); agentId_ = null; } return agentIdBuilder_; } private org.apache.mesos.v1.Protos.Offer.Operation info_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation, org.apache.mesos.v1.Protos.Offer.Operation.Builder, org.apache.mesos.v1.Protos.Offer.OperationOrBuilder> infoBuilder_; /** * required .mesos.v1.Offer.Operation info = 3; */ public boolean hasInfo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .mesos.v1.Offer.Operation info = 3; */ public org.apache.mesos.v1.Protos.Offer.Operation getInfo() { if (infoBuilder_ == null) { return info_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** * required .mesos.v1.Offer.Operation info = 3; */ public Builder setInfo(org.apache.mesos.v1.Protos.Offer.Operation value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; onChanged(); } else { infoBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.Offer.Operation info = 3; */ public Builder setInfo( org.apache.mesos.v1.Protos.Offer.Operation.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); onChanged(); } else { infoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.Offer.Operation info = 3; */ public Builder mergeInfo(org.apache.mesos.v1.Protos.Offer.Operation value) { if (infoBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && info_ != null && info_ != org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance()) { info_ = org.apache.mesos.v1.Protos.Offer.Operation.newBuilder(info_).mergeFrom(value).buildPartial(); } else { info_ = value; } onChanged(); } else { infoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * required .mesos.v1.Offer.Operation info = 3; */ public Builder clearInfo() { if (infoBuilder_ == null) { info_ = null; onChanged(); } else { infoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * required .mesos.v1.Offer.Operation info = 3; */ public org.apache.mesos.v1.Protos.Offer.Operation.Builder getInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getInfoFieldBuilder().getBuilder(); } /** * required .mesos.v1.Offer.Operation info = 3; */ public org.apache.mesos.v1.Protos.Offer.OperationOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance() : info_; } } /** * required .mesos.v1.Offer.Operation info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation, org.apache.mesos.v1.Protos.Offer.Operation.Builder, org.apache.mesos.v1.Protos.Offer.OperationOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Offer.Operation, org.apache.mesos.v1.Protos.Offer.Operation.Builder, org.apache.mesos.v1.Protos.Offer.OperationOrBuilder>( getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } private org.apache.mesos.v1.Protos.OperationStatus latestStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationStatus, org.apache.mesos.v1.Protos.OperationStatus.Builder, org.apache.mesos.v1.Protos.OperationStatusOrBuilder> latestStatusBuilder_; /** * required .mesos.v1.OperationStatus latest_status = 4; */ public boolean hasLatestStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public org.apache.mesos.v1.Protos.OperationStatus getLatestStatus() { if (latestStatusBuilder_ == null) { return latestStatus_ == null ? org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance() : latestStatus_; } else { return latestStatusBuilder_.getMessage(); } } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public Builder setLatestStatus(org.apache.mesos.v1.Protos.OperationStatus value) { if (latestStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } latestStatus_ = value; onChanged(); } else { latestStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public Builder setLatestStatus( org.apache.mesos.v1.Protos.OperationStatus.Builder builderForValue) { if (latestStatusBuilder_ == null) { latestStatus_ = builderForValue.build(); onChanged(); } else { latestStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public Builder mergeLatestStatus(org.apache.mesos.v1.Protos.OperationStatus value) { if (latestStatusBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && latestStatus_ != null && latestStatus_ != org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance()) { latestStatus_ = org.apache.mesos.v1.Protos.OperationStatus.newBuilder(latestStatus_).mergeFrom(value).buildPartial(); } else { latestStatus_ = value; } onChanged(); } else { latestStatusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public Builder clearLatestStatus() { if (latestStatusBuilder_ == null) { latestStatus_ = null; onChanged(); } else { latestStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public org.apache.mesos.v1.Protos.OperationStatus.Builder getLatestStatusBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLatestStatusFieldBuilder().getBuilder(); } /** * required .mesos.v1.OperationStatus latest_status = 4; */ public org.apache.mesos.v1.Protos.OperationStatusOrBuilder getLatestStatusOrBuilder() { if (latestStatusBuilder_ != null) { return latestStatusBuilder_.getMessageOrBuilder(); } else { return latestStatus_ == null ? org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance() : latestStatus_; } } /** * required .mesos.v1.OperationStatus latest_status = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationStatus, org.apache.mesos.v1.Protos.OperationStatus.Builder, org.apache.mesos.v1.Protos.OperationStatusOrBuilder> getLatestStatusFieldBuilder() { if (latestStatusBuilder_ == null) { latestStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationStatus, org.apache.mesos.v1.Protos.OperationStatus.Builder, org.apache.mesos.v1.Protos.OperationStatusOrBuilder>( getLatestStatus(), getParentForChildren(), isClean()); latestStatus_ = null; } return latestStatusBuilder_; } private java.util.List statuses_ = java.util.Collections.emptyList(); private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.OperationStatus, org.apache.mesos.v1.Protos.OperationStatus.Builder, org.apache.mesos.v1.Protos.OperationStatusOrBuilder> statusesBuilder_; /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public java.util.List getStatusesList() { if (statusesBuilder_ == null) { return java.util.Collections.unmodifiableList(statuses_); } else { return statusesBuilder_.getMessageList(); } } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public int getStatusesCount() { if (statusesBuilder_ == null) { return statuses_.size(); } else { return statusesBuilder_.getCount(); } } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public org.apache.mesos.v1.Protos.OperationStatus getStatuses(int index) { if (statusesBuilder_ == null) { return statuses_.get(index); } else { return statusesBuilder_.getMessage(index); } } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder setStatuses( int index, org.apache.mesos.v1.Protos.OperationStatus value) { if (statusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusesIsMutable(); statuses_.set(index, value); onChanged(); } else { statusesBuilder_.setMessage(index, value); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder setStatuses( int index, org.apache.mesos.v1.Protos.OperationStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.set(index, builderForValue.build()); onChanged(); } else { statusesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder addStatuses(org.apache.mesos.v1.Protos.OperationStatus value) { if (statusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusesIsMutable(); statuses_.add(value); onChanged(); } else { statusesBuilder_.addMessage(value); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder addStatuses( int index, org.apache.mesos.v1.Protos.OperationStatus value) { if (statusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusesIsMutable(); statuses_.add(index, value); onChanged(); } else { statusesBuilder_.addMessage(index, value); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder addStatuses( org.apache.mesos.v1.Protos.OperationStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.add(builderForValue.build()); onChanged(); } else { statusesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder addStatuses( int index, org.apache.mesos.v1.Protos.OperationStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.add(index, builderForValue.build()); onChanged(); } else { statusesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder addAllStatuses( java.lang.Iterable values) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, statuses_); onChanged(); } else { statusesBuilder_.addAllMessages(values); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder clearStatuses() { if (statusesBuilder_ == null) { statuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { statusesBuilder_.clear(); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public Builder removeStatuses(int index) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.remove(index); onChanged(); } else { statusesBuilder_.remove(index); } return this; } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public org.apache.mesos.v1.Protos.OperationStatus.Builder getStatusesBuilder( int index) { return getStatusesFieldBuilder().getBuilder(index); } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public org.apache.mesos.v1.Protos.OperationStatusOrBuilder getStatusesOrBuilder( int index) { if (statusesBuilder_ == null) { return statuses_.get(index); } else { return statusesBuilder_.getMessageOrBuilder(index); } } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public java.util.List getStatusesOrBuilderList() { if (statusesBuilder_ != null) { return statusesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(statuses_); } } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public org.apache.mesos.v1.Protos.OperationStatus.Builder addStatusesBuilder() { return getStatusesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance()); } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public org.apache.mesos.v1.Protos.OperationStatus.Builder addStatusesBuilder( int index) { return getStatusesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance()); } /** *
       * All the statuses known to this operation. Some of the statuses in this
       * list might not have been acknowledged yet. The statuses are ordered.
       * 
* * repeated .mesos.v1.OperationStatus statuses = 5; */ public java.util.List getStatusesBuilderList() { return getStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.OperationStatus, org.apache.mesos.v1.Protos.OperationStatus.Builder, org.apache.mesos.v1.Protos.OperationStatusOrBuilder> getStatusesFieldBuilder() { if (statusesBuilder_ == null) { statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.OperationStatus, org.apache.mesos.v1.Protos.OperationStatus.Builder, org.apache.mesos.v1.Protos.OperationStatusOrBuilder>( statuses_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); statuses_ = null; } return statusesBuilder_; } private org.apache.mesos.v1.Protos.UUID uuid_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UUID, org.apache.mesos.v1.Protos.UUID.Builder, org.apache.mesos.v1.Protos.UUIDOrBuilder> uuidBuilder_; /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ public boolean hasUuid() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ public org.apache.mesos.v1.Protos.UUID getUuid() { if (uuidBuilder_ == null) { return uuid_ == null ? org.apache.mesos.v1.Protos.UUID.getDefaultInstance() : uuid_; } else { return uuidBuilder_.getMessage(); } } /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ public Builder setUuid(org.apache.mesos.v1.Protos.UUID value) { if (uuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); } else { uuidBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ public Builder setUuid( org.apache.mesos.v1.Protos.UUID.Builder builderForValue) { if (uuidBuilder_ == null) { uuid_ = builderForValue.build(); onChanged(); } else { uuidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ public Builder mergeUuid(org.apache.mesos.v1.Protos.UUID value) { if (uuidBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && uuid_ != null && uuid_ != org.apache.mesos.v1.Protos.UUID.getDefaultInstance()) { uuid_ = org.apache.mesos.v1.Protos.UUID.newBuilder(uuid_).mergeFrom(value).buildPartial(); } else { uuid_ = value; } onChanged(); } else { uuidBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ public Builder clearUuid() { if (uuidBuilder_ == null) { uuid_ = null; onChanged(); } else { uuidBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ public org.apache.mesos.v1.Protos.UUID.Builder getUuidBuilder() { bitField0_ |= 0x00000020; onChanged(); return getUuidFieldBuilder().getBuilder(); } /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ public org.apache.mesos.v1.Protos.UUIDOrBuilder getUuidOrBuilder() { if (uuidBuilder_ != null) { return uuidBuilder_.getMessageOrBuilder(); } else { return uuid_ == null ? org.apache.mesos.v1.Protos.UUID.getDefaultInstance() : uuid_; } } /** *
       * This is the internal UUID for the operation, which is kept independently
       * from the framework-specified operation ID, which is optional.
       * 
* * required .mesos.v1.UUID uuid = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UUID, org.apache.mesos.v1.Protos.UUID.Builder, org.apache.mesos.v1.Protos.UUIDOrBuilder> getUuidFieldBuilder() { if (uuidBuilder_ == null) { uuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UUID, org.apache.mesos.v1.Protos.UUID.Builder, org.apache.mesos.v1.Protos.UUIDOrBuilder>( getUuid(), getParentForChildren(), isClean()); uuid_ = null; } return uuidBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Operation) } // @@protoc_insertion_point(class_scope:mesos.v1.Operation) private static final org.apache.mesos.v1.Protos.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Operation(); } public static org.apache.mesos.v1.Protos.Operation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Operation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Operation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Operation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperationStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.OperationStatus) com.google.protobuf.MessageOrBuilder { /** *
     * While frameworks will only receive status updates for operations on which
     * they have set an ID, this field is optional because this message is also
     * used internally by Mesos components when the operation's ID has not been
     * set.
     * 
* * optional .mesos.v1.OperationID operation_id = 1; */ boolean hasOperationId(); /** *
     * While frameworks will only receive status updates for operations on which
     * they have set an ID, this field is optional because this message is also
     * used internally by Mesos components when the operation's ID has not been
     * set.
     * 
* * optional .mesos.v1.OperationID operation_id = 1; */ org.apache.mesos.v1.Protos.OperationID getOperationId(); /** *
     * While frameworks will only receive status updates for operations on which
     * they have set an ID, this field is optional because this message is also
     * used internally by Mesos components when the operation's ID has not been
     * set.
     * 
* * optional .mesos.v1.OperationID operation_id = 1; */ org.apache.mesos.v1.Protos.OperationIDOrBuilder getOperationIdOrBuilder(); /** * required .mesos.v1.OperationState state = 2; */ boolean hasState(); /** * required .mesos.v1.OperationState state = 2; */ org.apache.mesos.v1.Protos.OperationState getState(); /** * optional string message = 3; */ boolean hasMessage(); /** * optional string message = 3; */ java.lang.String getMessage(); /** * optional string message = 3; */ com.google.protobuf.ByteString getMessageBytes(); /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ java.util.List getConvertedResourcesList(); /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ org.apache.mesos.v1.Protos.Resource getConvertedResources(int index); /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ int getConvertedResourcesCount(); /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ java.util.List getConvertedResourcesOrBuilderList(); /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ org.apache.mesos.v1.Protos.ResourceOrBuilder getConvertedResourcesOrBuilder( int index); /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a `uuid`. The status is considered delivered once
     * it is acknowledged by the scheduler.
     * 
* * optional .mesos.v1.UUID uuid = 5; */ boolean hasUuid(); /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a `uuid`. The status is considered delivered once
     * it is acknowledged by the scheduler.
     * 
* * optional .mesos.v1.UUID uuid = 5; */ org.apache.mesos.v1.Protos.UUID getUuid(); /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a `uuid`. The status is considered delivered once
     * it is acknowledged by the scheduler.
     * 
* * optional .mesos.v1.UUID uuid = 5; */ org.apache.mesos.v1.Protos.UUIDOrBuilder getUuidOrBuilder(); /** *
     * If the operation affects resources from a local resource provider,
     * both `agent_id` and `resource_provider_id` will be set.
     * If the operation affects resources that belong to an external
     * resource provider, only `resource_provider_id` will be set.
     * In certain cases, e.g., invalid operations, neither `uuid`,
     * `slave_id` nor `resource_provider_id` will be set, and the
     * scheduler does not need to acknowledge this status update.
     * 
* * optional .mesos.v1.AgentID agent_id = 6; */ boolean hasAgentId(); /** *
     * If the operation affects resources from a local resource provider,
     * both `agent_id` and `resource_provider_id` will be set.
     * If the operation affects resources that belong to an external
     * resource provider, only `resource_provider_id` will be set.
     * In certain cases, e.g., invalid operations, neither `uuid`,
     * `slave_id` nor `resource_provider_id` will be set, and the
     * scheduler does not need to acknowledge this status update.
     * 
* * optional .mesos.v1.AgentID agent_id = 6; */ org.apache.mesos.v1.Protos.AgentID getAgentId(); /** *
     * If the operation affects resources from a local resource provider,
     * both `agent_id` and `resource_provider_id` will be set.
     * If the operation affects resources that belong to an external
     * resource provider, only `resource_provider_id` will be set.
     * In certain cases, e.g., invalid operations, neither `uuid`,
     * `slave_id` nor `resource_provider_id` will be set, and the
     * scheduler does not need to acknowledge this status update.
     * 
* * optional .mesos.v1.AgentID agent_id = 6; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder(); /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ boolean hasResourceProviderId(); /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ org.apache.mesos.v1.Protos.ResourceProviderID getResourceProviderId(); /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getResourceProviderIdOrBuilder(); } /** *
   **
   * Describes the current status of an operation.
   * 
* * Protobuf type {@code mesos.v1.OperationStatus} */ public static final class OperationStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.OperationStatus) OperationStatusOrBuilder { private static final long serialVersionUID = 0L; // Use OperationStatus.newBuilder() to construct. private OperationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OperationStatus() { state_ = 0; message_ = ""; convertedResources_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OperationStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.OperationID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = operationId_.toBuilder(); } operationId_ = input.readMessage(org.apache.mesos.v1.Protos.OperationID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(operationId_); operationId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.OperationState value = org.apache.mesos.v1.Protos.OperationState.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; state_ = rawValue; } break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; message_ = bs; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { convertedResources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } convertedResources_.add( input.readMessage(org.apache.mesos.v1.Protos.Resource.PARSER, extensionRegistry)); break; } case 42: { org.apache.mesos.v1.Protos.UUID.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = uuid_.toBuilder(); } uuid_ = input.readMessage(org.apache.mesos.v1.Protos.UUID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(uuid_); uuid_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 50: { org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = agentId_.toBuilder(); } agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentId_); agentId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 58: { org.apache.mesos.v1.Protos.ResourceProviderID.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = resourceProviderId_.toBuilder(); } resourceProviderId_ = input.readMessage(org.apache.mesos.v1.Protos.ResourceProviderID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resourceProviderId_); resourceProviderId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { convertedResources_ = java.util.Collections.unmodifiableList(convertedResources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OperationStatus.class, org.apache.mesos.v1.Protos.OperationStatus.Builder.class); } private int bitField0_; public static final int OPERATION_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.OperationID operationId_; /** *
     * While frameworks will only receive status updates for operations on which
     * they have set an ID, this field is optional because this message is also
     * used internally by Mesos components when the operation's ID has not been
     * set.
     * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public boolean hasOperationId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * While frameworks will only receive status updates for operations on which
     * they have set an ID, this field is optional because this message is also
     * used internally by Mesos components when the operation's ID has not been
     * set.
     * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public org.apache.mesos.v1.Protos.OperationID getOperationId() { return operationId_ == null ? org.apache.mesos.v1.Protos.OperationID.getDefaultInstance() : operationId_; } /** *
     * While frameworks will only receive status updates for operations on which
     * they have set an ID, this field is optional because this message is also
     * used internally by Mesos components when the operation's ID has not been
     * set.
     * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public org.apache.mesos.v1.Protos.OperationIDOrBuilder getOperationIdOrBuilder() { return operationId_ == null ? org.apache.mesos.v1.Protos.OperationID.getDefaultInstance() : operationId_; } public static final int STATE_FIELD_NUMBER = 2; private int state_; /** * required .mesos.v1.OperationState state = 2; */ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.OperationState state = 2; */ public org.apache.mesos.v1.Protos.OperationState getState() { org.apache.mesos.v1.Protos.OperationState result = org.apache.mesos.v1.Protos.OperationState.valueOf(state_); return result == null ? org.apache.mesos.v1.Protos.OperationState.OPERATION_UNSUPPORTED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** * optional string message = 3; */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string message = 3; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } } /** * optional string message = 3; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONVERTED_RESOURCES_FIELD_NUMBER = 4; private java.util.List convertedResources_; /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public java.util.List getConvertedResourcesList() { return convertedResources_; } /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public java.util.List getConvertedResourcesOrBuilderList() { return convertedResources_; } /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public int getConvertedResourcesCount() { return convertedResources_.size(); } /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public org.apache.mesos.v1.Protos.Resource getConvertedResources(int index) { return convertedResources_.get(index); } /** *
     * Converted resources after applying the operation. This only
     * applies if the `state` is `OPERATION_FINISHED`.
     * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getConvertedResourcesOrBuilder( int index) { return convertedResources_.get(index); } public static final int UUID_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.UUID uuid_; /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a `uuid`. The status is considered delivered once
     * it is acknowledged by the scheduler.
     * 
* * optional .mesos.v1.UUID uuid = 5; */ public boolean hasUuid() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a `uuid`. The status is considered delivered once
     * it is acknowledged by the scheduler.
     * 
* * optional .mesos.v1.UUID uuid = 5; */ public org.apache.mesos.v1.Protos.UUID getUuid() { return uuid_ == null ? org.apache.mesos.v1.Protos.UUID.getDefaultInstance() : uuid_; } /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a `uuid`. The status is considered delivered once
     * it is acknowledged by the scheduler.
     * 
* * optional .mesos.v1.UUID uuid = 5; */ public org.apache.mesos.v1.Protos.UUIDOrBuilder getUuidOrBuilder() { return uuid_ == null ? org.apache.mesos.v1.Protos.UUID.getDefaultInstance() : uuid_; } public static final int AGENT_ID_FIELD_NUMBER = 6; private org.apache.mesos.v1.Protos.AgentID agentId_; /** *
     * If the operation affects resources from a local resource provider,
     * both `agent_id` and `resource_provider_id` will be set.
     * If the operation affects resources that belong to an external
     * resource provider, only `resource_provider_id` will be set.
     * In certain cases, e.g., invalid operations, neither `uuid`,
     * `slave_id` nor `resource_provider_id` will be set, and the
     * scheduler does not need to acknowledge this status update.
     * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * If the operation affects resources from a local resource provider,
     * both `agent_id` and `resource_provider_id` will be set.
     * If the operation affects resources that belong to an external
     * resource provider, only `resource_provider_id` will be set.
     * In certain cases, e.g., invalid operations, neither `uuid`,
     * `slave_id` nor `resource_provider_id` will be set, and the
     * scheduler does not need to acknowledge this status update.
     * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } /** *
     * If the operation affects resources from a local resource provider,
     * both `agent_id` and `resource_provider_id` will be set.
     * If the operation affects resources that belong to an external
     * resource provider, only `resource_provider_id` will be set.
     * In certain cases, e.g., invalid operations, neither `uuid`,
     * `slave_id` nor `resource_provider_id` will be set, and the
     * scheduler does not need to acknowledge this status update.
     * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } public static final int RESOURCE_PROVIDER_ID_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.ResourceProviderID resourceProviderId_; /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public boolean hasResourceProviderId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public org.apache.mesos.v1.Protos.ResourceProviderID getResourceProviderId() { return resourceProviderId_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : resourceProviderId_; } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getResourceProviderIdOrBuilder() { return resourceProviderId_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : resourceProviderId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasState()) { memoizedIsInitialized = 0; return false; } if (hasOperationId()) { if (!getOperationId().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getConvertedResourcesCount(); i++) { if (!getConvertedResources(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasUuid()) { if (!getUuid().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasAgentId()) { if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasResourceProviderId()) { if (!getResourceProviderId().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getOperationId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, state_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } for (int i = 0; i < convertedResources_.size(); i++) { output.writeMessage(4, convertedResources_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, getUuid()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(6, getAgentId()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(7, getResourceProviderId()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, state_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } for (int i = 0; i < convertedResources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, convertedResources_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUuid()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getAgentId()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getResourceProviderId()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.OperationStatus)) { return super.equals(obj); } org.apache.mesos.v1.Protos.OperationStatus other = (org.apache.mesos.v1.Protos.OperationStatus) obj; boolean result = true; result = result && (hasOperationId() == other.hasOperationId()); if (hasOperationId()) { result = result && getOperationId() .equals(other.getOperationId()); } result = result && (hasState() == other.hasState()); if (hasState()) { result = result && state_ == other.state_; } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage() .equals(other.getMessage()); } result = result && getConvertedResourcesList() .equals(other.getConvertedResourcesList()); result = result && (hasUuid() == other.hasUuid()); if (hasUuid()) { result = result && getUuid() .equals(other.getUuid()); } result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasResourceProviderId() == other.hasResourceProviderId()); if (hasResourceProviderId()) { result = result && getResourceProviderId() .equals(other.getResourceProviderId()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationId()) { hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOperationId().hashCode(); } if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (getConvertedResourcesCount() > 0) { hash = (37 * hash) + CONVERTED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getConvertedResourcesList().hashCode(); } if (hasUuid()) { hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); } if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (hasResourceProviderId()) { hash = (37 * hash) + RESOURCE_PROVIDER_ID_FIELD_NUMBER; hash = (53 * hash) + getResourceProviderId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.OperationStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OperationStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OperationStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OperationStatus 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.Protos.OperationStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.OperationStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.OperationStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OperationStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OperationStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OperationStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.OperationStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.OperationStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.OperationStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes the current status of an operation.
     * 
* * Protobuf type {@code mesos.v1.OperationStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.OperationStatus) org.apache.mesos.v1.Protos.OperationStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.OperationStatus.class, org.apache.mesos.v1.Protos.OperationStatus.Builder.class); } // Construct using org.apache.mesos.v1.Protos.OperationStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationIdFieldBuilder(); getConvertedResourcesFieldBuilder(); getUuidFieldBuilder(); getAgentIdFieldBuilder(); getResourceProviderIdFieldBuilder(); } } public Builder clear() { super.clear(); if (operationIdBuilder_ == null) { operationId_ = null; } else { operationIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); state_ = 0; bitField0_ = (bitField0_ & ~0x00000002); message_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (convertedResourcesBuilder_ == null) { convertedResources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { convertedResourcesBuilder_.clear(); } if (uuidBuilder_ == null) { uuid_ = null; } else { uuidBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (agentIdBuilder_ == null) { agentId_ = null; } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (resourceProviderIdBuilder_ == null) { resourceProviderId_ = null; } else { resourceProviderIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_OperationStatus_descriptor; } public org.apache.mesos.v1.Protos.OperationStatus getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance(); } public org.apache.mesos.v1.Protos.OperationStatus build() { org.apache.mesos.v1.Protos.OperationStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.OperationStatus buildPartial() { org.apache.mesos.v1.Protos.OperationStatus result = new org.apache.mesos.v1.Protos.OperationStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (operationIdBuilder_ == null) { result.operationId_ = operationId_; } else { result.operationId_ = operationIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.state_ = state_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.message_ = message_; if (convertedResourcesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { convertedResources_ = java.util.Collections.unmodifiableList(convertedResources_); bitField0_ = (bitField0_ & ~0x00000008); } result.convertedResources_ = convertedResources_; } else { result.convertedResources_ = convertedResourcesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (uuidBuilder_ == null) { result.uuid_ = uuid_; } else { result.uuid_ = uuidBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (agentIdBuilder_ == null) { result.agentId_ = agentId_; } else { result.agentId_ = agentIdBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } if (resourceProviderIdBuilder_ == null) { result.resourceProviderId_ = resourceProviderId_; } else { result.resourceProviderId_ = resourceProviderIdBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.OperationStatus) { return mergeFrom((org.apache.mesos.v1.Protos.OperationStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.OperationStatus other) { if (other == org.apache.mesos.v1.Protos.OperationStatus.getDefaultInstance()) return this; if (other.hasOperationId()) { mergeOperationId(other.getOperationId()); } if (other.hasState()) { setState(other.getState()); } if (other.hasMessage()) { bitField0_ |= 0x00000004; message_ = other.message_; onChanged(); } if (convertedResourcesBuilder_ == null) { if (!other.convertedResources_.isEmpty()) { if (convertedResources_.isEmpty()) { convertedResources_ = other.convertedResources_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureConvertedResourcesIsMutable(); convertedResources_.addAll(other.convertedResources_); } onChanged(); } } else { if (!other.convertedResources_.isEmpty()) { if (convertedResourcesBuilder_.isEmpty()) { convertedResourcesBuilder_.dispose(); convertedResourcesBuilder_ = null; convertedResources_ = other.convertedResources_; bitField0_ = (bitField0_ & ~0x00000008); convertedResourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConvertedResourcesFieldBuilder() : null; } else { convertedResourcesBuilder_.addAllMessages(other.convertedResources_); } } } if (other.hasUuid()) { mergeUuid(other.getUuid()); } if (other.hasAgentId()) { mergeAgentId(other.getAgentId()); } if (other.hasResourceProviderId()) { mergeResourceProviderId(other.getResourceProviderId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasState()) { return false; } if (hasOperationId()) { if (!getOperationId().isInitialized()) { return false; } } for (int i = 0; i < getConvertedResourcesCount(); i++) { if (!getConvertedResources(i).isInitialized()) { return false; } } if (hasUuid()) { if (!getUuid().isInitialized()) { return false; } } if (hasAgentId()) { if (!getAgentId().isInitialized()) { return false; } } if (hasResourceProviderId()) { if (!getResourceProviderId().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.Protos.OperationStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.OperationStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.OperationID operationId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationID, org.apache.mesos.v1.Protos.OperationID.Builder, org.apache.mesos.v1.Protos.OperationIDOrBuilder> operationIdBuilder_; /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public boolean hasOperationId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public org.apache.mesos.v1.Protos.OperationID getOperationId() { if (operationIdBuilder_ == null) { return operationId_ == null ? org.apache.mesos.v1.Protos.OperationID.getDefaultInstance() : operationId_; } else { return operationIdBuilder_.getMessage(); } } /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public Builder setOperationId(org.apache.mesos.v1.Protos.OperationID value) { if (operationIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationId_ = value; onChanged(); } else { operationIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public Builder setOperationId( org.apache.mesos.v1.Protos.OperationID.Builder builderForValue) { if (operationIdBuilder_ == null) { operationId_ = builderForValue.build(); onChanged(); } else { operationIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public Builder mergeOperationId(org.apache.mesos.v1.Protos.OperationID value) { if (operationIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && operationId_ != null && operationId_ != org.apache.mesos.v1.Protos.OperationID.getDefaultInstance()) { operationId_ = org.apache.mesos.v1.Protos.OperationID.newBuilder(operationId_).mergeFrom(value).buildPartial(); } else { operationId_ = value; } onChanged(); } else { operationIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public Builder clearOperationId() { if (operationIdBuilder_ == null) { operationId_ = null; onChanged(); } else { operationIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public org.apache.mesos.v1.Protos.OperationID.Builder getOperationIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationIdFieldBuilder().getBuilder(); } /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ public org.apache.mesos.v1.Protos.OperationIDOrBuilder getOperationIdOrBuilder() { if (operationIdBuilder_ != null) { return operationIdBuilder_.getMessageOrBuilder(); } else { return operationId_ == null ? org.apache.mesos.v1.Protos.OperationID.getDefaultInstance() : operationId_; } } /** *
       * While frameworks will only receive status updates for operations on which
       * they have set an ID, this field is optional because this message is also
       * used internally by Mesos components when the operation's ID has not been
       * set.
       * 
* * optional .mesos.v1.OperationID operation_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationID, org.apache.mesos.v1.Protos.OperationID.Builder, org.apache.mesos.v1.Protos.OperationIDOrBuilder> getOperationIdFieldBuilder() { if (operationIdBuilder_ == null) { operationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.OperationID, org.apache.mesos.v1.Protos.OperationID.Builder, org.apache.mesos.v1.Protos.OperationIDOrBuilder>( getOperationId(), getParentForChildren(), isClean()); operationId_ = null; } return operationIdBuilder_; } private int state_ = 0; /** * required .mesos.v1.OperationState state = 2; */ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.OperationState state = 2; */ public org.apache.mesos.v1.Protos.OperationState getState() { org.apache.mesos.v1.Protos.OperationState result = org.apache.mesos.v1.Protos.OperationState.valueOf(state_); return result == null ? org.apache.mesos.v1.Protos.OperationState.OPERATION_UNSUPPORTED : result; } /** * required .mesos.v1.OperationState state = 2; */ public Builder setState(org.apache.mesos.v1.Protos.OperationState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; state_ = value.getNumber(); onChanged(); return this; } /** * required .mesos.v1.OperationState state = 2; */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000002); state_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** * optional string message = 3; */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string message = 3; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string message = 3; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string message = 3; */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } /** * optional string message = 3; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000004); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * optional string message = 3; */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } private java.util.List convertedResources_ = java.util.Collections.emptyList(); private void ensureConvertedResourcesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { convertedResources_ = new java.util.ArrayList(convertedResources_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> convertedResourcesBuilder_; /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public java.util.List getConvertedResourcesList() { if (convertedResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(convertedResources_); } else { return convertedResourcesBuilder_.getMessageList(); } } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public int getConvertedResourcesCount() { if (convertedResourcesBuilder_ == null) { return convertedResources_.size(); } else { return convertedResourcesBuilder_.getCount(); } } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public org.apache.mesos.v1.Protos.Resource getConvertedResources(int index) { if (convertedResourcesBuilder_ == null) { return convertedResources_.get(index); } else { return convertedResourcesBuilder_.getMessage(index); } } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder setConvertedResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (convertedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConvertedResourcesIsMutable(); convertedResources_.set(index, value); onChanged(); } else { convertedResourcesBuilder_.setMessage(index, value); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder setConvertedResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (convertedResourcesBuilder_ == null) { ensureConvertedResourcesIsMutable(); convertedResources_.set(index, builderForValue.build()); onChanged(); } else { convertedResourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder addConvertedResources(org.apache.mesos.v1.Protos.Resource value) { if (convertedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConvertedResourcesIsMutable(); convertedResources_.add(value); onChanged(); } else { convertedResourcesBuilder_.addMessage(value); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder addConvertedResources( int index, org.apache.mesos.v1.Protos.Resource value) { if (convertedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConvertedResourcesIsMutable(); convertedResources_.add(index, value); onChanged(); } else { convertedResourcesBuilder_.addMessage(index, value); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder addConvertedResources( org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (convertedResourcesBuilder_ == null) { ensureConvertedResourcesIsMutable(); convertedResources_.add(builderForValue.build()); onChanged(); } else { convertedResourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder addConvertedResources( int index, org.apache.mesos.v1.Protos.Resource.Builder builderForValue) { if (convertedResourcesBuilder_ == null) { ensureConvertedResourcesIsMutable(); convertedResources_.add(index, builderForValue.build()); onChanged(); } else { convertedResourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder addAllConvertedResources( java.lang.Iterable values) { if (convertedResourcesBuilder_ == null) { ensureConvertedResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, convertedResources_); onChanged(); } else { convertedResourcesBuilder_.addAllMessages(values); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder clearConvertedResources() { if (convertedResourcesBuilder_ == null) { convertedResources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { convertedResourcesBuilder_.clear(); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public Builder removeConvertedResources(int index) { if (convertedResourcesBuilder_ == null) { ensureConvertedResourcesIsMutable(); convertedResources_.remove(index); onChanged(); } else { convertedResourcesBuilder_.remove(index); } return this; } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public org.apache.mesos.v1.Protos.Resource.Builder getConvertedResourcesBuilder( int index) { return getConvertedResourcesFieldBuilder().getBuilder(index); } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public org.apache.mesos.v1.Protos.ResourceOrBuilder getConvertedResourcesOrBuilder( int index) { if (convertedResourcesBuilder_ == null) { return convertedResources_.get(index); } else { return convertedResourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public java.util.List getConvertedResourcesOrBuilderList() { if (convertedResourcesBuilder_ != null) { return convertedResourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(convertedResources_); } } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public org.apache.mesos.v1.Protos.Resource.Builder addConvertedResourcesBuilder() { return getConvertedResourcesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public org.apache.mesos.v1.Protos.Resource.Builder addConvertedResourcesBuilder( int index) { return getConvertedResourcesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Resource.getDefaultInstance()); } /** *
       * Converted resources after applying the operation. This only
       * applies if the `state` is `OPERATION_FINISHED`.
       * 
* * repeated .mesos.v1.Resource converted_resources = 4; */ public java.util.List getConvertedResourcesBuilderList() { return getConvertedResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder> getConvertedResourcesFieldBuilder() { if (convertedResourcesBuilder_ == null) { convertedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Resource, org.apache.mesos.v1.Protos.Resource.Builder, org.apache.mesos.v1.Protos.ResourceOrBuilder>( convertedResources_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); convertedResources_ = null; } return convertedResourcesBuilder_; } private org.apache.mesos.v1.Protos.UUID uuid_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UUID, org.apache.mesos.v1.Protos.UUID.Builder, org.apache.mesos.v1.Protos.UUIDOrBuilder> uuidBuilder_; /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ public boolean hasUuid() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ public org.apache.mesos.v1.Protos.UUID getUuid() { if (uuidBuilder_ == null) { return uuid_ == null ? org.apache.mesos.v1.Protos.UUID.getDefaultInstance() : uuid_; } else { return uuidBuilder_.getMessage(); } } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ public Builder setUuid(org.apache.mesos.v1.Protos.UUID value) { if (uuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); } else { uuidBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ public Builder setUuid( org.apache.mesos.v1.Protos.UUID.Builder builderForValue) { if (uuidBuilder_ == null) { uuid_ = builderForValue.build(); onChanged(); } else { uuidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ public Builder mergeUuid(org.apache.mesos.v1.Protos.UUID value) { if (uuidBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && uuid_ != null && uuid_ != org.apache.mesos.v1.Protos.UUID.getDefaultInstance()) { uuid_ = org.apache.mesos.v1.Protos.UUID.newBuilder(uuid_).mergeFrom(value).buildPartial(); } else { uuid_ = value; } onChanged(); } else { uuidBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ public Builder clearUuid() { if (uuidBuilder_ == null) { uuid_ = null; onChanged(); } else { uuidBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ public org.apache.mesos.v1.Protos.UUID.Builder getUuidBuilder() { bitField0_ |= 0x00000010; onChanged(); return getUuidFieldBuilder().getBuilder(); } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ public org.apache.mesos.v1.Protos.UUIDOrBuilder getUuidOrBuilder() { if (uuidBuilder_ != null) { return uuidBuilder_.getMessageOrBuilder(); } else { return uuid_ == null ? org.apache.mesos.v1.Protos.UUID.getDefaultInstance() : uuid_; } } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a `uuid`. The status is considered delivered once
       * it is acknowledged by the scheduler.
       * 
* * optional .mesos.v1.UUID uuid = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UUID, org.apache.mesos.v1.Protos.UUID.Builder, org.apache.mesos.v1.Protos.UUIDOrBuilder> getUuidFieldBuilder() { if (uuidBuilder_ == null) { uuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.UUID, org.apache.mesos.v1.Protos.UUID.Builder, org.apache.mesos.v1.Protos.UUIDOrBuilder>( getUuid(), getParentForChildren(), isClean()); uuid_ = null; } return uuidBuilder_; } private org.apache.mesos.v1.Protos.AgentID agentId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_; /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { if (agentIdBuilder_ == null) { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } else { return agentIdBuilder_.getMessage(); } } /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentId_ = value; onChanged(); } else { agentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public Builder setAgentId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (agentIdBuilder_ == null) { agentId_ = builderForValue.build(); onChanged(); } else { agentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && agentId_ != null && agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { agentId_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial(); } else { agentId_ = value; } onChanged(); } else { agentIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public Builder clearAgentId() { if (agentIdBuilder_ == null) { agentId_ = null; onChanged(); } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAgentIdFieldBuilder().getBuilder(); } /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { if (agentIdBuilder_ != null) { return agentIdBuilder_.getMessageOrBuilder(); } else { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } } /** *
       * If the operation affects resources from a local resource provider,
       * both `agent_id` and `resource_provider_id` will be set.
       * If the operation affects resources that belong to an external
       * resource provider, only `resource_provider_id` will be set.
       * In certain cases, e.g., invalid operations, neither `uuid`,
       * `slave_id` nor `resource_provider_id` will be set, and the
       * scheduler does not need to acknowledge this status update.
       * 
* * optional .mesos.v1.AgentID agent_id = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getAgentIdFieldBuilder() { if (agentIdBuilder_ == null) { agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getAgentId(), getParentForChildren(), isClean()); agentId_ = null; } return agentIdBuilder_; } private org.apache.mesos.v1.Protos.ResourceProviderID resourceProviderId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder> resourceProviderIdBuilder_; /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public boolean hasResourceProviderId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public org.apache.mesos.v1.Protos.ResourceProviderID getResourceProviderId() { if (resourceProviderIdBuilder_ == null) { return resourceProviderId_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : resourceProviderId_; } else { return resourceProviderIdBuilder_.getMessage(); } } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public Builder setResourceProviderId(org.apache.mesos.v1.Protos.ResourceProviderID value) { if (resourceProviderIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceProviderId_ = value; onChanged(); } else { resourceProviderIdBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public Builder setResourceProviderId( org.apache.mesos.v1.Protos.ResourceProviderID.Builder builderForValue) { if (resourceProviderIdBuilder_ == null) { resourceProviderId_ = builderForValue.build(); onChanged(); } else { resourceProviderIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public Builder mergeResourceProviderId(org.apache.mesos.v1.Protos.ResourceProviderID value) { if (resourceProviderIdBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && resourceProviderId_ != null && resourceProviderId_ != org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance()) { resourceProviderId_ = org.apache.mesos.v1.Protos.ResourceProviderID.newBuilder(resourceProviderId_).mergeFrom(value).buildPartial(); } else { resourceProviderId_ = value; } onChanged(); } else { resourceProviderIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public Builder clearResourceProviderId() { if (resourceProviderIdBuilder_ == null) { resourceProviderId_ = null; onChanged(); } else { resourceProviderIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public org.apache.mesos.v1.Protos.ResourceProviderID.Builder getResourceProviderIdBuilder() { bitField0_ |= 0x00000040; onChanged(); return getResourceProviderIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ public org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder getResourceProviderIdOrBuilder() { if (resourceProviderIdBuilder_ != null) { return resourceProviderIdBuilder_.getMessageOrBuilder(); } else { return resourceProviderId_ == null ? org.apache.mesos.v1.Protos.ResourceProviderID.getDefaultInstance() : resourceProviderId_; } } /** * optional .mesos.v1.ResourceProviderID resource_provider_id = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder> getResourceProviderIdFieldBuilder() { if (resourceProviderIdBuilder_ == null) { resourceProviderIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ResourceProviderID, org.apache.mesos.v1.Protos.ResourceProviderID.Builder, org.apache.mesos.v1.Protos.ResourceProviderIDOrBuilder>( getResourceProviderId(), getParentForChildren(), isClean()); resourceProviderId_ = null; } return resourceProviderIdBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.OperationStatus) } // @@protoc_insertion_point(class_scope:mesos.v1.OperationStatus) private static final org.apache.mesos.v1.Protos.OperationStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.OperationStatus(); } public static org.apache.mesos.v1.Protos.OperationStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OperationStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OperationStatus(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.OperationStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckStatusInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CheckStatusInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The type of the check this status corresponds to.
     * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ boolean hasType(); /** *
     * The type of the check this status corresponds to.
     * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ org.apache.mesos.v1.Protos.CheckInfo.Type getType(); /** *
     * Status of a command check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ boolean hasCommand(); /** *
     * Status of a command check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ org.apache.mesos.v1.Protos.CheckStatusInfo.Command getCommand(); /** *
     * Status of a command check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ org.apache.mesos.v1.Protos.CheckStatusInfo.CommandOrBuilder getCommandOrBuilder(); /** *
     * Status of an HTTP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ boolean hasHttp(); /** *
     * Status of an HTTP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ org.apache.mesos.v1.Protos.CheckStatusInfo.Http getHttp(); /** *
     * Status of an HTTP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ org.apache.mesos.v1.Protos.CheckStatusInfo.HttpOrBuilder getHttpOrBuilder(); /** *
     * Status of a TCP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ boolean hasTcp(); /** *
     * Status of a TCP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp getTcp(); /** *
     * Status of a TCP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ org.apache.mesos.v1.Protos.CheckStatusInfo.TcpOrBuilder getTcpOrBuilder(); } /** *
   **
   * Describes the status of a check. Type and the corresponding field, i.e.,
   * `command` or `http` must be set. If the result of the check is not available
   * (e.g., the check timed out), these fields must contain empty messages, i.e.,
   * `exit_code` or `status_code` will be unset.
   * NOTE: This API is subject to change and the related feature is experimental.
   * 
* * Protobuf type {@code mesos.v1.CheckStatusInfo} */ public static final class CheckStatusInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CheckStatusInfo) CheckStatusInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CheckStatusInfo.newBuilder() to construct. private CheckStatusInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckStatusInfo() { type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckStatusInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.CheckInfo.Type value = org.apache.mesos.v1.Protos.CheckInfo.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { org.apache.mesos.v1.Protos.CheckStatusInfo.Command.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CheckStatusInfo.Command.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.CheckStatusInfo.Http.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = http_.toBuilder(); } http_ = input.readMessage(org.apache.mesos.v1.Protos.CheckStatusInfo.Http.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(http_); http_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = tcp_.toBuilder(); } tcp_ = input.readMessage(org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tcp_); tcp_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckStatusInfo.class, org.apache.mesos.v1.Protos.CheckStatusInfo.Builder.class); } public interface CommandOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CheckStatusInfo.Command) com.google.protobuf.MessageOrBuilder { /** *
       * Exit code of a command check. It is the result of calling
       * `WEXITSTATUS()` on `waitpid()` termination information on
       * Posix and calling `GetExitCodeProcess()` on Windows.
       * 
* * optional int32 exit_code = 1; */ boolean hasExitCode(); /** *
       * Exit code of a command check. It is the result of calling
       * `WEXITSTATUS()` on `waitpid()` termination information on
       * Posix and calling `GetExitCodeProcess()` on Windows.
       * 
* * optional int32 exit_code = 1; */ int getExitCode(); } /** * Protobuf type {@code mesos.v1.CheckStatusInfo.Command} */ public static final class Command extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CheckStatusInfo.Command) CommandOrBuilder { private static final long serialVersionUID = 0L; // Use Command.newBuilder() to construct. private Command(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Command() { exitCode_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Command( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; exitCode_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Command_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Command_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckStatusInfo.Command.class, org.apache.mesos.v1.Protos.CheckStatusInfo.Command.Builder.class); } private int bitField0_; public static final int EXIT_CODE_FIELD_NUMBER = 1; private int exitCode_; /** *
       * Exit code of a command check. It is the result of calling
       * `WEXITSTATUS()` on `waitpid()` termination information on
       * Posix and calling `GetExitCodeProcess()` on Windows.
       * 
* * optional int32 exit_code = 1; */ public boolean hasExitCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Exit code of a command check. It is the result of calling
       * `WEXITSTATUS()` on `waitpid()` termination information on
       * Posix and calling `GetExitCodeProcess()` on Windows.
       * 
* * optional int32 exit_code = 1; */ public int getExitCode() { return exitCode_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, exitCode_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, exitCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CheckStatusInfo.Command)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CheckStatusInfo.Command other = (org.apache.mesos.v1.Protos.CheckStatusInfo.Command) obj; boolean result = true; result = result && (hasExitCode() == other.hasExitCode()); if (hasExitCode()) { result = result && (getExitCode() == other.getExitCode()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExitCode()) { hash = (37 * hash) + EXIT_CODE_FIELD_NUMBER; hash = (53 * hash) + getExitCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command 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.Protos.CheckStatusInfo.Command parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CheckStatusInfo.Command prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CheckStatusInfo.Command} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CheckStatusInfo.Command) org.apache.mesos.v1.Protos.CheckStatusInfo.CommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Command_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Command_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckStatusInfo.Command.class, org.apache.mesos.v1.Protos.CheckStatusInfo.Command.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CheckStatusInfo.Command.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); exitCode_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Command_descriptor; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Command getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CheckStatusInfo.Command.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CheckStatusInfo.Command build() { org.apache.mesos.v1.Protos.CheckStatusInfo.Command result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Command buildPartial() { org.apache.mesos.v1.Protos.CheckStatusInfo.Command result = new org.apache.mesos.v1.Protos.CheckStatusInfo.Command(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.exitCode_ = exitCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CheckStatusInfo.Command) { return mergeFrom((org.apache.mesos.v1.Protos.CheckStatusInfo.Command)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CheckStatusInfo.Command other) { if (other == org.apache.mesos.v1.Protos.CheckStatusInfo.Command.getDefaultInstance()) return this; if (other.hasExitCode()) { setExitCode(other.getExitCode()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CheckStatusInfo.Command parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CheckStatusInfo.Command) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int exitCode_ ; /** *
         * Exit code of a command check. It is the result of calling
         * `WEXITSTATUS()` on `waitpid()` termination information on
         * Posix and calling `GetExitCodeProcess()` on Windows.
         * 
* * optional int32 exit_code = 1; */ public boolean hasExitCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Exit code of a command check. It is the result of calling
         * `WEXITSTATUS()` on `waitpid()` termination information on
         * Posix and calling `GetExitCodeProcess()` on Windows.
         * 
* * optional int32 exit_code = 1; */ public int getExitCode() { return exitCode_; } /** *
         * Exit code of a command check. It is the result of calling
         * `WEXITSTATUS()` on `waitpid()` termination information on
         * Posix and calling `GetExitCodeProcess()` on Windows.
         * 
* * optional int32 exit_code = 1; */ public Builder setExitCode(int value) { bitField0_ |= 0x00000001; exitCode_ = value; onChanged(); return this; } /** *
         * Exit code of a command check. It is the result of calling
         * `WEXITSTATUS()` on `waitpid()` termination information on
         * Posix and calling `GetExitCodeProcess()` on Windows.
         * 
* * optional int32 exit_code = 1; */ public Builder clearExitCode() { bitField0_ = (bitField0_ & ~0x00000001); exitCode_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CheckStatusInfo.Command) } // @@protoc_insertion_point(class_scope:mesos.v1.CheckStatusInfo.Command) private static final org.apache.mesos.v1.Protos.CheckStatusInfo.Command DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CheckStatusInfo.Command(); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Command getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Command parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Command(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Command getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HttpOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CheckStatusInfo.Http) com.google.protobuf.MessageOrBuilder { /** *
       * HTTP status code of an HTTP check.
       * 
* * optional uint32 status_code = 1; */ boolean hasStatusCode(); /** *
       * HTTP status code of an HTTP check.
       * 
* * optional uint32 status_code = 1; */ int getStatusCode(); } /** * Protobuf type {@code mesos.v1.CheckStatusInfo.Http} */ public static final class Http extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CheckStatusInfo.Http) HttpOrBuilder { private static final long serialVersionUID = 0L; // Use Http.newBuilder() to construct. private Http(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Http() { statusCode_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Http( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; statusCode_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Http_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Http_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckStatusInfo.Http.class, org.apache.mesos.v1.Protos.CheckStatusInfo.Http.Builder.class); } private int bitField0_; public static final int STATUS_CODE_FIELD_NUMBER = 1; private int statusCode_; /** *
       * HTTP status code of an HTTP check.
       * 
* * optional uint32 status_code = 1; */ public boolean hasStatusCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * HTTP status code of an HTTP check.
       * 
* * optional uint32 status_code = 1; */ public int getStatusCode() { return statusCode_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, statusCode_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, statusCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CheckStatusInfo.Http)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CheckStatusInfo.Http other = (org.apache.mesos.v1.Protos.CheckStatusInfo.Http) obj; boolean result = true; result = result && (hasStatusCode() == other.hasStatusCode()); if (hasStatusCode()) { result = result && (getStatusCode() == other.getStatusCode()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatusCode()) { hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER; hash = (53 * hash) + getStatusCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http 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.Protos.CheckStatusInfo.Http parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CheckStatusInfo.Http prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CheckStatusInfo.Http} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CheckStatusInfo.Http) org.apache.mesos.v1.Protos.CheckStatusInfo.HttpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Http_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Http_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckStatusInfo.Http.class, org.apache.mesos.v1.Protos.CheckStatusInfo.Http.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CheckStatusInfo.Http.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); statusCode_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Http_descriptor; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Http getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CheckStatusInfo.Http.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CheckStatusInfo.Http build() { org.apache.mesos.v1.Protos.CheckStatusInfo.Http result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Http buildPartial() { org.apache.mesos.v1.Protos.CheckStatusInfo.Http result = new org.apache.mesos.v1.Protos.CheckStatusInfo.Http(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.statusCode_ = statusCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CheckStatusInfo.Http) { return mergeFrom((org.apache.mesos.v1.Protos.CheckStatusInfo.Http)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CheckStatusInfo.Http other) { if (other == org.apache.mesos.v1.Protos.CheckStatusInfo.Http.getDefaultInstance()) return this; if (other.hasStatusCode()) { setStatusCode(other.getStatusCode()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CheckStatusInfo.Http parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CheckStatusInfo.Http) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int statusCode_ ; /** *
         * HTTP status code of an HTTP check.
         * 
* * optional uint32 status_code = 1; */ public boolean hasStatusCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * HTTP status code of an HTTP check.
         * 
* * optional uint32 status_code = 1; */ public int getStatusCode() { return statusCode_; } /** *
         * HTTP status code of an HTTP check.
         * 
* * optional uint32 status_code = 1; */ public Builder setStatusCode(int value) { bitField0_ |= 0x00000001; statusCode_ = value; onChanged(); return this; } /** *
         * HTTP status code of an HTTP check.
         * 
* * optional uint32 status_code = 1; */ public Builder clearStatusCode() { bitField0_ = (bitField0_ & ~0x00000001); statusCode_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CheckStatusInfo.Http) } // @@protoc_insertion_point(class_scope:mesos.v1.CheckStatusInfo.Http) private static final org.apache.mesos.v1.Protos.CheckStatusInfo.Http DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CheckStatusInfo.Http(); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Http getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Http parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Http(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Http getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TcpOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CheckStatusInfo.Tcp) com.google.protobuf.MessageOrBuilder { /** *
       * Whether a TCP connection succeeded.
       * 
* * optional bool succeeded = 1; */ boolean hasSucceeded(); /** *
       * Whether a TCP connection succeeded.
       * 
* * optional bool succeeded = 1; */ boolean getSucceeded(); } /** * Protobuf type {@code mesos.v1.CheckStatusInfo.Tcp} */ public static final class Tcp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CheckStatusInfo.Tcp) TcpOrBuilder { private static final long serialVersionUID = 0L; // Use Tcp.newBuilder() to construct. private Tcp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tcp() { succeeded_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Tcp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; succeeded_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Tcp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Tcp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.class, org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.Builder.class); } private int bitField0_; public static final int SUCCEEDED_FIELD_NUMBER = 1; private boolean succeeded_; /** *
       * Whether a TCP connection succeeded.
       * 
* * optional bool succeeded = 1; */ public boolean hasSucceeded() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Whether a TCP connection succeeded.
       * 
* * optional bool succeeded = 1; */ public boolean getSucceeded() { return succeeded_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, succeeded_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, succeeded_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp other = (org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp) obj; boolean result = true; result = result && (hasSucceeded() == other.hasSucceeded()); if (hasSucceeded()) { result = result && (getSucceeded() == other.getSucceeded()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSucceeded()) { hash = (37 * hash) + SUCCEEDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSucceeded()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp 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.Protos.CheckStatusInfo.Tcp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CheckStatusInfo.Tcp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CheckStatusInfo.Tcp) org.apache.mesos.v1.Protos.CheckStatusInfo.TcpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Tcp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Tcp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.class, org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); succeeded_ = false; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_Tcp_descriptor; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp build() { org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp buildPartial() { org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp result = new org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.succeeded_ = succeeded_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp) { return mergeFrom((org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp other) { if (other == org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.getDefaultInstance()) return this; if (other.hasSucceeded()) { setSucceeded(other.getSucceeded()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CheckStatusInfo.Tcp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean succeeded_ ; /** *
         * Whether a TCP connection succeeded.
         * 
* * optional bool succeeded = 1; */ public boolean hasSucceeded() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Whether a TCP connection succeeded.
         * 
* * optional bool succeeded = 1; */ public boolean getSucceeded() { return succeeded_; } /** *
         * Whether a TCP connection succeeded.
         * 
* * optional bool succeeded = 1; */ public Builder setSucceeded(boolean value) { bitField0_ |= 0x00000001; succeeded_ = value; onChanged(); return this; } /** *
         * Whether a TCP connection succeeded.
         * 
* * optional bool succeeded = 1; */ public Builder clearSucceeded() { bitField0_ = (bitField0_ & ~0x00000001); succeeded_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CheckStatusInfo.Tcp) } // @@protoc_insertion_point(class_scope:mesos.v1.CheckStatusInfo.Tcp) private static final org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp(); } public static org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Tcp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Tcp(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * The type of the check this status corresponds to.
     * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * The type of the check this status corresponds to.
     * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public org.apache.mesos.v1.Protos.CheckInfo.Type getType() { org.apache.mesos.v1.Protos.CheckInfo.Type result = org.apache.mesos.v1.Protos.CheckInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.CheckInfo.Type.UNKNOWN : result; } public static final int COMMAND_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.CheckStatusInfo.Command command_; /** *
     * Status of a command check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public boolean hasCommand() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Status of a command check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Command getCommand() { return command_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Command.getDefaultInstance() : command_; } /** *
     * Status of a command check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.CommandOrBuilder getCommandOrBuilder() { return command_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Command.getDefaultInstance() : command_; } public static final int HTTP_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.CheckStatusInfo.Http http_; /** *
     * Status of an HTTP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public boolean hasHttp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Status of an HTTP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Http getHttp() { return http_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Http.getDefaultInstance() : http_; } /** *
     * Status of an HTTP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.HttpOrBuilder getHttpOrBuilder() { return http_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Http.getDefaultInstance() : http_; } public static final int TCP_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp tcp_; /** *
     * Status of a TCP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public boolean hasTcp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * Status of a TCP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp getTcp() { return tcp_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.getDefaultInstance() : tcp_; } /** *
     * Status of a TCP check.
     * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.TcpOrBuilder getTcpOrBuilder() { return tcp_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.getDefaultInstance() : tcp_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getCommand()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getHttp()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getTcp()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCommand()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHttp()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTcp()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CheckStatusInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CheckStatusInfo other = (org.apache.mesos.v1.Protos.CheckStatusInfo) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasCommand() == other.hasCommand()); if (hasCommand()) { result = result && getCommand() .equals(other.getCommand()); } result = result && (hasHttp() == other.hasHttp()); if (hasHttp()) { result = result && getHttp() .equals(other.getHttp()); } result = result && (hasTcp() == other.hasTcp()); if (hasTcp()) { result = result && getTcp() .equals(other.getTcp()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } if (hasHttp()) { hash = (37 * hash) + HTTP_FIELD_NUMBER; hash = (53 * hash) + getHttp().hashCode(); } if (hasTcp()) { hash = (37 * hash) + TCP_FIELD_NUMBER; hash = (53 * hash) + getTcp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo 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.Protos.CheckStatusInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CheckStatusInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CheckStatusInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes the status of a check. Type and the corresponding field, i.e.,
     * `command` or `http` must be set. If the result of the check is not available
     * (e.g., the check timed out), these fields must contain empty messages, i.e.,
     * `exit_code` or `status_code` will be unset.
     * NOTE: This API is subject to change and the related feature is experimental.
     * 
* * Protobuf type {@code mesos.v1.CheckStatusInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CheckStatusInfo) org.apache.mesos.v1.Protos.CheckStatusInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CheckStatusInfo.class, org.apache.mesos.v1.Protos.CheckStatusInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CheckStatusInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommandFieldBuilder(); getHttpFieldBuilder(); getTcpFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (commandBuilder_ == null) { command_ = null; } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (httpBuilder_ == null) { http_ = null; } else { httpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (tcpBuilder_ == null) { tcp_ = null; } else { tcpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CheckStatusInfo_descriptor; } public org.apache.mesos.v1.Protos.CheckStatusInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CheckStatusInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CheckStatusInfo build() { org.apache.mesos.v1.Protos.CheckStatusInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CheckStatusInfo buildPartial() { org.apache.mesos.v1.Protos.CheckStatusInfo result = new org.apache.mesos.v1.Protos.CheckStatusInfo(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 (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (httpBuilder_ == null) { result.http_ = http_; } else { result.http_ = httpBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (tcpBuilder_ == null) { result.tcp_ = tcp_; } else { result.tcp_ = tcpBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CheckStatusInfo) { return mergeFrom((org.apache.mesos.v1.Protos.CheckStatusInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CheckStatusInfo other) { if (other == org.apache.mesos.v1.Protos.CheckStatusInfo.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (other.hasHttp()) { mergeHttp(other.getHttp()); } if (other.hasTcp()) { mergeTcp(other.getTcp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CheckStatusInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CheckStatusInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** *
       * The type of the check this status corresponds to.
       * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The type of the check this status corresponds to.
       * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public org.apache.mesos.v1.Protos.CheckInfo.Type getType() { org.apache.mesos.v1.Protos.CheckInfo.Type result = org.apache.mesos.v1.Protos.CheckInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.CheckInfo.Type.UNKNOWN : result; } /** *
       * The type of the check this status corresponds to.
       * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.CheckInfo.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
       * The type of the check this status corresponds to.
       * 
* * optional .mesos.v1.CheckInfo.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.CheckStatusInfo.Command command_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Command, org.apache.mesos.v1.Protos.CheckStatusInfo.Command.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.CommandOrBuilder> commandBuilder_; /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public boolean hasCommand() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Command getCommand() { if (commandBuilder_ == null) { return command_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Command.getDefaultInstance() : command_; } else { return commandBuilder_.getMessage(); } } /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public Builder setCommand(org.apache.mesos.v1.Protos.CheckStatusInfo.Command value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { commandBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public Builder setCommand( org.apache.mesos.v1.Protos.CheckStatusInfo.Command.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public Builder mergeCommand(org.apache.mesos.v1.Protos.CheckStatusInfo.Command value) { if (commandBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && command_ != null && command_ != org.apache.mesos.v1.Protos.CheckStatusInfo.Command.getDefaultInstance()) { command_ = org.apache.mesos.v1.Protos.CheckStatusInfo.Command.newBuilder(command_).mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { commandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = null; onChanged(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Command.Builder getCommandBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommandFieldBuilder().getBuilder(); } /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.CommandOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Command.getDefaultInstance() : command_; } } /** *
       * Status of a command check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Command command = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Command, org.apache.mesos.v1.Protos.CheckStatusInfo.Command.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.CommandOrBuilder> getCommandFieldBuilder() { if (commandBuilder_ == null) { commandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Command, org.apache.mesos.v1.Protos.CheckStatusInfo.Command.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.CommandOrBuilder>( getCommand(), getParentForChildren(), isClean()); command_ = null; } return commandBuilder_; } private org.apache.mesos.v1.Protos.CheckStatusInfo.Http http_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Http, org.apache.mesos.v1.Protos.CheckStatusInfo.Http.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.HttpOrBuilder> httpBuilder_; /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public boolean hasHttp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Http getHttp() { if (httpBuilder_ == null) { return http_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Http.getDefaultInstance() : http_; } else { return httpBuilder_.getMessage(); } } /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public Builder setHttp(org.apache.mesos.v1.Protos.CheckStatusInfo.Http value) { if (httpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } http_ = value; onChanged(); } else { httpBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public Builder setHttp( org.apache.mesos.v1.Protos.CheckStatusInfo.Http.Builder builderForValue) { if (httpBuilder_ == null) { http_ = builderForValue.build(); onChanged(); } else { httpBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public Builder mergeHttp(org.apache.mesos.v1.Protos.CheckStatusInfo.Http value) { if (httpBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && http_ != null && http_ != org.apache.mesos.v1.Protos.CheckStatusInfo.Http.getDefaultInstance()) { http_ = org.apache.mesos.v1.Protos.CheckStatusInfo.Http.newBuilder(http_).mergeFrom(value).buildPartial(); } else { http_ = value; } onChanged(); } else { httpBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public Builder clearHttp() { if (httpBuilder_ == null) { http_ = null; onChanged(); } else { httpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Http.Builder getHttpBuilder() { bitField0_ |= 0x00000004; onChanged(); return getHttpFieldBuilder().getBuilder(); } /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.HttpOrBuilder getHttpOrBuilder() { if (httpBuilder_ != null) { return httpBuilder_.getMessageOrBuilder(); } else { return http_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Http.getDefaultInstance() : http_; } } /** *
       * Status of an HTTP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Http http = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Http, org.apache.mesos.v1.Protos.CheckStatusInfo.Http.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.HttpOrBuilder> getHttpFieldBuilder() { if (httpBuilder_ == null) { httpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Http, org.apache.mesos.v1.Protos.CheckStatusInfo.Http.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.HttpOrBuilder>( getHttp(), getParentForChildren(), isClean()); http_ = null; } return httpBuilder_; } private org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp tcp_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp, org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.TcpOrBuilder> tcpBuilder_; /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public boolean hasTcp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp getTcp() { if (tcpBuilder_ == null) { return tcp_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.getDefaultInstance() : tcp_; } else { return tcpBuilder_.getMessage(); } } /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public Builder setTcp(org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp value) { if (tcpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tcp_ = value; onChanged(); } else { tcpBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public Builder setTcp( org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.Builder builderForValue) { if (tcpBuilder_ == null) { tcp_ = builderForValue.build(); onChanged(); } else { tcpBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public Builder mergeTcp(org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp value) { if (tcpBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && tcp_ != null && tcp_ != org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.getDefaultInstance()) { tcp_ = org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.newBuilder(tcp_).mergeFrom(value).buildPartial(); } else { tcp_ = value; } onChanged(); } else { tcpBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public Builder clearTcp() { if (tcpBuilder_ == null) { tcp_ = null; onChanged(); } else { tcpBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.Builder getTcpBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTcpFieldBuilder().getBuilder(); } /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.TcpOrBuilder getTcpOrBuilder() { if (tcpBuilder_ != null) { return tcpBuilder_.getMessageOrBuilder(); } else { return tcp_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.getDefaultInstance() : tcp_; } } /** *
       * Status of a TCP check.
       * 
* * optional .mesos.v1.CheckStatusInfo.Tcp tcp = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp, org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.TcpOrBuilder> getTcpFieldBuilder() { if (tcpBuilder_ == null) { tcpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp, org.apache.mesos.v1.Protos.CheckStatusInfo.Tcp.Builder, org.apache.mesos.v1.Protos.CheckStatusInfo.TcpOrBuilder>( getTcp(), getParentForChildren(), isClean()); tcp_ = null; } return tcpBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CheckStatusInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.CheckStatusInfo) private static final org.apache.mesos.v1.Protos.CheckStatusInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CheckStatusInfo(); } public static org.apache.mesos.v1.Protos.CheckStatusInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckStatusInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckStatusInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CheckStatusInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TaskStatus) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.TaskID task_id = 1; */ boolean hasTaskId(); /** * required .mesos.v1.TaskID task_id = 1; */ org.apache.mesos.v1.Protos.TaskID getTaskId(); /** * required .mesos.v1.TaskID task_id = 1; */ org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder(); /** * required .mesos.v1.TaskState state = 2; */ boolean hasState(); /** * required .mesos.v1.TaskState state = 2; */ org.apache.mesos.v1.Protos.TaskState getState(); /** *
     * Possible message explaining state.
     * 
* * optional string message = 4; */ boolean hasMessage(); /** *
     * Possible message explaining state.
     * 
* * optional string message = 4; */ java.lang.String getMessage(); /** *
     * Possible message explaining state.
     * 
* * optional string message = 4; */ com.google.protobuf.ByteString getMessageBytes(); /** * optional .mesos.v1.TaskStatus.Source source = 9; */ boolean hasSource(); /** * optional .mesos.v1.TaskStatus.Source source = 9; */ org.apache.mesos.v1.Protos.TaskStatus.Source getSource(); /** * optional .mesos.v1.TaskStatus.Reason reason = 10; */ boolean hasReason(); /** * optional .mesos.v1.TaskStatus.Reason reason = 10; */ org.apache.mesos.v1.Protos.TaskStatus.Reason getReason(); /** * optional bytes data = 3; */ boolean hasData(); /** * optional bytes data = 3; */ com.google.protobuf.ByteString getData(); /** * optional .mesos.v1.AgentID agent_id = 5; */ boolean hasAgentId(); /** * optional .mesos.v1.AgentID agent_id = 5; */ org.apache.mesos.v1.Protos.AgentID getAgentId(); /** * optional .mesos.v1.AgentID agent_id = 5; */ org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder(); /** *
     * TODO(benh): Use in master/agent.
     * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ boolean hasExecutorId(); /** *
     * TODO(benh): Use in master/agent.
     * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ org.apache.mesos.v1.Protos.ExecutorID getExecutorId(); /** *
     * TODO(benh): Use in master/agent.
     * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder(); /** * optional double timestamp = 6; */ boolean hasTimestamp(); /** * optional double timestamp = 6; */ double getTimestamp(); /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a 'uuid'. The status is considered delivered once
     * it is acknowledged by the scheduler. Schedulers can choose
     * to either explicitly acknowledge statuses or let the scheduler
     * driver implicitly acknowledge (default).
     * TODO(bmahler): This is currently overwritten in the scheduler
     * driver and executor driver, but executors will need to set this
     * to a valid RFC-4122 UUID if using the HTTP API.
     * 
* * optional bytes uuid = 11; */ boolean hasUuid(); /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a 'uuid'. The status is considered delivered once
     * it is acknowledged by the scheduler. Schedulers can choose
     * to either explicitly acknowledge statuses or let the scheduler
     * driver implicitly acknowledge (default).
     * TODO(bmahler): This is currently overwritten in the scheduler
     * driver and executor driver, but executors will need to set this
     * to a valid RFC-4122 UUID if using the HTTP API.
     * 
* * optional bytes uuid = 11; */ com.google.protobuf.ByteString getUuid(); /** *
     * Describes whether the task has been determined to be healthy (true) or
     * unhealthy (false) according to the `health_check` field in `TaskInfo`.
     * 
* * optional bool healthy = 8; */ boolean hasHealthy(); /** *
     * Describes whether the task has been determined to be healthy (true) or
     * unhealthy (false) according to the `health_check` field in `TaskInfo`.
     * 
* * optional bool healthy = 8; */ boolean getHealthy(); /** *
     * Contains check status for the check specified in the corresponding
     * `TaskInfo`. If no check has been specified, this field must be
     * absent, otherwise it must be present even if the check status is
     * not available yet. If the status update is triggered for a different
     * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
     * the last known value.
     * NOTE: A check-related task status update is triggered if and only if
     * the value or presence of any field in `CheckStatusInfo` changes.
     * NOTE: Check support in built-in executors is experimental.
     * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ boolean hasCheckStatus(); /** *
     * Contains check status for the check specified in the corresponding
     * `TaskInfo`. If no check has been specified, this field must be
     * absent, otherwise it must be present even if the check status is
     * not available yet. If the status update is triggered for a different
     * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
     * the last known value.
     * NOTE: A check-related task status update is triggered if and only if
     * the value or presence of any field in `CheckStatusInfo` changes.
     * NOTE: Check support in built-in executors is experimental.
     * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ org.apache.mesos.v1.Protos.CheckStatusInfo getCheckStatus(); /** *
     * Contains check status for the check specified in the corresponding
     * `TaskInfo`. If no check has been specified, this field must be
     * absent, otherwise it must be present even if the check status is
     * not available yet. If the status update is triggered for a different
     * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
     * the last known value.
     * NOTE: A check-related task status update is triggered if and only if
     * the value or presence of any field in `CheckStatusInfo` changes.
     * NOTE: Check support in built-in executors is experimental.
     * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ org.apache.mesos.v1.Protos.CheckStatusInfoOrBuilder getCheckStatusOrBuilder(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag TaskStatus message with light-weight
     * meta-data. Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 12; */ boolean hasLabels(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag TaskStatus message with light-weight
     * meta-data. Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 12; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag TaskStatus message with light-weight
     * meta-data. Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 12; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); /** *
     * Container related information that is resolved dynamically such as
     * network address.
     * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ boolean hasContainerStatus(); /** *
     * Container related information that is resolved dynamically such as
     * network address.
     * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ org.apache.mesos.v1.Protos.ContainerStatus getContainerStatus(); /** *
     * Container related information that is resolved dynamically such as
     * network address.
     * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ org.apache.mesos.v1.Protos.ContainerStatusOrBuilder getContainerStatusOrBuilder(); /** *
     * The time (according to the master's clock) when the agent where
     * this task was running became unreachable. This is only set on
     * status updates for tasks running on agents that are unreachable
     * (e.g., partitioned away from the master).
     * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ boolean hasUnreachableTime(); /** *
     * The time (according to the master's clock) when the agent where
     * this task was running became unreachable. This is only set on
     * status updates for tasks running on agents that are unreachable
     * (e.g., partitioned away from the master).
     * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ org.apache.mesos.v1.Protos.TimeInfo getUnreachableTime(); /** *
     * The time (according to the master's clock) when the agent where
     * this task was running became unreachable. This is only set on
     * status updates for tasks running on agents that are unreachable
     * (e.g., partitioned away from the master).
     * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ org.apache.mesos.v1.Protos.TimeInfoOrBuilder getUnreachableTimeOrBuilder(); /** *
     * If the reason field indicates a container resource limitation,
     * this field optionally contains additional information.
     * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ boolean hasLimitation(); /** *
     * If the reason field indicates a container resource limitation,
     * this field optionally contains additional information.
     * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ org.apache.mesos.v1.Protos.TaskResourceLimitation getLimitation(); /** *
     * If the reason field indicates a container resource limitation,
     * this field optionally contains additional information.
     * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ org.apache.mesos.v1.Protos.TaskResourceLimitationOrBuilder getLimitationOrBuilder(); } /** *
   **
   * Describes the current status of a task.
   * 
* * Protobuf type {@code mesos.v1.TaskStatus} */ public static final class TaskStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TaskStatus) TaskStatusOrBuilder { private static final long serialVersionUID = 0L; // Use TaskStatus.newBuilder() to construct. private TaskStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskStatus() { state_ = 6; message_ = ""; source_ = 0; reason_ = 0; data_ = com.google.protobuf.ByteString.EMPTY; timestamp_ = 0D; uuid_ = com.google.protobuf.ByteString.EMPTY; healthy_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.TaskID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = taskId_.toBuilder(); } taskId_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(taskId_); taskId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.TaskState value = org.apache.mesos.v1.Protos.TaskState.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; state_ = rawValue; } break; } case 26: { bitField0_ |= 0x00000020; data_ = input.readBytes(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; message_ = bs; break; } case 42: { org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = agentId_.toBuilder(); } agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentId_); agentId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 49: { bitField0_ |= 0x00000100; timestamp_ = input.readDouble(); break; } case 58: { org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = executorId_.toBuilder(); } executorId_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executorId_); executorId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 64: { bitField0_ |= 0x00000400; healthy_ = input.readBool(); break; } case 72: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.TaskStatus.Source value = org.apache.mesos.v1.Protos.TaskStatus.Source.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { bitField0_ |= 0x00000008; source_ = rawValue; } break; } case 80: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.TaskStatus.Reason value = org.apache.mesos.v1.Protos.TaskStatus.Reason.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(10, rawValue); } else { bitField0_ |= 0x00000010; reason_ = rawValue; } break; } case 90: { bitField0_ |= 0x00000200; uuid_ = input.readBytes(); break; } case 98: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } case 106: { org.apache.mesos.v1.Protos.ContainerStatus.Builder subBuilder = null; if (((bitField0_ & 0x00002000) == 0x00002000)) { subBuilder = containerStatus_.toBuilder(); } containerStatus_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerStatus_); containerStatus_ = subBuilder.buildPartial(); } bitField0_ |= 0x00002000; break; } case 114: { org.apache.mesos.v1.Protos.TimeInfo.Builder subBuilder = null; if (((bitField0_ & 0x00004000) == 0x00004000)) { subBuilder = unreachableTime_.toBuilder(); } unreachableTime_ = input.readMessage(org.apache.mesos.v1.Protos.TimeInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unreachableTime_); unreachableTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00004000; break; } case 122: { org.apache.mesos.v1.Protos.CheckStatusInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = checkStatus_.toBuilder(); } checkStatus_ = input.readMessage(org.apache.mesos.v1.Protos.CheckStatusInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(checkStatus_); checkStatus_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 130: { org.apache.mesos.v1.Protos.TaskResourceLimitation.Builder subBuilder = null; if (((bitField0_ & 0x00008000) == 0x00008000)) { subBuilder = limitation_.toBuilder(); } limitation_ = input.readMessage(org.apache.mesos.v1.Protos.TaskResourceLimitation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(limitation_); limitation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00008000; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskStatus.class, org.apache.mesos.v1.Protos.TaskStatus.Builder.class); } /** *
     * Describes the source of the task status update.
     * 
* * Protobuf enum {@code mesos.v1.TaskStatus.Source} */ public enum Source implements com.google.protobuf.ProtocolMessageEnum { /** * SOURCE_MASTER = 0; */ SOURCE_MASTER(0), /** * SOURCE_AGENT = 1; */ SOURCE_AGENT(1), /** * SOURCE_EXECUTOR = 2; */ SOURCE_EXECUTOR(2), ; /** * SOURCE_MASTER = 0; */ public static final int SOURCE_MASTER_VALUE = 0; /** * SOURCE_AGENT = 1; */ public static final int SOURCE_AGENT_VALUE = 1; /** * SOURCE_EXECUTOR = 2; */ public static final int SOURCE_EXECUTOR_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Source valueOf(int value) { return forNumber(value); } public static Source forNumber(int value) { switch (value) { case 0: return SOURCE_MASTER; case 1: return SOURCE_AGENT; case 2: return SOURCE_EXECUTOR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Source> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Source findValueByNumber(int number) { return Source.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.TaskStatus.getDescriptor().getEnumTypes().get(0); } private static final Source[] VALUES = values(); public static Source valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Source(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.TaskStatus.Source) } /** *
     * Detailed reason for the task status update.
     * Refer to docs/task-state-reasons.md for additional explanation.
     * 
* * Protobuf enum {@code mesos.v1.TaskStatus.Reason} */ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { /** *
       * TODO(jieyu): The default value when a caller doesn't check for
       * presence is 0 and so ideally the 0 reason is not a valid one.
       * Since this is not used anywhere, consider removing this reason.
       * 
* * REASON_COMMAND_EXECUTOR_FAILED = 0; */ REASON_COMMAND_EXECUTOR_FAILED(0), /** * REASON_CONTAINER_LAUNCH_FAILED = 21; */ REASON_CONTAINER_LAUNCH_FAILED(21), /** * REASON_CONTAINER_LIMITATION = 19; */ REASON_CONTAINER_LIMITATION(19), /** * REASON_CONTAINER_LIMITATION_DISK = 20; */ REASON_CONTAINER_LIMITATION_DISK(20), /** * REASON_CONTAINER_LIMITATION_MEMORY = 8; */ REASON_CONTAINER_LIMITATION_MEMORY(8), /** * REASON_CONTAINER_PREEMPTED = 17; */ REASON_CONTAINER_PREEMPTED(17), /** * REASON_CONTAINER_UPDATE_FAILED = 22; */ REASON_CONTAINER_UPDATE_FAILED(22), /** * REASON_MAX_COMPLETION_TIME_REACHED = 33; */ REASON_MAX_COMPLETION_TIME_REACHED(33), /** * REASON_EXECUTOR_REGISTRATION_TIMEOUT = 23; */ REASON_EXECUTOR_REGISTRATION_TIMEOUT(23), /** * REASON_EXECUTOR_REREGISTRATION_TIMEOUT = 24; */ REASON_EXECUTOR_REREGISTRATION_TIMEOUT(24), /** * REASON_EXECUTOR_TERMINATED = 1; */ REASON_EXECUTOR_TERMINATED(1), /** *
       * No longer used.
       * 
* * REASON_EXECUTOR_UNREGISTERED = 2; */ REASON_EXECUTOR_UNREGISTERED(2), /** * REASON_FRAMEWORK_REMOVED = 3; */ REASON_FRAMEWORK_REMOVED(3), /** * REASON_GC_ERROR = 4; */ REASON_GC_ERROR(4), /** * REASON_INVALID_FRAMEWORKID = 5; */ REASON_INVALID_FRAMEWORKID(5), /** * REASON_INVALID_OFFERS = 6; */ REASON_INVALID_OFFERS(6), /** * REASON_IO_SWITCHBOARD_EXITED = 27; */ REASON_IO_SWITCHBOARD_EXITED(27), /** * REASON_MASTER_DISCONNECTED = 7; */ REASON_MASTER_DISCONNECTED(7), /** * REASON_RECONCILIATION = 9; */ REASON_RECONCILIATION(9), /** * REASON_RESOURCES_UNKNOWN = 18; */ REASON_RESOURCES_UNKNOWN(18), /** * REASON_AGENT_DISCONNECTED = 10; */ REASON_AGENT_DISCONNECTED(10), /** * REASON_AGENT_DRAINING = 34; */ REASON_AGENT_DRAINING(34), /** * REASON_AGENT_REMOVED = 11; */ REASON_AGENT_REMOVED(11), /** * REASON_AGENT_REMOVED_BY_OPERATOR = 31; */ REASON_AGENT_REMOVED_BY_OPERATOR(31), /** * REASON_AGENT_REREGISTERED = 32; */ REASON_AGENT_REREGISTERED(32), /** * REASON_AGENT_RESTARTED = 12; */ REASON_AGENT_RESTARTED(12), /** * REASON_AGENT_UNKNOWN = 13; */ REASON_AGENT_UNKNOWN(13), /** * REASON_TASK_KILLED_DURING_LAUNCH = 30; */ REASON_TASK_KILLED_DURING_LAUNCH(30), /** * REASON_TASK_CHECK_STATUS_UPDATED = 28; */ REASON_TASK_CHECK_STATUS_UPDATED(28), /** * REASON_TASK_HEALTH_CHECK_STATUS_UPDATED = 29; */ REASON_TASK_HEALTH_CHECK_STATUS_UPDATED(29), /** * REASON_TASK_GROUP_INVALID = 25; */ REASON_TASK_GROUP_INVALID(25), /** * REASON_TASK_GROUP_UNAUTHORIZED = 26; */ REASON_TASK_GROUP_UNAUTHORIZED(26), /** * REASON_TASK_INVALID = 14; */ REASON_TASK_INVALID(14), /** * REASON_TASK_UNAUTHORIZED = 15; */ REASON_TASK_UNAUTHORIZED(15), /** * REASON_TASK_UNKNOWN = 16; */ REASON_TASK_UNKNOWN(16), ; /** *
       * TODO(jieyu): The default value when a caller doesn't check for
       * presence is 0 and so ideally the 0 reason is not a valid one.
       * Since this is not used anywhere, consider removing this reason.
       * 
* * REASON_COMMAND_EXECUTOR_FAILED = 0; */ public static final int REASON_COMMAND_EXECUTOR_FAILED_VALUE = 0; /** * REASON_CONTAINER_LAUNCH_FAILED = 21; */ public static final int REASON_CONTAINER_LAUNCH_FAILED_VALUE = 21; /** * REASON_CONTAINER_LIMITATION = 19; */ public static final int REASON_CONTAINER_LIMITATION_VALUE = 19; /** * REASON_CONTAINER_LIMITATION_DISK = 20; */ public static final int REASON_CONTAINER_LIMITATION_DISK_VALUE = 20; /** * REASON_CONTAINER_LIMITATION_MEMORY = 8; */ public static final int REASON_CONTAINER_LIMITATION_MEMORY_VALUE = 8; /** * REASON_CONTAINER_PREEMPTED = 17; */ public static final int REASON_CONTAINER_PREEMPTED_VALUE = 17; /** * REASON_CONTAINER_UPDATE_FAILED = 22; */ public static final int REASON_CONTAINER_UPDATE_FAILED_VALUE = 22; /** * REASON_MAX_COMPLETION_TIME_REACHED = 33; */ public static final int REASON_MAX_COMPLETION_TIME_REACHED_VALUE = 33; /** * REASON_EXECUTOR_REGISTRATION_TIMEOUT = 23; */ public static final int REASON_EXECUTOR_REGISTRATION_TIMEOUT_VALUE = 23; /** * REASON_EXECUTOR_REREGISTRATION_TIMEOUT = 24; */ public static final int REASON_EXECUTOR_REREGISTRATION_TIMEOUT_VALUE = 24; /** * REASON_EXECUTOR_TERMINATED = 1; */ public static final int REASON_EXECUTOR_TERMINATED_VALUE = 1; /** *
       * No longer used.
       * 
* * REASON_EXECUTOR_UNREGISTERED = 2; */ public static final int REASON_EXECUTOR_UNREGISTERED_VALUE = 2; /** * REASON_FRAMEWORK_REMOVED = 3; */ public static final int REASON_FRAMEWORK_REMOVED_VALUE = 3; /** * REASON_GC_ERROR = 4; */ public static final int REASON_GC_ERROR_VALUE = 4; /** * REASON_INVALID_FRAMEWORKID = 5; */ public static final int REASON_INVALID_FRAMEWORKID_VALUE = 5; /** * REASON_INVALID_OFFERS = 6; */ public static final int REASON_INVALID_OFFERS_VALUE = 6; /** * REASON_IO_SWITCHBOARD_EXITED = 27; */ public static final int REASON_IO_SWITCHBOARD_EXITED_VALUE = 27; /** * REASON_MASTER_DISCONNECTED = 7; */ public static final int REASON_MASTER_DISCONNECTED_VALUE = 7; /** * REASON_RECONCILIATION = 9; */ public static final int REASON_RECONCILIATION_VALUE = 9; /** * REASON_RESOURCES_UNKNOWN = 18; */ public static final int REASON_RESOURCES_UNKNOWN_VALUE = 18; /** * REASON_AGENT_DISCONNECTED = 10; */ public static final int REASON_AGENT_DISCONNECTED_VALUE = 10; /** * REASON_AGENT_DRAINING = 34; */ public static final int REASON_AGENT_DRAINING_VALUE = 34; /** * REASON_AGENT_REMOVED = 11; */ public static final int REASON_AGENT_REMOVED_VALUE = 11; /** * REASON_AGENT_REMOVED_BY_OPERATOR = 31; */ public static final int REASON_AGENT_REMOVED_BY_OPERATOR_VALUE = 31; /** * REASON_AGENT_REREGISTERED = 32; */ public static final int REASON_AGENT_REREGISTERED_VALUE = 32; /** * REASON_AGENT_RESTARTED = 12; */ public static final int REASON_AGENT_RESTARTED_VALUE = 12; /** * REASON_AGENT_UNKNOWN = 13; */ public static final int REASON_AGENT_UNKNOWN_VALUE = 13; /** * REASON_TASK_KILLED_DURING_LAUNCH = 30; */ public static final int REASON_TASK_KILLED_DURING_LAUNCH_VALUE = 30; /** * REASON_TASK_CHECK_STATUS_UPDATED = 28; */ public static final int REASON_TASK_CHECK_STATUS_UPDATED_VALUE = 28; /** * REASON_TASK_HEALTH_CHECK_STATUS_UPDATED = 29; */ public static final int REASON_TASK_HEALTH_CHECK_STATUS_UPDATED_VALUE = 29; /** * REASON_TASK_GROUP_INVALID = 25; */ public static final int REASON_TASK_GROUP_INVALID_VALUE = 25; /** * REASON_TASK_GROUP_UNAUTHORIZED = 26; */ public static final int REASON_TASK_GROUP_UNAUTHORIZED_VALUE = 26; /** * REASON_TASK_INVALID = 14; */ public static final int REASON_TASK_INVALID_VALUE = 14; /** * REASON_TASK_UNAUTHORIZED = 15; */ public static final int REASON_TASK_UNAUTHORIZED_VALUE = 15; /** * REASON_TASK_UNKNOWN = 16; */ public static final int REASON_TASK_UNKNOWN_VALUE = 16; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Reason valueOf(int value) { return forNumber(value); } public static Reason forNumber(int value) { switch (value) { case 0: return REASON_COMMAND_EXECUTOR_FAILED; case 21: return REASON_CONTAINER_LAUNCH_FAILED; case 19: return REASON_CONTAINER_LIMITATION; case 20: return REASON_CONTAINER_LIMITATION_DISK; case 8: return REASON_CONTAINER_LIMITATION_MEMORY; case 17: return REASON_CONTAINER_PREEMPTED; case 22: return REASON_CONTAINER_UPDATE_FAILED; case 33: return REASON_MAX_COMPLETION_TIME_REACHED; case 23: return REASON_EXECUTOR_REGISTRATION_TIMEOUT; case 24: return REASON_EXECUTOR_REREGISTRATION_TIMEOUT; case 1: return REASON_EXECUTOR_TERMINATED; case 2: return REASON_EXECUTOR_UNREGISTERED; case 3: return REASON_FRAMEWORK_REMOVED; case 4: return REASON_GC_ERROR; case 5: return REASON_INVALID_FRAMEWORKID; case 6: return REASON_INVALID_OFFERS; case 27: return REASON_IO_SWITCHBOARD_EXITED; case 7: return REASON_MASTER_DISCONNECTED; case 9: return REASON_RECONCILIATION; case 18: return REASON_RESOURCES_UNKNOWN; case 10: return REASON_AGENT_DISCONNECTED; case 34: return REASON_AGENT_DRAINING; case 11: return REASON_AGENT_REMOVED; case 31: return REASON_AGENT_REMOVED_BY_OPERATOR; case 32: return REASON_AGENT_REREGISTERED; case 12: return REASON_AGENT_RESTARTED; case 13: return REASON_AGENT_UNKNOWN; case 30: return REASON_TASK_KILLED_DURING_LAUNCH; case 28: return REASON_TASK_CHECK_STATUS_UPDATED; case 29: return REASON_TASK_HEALTH_CHECK_STATUS_UPDATED; case 25: return REASON_TASK_GROUP_INVALID; case 26: return REASON_TASK_GROUP_UNAUTHORIZED; case 14: return REASON_TASK_INVALID; case 15: return REASON_TASK_UNAUTHORIZED; case 16: return REASON_TASK_UNKNOWN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Reason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Reason findValueByNumber(int number) { return Reason.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.TaskStatus.getDescriptor().getEnumTypes().get(1); } private static final Reason[] VALUES = values(); public static Reason valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Reason(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.TaskStatus.Reason) } private int bitField0_; public static final int TASK_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.TaskID taskId_; /** * required .mesos.v1.TaskID task_id = 1; */ public boolean hasTaskId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.TaskID task_id = 1; */ public org.apache.mesos.v1.Protos.TaskID getTaskId() { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } /** * required .mesos.v1.TaskID task_id = 1; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } public static final int STATE_FIELD_NUMBER = 2; private int state_; /** * required .mesos.v1.TaskState state = 2; */ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskState state = 2; */ public org.apache.mesos.v1.Protos.TaskState getState() { org.apache.mesos.v1.Protos.TaskState result = org.apache.mesos.v1.Protos.TaskState.valueOf(state_); return result == null ? org.apache.mesos.v1.Protos.TaskState.TASK_STAGING : result; } public static final int MESSAGE_FIELD_NUMBER = 4; private volatile java.lang.Object message_; /** *
     * Possible message explaining state.
     * 
* * optional string message = 4; */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Possible message explaining state.
     * 
* * optional string message = 4; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } } /** *
     * Possible message explaining state.
     * 
* * optional string message = 4; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_FIELD_NUMBER = 9; private int source_; /** * optional .mesos.v1.TaskStatus.Source source = 9; */ public boolean hasSource() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.TaskStatus.Source source = 9; */ public org.apache.mesos.v1.Protos.TaskStatus.Source getSource() { org.apache.mesos.v1.Protos.TaskStatus.Source result = org.apache.mesos.v1.Protos.TaskStatus.Source.valueOf(source_); return result == null ? org.apache.mesos.v1.Protos.TaskStatus.Source.SOURCE_MASTER : result; } public static final int REASON_FIELD_NUMBER = 10; private int reason_; /** * optional .mesos.v1.TaskStatus.Reason reason = 10; */ public boolean hasReason() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.TaskStatus.Reason reason = 10; */ public org.apache.mesos.v1.Protos.TaskStatus.Reason getReason() { org.apache.mesos.v1.Protos.TaskStatus.Reason result = org.apache.mesos.v1.Protos.TaskStatus.Reason.valueOf(reason_); return result == null ? org.apache.mesos.v1.Protos.TaskStatus.Reason.REASON_COMMAND_EXECUTOR_FAILED : result; } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_; /** * optional bytes data = 3; */ public boolean hasData() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes data = 3; */ public com.google.protobuf.ByteString getData() { return data_; } public static final int AGENT_ID_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.AgentID agentId_; /** * optional .mesos.v1.AgentID agent_id = 5; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } /** * optional .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } public static final int EXECUTOR_ID_FIELD_NUMBER = 7; private org.apache.mesos.v1.Protos.ExecutorID executorId_; /** *
     * TODO(benh): Use in master/agent.
     * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public boolean hasExecutorId() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     * TODO(benh): Use in master/agent.
     * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } /** *
     * TODO(benh): Use in master/agent.
     * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } public static final int TIMESTAMP_FIELD_NUMBER = 6; private double timestamp_; /** * optional double timestamp = 6; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional double timestamp = 6; */ public double getTimestamp() { return timestamp_; } public static final int UUID_FIELD_NUMBER = 11; private com.google.protobuf.ByteString uuid_; /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a 'uuid'. The status is considered delivered once
     * it is acknowledged by the scheduler. Schedulers can choose
     * to either explicitly acknowledge statuses or let the scheduler
     * driver implicitly acknowledge (default).
     * TODO(bmahler): This is currently overwritten in the scheduler
     * driver and executor driver, but executors will need to set this
     * to a valid RFC-4122 UUID if using the HTTP API.
     * 
* * optional bytes uuid = 11; */ public boolean hasUuid() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
     * Statuses that are delivered reliably to the scheduler will
     * include a 'uuid'. The status is considered delivered once
     * it is acknowledged by the scheduler. Schedulers can choose
     * to either explicitly acknowledge statuses or let the scheduler
     * driver implicitly acknowledge (default).
     * TODO(bmahler): This is currently overwritten in the scheduler
     * driver and executor driver, but executors will need to set this
     * to a valid RFC-4122 UUID if using the HTTP API.
     * 
* * optional bytes uuid = 11; */ public com.google.protobuf.ByteString getUuid() { return uuid_; } public static final int HEALTHY_FIELD_NUMBER = 8; private boolean healthy_; /** *
     * Describes whether the task has been determined to be healthy (true) or
     * unhealthy (false) according to the `health_check` field in `TaskInfo`.
     * 
* * optional bool healthy = 8; */ public boolean hasHealthy() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
     * Describes whether the task has been determined to be healthy (true) or
     * unhealthy (false) according to the `health_check` field in `TaskInfo`.
     * 
* * optional bool healthy = 8; */ public boolean getHealthy() { return healthy_; } public static final int CHECK_STATUS_FIELD_NUMBER = 15; private org.apache.mesos.v1.Protos.CheckStatusInfo checkStatus_; /** *
     * Contains check status for the check specified in the corresponding
     * `TaskInfo`. If no check has been specified, this field must be
     * absent, otherwise it must be present even if the check status is
     * not available yet. If the status update is triggered for a different
     * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
     * the last known value.
     * NOTE: A check-related task status update is triggered if and only if
     * the value or presence of any field in `CheckStatusInfo` changes.
     * NOTE: Check support in built-in executors is experimental.
     * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public boolean hasCheckStatus() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
     * Contains check status for the check specified in the corresponding
     * `TaskInfo`. If no check has been specified, this field must be
     * absent, otherwise it must be present even if the check status is
     * not available yet. If the status update is triggered for a different
     * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
     * the last known value.
     * NOTE: A check-related task status update is triggered if and only if
     * the value or presence of any field in `CheckStatusInfo` changes.
     * NOTE: Check support in built-in executors is experimental.
     * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public org.apache.mesos.v1.Protos.CheckStatusInfo getCheckStatus() { return checkStatus_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.getDefaultInstance() : checkStatus_; } /** *
     * Contains check status for the check specified in the corresponding
     * `TaskInfo`. If no check has been specified, this field must be
     * absent, otherwise it must be present even if the check status is
     * not available yet. If the status update is triggered for a different
     * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
     * the last known value.
     * NOTE: A check-related task status update is triggered if and only if
     * the value or presence of any field in `CheckStatusInfo` changes.
     * NOTE: Check support in built-in executors is experimental.
     * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public org.apache.mesos.v1.Protos.CheckStatusInfoOrBuilder getCheckStatusOrBuilder() { return checkStatus_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.getDefaultInstance() : checkStatus_; } public static final int LABELS_FIELD_NUMBER = 12; private org.apache.mesos.v1.Protos.Labels labels_; /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag TaskStatus message with light-weight
     * meta-data. Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 12; */ public boolean hasLabels() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag TaskStatus message with light-weight
     * meta-data. Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 12; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** *
     * Labels are free-form key value pairs which are exposed through
     * master and agent endpoints. Labels will not be interpreted or
     * acted upon by Mesos itself. As opposed to the data field, labels
     * will be kept in memory on master and agent processes. Therefore,
     * labels should be used to tag TaskStatus message with light-weight
     * meta-data. Labels should not contain duplicate key-value pairs.
     * 
* * optional .mesos.v1.Labels labels = 12; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } public static final int CONTAINER_STATUS_FIELD_NUMBER = 13; private org.apache.mesos.v1.Protos.ContainerStatus containerStatus_; /** *
     * Container related information that is resolved dynamically such as
     * network address.
     * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public boolean hasContainerStatus() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
     * Container related information that is resolved dynamically such as
     * network address.
     * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public org.apache.mesos.v1.Protos.ContainerStatus getContainerStatus() { return containerStatus_ == null ? org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance() : containerStatus_; } /** *
     * Container related information that is resolved dynamically such as
     * network address.
     * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public org.apache.mesos.v1.Protos.ContainerStatusOrBuilder getContainerStatusOrBuilder() { return containerStatus_ == null ? org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance() : containerStatus_; } public static final int UNREACHABLE_TIME_FIELD_NUMBER = 14; private org.apache.mesos.v1.Protos.TimeInfo unreachableTime_; /** *
     * The time (according to the master's clock) when the agent where
     * this task was running became unreachable. This is only set on
     * status updates for tasks running on agents that are unreachable
     * (e.g., partitioned away from the master).
     * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public boolean hasUnreachableTime() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** *
     * The time (according to the master's clock) when the agent where
     * this task was running became unreachable. This is only set on
     * status updates for tasks running on agents that are unreachable
     * (e.g., partitioned away from the master).
     * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public org.apache.mesos.v1.Protos.TimeInfo getUnreachableTime() { return unreachableTime_ == null ? org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance() : unreachableTime_; } /** *
     * The time (according to the master's clock) when the agent where
     * this task was running became unreachable. This is only set on
     * status updates for tasks running on agents that are unreachable
     * (e.g., partitioned away from the master).
     * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public org.apache.mesos.v1.Protos.TimeInfoOrBuilder getUnreachableTimeOrBuilder() { return unreachableTime_ == null ? org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance() : unreachableTime_; } public static final int LIMITATION_FIELD_NUMBER = 16; private org.apache.mesos.v1.Protos.TaskResourceLimitation limitation_; /** *
     * If the reason field indicates a container resource limitation,
     * this field optionally contains additional information.
     * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public boolean hasLimitation() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** *
     * If the reason field indicates a container resource limitation,
     * this field optionally contains additional information.
     * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public org.apache.mesos.v1.Protos.TaskResourceLimitation getLimitation() { return limitation_ == null ? org.apache.mesos.v1.Protos.TaskResourceLimitation.getDefaultInstance() : limitation_; } /** *
     * If the reason field indicates a container resource limitation,
     * this field optionally contains additional information.
     * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public org.apache.mesos.v1.Protos.TaskResourceLimitationOrBuilder getLimitationOrBuilder() { return limitation_ == null ? org.apache.mesos.v1.Protos.TaskResourceLimitation.getDefaultInstance() : limitation_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasTaskId()) { memoizedIsInitialized = 0; return false; } if (!hasState()) { memoizedIsInitialized = 0; return false; } if (!getTaskId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasAgentId()) { if (!getAgentId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasExecutorId()) { if (!getExecutorId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasContainerStatus()) { if (!getContainerStatus().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasUnreachableTime()) { if (!getUnreachableTime().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLimitation()) { if (!getLimitation().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getTaskId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, state_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(3, data_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(5, getAgentId()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeDouble(6, timestamp_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(7, getExecutorId()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(8, healthy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeEnum(9, source_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(10, reason_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(11, uuid_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(12, getLabels()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeMessage(13, getContainerStatus()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeMessage(14, getUnreachableTime()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(15, getCheckStatus()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeMessage(16, getLimitation()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTaskId()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, state_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, data_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAgentId()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, timestamp_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getExecutorId()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, healthy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, source_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, reason_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, uuid_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getLabels()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getContainerStatus()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getUnreachableTime()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getCheckStatus()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getLimitation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TaskStatus)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TaskStatus other = (org.apache.mesos.v1.Protos.TaskStatus) obj; boolean result = true; result = result && (hasTaskId() == other.hasTaskId()); if (hasTaskId()) { result = result && getTaskId() .equals(other.getTaskId()); } result = result && (hasState() == other.hasState()); if (hasState()) { result = result && state_ == other.state_; } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage() .equals(other.getMessage()); } result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && source_ == other.source_; } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && reason_ == other.reason_; } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && (hasAgentId() == other.hasAgentId()); if (hasAgentId()) { result = result && getAgentId() .equals(other.getAgentId()); } result = result && (hasExecutorId() == other.hasExecutorId()); if (hasExecutorId()) { result = result && getExecutorId() .equals(other.getExecutorId()); } result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && ( java.lang.Double.doubleToLongBits(getTimestamp()) == java.lang.Double.doubleToLongBits( other.getTimestamp())); } result = result && (hasUuid() == other.hasUuid()); if (hasUuid()) { result = result && getUuid() .equals(other.getUuid()); } result = result && (hasHealthy() == other.hasHealthy()); if (hasHealthy()) { result = result && (getHealthy() == other.getHealthy()); } result = result && (hasCheckStatus() == other.hasCheckStatus()); if (hasCheckStatus()) { result = result && getCheckStatus() .equals(other.getCheckStatus()); } result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && (hasContainerStatus() == other.hasContainerStatus()); if (hasContainerStatus()) { result = result && getContainerStatus() .equals(other.getContainerStatus()); } result = result && (hasUnreachableTime() == other.hasUnreachableTime()); if (hasUnreachableTime()) { result = result && getUnreachableTime() .equals(other.getUnreachableTime()); } result = result && (hasLimitation() == other.hasLimitation()); if (hasLimitation()) { result = result && getLimitation() .equals(other.getLimitation()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTaskId()) { hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); } if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + source_; } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + reason_; } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasAgentId()) { hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); } if (hasExecutorId()) { hash = (37 * hash) + EXECUTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getExecutorId().hashCode(); } if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTimestamp())); } if (hasUuid()) { hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); } if (hasHealthy()) { hash = (37 * hash) + HEALTHY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHealthy()); } if (hasCheckStatus()) { hash = (37 * hash) + CHECK_STATUS_FIELD_NUMBER; hash = (53 * hash) + getCheckStatus().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } if (hasContainerStatus()) { hash = (37 * hash) + CONTAINER_STATUS_FIELD_NUMBER; hash = (53 * hash) + getContainerStatus().hashCode(); } if (hasUnreachableTime()) { hash = (37 * hash) + UNREACHABLE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUnreachableTime().hashCode(); } if (hasLimitation()) { hash = (37 * hash) + LIMITATION_FIELD_NUMBER; hash = (53 * hash) + getLimitation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TaskStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskStatus 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.Protos.TaskStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TaskStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TaskStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TaskStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TaskStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes the current status of a task.
     * 
* * Protobuf type {@code mesos.v1.TaskStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TaskStatus) org.apache.mesos.v1.Protos.TaskStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TaskStatus.class, org.apache.mesos.v1.Protos.TaskStatus.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TaskStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTaskIdFieldBuilder(); getAgentIdFieldBuilder(); getExecutorIdFieldBuilder(); getCheckStatusFieldBuilder(); getLabelsFieldBuilder(); getContainerStatusFieldBuilder(); getUnreachableTimeFieldBuilder(); getLimitationFieldBuilder(); } } public Builder clear() { super.clear(); if (taskIdBuilder_ == null) { taskId_ = null; } else { taskIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); state_ = 6; bitField0_ = (bitField0_ & ~0x00000002); message_ = ""; bitField0_ = (bitField0_ & ~0x00000004); source_ = 0; bitField0_ = (bitField0_ & ~0x00000008); reason_ = 0; bitField0_ = (bitField0_ & ~0x00000010); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); if (agentIdBuilder_ == null) { agentId_ = null; } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (executorIdBuilder_ == null) { executorId_ = null; } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); timestamp_ = 0D; bitField0_ = (bitField0_ & ~0x00000100); uuid_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); healthy_ = false; bitField0_ = (bitField0_ & ~0x00000400); if (checkStatusBuilder_ == null) { checkStatus_ = null; } else { checkStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (containerStatusBuilder_ == null) { containerStatus_ = null; } else { containerStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (unreachableTimeBuilder_ == null) { unreachableTime_ = null; } else { unreachableTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); if (limitationBuilder_ == null) { limitation_ = null; } else { limitationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TaskStatus_descriptor; } public org.apache.mesos.v1.Protos.TaskStatus getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TaskStatus build() { org.apache.mesos.v1.Protos.TaskStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TaskStatus buildPartial() { org.apache.mesos.v1.Protos.TaskStatus result = new org.apache.mesos.v1.Protos.TaskStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (taskIdBuilder_ == null) { result.taskId_ = taskId_; } else { result.taskId_ = taskIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.state_ = state_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.message_ = message_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.source_ = source_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.data_ = data_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (agentIdBuilder_ == null) { result.agentId_ = agentId_; } else { result.agentId_ = agentIdBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (executorIdBuilder_ == null) { result.executorId_ = executorId_; } else { result.executorId_ = executorIdBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.uuid_ = uuid_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.healthy_ = healthy_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } if (checkStatusBuilder_ == null) { result.checkStatus_ = checkStatus_; } else { result.checkStatus_ = checkStatusBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } if (containerStatusBuilder_ == null) { result.containerStatus_ = containerStatus_; } else { result.containerStatus_ = containerStatusBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } if (unreachableTimeBuilder_ == null) { result.unreachableTime_ = unreachableTime_; } else { result.unreachableTime_ = unreachableTimeBuilder_.build(); } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } if (limitationBuilder_ == null) { result.limitation_ = limitation_; } else { result.limitation_ = limitationBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TaskStatus) { return mergeFrom((org.apache.mesos.v1.Protos.TaskStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TaskStatus other) { if (other == org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance()) return this; if (other.hasTaskId()) { mergeTaskId(other.getTaskId()); } if (other.hasState()) { setState(other.getState()); } if (other.hasMessage()) { bitField0_ |= 0x00000004; message_ = other.message_; onChanged(); } if (other.hasSource()) { setSource(other.getSource()); } if (other.hasReason()) { setReason(other.getReason()); } if (other.hasData()) { setData(other.getData()); } if (other.hasAgentId()) { mergeAgentId(other.getAgentId()); } if (other.hasExecutorId()) { mergeExecutorId(other.getExecutorId()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasUuid()) { setUuid(other.getUuid()); } if (other.hasHealthy()) { setHealthy(other.getHealthy()); } if (other.hasCheckStatus()) { mergeCheckStatus(other.getCheckStatus()); } if (other.hasLabels()) { mergeLabels(other.getLabels()); } if (other.hasContainerStatus()) { mergeContainerStatus(other.getContainerStatus()); } if (other.hasUnreachableTime()) { mergeUnreachableTime(other.getUnreachableTime()); } if (other.hasLimitation()) { mergeLimitation(other.getLimitation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasTaskId()) { return false; } if (!hasState()) { return false; } if (!getTaskId().isInitialized()) { return false; } if (hasAgentId()) { if (!getAgentId().isInitialized()) { return false; } } if (hasExecutorId()) { if (!getExecutorId().isInitialized()) { return false; } } if (hasLabels()) { if (!getLabels().isInitialized()) { return false; } } if (hasContainerStatus()) { if (!getContainerStatus().isInitialized()) { return false; } } if (hasUnreachableTime()) { if (!getUnreachableTime().isInitialized()) { return false; } } if (hasLimitation()) { if (!getLimitation().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.Protos.TaskStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TaskStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.TaskID taskId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> taskIdBuilder_; /** * required .mesos.v1.TaskID task_id = 1; */ public boolean hasTaskId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.TaskID task_id = 1; */ public org.apache.mesos.v1.Protos.TaskID getTaskId() { if (taskIdBuilder_ == null) { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } else { return taskIdBuilder_.getMessage(); } } /** * required .mesos.v1.TaskID task_id = 1; */ public Builder setTaskId(org.apache.mesos.v1.Protos.TaskID value) { if (taskIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } taskId_ = value; onChanged(); } else { taskIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.TaskID task_id = 1; */ public Builder setTaskId( org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) { if (taskIdBuilder_ == null) { taskId_ = builderForValue.build(); onChanged(); } else { taskIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.TaskID task_id = 1; */ public Builder mergeTaskId(org.apache.mesos.v1.Protos.TaskID value) { if (taskIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && taskId_ != null && taskId_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) { taskId_ = org.apache.mesos.v1.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial(); } else { taskId_ = value; } onChanged(); } else { taskIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.TaskID task_id = 1; */ public Builder clearTaskId() { if (taskIdBuilder_ == null) { taskId_ = null; onChanged(); } else { taskIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.TaskID task_id = 1; */ public org.apache.mesos.v1.Protos.TaskID.Builder getTaskIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTaskIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.TaskID task_id = 1; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { if (taskIdBuilder_ != null) { return taskIdBuilder_.getMessageOrBuilder(); } else { return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_; } } /** * required .mesos.v1.TaskID task_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> getTaskIdFieldBuilder() { if (taskIdBuilder_ == null) { taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>( getTaskId(), getParentForChildren(), isClean()); taskId_ = null; } return taskIdBuilder_; } private int state_ = 6; /** * required .mesos.v1.TaskState state = 2; */ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.TaskState state = 2; */ public org.apache.mesos.v1.Protos.TaskState getState() { org.apache.mesos.v1.Protos.TaskState result = org.apache.mesos.v1.Protos.TaskState.valueOf(state_); return result == null ? org.apache.mesos.v1.Protos.TaskState.TASK_STAGING : result; } /** * required .mesos.v1.TaskState state = 2; */ public Builder setState(org.apache.mesos.v1.Protos.TaskState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; state_ = value.getNumber(); onChanged(); return this; } /** * required .mesos.v1.TaskState state = 2; */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000002); state_ = 6; onChanged(); return this; } private java.lang.Object message_ = ""; /** *
       * Possible message explaining state.
       * 
* * optional string message = 4; */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Possible message explaining state.
       * 
* * optional string message = 4; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Possible message explaining state.
       * 
* * optional string message = 4; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Possible message explaining state.
       * 
* * optional string message = 4; */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } /** *
       * Possible message explaining state.
       * 
* * optional string message = 4; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000004); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** *
       * Possible message explaining state.
       * 
* * optional string message = 4; */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } private int source_ = 0; /** * optional .mesos.v1.TaskStatus.Source source = 9; */ public boolean hasSource() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.TaskStatus.Source source = 9; */ public org.apache.mesos.v1.Protos.TaskStatus.Source getSource() { org.apache.mesos.v1.Protos.TaskStatus.Source result = org.apache.mesos.v1.Protos.TaskStatus.Source.valueOf(source_); return result == null ? org.apache.mesos.v1.Protos.TaskStatus.Source.SOURCE_MASTER : result; } /** * optional .mesos.v1.TaskStatus.Source source = 9; */ public Builder setSource(org.apache.mesos.v1.Protos.TaskStatus.Source value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; source_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.TaskStatus.Source source = 9; */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000008); source_ = 0; onChanged(); return this; } private int reason_ = 0; /** * optional .mesos.v1.TaskStatus.Reason reason = 10; */ public boolean hasReason() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.TaskStatus.Reason reason = 10; */ public org.apache.mesos.v1.Protos.TaskStatus.Reason getReason() { org.apache.mesos.v1.Protos.TaskStatus.Reason result = org.apache.mesos.v1.Protos.TaskStatus.Reason.valueOf(reason_); return result == null ? org.apache.mesos.v1.Protos.TaskStatus.Reason.REASON_COMMAND_EXECUTOR_FAILED : result; } /** * optional .mesos.v1.TaskStatus.Reason reason = 10; */ public Builder setReason(org.apache.mesos.v1.Protos.TaskStatus.Reason value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; reason_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.TaskStatus.Reason reason = 10; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000010); reason_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 3; */ public boolean hasData() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes data = 3; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 3; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; data_ = value; onChanged(); return this; } /** * optional bytes data = 3; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000020); data_ = getDefaultInstance().getData(); onChanged(); return this; } private org.apache.mesos.v1.Protos.AgentID agentId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_; /** * optional .mesos.v1.AgentID agent_id = 5; */ public boolean hasAgentId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentID getAgentId() { if (agentIdBuilder_ == null) { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } else { return agentIdBuilder_.getMessage(); } } /** * optional .mesos.v1.AgentID agent_id = 5; */ public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentId_ = value; onChanged(); } else { agentIdBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.AgentID agent_id = 5; */ public Builder setAgentId( org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) { if (agentIdBuilder_ == null) { agentId_ = builderForValue.build(); onChanged(); } else { agentIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.AgentID agent_id = 5; */ public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) { if (agentIdBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && agentId_ != null && agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) { agentId_ = org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial(); } else { agentId_ = value; } onChanged(); } else { agentIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.AgentID agent_id = 5; */ public Builder clearAgentId() { if (agentIdBuilder_ == null) { agentId_ = null; onChanged(); } else { agentIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() { bitField0_ |= 0x00000040; onChanged(); return getAgentIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.AgentID agent_id = 5; */ public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() { if (agentIdBuilder_ != null) { return agentIdBuilder_.getMessageOrBuilder(); } else { return agentId_ == null ? org.apache.mesos.v1.Protos.AgentID.getDefaultInstance() : agentId_; } } /** * optional .mesos.v1.AgentID agent_id = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> getAgentIdFieldBuilder() { if (agentIdBuilder_ == null) { agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>( getAgentId(), getParentForChildren(), isClean()); agentId_ = null; } return agentIdBuilder_; } private org.apache.mesos.v1.Protos.ExecutorID executorId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_; /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public boolean hasExecutorId() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { if (executorIdBuilder_ == null) { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } else { return executorIdBuilder_.getMessage(); } } /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ 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_ |= 0x00000080; return this; } /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && executorId_ != null && executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial(); } else { executorId_ = value; } onChanged(); } else { executorIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public Builder clearExecutorId() { if (executorIdBuilder_ == null) { executorId_ = null; onChanged(); } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() { bitField0_ |= 0x00000080; onChanged(); return getExecutorIdFieldBuilder().getBuilder(); } /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { if (executorIdBuilder_ != null) { return executorIdBuilder_.getMessageOrBuilder(); } else { return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_; } } /** *
       * TODO(benh): Use in master/agent.
       * 
* * optional .mesos.v1.ExecutorID executor_id = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> getExecutorIdFieldBuilder() { if (executorIdBuilder_ == null) { executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>( getExecutorId(), getParentForChildren(), isClean()); executorId_ = null; } return executorIdBuilder_; } private double timestamp_ ; /** * optional double timestamp = 6; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional double timestamp = 6; */ public double getTimestamp() { return timestamp_; } /** * optional double timestamp = 6; */ public Builder setTimestamp(double value) { bitField0_ |= 0x00000100; timestamp_ = value; onChanged(); return this; } /** * optional double timestamp = 6; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000100); timestamp_ = 0D; onChanged(); return this; } private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a 'uuid'. The status is considered delivered once
       * it is acknowledged by the scheduler. Schedulers can choose
       * to either explicitly acknowledge statuses or let the scheduler
       * driver implicitly acknowledge (default).
       * TODO(bmahler): This is currently overwritten in the scheduler
       * driver and executor driver, but executors will need to set this
       * to a valid RFC-4122 UUID if using the HTTP API.
       * 
* * optional bytes uuid = 11; */ public boolean hasUuid() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a 'uuid'. The status is considered delivered once
       * it is acknowledged by the scheduler. Schedulers can choose
       * to either explicitly acknowledge statuses or let the scheduler
       * driver implicitly acknowledge (default).
       * TODO(bmahler): This is currently overwritten in the scheduler
       * driver and executor driver, but executors will need to set this
       * to a valid RFC-4122 UUID if using the HTTP API.
       * 
* * optional bytes uuid = 11; */ public com.google.protobuf.ByteString getUuid() { return uuid_; } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a 'uuid'. The status is considered delivered once
       * it is acknowledged by the scheduler. Schedulers can choose
       * to either explicitly acknowledge statuses or let the scheduler
       * driver implicitly acknowledge (default).
       * TODO(bmahler): This is currently overwritten in the scheduler
       * driver and executor driver, but executors will need to set this
       * to a valid RFC-4122 UUID if using the HTTP API.
       * 
* * optional bytes uuid = 11; */ public Builder setUuid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; uuid_ = value; onChanged(); return this; } /** *
       * Statuses that are delivered reliably to the scheduler will
       * include a 'uuid'. The status is considered delivered once
       * it is acknowledged by the scheduler. Schedulers can choose
       * to either explicitly acknowledge statuses or let the scheduler
       * driver implicitly acknowledge (default).
       * TODO(bmahler): This is currently overwritten in the scheduler
       * driver and executor driver, but executors will need to set this
       * to a valid RFC-4122 UUID if using the HTTP API.
       * 
* * optional bytes uuid = 11; */ public Builder clearUuid() { bitField0_ = (bitField0_ & ~0x00000200); uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } private boolean healthy_ ; /** *
       * Describes whether the task has been determined to be healthy (true) or
       * unhealthy (false) according to the `health_check` field in `TaskInfo`.
       * 
* * optional bool healthy = 8; */ public boolean hasHealthy() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
       * Describes whether the task has been determined to be healthy (true) or
       * unhealthy (false) according to the `health_check` field in `TaskInfo`.
       * 
* * optional bool healthy = 8; */ public boolean getHealthy() { return healthy_; } /** *
       * Describes whether the task has been determined to be healthy (true) or
       * unhealthy (false) according to the `health_check` field in `TaskInfo`.
       * 
* * optional bool healthy = 8; */ public Builder setHealthy(boolean value) { bitField0_ |= 0x00000400; healthy_ = value; onChanged(); return this; } /** *
       * Describes whether the task has been determined to be healthy (true) or
       * unhealthy (false) according to the `health_check` field in `TaskInfo`.
       * 
* * optional bool healthy = 8; */ public Builder clearHealthy() { bitField0_ = (bitField0_ & ~0x00000400); healthy_ = false; onChanged(); return this; } private org.apache.mesos.v1.Protos.CheckStatusInfo checkStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo, org.apache.mesos.v1.Protos.CheckStatusInfo.Builder, org.apache.mesos.v1.Protos.CheckStatusInfoOrBuilder> checkStatusBuilder_; /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public boolean hasCheckStatus() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public org.apache.mesos.v1.Protos.CheckStatusInfo getCheckStatus() { if (checkStatusBuilder_ == null) { return checkStatus_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.getDefaultInstance() : checkStatus_; } else { return checkStatusBuilder_.getMessage(); } } /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public Builder setCheckStatus(org.apache.mesos.v1.Protos.CheckStatusInfo value) { if (checkStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } checkStatus_ = value; onChanged(); } else { checkStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public Builder setCheckStatus( org.apache.mesos.v1.Protos.CheckStatusInfo.Builder builderForValue) { if (checkStatusBuilder_ == null) { checkStatus_ = builderForValue.build(); onChanged(); } else { checkStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public Builder mergeCheckStatus(org.apache.mesos.v1.Protos.CheckStatusInfo value) { if (checkStatusBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && checkStatus_ != null && checkStatus_ != org.apache.mesos.v1.Protos.CheckStatusInfo.getDefaultInstance()) { checkStatus_ = org.apache.mesos.v1.Protos.CheckStatusInfo.newBuilder(checkStatus_).mergeFrom(value).buildPartial(); } else { checkStatus_ = value; } onChanged(); } else { checkStatusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public Builder clearCheckStatus() { if (checkStatusBuilder_ == null) { checkStatus_ = null; onChanged(); } else { checkStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public org.apache.mesos.v1.Protos.CheckStatusInfo.Builder getCheckStatusBuilder() { bitField0_ |= 0x00000800; onChanged(); return getCheckStatusFieldBuilder().getBuilder(); } /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ public org.apache.mesos.v1.Protos.CheckStatusInfoOrBuilder getCheckStatusOrBuilder() { if (checkStatusBuilder_ != null) { return checkStatusBuilder_.getMessageOrBuilder(); } else { return checkStatus_ == null ? org.apache.mesos.v1.Protos.CheckStatusInfo.getDefaultInstance() : checkStatus_; } } /** *
       * Contains check status for the check specified in the corresponding
       * `TaskInfo`. If no check has been specified, this field must be
       * absent, otherwise it must be present even if the check status is
       * not available yet. If the status update is triggered for a different
       * reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain
       * the last known value.
       * NOTE: A check-related task status update is triggered if and only if
       * the value or presence of any field in `CheckStatusInfo` changes.
       * NOTE: Check support in built-in executors is experimental.
       * 
* * optional .mesos.v1.CheckStatusInfo check_status = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo, org.apache.mesos.v1.Protos.CheckStatusInfo.Builder, org.apache.mesos.v1.Protos.CheckStatusInfoOrBuilder> getCheckStatusFieldBuilder() { if (checkStatusBuilder_ == null) { checkStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CheckStatusInfo, org.apache.mesos.v1.Protos.CheckStatusInfo.Builder, org.apache.mesos.v1.Protos.CheckStatusInfoOrBuilder>( getCheckStatus(), getParentForChildren(), isClean()); checkStatus_ = null; } return checkStatusBuilder_; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ public boolean hasLabels() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00001000; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** *
       * Labels are free-form key value pairs which are exposed through
       * master and agent endpoints. Labels will not be interpreted or
       * acted upon by Mesos itself. As opposed to the data field, labels
       * will be kept in memory on master and agent processes. Therefore,
       * labels should be used to tag TaskStatus message with light-weight
       * meta-data. Labels should not contain duplicate key-value pairs.
       * 
* * optional .mesos.v1.Labels labels = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } private org.apache.mesos.v1.Protos.ContainerStatus containerStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerStatus, org.apache.mesos.v1.Protos.ContainerStatus.Builder, org.apache.mesos.v1.Protos.ContainerStatusOrBuilder> containerStatusBuilder_; /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public boolean hasContainerStatus() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public org.apache.mesos.v1.Protos.ContainerStatus getContainerStatus() { if (containerStatusBuilder_ == null) { return containerStatus_ == null ? org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance() : containerStatus_; } else { return containerStatusBuilder_.getMessage(); } } /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ 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_ |= 0x00002000; return this; } /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public Builder setContainerStatus( org.apache.mesos.v1.Protos.ContainerStatus.Builder builderForValue) { if (containerStatusBuilder_ == null) { containerStatus_ = builderForValue.build(); onChanged(); } else { containerStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public Builder mergeContainerStatus(org.apache.mesos.v1.Protos.ContainerStatus value) { if (containerStatusBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && containerStatus_ != null && 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_ |= 0x00002000; return this; } /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public Builder clearContainerStatus() { if (containerStatusBuilder_ == null) { containerStatus_ = null; onChanged(); } else { containerStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public org.apache.mesos.v1.Protos.ContainerStatus.Builder getContainerStatusBuilder() { bitField0_ |= 0x00002000; onChanged(); return getContainerStatusFieldBuilder().getBuilder(); } /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ public org.apache.mesos.v1.Protos.ContainerStatusOrBuilder getContainerStatusOrBuilder() { if (containerStatusBuilder_ != null) { return containerStatusBuilder_.getMessageOrBuilder(); } else { return containerStatus_ == null ? org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance() : containerStatus_; } } /** *
       * Container related information that is resolved dynamically such as
       * network address.
       * 
* * optional .mesos.v1.ContainerStatus container_status = 13; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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.TimeInfo unreachableTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TimeInfo, org.apache.mesos.v1.Protos.TimeInfo.Builder, org.apache.mesos.v1.Protos.TimeInfoOrBuilder> unreachableTimeBuilder_; /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public boolean hasUnreachableTime() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public org.apache.mesos.v1.Protos.TimeInfo getUnreachableTime() { if (unreachableTimeBuilder_ == null) { return unreachableTime_ == null ? org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance() : unreachableTime_; } else { return unreachableTimeBuilder_.getMessage(); } } /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public Builder setUnreachableTime(org.apache.mesos.v1.Protos.TimeInfo value) { if (unreachableTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unreachableTime_ = value; onChanged(); } else { unreachableTimeBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public Builder setUnreachableTime( org.apache.mesos.v1.Protos.TimeInfo.Builder builderForValue) { if (unreachableTimeBuilder_ == null) { unreachableTime_ = builderForValue.build(); onChanged(); } else { unreachableTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public Builder mergeUnreachableTime(org.apache.mesos.v1.Protos.TimeInfo value) { if (unreachableTimeBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && unreachableTime_ != null && unreachableTime_ != org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance()) { unreachableTime_ = org.apache.mesos.v1.Protos.TimeInfo.newBuilder(unreachableTime_).mergeFrom(value).buildPartial(); } else { unreachableTime_ = value; } onChanged(); } else { unreachableTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public Builder clearUnreachableTime() { if (unreachableTimeBuilder_ == null) { unreachableTime_ = null; onChanged(); } else { unreachableTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public org.apache.mesos.v1.Protos.TimeInfo.Builder getUnreachableTimeBuilder() { bitField0_ |= 0x00004000; onChanged(); return getUnreachableTimeFieldBuilder().getBuilder(); } /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ public org.apache.mesos.v1.Protos.TimeInfoOrBuilder getUnreachableTimeOrBuilder() { if (unreachableTimeBuilder_ != null) { return unreachableTimeBuilder_.getMessageOrBuilder(); } else { return unreachableTime_ == null ? org.apache.mesos.v1.Protos.TimeInfo.getDefaultInstance() : unreachableTime_; } } /** *
       * The time (according to the master's clock) when the agent where
       * this task was running became unreachable. This is only set on
       * status updates for tasks running on agents that are unreachable
       * (e.g., partitioned away from the master).
       * 
* * optional .mesos.v1.TimeInfo unreachable_time = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TimeInfo, org.apache.mesos.v1.Protos.TimeInfo.Builder, org.apache.mesos.v1.Protos.TimeInfoOrBuilder> getUnreachableTimeFieldBuilder() { if (unreachableTimeBuilder_ == null) { unreachableTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TimeInfo, org.apache.mesos.v1.Protos.TimeInfo.Builder, org.apache.mesos.v1.Protos.TimeInfoOrBuilder>( getUnreachableTime(), getParentForChildren(), isClean()); unreachableTime_ = null; } return unreachableTimeBuilder_; } private org.apache.mesos.v1.Protos.TaskResourceLimitation limitation_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskResourceLimitation, org.apache.mesos.v1.Protos.TaskResourceLimitation.Builder, org.apache.mesos.v1.Protos.TaskResourceLimitationOrBuilder> limitationBuilder_; /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public boolean hasLimitation() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public org.apache.mesos.v1.Protos.TaskResourceLimitation getLimitation() { if (limitationBuilder_ == null) { return limitation_ == null ? org.apache.mesos.v1.Protos.TaskResourceLimitation.getDefaultInstance() : limitation_; } else { return limitationBuilder_.getMessage(); } } /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public Builder setLimitation(org.apache.mesos.v1.Protos.TaskResourceLimitation value) { if (limitationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } limitation_ = value; onChanged(); } else { limitationBuilder_.setMessage(value); } bitField0_ |= 0x00008000; return this; } /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public Builder setLimitation( org.apache.mesos.v1.Protos.TaskResourceLimitation.Builder builderForValue) { if (limitationBuilder_ == null) { limitation_ = builderForValue.build(); onChanged(); } else { limitationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; return this; } /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public Builder mergeLimitation(org.apache.mesos.v1.Protos.TaskResourceLimitation value) { if (limitationBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000) && limitation_ != null && limitation_ != org.apache.mesos.v1.Protos.TaskResourceLimitation.getDefaultInstance()) { limitation_ = org.apache.mesos.v1.Protos.TaskResourceLimitation.newBuilder(limitation_).mergeFrom(value).buildPartial(); } else { limitation_ = value; } onChanged(); } else { limitationBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; return this; } /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public Builder clearLimitation() { if (limitationBuilder_ == null) { limitation_ = null; onChanged(); } else { limitationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); return this; } /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public org.apache.mesos.v1.Protos.TaskResourceLimitation.Builder getLimitationBuilder() { bitField0_ |= 0x00008000; onChanged(); return getLimitationFieldBuilder().getBuilder(); } /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ public org.apache.mesos.v1.Protos.TaskResourceLimitationOrBuilder getLimitationOrBuilder() { if (limitationBuilder_ != null) { return limitationBuilder_.getMessageOrBuilder(); } else { return limitation_ == null ? org.apache.mesos.v1.Protos.TaskResourceLimitation.getDefaultInstance() : limitation_; } } /** *
       * If the reason field indicates a container resource limitation,
       * this field optionally contains additional information.
       * 
* * optional .mesos.v1.TaskResourceLimitation limitation = 16; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskResourceLimitation, org.apache.mesos.v1.Protos.TaskResourceLimitation.Builder, org.apache.mesos.v1.Protos.TaskResourceLimitationOrBuilder> getLimitationFieldBuilder() { if (limitationBuilder_ == null) { limitationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TaskResourceLimitation, org.apache.mesos.v1.Protos.TaskResourceLimitation.Builder, org.apache.mesos.v1.Protos.TaskResourceLimitationOrBuilder>( getLimitation(), getParentForChildren(), isClean()); limitation_ = null; } return limitationBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TaskStatus) } // @@protoc_insertion_point(class_scope:mesos.v1.TaskStatus) private static final org.apache.mesos.v1.Protos.TaskStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TaskStatus(); } public static org.apache.mesos.v1.Protos.TaskStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TaskStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskStatus(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TaskStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FiltersOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Filters) com.google.protobuf.MessageOrBuilder { /** *
     * Time to consider unused resources refused. Note that all unused
     * resources will be considered refused and use the default value
     * (below) regardless of whether Filters was passed to
     * SchedulerDriver::launchTasks. You MUST pass Filters with this
     * field set to change this behavior (i.e., get another offer which
     * includes unused resources sooner or later than the default).
     * If this field is set to a number of seconds greater than 31536000
     * (365 days), then the resources will be considered refused for 365
     * days. If it is set to a negative number, then the default value
     * will be used.
     * 
* * optional double refuse_seconds = 1 [default = 5]; */ boolean hasRefuseSeconds(); /** *
     * Time to consider unused resources refused. Note that all unused
     * resources will be considered refused and use the default value
     * (below) regardless of whether Filters was passed to
     * SchedulerDriver::launchTasks. You MUST pass Filters with this
     * field set to change this behavior (i.e., get another offer which
     * includes unused resources sooner or later than the default).
     * If this field is set to a number of seconds greater than 31536000
     * (365 days), then the resources will be considered refused for 365
     * days. If it is set to a negative number, then the default value
     * will be used.
     * 
* * optional double refuse_seconds = 1 [default = 5]; */ double getRefuseSeconds(); } /** *
   **
   * Describes possible filters that can be applied to unused resources
   * (see SchedulerDriver::launchTasks) to influence the allocator.
   * 
* * Protobuf type {@code mesos.v1.Filters} */ public static final class Filters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Filters) FiltersOrBuilder { private static final long serialVersionUID = 0L; // Use Filters.newBuilder() to construct. private Filters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Filters() { refuseSeconds_ = 5D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Filters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { bitField0_ |= 0x00000001; refuseSeconds_ = input.readDouble(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Filters_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Filters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Filters.class, org.apache.mesos.v1.Protos.Filters.Builder.class); } private int bitField0_; public static final int REFUSE_SECONDS_FIELD_NUMBER = 1; private double refuseSeconds_; /** *
     * Time to consider unused resources refused. Note that all unused
     * resources will be considered refused and use the default value
     * (below) regardless of whether Filters was passed to
     * SchedulerDriver::launchTasks. You MUST pass Filters with this
     * field set to change this behavior (i.e., get another offer which
     * includes unused resources sooner or later than the default).
     * If this field is set to a number of seconds greater than 31536000
     * (365 days), then the resources will be considered refused for 365
     * days. If it is set to a negative number, then the default value
     * will be used.
     * 
* * optional double refuse_seconds = 1 [default = 5]; */ public boolean hasRefuseSeconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Time to consider unused resources refused. Note that all unused
     * resources will be considered refused and use the default value
     * (below) regardless of whether Filters was passed to
     * SchedulerDriver::launchTasks. You MUST pass Filters with this
     * field set to change this behavior (i.e., get another offer which
     * includes unused resources sooner or later than the default).
     * If this field is set to a number of seconds greater than 31536000
     * (365 days), then the resources will be considered refused for 365
     * days. If it is set to a negative number, then the default value
     * will be used.
     * 
* * optional double refuse_seconds = 1 [default = 5]; */ public double getRefuseSeconds() { return refuseSeconds_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeDouble(1, refuseSeconds_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, refuseSeconds_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Filters)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Filters other = (org.apache.mesos.v1.Protos.Filters) obj; boolean result = true; result = result && (hasRefuseSeconds() == other.hasRefuseSeconds()); if (hasRefuseSeconds()) { result = result && ( java.lang.Double.doubleToLongBits(getRefuseSeconds()) == java.lang.Double.doubleToLongBits( other.getRefuseSeconds())); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRefuseSeconds()) { hash = (37 * hash) + REFUSE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRefuseSeconds())); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Filters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Filters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Filters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Filters 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.Protos.Filters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Filters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Filters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Filters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Filters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Filters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Filters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Filters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Filters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes possible filters that can be applied to unused resources
     * (see SchedulerDriver::launchTasks) to influence the allocator.
     * 
* * Protobuf type {@code mesos.v1.Filters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Filters) org.apache.mesos.v1.Protos.FiltersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Filters_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Filters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Filters.class, org.apache.mesos.v1.Protos.Filters.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Filters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); refuseSeconds_ = 5D; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Filters_descriptor; } public org.apache.mesos.v1.Protos.Filters getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Filters.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Filters build() { org.apache.mesos.v1.Protos.Filters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Filters buildPartial() { org.apache.mesos.v1.Protos.Filters result = new org.apache.mesos.v1.Protos.Filters(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.refuseSeconds_ = refuseSeconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Filters) { return mergeFrom((org.apache.mesos.v1.Protos.Filters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Filters other) { if (other == org.apache.mesos.v1.Protos.Filters.getDefaultInstance()) return this; if (other.hasRefuseSeconds()) { setRefuseSeconds(other.getRefuseSeconds()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Filters parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Filters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double refuseSeconds_ = 5D; /** *
       * Time to consider unused resources refused. Note that all unused
       * resources will be considered refused and use the default value
       * (below) regardless of whether Filters was passed to
       * SchedulerDriver::launchTasks. You MUST pass Filters with this
       * field set to change this behavior (i.e., get another offer which
       * includes unused resources sooner or later than the default).
       * If this field is set to a number of seconds greater than 31536000
       * (365 days), then the resources will be considered refused for 365
       * days. If it is set to a negative number, then the default value
       * will be used.
       * 
* * optional double refuse_seconds = 1 [default = 5]; */ public boolean hasRefuseSeconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Time to consider unused resources refused. Note that all unused
       * resources will be considered refused and use the default value
       * (below) regardless of whether Filters was passed to
       * SchedulerDriver::launchTasks. You MUST pass Filters with this
       * field set to change this behavior (i.e., get another offer which
       * includes unused resources sooner or later than the default).
       * If this field is set to a number of seconds greater than 31536000
       * (365 days), then the resources will be considered refused for 365
       * days. If it is set to a negative number, then the default value
       * will be used.
       * 
* * optional double refuse_seconds = 1 [default = 5]; */ public double getRefuseSeconds() { return refuseSeconds_; } /** *
       * Time to consider unused resources refused. Note that all unused
       * resources will be considered refused and use the default value
       * (below) regardless of whether Filters was passed to
       * SchedulerDriver::launchTasks. You MUST pass Filters with this
       * field set to change this behavior (i.e., get another offer which
       * includes unused resources sooner or later than the default).
       * If this field is set to a number of seconds greater than 31536000
       * (365 days), then the resources will be considered refused for 365
       * days. If it is set to a negative number, then the default value
       * will be used.
       * 
* * optional double refuse_seconds = 1 [default = 5]; */ public Builder setRefuseSeconds(double value) { bitField0_ |= 0x00000001; refuseSeconds_ = value; onChanged(); return this; } /** *
       * Time to consider unused resources refused. Note that all unused
       * resources will be considered refused and use the default value
       * (below) regardless of whether Filters was passed to
       * SchedulerDriver::launchTasks. You MUST pass Filters with this
       * field set to change this behavior (i.e., get another offer which
       * includes unused resources sooner or later than the default).
       * If this field is set to a number of seconds greater than 31536000
       * (365 days), then the resources will be considered refused for 365
       * days. If it is set to a negative number, then the default value
       * will be used.
       * 
* * optional double refuse_seconds = 1 [default = 5]; */ public Builder clearRefuseSeconds() { bitField0_ = (bitField0_ & ~0x00000001); refuseSeconds_ = 5D; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Filters) } // @@protoc_insertion_point(class_scope:mesos.v1.Filters) private static final org.apache.mesos.v1.Protos.Filters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Filters(); } public static org.apache.mesos.v1.Protos.Filters getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Filters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Filters(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Filters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnvironmentOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Environment) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Environment.Variable variables = 1; */ java.util.List getVariablesList(); /** * repeated .mesos.v1.Environment.Variable variables = 1; */ org.apache.mesos.v1.Protos.Environment.Variable getVariables(int index); /** * repeated .mesos.v1.Environment.Variable variables = 1; */ int getVariablesCount(); /** * repeated .mesos.v1.Environment.Variable variables = 1; */ java.util.List getVariablesOrBuilderList(); /** * repeated .mesos.v1.Environment.Variable variables = 1; */ org.apache.mesos.v1.Protos.Environment.VariableOrBuilder getVariablesOrBuilder( int index); } /** *
   **
   * Describes a collection of environment variables. This is used with
   * CommandInfo in order to set environment variables before running a
   * command. The contents of each variable may be specified as a string
   * or a Secret; only one of `value` and `secret` must be set.
   * 
* * Protobuf type {@code mesos.v1.Environment} */ public static final class Environment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Environment) EnvironmentOrBuilder { private static final long serialVersionUID = 0L; // Use Environment.newBuilder() to construct. private Environment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Environment() { variables_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Environment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { variables_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } variables_.add( input.readMessage(org.apache.mesos.v1.Protos.Environment.Variable.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { variables_ = java.util.Collections.unmodifiableList(variables_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Environment.class, org.apache.mesos.v1.Protos.Environment.Builder.class); } public interface VariableOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Environment.Variable) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
       * In Mesos 1.2, the `Environment.variables.value` message was made
       * optional. The default type for `Environment.variables.type` is now VALUE,
       * which requires `value` to be set, maintaining backward compatibility.
       * TODO(greggomann): The default can be removed in Mesos 2.1 (MESOS-7134).
       * 
* * optional .mesos.v1.Environment.Variable.Type type = 3 [default = VALUE]; */ boolean hasType(); /** *
       * In Mesos 1.2, the `Environment.variables.value` message was made
       * optional. The default type for `Environment.variables.type` is now VALUE,
       * which requires `value` to be set, maintaining backward compatibility.
       * TODO(greggomann): The default can be removed in Mesos 2.1 (MESOS-7134).
       * 
* * optional .mesos.v1.Environment.Variable.Type type = 3 [default = VALUE]; */ org.apache.mesos.v1.Protos.Environment.Variable.Type getType(); /** *
       * Only one of `value` and `secret` must be set.
       * 
* * optional string value = 2; */ boolean hasValue(); /** *
       * Only one of `value` and `secret` must be set.
       * 
* * optional string value = 2; */ java.lang.String getValue(); /** *
       * Only one of `value` and `secret` must be set.
       * 
* * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); /** * optional .mesos.v1.Secret secret = 4; */ boolean hasSecret(); /** * optional .mesos.v1.Secret secret = 4; */ org.apache.mesos.v1.Protos.Secret getSecret(); /** * optional .mesos.v1.Secret secret = 4; */ org.apache.mesos.v1.Protos.SecretOrBuilder getSecretOrBuilder(); } /** * Protobuf type {@code mesos.v1.Environment.Variable} */ public static final class Variable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Environment.Variable) VariableOrBuilder { private static final long serialVersionUID = 0L; // Use Variable.newBuilder() to construct. private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Variable() { name_ = ""; type_ = 1; value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Variable( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; value_ = bs; break; } case 24: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Environment.Variable.Type value = org.apache.mesos.v1.Protos.Environment.Variable.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000002; type_ = rawValue; } break; } case 34: { org.apache.mesos.v1.Protos.Secret.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = secret_.toBuilder(); } secret_ = input.readMessage(org.apache.mesos.v1.Protos.Secret.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secret_); secret_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_Variable_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_Variable_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Environment.Variable.class, org.apache.mesos.v1.Protos.Environment.Variable.Builder.class); } /** * Protobuf enum {@code mesos.v1.Environment.Variable.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * VALUE = 1; */ VALUE(1), /** * SECRET = 2; */ SECRET(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * VALUE = 1; */ public static final int VALUE_VALUE = 1; /** * SECRET = 2; */ public static final int SECRET_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return VALUE; case 2: return SECRET; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Environment.Variable.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Environment.Variable.Type) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** *
       * In Mesos 1.2, the `Environment.variables.value` message was made
       * optional. The default type for `Environment.variables.type` is now VALUE,
       * which requires `value` to be set, maintaining backward compatibility.
       * TODO(greggomann): The default can be removed in Mesos 2.1 (MESOS-7134).
       * 
* * optional .mesos.v1.Environment.Variable.Type type = 3 [default = VALUE]; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * In Mesos 1.2, the `Environment.variables.value` message was made
       * optional. The default type for `Environment.variables.type` is now VALUE,
       * which requires `value` to be set, maintaining backward compatibility.
       * TODO(greggomann): The default can be removed in Mesos 2.1 (MESOS-7134).
       * 
* * optional .mesos.v1.Environment.Variable.Type type = 3 [default = VALUE]; */ public org.apache.mesos.v1.Protos.Environment.Variable.Type getType() { org.apache.mesos.v1.Protos.Environment.Variable.Type result = org.apache.mesos.v1.Protos.Environment.Variable.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Environment.Variable.Type.VALUE : result; } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** *
       * Only one of `value` and `secret` must be set.
       * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Only one of `value` and `secret` must be set.
       * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** *
       * Only one of `value` and `secret` must be set.
       * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRET_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Secret secret_; /** * optional .mesos.v1.Secret secret = 4; */ public boolean hasSecret() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.Secret getSecret() { return secret_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : secret_; } /** * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.SecretOrBuilder getSecretOrBuilder() { return secret_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : secret_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (hasSecret()) { if (!getSecret().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(3, type_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getSecret()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSecret()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Environment.Variable)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Environment.Variable other = (org.apache.mesos.v1.Protos.Environment.Variable) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && (hasSecret() == other.hasSecret()); if (hasSecret()) { result = result && getSecret() .equals(other.getSecret()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasSecret()) { hash = (37 * hash) + SECRET_FIELD_NUMBER; hash = (53 * hash) + getSecret().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Environment.Variable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Environment.Variable parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Environment.Variable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Environment.Variable 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.Protos.Environment.Variable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Environment.Variable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Environment.Variable parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Environment.Variable parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Environment.Variable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Environment.Variable parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Environment.Variable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Environment.Variable parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Environment.Variable prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Environment.Variable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Environment.Variable) org.apache.mesos.v1.Protos.Environment.VariableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_Variable_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_Variable_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Environment.Variable.class, org.apache.mesos.v1.Protos.Environment.Variable.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Environment.Variable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSecretFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; bitField0_ = (bitField0_ & ~0x00000002); value_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (secretBuilder_ == null) { secret_ = null; } else { secretBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_Variable_descriptor; } public org.apache.mesos.v1.Protos.Environment.Variable getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Environment.Variable.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Environment.Variable build() { org.apache.mesos.v1.Protos.Environment.Variable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Environment.Variable buildPartial() { org.apache.mesos.v1.Protos.Environment.Variable result = new org.apache.mesos.v1.Protos.Environment.Variable(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.value_ = value_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (secretBuilder_ == null) { result.secret_ = secret_; } else { result.secret_ = secretBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Environment.Variable) { return mergeFrom((org.apache.mesos.v1.Protos.Environment.Variable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Environment.Variable other) { if (other == org.apache.mesos.v1.Protos.Environment.Variable.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasValue()) { bitField0_ |= 0x00000004; value_ = other.value_; onChanged(); } if (other.hasSecret()) { mergeSecret(other.getSecret()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (hasSecret()) { if (!getSecret().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.Protos.Environment.Variable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Environment.Variable) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private int type_ = 1; /** *
         * In Mesos 1.2, the `Environment.variables.value` message was made
         * optional. The default type for `Environment.variables.type` is now VALUE,
         * which requires `value` to be set, maintaining backward compatibility.
         * TODO(greggomann): The default can be removed in Mesos 2.1 (MESOS-7134).
         * 
* * optional .mesos.v1.Environment.Variable.Type type = 3 [default = VALUE]; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * In Mesos 1.2, the `Environment.variables.value` message was made
         * optional. The default type for `Environment.variables.type` is now VALUE,
         * which requires `value` to be set, maintaining backward compatibility.
         * TODO(greggomann): The default can be removed in Mesos 2.1 (MESOS-7134).
         * 
* * optional .mesos.v1.Environment.Variable.Type type = 3 [default = VALUE]; */ public org.apache.mesos.v1.Protos.Environment.Variable.Type getType() { org.apache.mesos.v1.Protos.Environment.Variable.Type result = org.apache.mesos.v1.Protos.Environment.Variable.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Environment.Variable.Type.VALUE : result; } /** *
         * In Mesos 1.2, the `Environment.variables.value` message was made
         * optional. The default type for `Environment.variables.type` is now VALUE,
         * which requires `value` to be set, maintaining backward compatibility.
         * TODO(greggomann): The default can be removed in Mesos 2.1 (MESOS-7134).
         * 
* * optional .mesos.v1.Environment.Variable.Type type = 3 [default = VALUE]; */ public Builder setType(org.apache.mesos.v1.Protos.Environment.Variable.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** *
         * In Mesos 1.2, the `Environment.variables.value` message was made
         * optional. The default type for `Environment.variables.type` is now VALUE,
         * which requires `value` to be set, maintaining backward compatibility.
         * TODO(greggomann): The default can be removed in Mesos 2.1 (MESOS-7134).
         * 
* * optional .mesos.v1.Environment.Variable.Type type = 3 [default = VALUE]; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 1; onChanged(); return this; } private java.lang.Object value_ = ""; /** *
         * Only one of `value` and `secret` must be set.
         * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Only one of `value` and `secret` must be set.
         * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * Only one of `value` and `secret` must be set.
         * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Only one of `value` and `secret` must be set.
         * 
* * optional string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } /** *
         * Only one of `value` and `secret` must be set.
         * 
* * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** *
         * Only one of `value` and `secret` must be set.
         * 
* * optional string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Secret secret_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder> secretBuilder_; /** * optional .mesos.v1.Secret secret = 4; */ public boolean hasSecret() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.Secret getSecret() { if (secretBuilder_ == null) { return secret_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : secret_; } else { return secretBuilder_.getMessage(); } } /** * optional .mesos.v1.Secret secret = 4; */ public Builder setSecret(org.apache.mesos.v1.Protos.Secret value) { if (secretBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secret_ = value; onChanged(); } else { secretBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Secret secret = 4; */ public Builder setSecret( org.apache.mesos.v1.Protos.Secret.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); } else { secretBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Secret secret = 4; */ public Builder mergeSecret(org.apache.mesos.v1.Protos.Secret value) { if (secretBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && secret_ != null && secret_ != org.apache.mesos.v1.Protos.Secret.getDefaultInstance()) { secret_ = org.apache.mesos.v1.Protos.Secret.newBuilder(secret_).mergeFrom(value).buildPartial(); } else { secret_ = value; } onChanged(); } else { secretBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Secret secret = 4; */ public Builder clearSecret() { if (secretBuilder_ == null) { secret_ = null; onChanged(); } else { secretBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.Secret.Builder getSecretBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSecretFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.SecretOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { return secret_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : secret_; } } /** * optional .mesos.v1.Secret secret = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder>( getSecret(), getParentForChildren(), isClean()); secret_ = null; } return secretBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Environment.Variable) } // @@protoc_insertion_point(class_scope:mesos.v1.Environment.Variable) private static final org.apache.mesos.v1.Protos.Environment.Variable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Environment.Variable(); } public static org.apache.mesos.v1.Protos.Environment.Variable getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Variable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Variable(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Environment.Variable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int VARIABLES_FIELD_NUMBER = 1; private java.util.List variables_; /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public java.util.List getVariablesList() { return variables_; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public java.util.List getVariablesOrBuilderList() { return variables_; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public int getVariablesCount() { return variables_.size(); } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public org.apache.mesos.v1.Protos.Environment.Variable getVariables(int index) { return variables_.get(index); } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public org.apache.mesos.v1.Protos.Environment.VariableOrBuilder getVariablesOrBuilder( int index) { return variables_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getVariablesCount(); i++) { if (!getVariables(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < variables_.size(); i++) { output.writeMessage(1, variables_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < variables_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, variables_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Environment)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Environment other = (org.apache.mesos.v1.Protos.Environment) obj; boolean result = true; result = result && getVariablesList() .equals(other.getVariablesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVariablesCount() > 0) { hash = (37 * hash) + VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getVariablesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Environment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Environment parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Environment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Environment 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.Protos.Environment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Environment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Environment parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Environment parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Environment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Environment parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Environment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Environment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Environment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a collection of environment variables. This is used with
     * CommandInfo in order to set environment variables before running a
     * command. The contents of each variable may be specified as a string
     * or a Secret; only one of `value` and `secret` must be set.
     * 
* * Protobuf type {@code mesos.v1.Environment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Environment) org.apache.mesos.v1.Protos.EnvironmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Environment.class, org.apache.mesos.v1.Protos.Environment.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Environment.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVariablesFieldBuilder(); } } public Builder clear() { super.clear(); if (variablesBuilder_ == null) { variables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { variablesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Environment_descriptor; } public org.apache.mesos.v1.Protos.Environment getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Environment.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Environment build() { org.apache.mesos.v1.Protos.Environment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Environment buildPartial() { org.apache.mesos.v1.Protos.Environment result = new org.apache.mesos.v1.Protos.Environment(this); int from_bitField0_ = bitField0_; if (variablesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { variables_ = java.util.Collections.unmodifiableList(variables_); bitField0_ = (bitField0_ & ~0x00000001); } result.variables_ = variables_; } else { result.variables_ = variablesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Environment) { return mergeFrom((org.apache.mesos.v1.Protos.Environment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Environment other) { if (other == org.apache.mesos.v1.Protos.Environment.getDefaultInstance()) return this; if (variablesBuilder_ == null) { if (!other.variables_.isEmpty()) { if (variables_.isEmpty()) { variables_ = other.variables_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVariablesIsMutable(); variables_.addAll(other.variables_); } onChanged(); } } else { if (!other.variables_.isEmpty()) { if (variablesBuilder_.isEmpty()) { variablesBuilder_.dispose(); variablesBuilder_ = null; variables_ = other.variables_; bitField0_ = (bitField0_ & ~0x00000001); variablesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVariablesFieldBuilder() : null; } else { variablesBuilder_.addAllMessages(other.variables_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getVariablesCount(); i++) { if (!getVariables(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.Protos.Environment parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Environment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List variables_ = java.util.Collections.emptyList(); private void ensureVariablesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { variables_ = new java.util.ArrayList(variables_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Environment.Variable, org.apache.mesos.v1.Protos.Environment.Variable.Builder, org.apache.mesos.v1.Protos.Environment.VariableOrBuilder> variablesBuilder_; /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public java.util.List getVariablesList() { if (variablesBuilder_ == null) { return java.util.Collections.unmodifiableList(variables_); } else { return variablesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public int getVariablesCount() { if (variablesBuilder_ == null) { return variables_.size(); } else { return variablesBuilder_.getCount(); } } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public org.apache.mesos.v1.Protos.Environment.Variable getVariables(int index) { if (variablesBuilder_ == null) { return variables_.get(index); } else { return variablesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder setVariables( int index, org.apache.mesos.v1.Protos.Environment.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.set(index, value); onChanged(); } else { variablesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder setVariables( int index, org.apache.mesos.v1.Protos.Environment.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.set(index, builderForValue.build()); onChanged(); } else { variablesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder addVariables(org.apache.mesos.v1.Protos.Environment.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.add(value); onChanged(); } else { variablesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder addVariables( int index, org.apache.mesos.v1.Protos.Environment.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.add(index, value); onChanged(); } else { variablesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder addVariables( org.apache.mesos.v1.Protos.Environment.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.add(builderForValue.build()); onChanged(); } else { variablesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder addVariables( int index, org.apache.mesos.v1.Protos.Environment.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.add(index, builderForValue.build()); onChanged(); } else { variablesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder addAllVariables( java.lang.Iterable values) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, variables_); onChanged(); } else { variablesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder clearVariables() { if (variablesBuilder_ == null) { variables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { variablesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public Builder removeVariables(int index) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.remove(index); onChanged(); } else { variablesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public org.apache.mesos.v1.Protos.Environment.Variable.Builder getVariablesBuilder( int index) { return getVariablesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public org.apache.mesos.v1.Protos.Environment.VariableOrBuilder getVariablesOrBuilder( int index) { if (variablesBuilder_ == null) { return variables_.get(index); } else { return variablesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public java.util.List getVariablesOrBuilderList() { if (variablesBuilder_ != null) { return variablesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(variables_); } } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public org.apache.mesos.v1.Protos.Environment.Variable.Builder addVariablesBuilder() { return getVariablesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Environment.Variable.getDefaultInstance()); } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public org.apache.mesos.v1.Protos.Environment.Variable.Builder addVariablesBuilder( int index) { return getVariablesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Environment.Variable.getDefaultInstance()); } /** * repeated .mesos.v1.Environment.Variable variables = 1; */ public java.util.List getVariablesBuilderList() { return getVariablesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Environment.Variable, org.apache.mesos.v1.Protos.Environment.Variable.Builder, org.apache.mesos.v1.Protos.Environment.VariableOrBuilder> getVariablesFieldBuilder() { if (variablesBuilder_ == null) { variablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Environment.Variable, org.apache.mesos.v1.Protos.Environment.Variable.Builder, org.apache.mesos.v1.Protos.Environment.VariableOrBuilder>( variables_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); variables_ = null; } return variablesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Environment) } // @@protoc_insertion_point(class_scope:mesos.v1.Environment) private static final org.apache.mesos.v1.Protos.Environment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Environment(); } public static org.apache.mesos.v1.Protos.Environment getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Environment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Environment(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Environment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Parameter) com.google.protobuf.MessageOrBuilder { /** * required string key = 1; */ boolean hasKey(); /** * required string key = 1; */ java.lang.String getKey(); /** * required string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * required string value = 2; */ boolean hasValue(); /** * required string value = 2; */ java.lang.String getValue(); /** * required string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * A generic (key, value) pair used in various places for parameters.
   * 
* * Protobuf type {@code mesos.v1.Parameter} */ public static final class Parameter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Parameter) ParameterOrBuilder { private static final long serialVersionUID = 0L; // Use Parameter.newBuilder() to construct. private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Parameter() { key_ = ""; value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Parameter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Parameter.class, org.apache.mesos.v1.Protos.Parameter.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * required string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * required string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * required string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Parameter)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Parameter other = (org.apache.mesos.v1.Protos.Parameter) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Parameter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Parameter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Parameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Parameter 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.Protos.Parameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Parameter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Parameter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Parameter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Parameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Parameter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Parameter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Parameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Parameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * A generic (key, value) pair used in various places for parameters.
     * 
* * Protobuf type {@code mesos.v1.Parameter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Parameter) org.apache.mesos.v1.Protos.ParameterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameter_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Parameter.class, org.apache.mesos.v1.Protos.Parameter.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Parameter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameter_descriptor; } public org.apache.mesos.v1.Protos.Parameter getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Parameter.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Parameter build() { org.apache.mesos.v1.Protos.Parameter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Parameter buildPartial() { org.apache.mesos.v1.Protos.Parameter result = new org.apache.mesos.v1.Protos.Parameter(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Parameter) { return mergeFrom((org.apache.mesos.v1.Protos.Parameter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Parameter other) { if (other == org.apache.mesos.v1.Protos.Parameter.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasKey()) { return false; } if (!hasValue()) { 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.Protos.Parameter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Parameter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * required string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string key = 1; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * required string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * required string key = 1; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * required string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * required string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Parameter) } // @@protoc_insertion_point(class_scope:mesos.v1.Parameter) private static final org.apache.mesos.v1.Protos.Parameter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Parameter(); } public static org.apache.mesos.v1.Protos.Parameter getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Parameter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Parameter(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Parameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Parameters) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Parameter parameter = 1; */ java.util.List getParameterList(); /** * repeated .mesos.v1.Parameter parameter = 1; */ org.apache.mesos.v1.Protos.Parameter getParameter(int index); /** * repeated .mesos.v1.Parameter parameter = 1; */ int getParameterCount(); /** * repeated .mesos.v1.Parameter parameter = 1; */ java.util.List getParameterOrBuilderList(); /** * repeated .mesos.v1.Parameter parameter = 1; */ org.apache.mesos.v1.Protos.ParameterOrBuilder getParameterOrBuilder( int index); } /** *
   **
   * Collection of Parameter.
   * 
* * Protobuf type {@code mesos.v1.Parameters} */ public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Parameters) ParametersOrBuilder { private static final long serialVersionUID = 0L; // Use Parameters.newBuilder() to construct. private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Parameters() { parameter_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Parameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { parameter_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } parameter_.add( input.readMessage(org.apache.mesos.v1.Protos.Parameter.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { parameter_ = java.util.Collections.unmodifiableList(parameter_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameters_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Parameters.class, org.apache.mesos.v1.Protos.Parameters.Builder.class); } public static final int PARAMETER_FIELD_NUMBER = 1; private java.util.List parameter_; /** * repeated .mesos.v1.Parameter parameter = 1; */ public java.util.List getParameterList() { return parameter_; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public java.util.List getParameterOrBuilderList() { return parameter_; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public int getParameterCount() { return parameter_.size(); } /** * repeated .mesos.v1.Parameter parameter = 1; */ public org.apache.mesos.v1.Protos.Parameter getParameter(int index) { return parameter_.get(index); } /** * repeated .mesos.v1.Parameter parameter = 1; */ public org.apache.mesos.v1.Protos.ParameterOrBuilder getParameterOrBuilder( int index) { return parameter_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getParameterCount(); i++) { if (!getParameter(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < parameter_.size(); i++) { output.writeMessage(1, parameter_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < parameter_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, parameter_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Parameters)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Parameters other = (org.apache.mesos.v1.Protos.Parameters) obj; boolean result = true; result = result && getParameterList() .equals(other.getParameterList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getParameterCount() > 0) { hash = (37 * hash) + PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getParameterList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Parameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Parameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Parameters 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.Protos.Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Parameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Parameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Parameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Parameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Parameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Parameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Parameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Parameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Collection of Parameter.
     * 
* * Protobuf type {@code mesos.v1.Parameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Parameters) org.apache.mesos.v1.Protos.ParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameters_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Parameters.class, org.apache.mesos.v1.Protos.Parameters.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Parameters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParameterFieldBuilder(); } } public Builder clear() { super.clear(); if (parameterBuilder_ == null) { parameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { parameterBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Parameters_descriptor; } public org.apache.mesos.v1.Protos.Parameters getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Parameters.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Parameters build() { org.apache.mesos.v1.Protos.Parameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Parameters buildPartial() { org.apache.mesos.v1.Protos.Parameters result = new org.apache.mesos.v1.Protos.Parameters(this); int from_bitField0_ = bitField0_; if (parameterBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { parameter_ = java.util.Collections.unmodifiableList(parameter_); bitField0_ = (bitField0_ & ~0x00000001); } result.parameter_ = parameter_; } else { result.parameter_ = parameterBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Parameters) { return mergeFrom((org.apache.mesos.v1.Protos.Parameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Parameters other) { if (other == org.apache.mesos.v1.Protos.Parameters.getDefaultInstance()) return this; if (parameterBuilder_ == null) { if (!other.parameter_.isEmpty()) { if (parameter_.isEmpty()) { parameter_ = other.parameter_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParameterIsMutable(); parameter_.addAll(other.parameter_); } onChanged(); } } else { if (!other.parameter_.isEmpty()) { if (parameterBuilder_.isEmpty()) { parameterBuilder_.dispose(); parameterBuilder_ = null; parameter_ = other.parameter_; bitField0_ = (bitField0_ & ~0x00000001); parameterBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParameterFieldBuilder() : null; } else { parameterBuilder_.addAllMessages(other.parameter_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getParameterCount(); i++) { if (!getParameter(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.Protos.Parameters parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Parameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List parameter_ = java.util.Collections.emptyList(); private void ensureParameterIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { parameter_ = new java.util.ArrayList(parameter_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder> parameterBuilder_; /** * repeated .mesos.v1.Parameter parameter = 1; */ public java.util.List getParameterList() { if (parameterBuilder_ == null) { return java.util.Collections.unmodifiableList(parameter_); } else { return parameterBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Parameter parameter = 1; */ public int getParameterCount() { if (parameterBuilder_ == null) { return parameter_.size(); } else { return parameterBuilder_.getCount(); } } /** * repeated .mesos.v1.Parameter parameter = 1; */ public org.apache.mesos.v1.Protos.Parameter getParameter(int index) { if (parameterBuilder_ == null) { return parameter_.get(index); } else { return parameterBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder setParameter( int index, org.apache.mesos.v1.Protos.Parameter value) { if (parameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParameterIsMutable(); parameter_.set(index, value); onChanged(); } else { parameterBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder setParameter( int index, org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.set(index, builderForValue.build()); onChanged(); } else { parameterBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder addParameter(org.apache.mesos.v1.Protos.Parameter value) { if (parameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParameterIsMutable(); parameter_.add(value); onChanged(); } else { parameterBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder addParameter( int index, org.apache.mesos.v1.Protos.Parameter value) { if (parameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParameterIsMutable(); parameter_.add(index, value); onChanged(); } else { parameterBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder addParameter( org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.add(builderForValue.build()); onChanged(); } else { parameterBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder addParameter( int index, org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.add(index, builderForValue.build()); onChanged(); } else { parameterBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder addAllParameter( java.lang.Iterable values) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parameter_); onChanged(); } else { parameterBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder clearParameter() { if (parameterBuilder_ == null) { parameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { parameterBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public Builder removeParameter(int index) { if (parameterBuilder_ == null) { ensureParameterIsMutable(); parameter_.remove(index); onChanged(); } else { parameterBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Parameter parameter = 1; */ public org.apache.mesos.v1.Protos.Parameter.Builder getParameterBuilder( int index) { return getParameterFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Parameter parameter = 1; */ public org.apache.mesos.v1.Protos.ParameterOrBuilder getParameterOrBuilder( int index) { if (parameterBuilder_ == null) { return parameter_.get(index); } else { return parameterBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Parameter parameter = 1; */ public java.util.List getParameterOrBuilderList() { if (parameterBuilder_ != null) { return parameterBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(parameter_); } } /** * repeated .mesos.v1.Parameter parameter = 1; */ public org.apache.mesos.v1.Protos.Parameter.Builder addParameterBuilder() { return getParameterFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Parameter.getDefaultInstance()); } /** * repeated .mesos.v1.Parameter parameter = 1; */ public org.apache.mesos.v1.Protos.Parameter.Builder addParameterBuilder( int index) { return getParameterFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Parameter.getDefaultInstance()); } /** * repeated .mesos.v1.Parameter parameter = 1; */ public java.util.List getParameterBuilderList() { return getParameterFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder> getParameterFieldBuilder() { if (parameterBuilder_ == null) { parameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder>( parameter_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); parameter_ = null; } return parameterBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Parameters) } // @@protoc_insertion_point(class_scope:mesos.v1.Parameters) private static final org.apache.mesos.v1.Protos.Parameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Parameters(); } public static org.apache.mesos.v1.Protos.Parameters getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Parameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Parameters(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Credential) com.google.protobuf.MessageOrBuilder { /** * required string principal = 1; */ boolean hasPrincipal(); /** * required string principal = 1; */ java.lang.String getPrincipal(); /** * required string principal = 1; */ com.google.protobuf.ByteString getPrincipalBytes(); /** * optional string secret = 2; */ boolean hasSecret(); /** * optional string secret = 2; */ java.lang.String getSecret(); /** * optional string secret = 2; */ com.google.protobuf.ByteString getSecretBytes(); } /** *
   **
   * Credential used in various places for authentication and
   * authorization.
   * NOTE: A 'principal' is different from 'FrameworkInfo.user'. The
   * former is used for authentication and authorization while the
   * latter is used to determine the default user under which the
   * framework's executors/tasks are run.
   * 
* * Protobuf type {@code mesos.v1.Credential} */ public static final class Credential extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Credential) CredentialOrBuilder { private static final long serialVersionUID = 0L; // Use Credential.newBuilder() to construct. private Credential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Credential() { principal_ = ""; secret_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Credential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; principal_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; secret_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credential_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credential_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Credential.class, org.apache.mesos.v1.Protos.Credential.Builder.class); } private int bitField0_; public static final int PRINCIPAL_FIELD_NUMBER = 1; private volatile java.lang.Object principal_; /** * required string principal = 1; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string principal = 1; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } } /** * required string principal = 1; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRET_FIELD_NUMBER = 2; private volatile java.lang.Object secret_; /** * optional string secret = 2; */ public boolean hasSecret() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string secret = 2; */ public java.lang.String getSecret() { java.lang.Object ref = secret_; 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()) { secret_ = s; } return s; } } /** * optional string secret = 2; */ public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secret_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPrincipal()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principal_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secret_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principal_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secret_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Credential)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Credential other = (org.apache.mesos.v1.Protos.Credential) obj; boolean result = true; result = result && (hasPrincipal() == other.hasPrincipal()); if (hasPrincipal()) { result = result && getPrincipal() .equals(other.getPrincipal()); } result = result && (hasSecret() == other.hasSecret()); if (hasSecret()) { result = result && getSecret() .equals(other.getSecret()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPrincipal()) { hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); } if (hasSecret()) { hash = (37 * hash) + SECRET_FIELD_NUMBER; hash = (53 * hash) + getSecret().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Credential parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Credential parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Credential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Credential 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.Protos.Credential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Credential parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Credential parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Credential parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Credential parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Credential parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Credential parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Credential parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Credential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Credential used in various places for authentication and
     * authorization.
     * NOTE: A 'principal' is different from 'FrameworkInfo.user'. The
     * former is used for authentication and authorization while the
     * latter is used to determine the default user under which the
     * framework's executors/tasks are run.
     * 
* * Protobuf type {@code mesos.v1.Credential} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Credential) org.apache.mesos.v1.Protos.CredentialOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credential_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credential_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Credential.class, org.apache.mesos.v1.Protos.Credential.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Credential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); principal_ = ""; bitField0_ = (bitField0_ & ~0x00000001); secret_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credential_descriptor; } public org.apache.mesos.v1.Protos.Credential getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Credential.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Credential build() { org.apache.mesos.v1.Protos.Credential result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Credential buildPartial() { org.apache.mesos.v1.Protos.Credential result = new org.apache.mesos.v1.Protos.Credential(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.principal_ = principal_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.secret_ = secret_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Credential) { return mergeFrom((org.apache.mesos.v1.Protos.Credential)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Credential other) { if (other == org.apache.mesos.v1.Protos.Credential.getDefaultInstance()) return this; if (other.hasPrincipal()) { bitField0_ |= 0x00000001; principal_ = other.principal_; onChanged(); } if (other.hasSecret()) { bitField0_ |= 0x00000002; secret_ = other.secret_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPrincipal()) { 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.Protos.Credential parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Credential) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object principal_ = ""; /** * required string principal = 1; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string principal = 1; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string principal = 1; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string principal = 1; */ public Builder setPrincipal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; principal_ = value; onChanged(); return this; } /** * required string principal = 1; */ public Builder clearPrincipal() { bitField0_ = (bitField0_ & ~0x00000001); principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** * required string principal = 1; */ public Builder setPrincipalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; principal_ = value; onChanged(); return this; } private java.lang.Object secret_ = ""; /** * optional string secret = 2; */ public boolean hasSecret() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string secret = 2; */ public java.lang.String getSecret() { java.lang.Object ref = secret_; 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()) { secret_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string secret = 2; */ public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secret_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string secret = 2; */ public Builder setSecret( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; secret_ = value; onChanged(); return this; } /** * optional string secret = 2; */ public Builder clearSecret() { bitField0_ = (bitField0_ & ~0x00000002); secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** * optional string secret = 2; */ public Builder setSecretBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; secret_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Credential) } // @@protoc_insertion_point(class_scope:mesos.v1.Credential) private static final org.apache.mesos.v1.Protos.Credential DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Credential(); } public static org.apache.mesos.v1.Protos.Credential getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Credential parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Credential(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Credential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CredentialsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Credentials) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Credential credentials = 1; */ java.util.List getCredentialsList(); /** * repeated .mesos.v1.Credential credentials = 1; */ org.apache.mesos.v1.Protos.Credential getCredentials(int index); /** * repeated .mesos.v1.Credential credentials = 1; */ int getCredentialsCount(); /** * repeated .mesos.v1.Credential credentials = 1; */ java.util.List getCredentialsOrBuilderList(); /** * repeated .mesos.v1.Credential credentials = 1; */ org.apache.mesos.v1.Protos.CredentialOrBuilder getCredentialsOrBuilder( int index); } /** *
   **
   * Credentials used for framework authentication, HTTP authentication
   * (where the common 'username' and 'password' are captured as
   * 'principal' and 'secret' respectively), etc.
   * 
* * Protobuf type {@code mesos.v1.Credentials} */ public static final class Credentials extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Credentials) CredentialsOrBuilder { private static final long serialVersionUID = 0L; // Use Credentials.newBuilder() to construct. private Credentials(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Credentials() { credentials_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Credentials( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { credentials_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } credentials_.add( input.readMessage(org.apache.mesos.v1.Protos.Credential.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { credentials_ = java.util.Collections.unmodifiableList(credentials_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credentials_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credentials_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Credentials.class, org.apache.mesos.v1.Protos.Credentials.Builder.class); } public static final int CREDENTIALS_FIELD_NUMBER = 1; private java.util.List credentials_; /** * repeated .mesos.v1.Credential credentials = 1; */ public java.util.List getCredentialsList() { return credentials_; } /** * repeated .mesos.v1.Credential credentials = 1; */ public java.util.List getCredentialsOrBuilderList() { return credentials_; } /** * repeated .mesos.v1.Credential credentials = 1; */ public int getCredentialsCount() { return credentials_.size(); } /** * repeated .mesos.v1.Credential credentials = 1; */ public org.apache.mesos.v1.Protos.Credential getCredentials(int index) { return credentials_.get(index); } /** * repeated .mesos.v1.Credential credentials = 1; */ public org.apache.mesos.v1.Protos.CredentialOrBuilder getCredentialsOrBuilder( int index) { return credentials_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getCredentialsCount(); i++) { if (!getCredentials(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < credentials_.size(); i++) { output.writeMessage(1, credentials_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < credentials_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, credentials_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Credentials)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Credentials other = (org.apache.mesos.v1.Protos.Credentials) obj; boolean result = true; result = result && getCredentialsList() .equals(other.getCredentialsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCredentialsCount() > 0) { hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getCredentialsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Credentials parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Credentials parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Credentials parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Credentials 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.Protos.Credentials parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Credentials parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Credentials parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Credentials parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Credentials parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Credentials parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Credentials parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Credentials parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Credentials prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Credentials used for framework authentication, HTTP authentication
     * (where the common 'username' and 'password' are captured as
     * 'principal' and 'secret' respectively), etc.
     * 
* * Protobuf type {@code mesos.v1.Credentials} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Credentials) org.apache.mesos.v1.Protos.CredentialsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credentials_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credentials_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Credentials.class, org.apache.mesos.v1.Protos.Credentials.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Credentials.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCredentialsFieldBuilder(); } } public Builder clear() { super.clear(); if (credentialsBuilder_ == null) { credentials_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { credentialsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Credentials_descriptor; } public org.apache.mesos.v1.Protos.Credentials getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Credentials.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Credentials build() { org.apache.mesos.v1.Protos.Credentials result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Credentials buildPartial() { org.apache.mesos.v1.Protos.Credentials result = new org.apache.mesos.v1.Protos.Credentials(this); int from_bitField0_ = bitField0_; if (credentialsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { credentials_ = java.util.Collections.unmodifiableList(credentials_); bitField0_ = (bitField0_ & ~0x00000001); } result.credentials_ = credentials_; } else { result.credentials_ = credentialsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Credentials) { return mergeFrom((org.apache.mesos.v1.Protos.Credentials)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Credentials other) { if (other == org.apache.mesos.v1.Protos.Credentials.getDefaultInstance()) return this; if (credentialsBuilder_ == null) { if (!other.credentials_.isEmpty()) { if (credentials_.isEmpty()) { credentials_ = other.credentials_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCredentialsIsMutable(); credentials_.addAll(other.credentials_); } onChanged(); } } else { if (!other.credentials_.isEmpty()) { if (credentialsBuilder_.isEmpty()) { credentialsBuilder_.dispose(); credentialsBuilder_ = null; credentials_ = other.credentials_; bitField0_ = (bitField0_ & ~0x00000001); credentialsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCredentialsFieldBuilder() : null; } else { credentialsBuilder_.addAllMessages(other.credentials_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getCredentialsCount(); i++) { if (!getCredentials(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.Protos.Credentials parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Credentials) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List credentials_ = java.util.Collections.emptyList(); private void ensureCredentialsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { credentials_ = new java.util.ArrayList(credentials_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Credential, org.apache.mesos.v1.Protos.Credential.Builder, org.apache.mesos.v1.Protos.CredentialOrBuilder> credentialsBuilder_; /** * repeated .mesos.v1.Credential credentials = 1; */ public java.util.List getCredentialsList() { if (credentialsBuilder_ == null) { return java.util.Collections.unmodifiableList(credentials_); } else { return credentialsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Credential credentials = 1; */ public int getCredentialsCount() { if (credentialsBuilder_ == null) { return credentials_.size(); } else { return credentialsBuilder_.getCount(); } } /** * repeated .mesos.v1.Credential credentials = 1; */ public org.apache.mesos.v1.Protos.Credential getCredentials(int index) { if (credentialsBuilder_ == null) { return credentials_.get(index); } else { return credentialsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder setCredentials( int index, org.apache.mesos.v1.Protos.Credential value) { if (credentialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCredentialsIsMutable(); credentials_.set(index, value); onChanged(); } else { credentialsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder setCredentials( int index, org.apache.mesos.v1.Protos.Credential.Builder builderForValue) { if (credentialsBuilder_ == null) { ensureCredentialsIsMutable(); credentials_.set(index, builderForValue.build()); onChanged(); } else { credentialsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder addCredentials(org.apache.mesos.v1.Protos.Credential value) { if (credentialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCredentialsIsMutable(); credentials_.add(value); onChanged(); } else { credentialsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder addCredentials( int index, org.apache.mesos.v1.Protos.Credential value) { if (credentialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCredentialsIsMutable(); credentials_.add(index, value); onChanged(); } else { credentialsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder addCredentials( org.apache.mesos.v1.Protos.Credential.Builder builderForValue) { if (credentialsBuilder_ == null) { ensureCredentialsIsMutable(); credentials_.add(builderForValue.build()); onChanged(); } else { credentialsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder addCredentials( int index, org.apache.mesos.v1.Protos.Credential.Builder builderForValue) { if (credentialsBuilder_ == null) { ensureCredentialsIsMutable(); credentials_.add(index, builderForValue.build()); onChanged(); } else { credentialsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder addAllCredentials( java.lang.Iterable values) { if (credentialsBuilder_ == null) { ensureCredentialsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, credentials_); onChanged(); } else { credentialsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder clearCredentials() { if (credentialsBuilder_ == null) { credentials_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { credentialsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public Builder removeCredentials(int index) { if (credentialsBuilder_ == null) { ensureCredentialsIsMutable(); credentials_.remove(index); onChanged(); } else { credentialsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Credential credentials = 1; */ public org.apache.mesos.v1.Protos.Credential.Builder getCredentialsBuilder( int index) { return getCredentialsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Credential credentials = 1; */ public org.apache.mesos.v1.Protos.CredentialOrBuilder getCredentialsOrBuilder( int index) { if (credentialsBuilder_ == null) { return credentials_.get(index); } else { return credentialsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Credential credentials = 1; */ public java.util.List getCredentialsOrBuilderList() { if (credentialsBuilder_ != null) { return credentialsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(credentials_); } } /** * repeated .mesos.v1.Credential credentials = 1; */ public org.apache.mesos.v1.Protos.Credential.Builder addCredentialsBuilder() { return getCredentialsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Credential.getDefaultInstance()); } /** * repeated .mesos.v1.Credential credentials = 1; */ public org.apache.mesos.v1.Protos.Credential.Builder addCredentialsBuilder( int index) { return getCredentialsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Credential.getDefaultInstance()); } /** * repeated .mesos.v1.Credential credentials = 1; */ public java.util.List getCredentialsBuilderList() { return getCredentialsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Credential, org.apache.mesos.v1.Protos.Credential.Builder, org.apache.mesos.v1.Protos.CredentialOrBuilder> getCredentialsFieldBuilder() { if (credentialsBuilder_ == null) { credentialsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Credential, org.apache.mesos.v1.Protos.Credential.Builder, org.apache.mesos.v1.Protos.CredentialOrBuilder>( credentials_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); credentials_ = null; } return credentialsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Credentials) } // @@protoc_insertion_point(class_scope:mesos.v1.Credentials) private static final org.apache.mesos.v1.Protos.Credentials DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Credentials(); } public static org.apache.mesos.v1.Protos.Credentials getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Credentials parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Credentials(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Credentials getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Secret) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.Secret.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.Secret.Type type = 1; */ org.apache.mesos.v1.Protos.Secret.Type getType(); /** *
     * Only one of `reference` and `value` must be set.
     * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ boolean hasReference(); /** *
     * Only one of `reference` and `value` must be set.
     * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ org.apache.mesos.v1.Protos.Secret.Reference getReference(); /** *
     * Only one of `reference` and `value` must be set.
     * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ org.apache.mesos.v1.Protos.Secret.ReferenceOrBuilder getReferenceOrBuilder(); /** * optional .mesos.v1.Secret.Value value = 3; */ boolean hasValue(); /** * optional .mesos.v1.Secret.Value value = 3; */ org.apache.mesos.v1.Protos.Secret.Value getValue(); /** * optional .mesos.v1.Secret.Value value = 3; */ org.apache.mesos.v1.Protos.Secret.ValueOrBuilder getValueOrBuilder(); } /** *
   **
   * Secret used to pass privileged information. It is designed to provide
   * pass-by-value or pass-by-reference semantics, where the REFERENCE type can be
   * used by custom modules which interact with a secure back-end.
   * 
* * Protobuf type {@code mesos.v1.Secret} */ public static final class Secret extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Secret) SecretOrBuilder { private static final long serialVersionUID = 0L; // Use Secret.newBuilder() to construct. private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Secret() { type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Secret( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Secret.Type value = org.apache.mesos.v1.Protos.Secret.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { org.apache.mesos.v1.Protos.Secret.Reference.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = reference_.toBuilder(); } reference_ = input.readMessage(org.apache.mesos.v1.Protos.Secret.Reference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reference_); reference_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.Secret.Value.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(org.apache.mesos.v1.Protos.Secret.Value.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Secret.class, org.apache.mesos.v1.Protos.Secret.Builder.class); } /** * Protobuf enum {@code mesos.v1.Secret.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * REFERENCE = 1; */ REFERENCE(1), /** * VALUE = 2; */ VALUE(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * REFERENCE = 1; */ public static final int REFERENCE_VALUE = 1; /** * VALUE = 2; */ public static final int VALUE_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return REFERENCE; case 2: return VALUE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Secret.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Secret.Type) } public interface ReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Secret.Reference) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string key = 2; */ boolean hasKey(); /** * optional string key = 2; */ java.lang.String getKey(); /** * optional string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); } /** *
     * Can be used by modules to refer to a secret stored in a secure back-end.
     * The `key` field is provided to permit reference to a single value within a
     * secret containing arbitrary key-value pairs.
     * For example, given a back-end secret store with a secret named
     * "my-secret" containing the following key-value pairs:
     *   {
     *     "username": "my-user",
     *     "password": "my-password
     *   }
     * the username could be referred to in a `Secret` by specifying
     * "my-secret" for the `name` and "username" for the `key`.
     * 
* * Protobuf type {@code mesos.v1.Secret.Reference} */ public static final class Reference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Secret.Reference) ReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use Reference.newBuilder() to construct. private Reference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Reference() { name_ = ""; key_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Reference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; key_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Reference_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Secret.Reference.class, org.apache.mesos.v1.Protos.Secret.Reference.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** * optional string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * optional string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Secret.Reference)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Secret.Reference other = (org.apache.mesos.v1.Protos.Secret.Reference) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Secret.Reference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret.Reference parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret.Reference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret.Reference 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.Protos.Secret.Reference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret.Reference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret.Reference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret.Reference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret.Reference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret.Reference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret.Reference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret.Reference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Secret.Reference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Can be used by modules to refer to a secret stored in a secure back-end.
       * The `key` field is provided to permit reference to a single value within a
       * secret containing arbitrary key-value pairs.
       * For example, given a back-end secret store with a secret named
       * "my-secret" containing the following key-value pairs:
       *   {
       *     "username": "my-user",
       *     "password": "my-password
       *   }
       * the username could be referred to in a `Secret` by specifying
       * "my-secret" for the `name` and "username" for the `key`.
       * 
* * Protobuf type {@code mesos.v1.Secret.Reference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Secret.Reference) org.apache.mesos.v1.Protos.Secret.ReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Reference_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Secret.Reference.class, org.apache.mesos.v1.Protos.Secret.Reference.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Secret.Reference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); key_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Reference_descriptor; } public org.apache.mesos.v1.Protos.Secret.Reference getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Secret.Reference.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Secret.Reference build() { org.apache.mesos.v1.Protos.Secret.Reference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Secret.Reference buildPartial() { org.apache.mesos.v1.Protos.Secret.Reference result = new org.apache.mesos.v1.Protos.Secret.Reference(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Secret.Reference) { return mergeFrom((org.apache.mesos.v1.Protos.Secret.Reference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Secret.Reference other) { if (other == org.apache.mesos.v1.Protos.Secret.Reference.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasKey()) { bitField0_ |= 0x00000002; key_ = other.key_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { 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.Protos.Secret.Reference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Secret.Reference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.lang.Object key_ = ""; /** * optional string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string key = 2; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * optional string key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * optional string key = 2; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Secret.Reference) } // @@protoc_insertion_point(class_scope:mesos.v1.Secret.Reference) private static final org.apache.mesos.v1.Protos.Secret.Reference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Secret.Reference(); } public static org.apache.mesos.v1.Protos.Secret.Reference getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Reference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Reference(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Secret.Reference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Secret.Value) com.google.protobuf.MessageOrBuilder { /** * required bytes data = 1; */ boolean hasData(); /** * required bytes data = 1; */ com.google.protobuf.ByteString getData(); } /** *
     * Used to pass the value of a secret.
     * 
* * Protobuf type {@code mesos.v1.Secret.Value} */ public static final class Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Secret.Value) ValueOrBuilder { private static final long serialVersionUID = 0L; // Use Value.newBuilder() to construct. private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Value() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Value( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; data_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Secret.Value.class, org.apache.mesos.v1.Protos.Secret.Value.Builder.class); } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** * required bytes data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes data = 1; */ public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasData()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, data_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Secret.Value)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Secret.Value other = (org.apache.mesos.v1.Protos.Secret.Value) obj; boolean result = true; result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Secret.Value parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret.Value parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret.Value 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.Protos.Secret.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret.Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret.Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret.Value parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret.Value parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret.Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret.Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Secret.Value prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Used to pass the value of a secret.
       * 
* * Protobuf type {@code mesos.v1.Secret.Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Secret.Value) org.apache.mesos.v1.Protos.Secret.ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Secret.Value.class, org.apache.mesos.v1.Protos.Secret.Value.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Secret.Value.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_Value_descriptor; } public org.apache.mesos.v1.Protos.Secret.Value getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Secret.Value.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Secret.Value build() { org.apache.mesos.v1.Protos.Secret.Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Secret.Value buildPartial() { org.apache.mesos.v1.Protos.Secret.Value result = new org.apache.mesos.v1.Protos.Secret.Value(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Secret.Value) { return mergeFrom((org.apache.mesos.v1.Protos.Secret.Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Secret.Value other) { if (other == org.apache.mesos.v1.Protos.Secret.Value.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasData()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.Protos.Secret.Value parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Secret.Value) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes data = 1; */ public com.google.protobuf.ByteString getData() { return data_; } /** * required bytes data = 1; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * required bytes data = 1; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = getDefaultInstance().getData(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Secret.Value) } // @@protoc_insertion_point(class_scope:mesos.v1.Secret.Value) private static final org.apache.mesos.v1.Protos.Secret.Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Secret.Value(); } public static org.apache.mesos.v1.Protos.Secret.Value getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Value(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Secret.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .mesos.v1.Secret.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Secret.Type type = 1; */ public org.apache.mesos.v1.Protos.Secret.Type getType() { org.apache.mesos.v1.Protos.Secret.Type result = org.apache.mesos.v1.Protos.Secret.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Secret.Type.UNKNOWN : result; } public static final int REFERENCE_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Secret.Reference reference_; /** *
     * Only one of `reference` and `value` must be set.
     * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public boolean hasReference() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Only one of `reference` and `value` must be set.
     * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public org.apache.mesos.v1.Protos.Secret.Reference getReference() { return reference_ == null ? org.apache.mesos.v1.Protos.Secret.Reference.getDefaultInstance() : reference_; } /** *
     * Only one of `reference` and `value` must be set.
     * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public org.apache.mesos.v1.Protos.Secret.ReferenceOrBuilder getReferenceOrBuilder() { return reference_ == null ? org.apache.mesos.v1.Protos.Secret.Reference.getDefaultInstance() : reference_; } public static final int VALUE_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Secret.Value value_; /** * optional .mesos.v1.Secret.Value value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Secret.Value value = 3; */ public org.apache.mesos.v1.Protos.Secret.Value getValue() { return value_ == null ? org.apache.mesos.v1.Protos.Secret.Value.getDefaultInstance() : value_; } /** * optional .mesos.v1.Secret.Value value = 3; */ public org.apache.mesos.v1.Protos.Secret.ValueOrBuilder getValueOrBuilder() { return value_ == null ? org.apache.mesos.v1.Protos.Secret.Value.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasReference()) { if (!getReference().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasValue()) { if (!getValue().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getReference()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getValue()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getReference()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Secret)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Secret other = (org.apache.mesos.v1.Protos.Secret) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasReference() == other.hasReference()); if (hasReference()) { result = result && getReference() .equals(other.getReference()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasReference()) { hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReference().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Secret parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret 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.Protos.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Secret parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Secret parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Secret parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Secret prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Secret used to pass privileged information. It is designed to provide
     * pass-by-value or pass-by-reference semantics, where the REFERENCE type can be
     * used by custom modules which interact with a secure back-end.
     * 
* * Protobuf type {@code mesos.v1.Secret} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Secret) org.apache.mesos.v1.Protos.SecretOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Secret.class, org.apache.mesos.v1.Protos.Secret.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Secret.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getReferenceFieldBuilder(); getValueFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (referenceBuilder_ == null) { reference_ = null; } else { referenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (valueBuilder_ == null) { value_ = null; } else { valueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Secret_descriptor; } public org.apache.mesos.v1.Protos.Secret getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Secret.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Secret build() { org.apache.mesos.v1.Protos.Secret result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Secret buildPartial() { org.apache.mesos.v1.Protos.Secret result = new org.apache.mesos.v1.Protos.Secret(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 (referenceBuilder_ == null) { result.reference_ = reference_; } else { result.reference_ = referenceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Secret) { return mergeFrom((org.apache.mesos.v1.Protos.Secret)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Secret other) { if (other == org.apache.mesos.v1.Protos.Secret.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasReference()) { mergeReference(other.getReference()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasReference()) { if (!getReference().isInitialized()) { return false; } } if (hasValue()) { if (!getValue().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.Protos.Secret parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Secret) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * optional .mesos.v1.Secret.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Secret.Type type = 1; */ public org.apache.mesos.v1.Protos.Secret.Type getType() { org.apache.mesos.v1.Protos.Secret.Type result = org.apache.mesos.v1.Protos.Secret.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Secret.Type.UNKNOWN : result; } /** * optional .mesos.v1.Secret.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.Secret.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.Secret.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.Secret.Reference reference_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret.Reference, org.apache.mesos.v1.Protos.Secret.Reference.Builder, org.apache.mesos.v1.Protos.Secret.ReferenceOrBuilder> referenceBuilder_; /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public boolean hasReference() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public org.apache.mesos.v1.Protos.Secret.Reference getReference() { if (referenceBuilder_ == null) { return reference_ == null ? org.apache.mesos.v1.Protos.Secret.Reference.getDefaultInstance() : reference_; } else { return referenceBuilder_.getMessage(); } } /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public Builder setReference(org.apache.mesos.v1.Protos.Secret.Reference value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reference_ = value; onChanged(); } else { referenceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public Builder setReference( org.apache.mesos.v1.Protos.Secret.Reference.Builder builderForValue) { if (referenceBuilder_ == null) { reference_ = builderForValue.build(); onChanged(); } else { referenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public Builder mergeReference(org.apache.mesos.v1.Protos.Secret.Reference value) { if (referenceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && reference_ != null && reference_ != org.apache.mesos.v1.Protos.Secret.Reference.getDefaultInstance()) { reference_ = org.apache.mesos.v1.Protos.Secret.Reference.newBuilder(reference_).mergeFrom(value).buildPartial(); } else { reference_ = value; } onChanged(); } else { referenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public Builder clearReference() { if (referenceBuilder_ == null) { reference_ = null; onChanged(); } else { referenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public org.apache.mesos.v1.Protos.Secret.Reference.Builder getReferenceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getReferenceFieldBuilder().getBuilder(); } /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ public org.apache.mesos.v1.Protos.Secret.ReferenceOrBuilder getReferenceOrBuilder() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilder(); } else { return reference_ == null ? org.apache.mesos.v1.Protos.Secret.Reference.getDefaultInstance() : reference_; } } /** *
       * Only one of `reference` and `value` must be set.
       * 
* * optional .mesos.v1.Secret.Reference reference = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret.Reference, org.apache.mesos.v1.Protos.Secret.Reference.Builder, org.apache.mesos.v1.Protos.Secret.ReferenceOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret.Reference, org.apache.mesos.v1.Protos.Secret.Reference.Builder, org.apache.mesos.v1.Protos.Secret.ReferenceOrBuilder>( getReference(), getParentForChildren(), isClean()); reference_ = null; } return referenceBuilder_; } private org.apache.mesos.v1.Protos.Secret.Value value_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret.Value, org.apache.mesos.v1.Protos.Secret.Value.Builder, org.apache.mesos.v1.Protos.Secret.ValueOrBuilder> valueBuilder_; /** * optional .mesos.v1.Secret.Value value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Secret.Value value = 3; */ public org.apache.mesos.v1.Protos.Secret.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? org.apache.mesos.v1.Protos.Secret.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * optional .mesos.v1.Secret.Value value = 3; */ public Builder setValue(org.apache.mesos.v1.Protos.Secret.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Secret.Value value = 3; */ public Builder setValue( org.apache.mesos.v1.Protos.Secret.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Secret.Value value = 3; */ public Builder mergeValue(org.apache.mesos.v1.Protos.Secret.Value value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && value_ != null && value_ != org.apache.mesos.v1.Protos.Secret.Value.getDefaultInstance()) { value_ = org.apache.mesos.v1.Protos.Secret.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Secret.Value value = 3; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { valueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.Secret.Value value = 3; */ public org.apache.mesos.v1.Protos.Secret.Value.Builder getValueBuilder() { bitField0_ |= 0x00000004; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Secret.Value value = 3; */ public org.apache.mesos.v1.Protos.Secret.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? org.apache.mesos.v1.Protos.Secret.Value.getDefaultInstance() : value_; } } /** * optional .mesos.v1.Secret.Value value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret.Value, org.apache.mesos.v1.Protos.Secret.Value.Builder, org.apache.mesos.v1.Protos.Secret.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret.Value, org.apache.mesos.v1.Protos.Secret.Value.Builder, org.apache.mesos.v1.Protos.Secret.ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Secret) } // @@protoc_insertion_point(class_scope:mesos.v1.Secret) private static final org.apache.mesos.v1.Protos.Secret DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Secret(); } public static org.apache.mesos.v1.Protos.Secret getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Secret parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Secret(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Secret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RateLimitOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.RateLimit) com.google.protobuf.MessageOrBuilder { /** *
     * Leaving QPS unset gives it unlimited rate (i.e., not throttled),
     * which also implies unlimited capacity.
     * 
* * optional double qps = 1; */ boolean hasQps(); /** *
     * Leaving QPS unset gives it unlimited rate (i.e., not throttled),
     * which also implies unlimited capacity.
     * 
* * optional double qps = 1; */ double getQps(); /** *
     * Principal of framework(s) to be throttled. Should match
     * FrameworkInfo.principal and Credential.principal (if using authentication).
     * 
* * required string principal = 2; */ boolean hasPrincipal(); /** *
     * Principal of framework(s) to be throttled. Should match
     * FrameworkInfo.principal and Credential.principal (if using authentication).
     * 
* * required string principal = 2; */ java.lang.String getPrincipal(); /** *
     * Principal of framework(s) to be throttled. Should match
     * FrameworkInfo.principal and Credential.principal (if using authentication).
     * 
* * required string principal = 2; */ com.google.protobuf.ByteString getPrincipalBytes(); /** *
     * Max number of outstanding messages from frameworks of this principal
     * allowed by master before the next message is dropped and an error is sent
     * back to the sender. Messages received before the capacity is reached are
     * still going to be processed after the error is sent.
     * If unspecified, this principal is assigned unlimited capacity.
     * NOTE: This value is ignored if 'qps' is not set.
     * 
* * optional uint64 capacity = 3; */ boolean hasCapacity(); /** *
     * Max number of outstanding messages from frameworks of this principal
     * allowed by master before the next message is dropped and an error is sent
     * back to the sender. Messages received before the capacity is reached are
     * still going to be processed after the error is sent.
     * If unspecified, this principal is assigned unlimited capacity.
     * NOTE: This value is ignored if 'qps' is not set.
     * 
* * optional uint64 capacity = 3; */ long getCapacity(); } /** *
   **
   * Rate (queries per second, QPS) limit for messages from a framework to master.
   * Strictly speaking they are the combined rate from all frameworks of the same
   * principal.
   * 
* * Protobuf type {@code mesos.v1.RateLimit} */ public static final class RateLimit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.RateLimit) RateLimitOrBuilder { private static final long serialVersionUID = 0L; // Use RateLimit.newBuilder() to construct. private RateLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RateLimit() { qps_ = 0D; principal_ = ""; capacity_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RateLimit( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { bitField0_ |= 0x00000001; qps_ = input.readDouble(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; principal_ = bs; break; } case 24: { bitField0_ |= 0x00000004; capacity_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimit_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimit_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.RateLimit.class, org.apache.mesos.v1.Protos.RateLimit.Builder.class); } private int bitField0_; public static final int QPS_FIELD_NUMBER = 1; private double qps_; /** *
     * Leaving QPS unset gives it unlimited rate (i.e., not throttled),
     * which also implies unlimited capacity.
     * 
* * optional double qps = 1; */ public boolean hasQps() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Leaving QPS unset gives it unlimited rate (i.e., not throttled),
     * which also implies unlimited capacity.
     * 
* * optional double qps = 1; */ public double getQps() { return qps_; } public static final int PRINCIPAL_FIELD_NUMBER = 2; private volatile java.lang.Object principal_; /** *
     * Principal of framework(s) to be throttled. Should match
     * FrameworkInfo.principal and Credential.principal (if using authentication).
     * 
* * required string principal = 2; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Principal of framework(s) to be throttled. Should match
     * FrameworkInfo.principal and Credential.principal (if using authentication).
     * 
* * required string principal = 2; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } } /** *
     * Principal of framework(s) to be throttled. Should match
     * FrameworkInfo.principal and Credential.principal (if using authentication).
     * 
* * required string principal = 2; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAPACITY_FIELD_NUMBER = 3; private long capacity_; /** *
     * Max number of outstanding messages from frameworks of this principal
     * allowed by master before the next message is dropped and an error is sent
     * back to the sender. Messages received before the capacity is reached are
     * still going to be processed after the error is sent.
     * If unspecified, this principal is assigned unlimited capacity.
     * NOTE: This value is ignored if 'qps' is not set.
     * 
* * optional uint64 capacity = 3; */ public boolean hasCapacity() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Max number of outstanding messages from frameworks of this principal
     * allowed by master before the next message is dropped and an error is sent
     * back to the sender. Messages received before the capacity is reached are
     * still going to be processed after the error is sent.
     * If unspecified, this principal is assigned unlimited capacity.
     * NOTE: This value is ignored if 'qps' is not set.
     * 
* * optional uint64 capacity = 3; */ public long getCapacity() { return capacity_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPrincipal()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeDouble(1, qps_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, capacity_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, qps_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, capacity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.RateLimit)) { return super.equals(obj); } org.apache.mesos.v1.Protos.RateLimit other = (org.apache.mesos.v1.Protos.RateLimit) obj; boolean result = true; result = result && (hasQps() == other.hasQps()); if (hasQps()) { result = result && ( java.lang.Double.doubleToLongBits(getQps()) == java.lang.Double.doubleToLongBits( other.getQps())); } result = result && (hasPrincipal() == other.hasPrincipal()); if (hasPrincipal()) { result = result && getPrincipal() .equals(other.getPrincipal()); } result = result && (hasCapacity() == other.hasCapacity()); if (hasCapacity()) { result = result && (getCapacity() == other.getCapacity()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasQps()) { hash = (37 * hash) + QPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getQps())); } if (hasPrincipal()) { hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); } if (hasCapacity()) { hash = (37 * hash) + CAPACITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCapacity()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.RateLimit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RateLimit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.RateLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RateLimit 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.Protos.RateLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RateLimit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.RateLimit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RateLimit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.RateLimit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RateLimit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.RateLimit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RateLimit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.RateLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Rate (queries per second, QPS) limit for messages from a framework to master.
     * Strictly speaking they are the combined rate from all frameworks of the same
     * principal.
     * 
* * Protobuf type {@code mesos.v1.RateLimit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.RateLimit) org.apache.mesos.v1.Protos.RateLimitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimit_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimit_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.RateLimit.class, org.apache.mesos.v1.Protos.RateLimit.Builder.class); } // Construct using org.apache.mesos.v1.Protos.RateLimit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); qps_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); principal_ = ""; bitField0_ = (bitField0_ & ~0x00000002); capacity_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimit_descriptor; } public org.apache.mesos.v1.Protos.RateLimit getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.RateLimit.getDefaultInstance(); } public org.apache.mesos.v1.Protos.RateLimit build() { org.apache.mesos.v1.Protos.RateLimit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.RateLimit buildPartial() { org.apache.mesos.v1.Protos.RateLimit result = new org.apache.mesos.v1.Protos.RateLimit(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.qps_ = qps_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.principal_ = principal_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.capacity_ = capacity_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.RateLimit) { return mergeFrom((org.apache.mesos.v1.Protos.RateLimit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.RateLimit other) { if (other == org.apache.mesos.v1.Protos.RateLimit.getDefaultInstance()) return this; if (other.hasQps()) { setQps(other.getQps()); } if (other.hasPrincipal()) { bitField0_ |= 0x00000002; principal_ = other.principal_; onChanged(); } if (other.hasCapacity()) { setCapacity(other.getCapacity()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPrincipal()) { 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.Protos.RateLimit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.RateLimit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double qps_ ; /** *
       * Leaving QPS unset gives it unlimited rate (i.e., not throttled),
       * which also implies unlimited capacity.
       * 
* * optional double qps = 1; */ public boolean hasQps() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Leaving QPS unset gives it unlimited rate (i.e., not throttled),
       * which also implies unlimited capacity.
       * 
* * optional double qps = 1; */ public double getQps() { return qps_; } /** *
       * Leaving QPS unset gives it unlimited rate (i.e., not throttled),
       * which also implies unlimited capacity.
       * 
* * optional double qps = 1; */ public Builder setQps(double value) { bitField0_ |= 0x00000001; qps_ = value; onChanged(); return this; } /** *
       * Leaving QPS unset gives it unlimited rate (i.e., not throttled),
       * which also implies unlimited capacity.
       * 
* * optional double qps = 1; */ public Builder clearQps() { bitField0_ = (bitField0_ & ~0x00000001); qps_ = 0D; onChanged(); return this; } private java.lang.Object principal_ = ""; /** *
       * Principal of framework(s) to be throttled. Should match
       * FrameworkInfo.principal and Credential.principal (if using authentication).
       * 
* * required string principal = 2; */ public boolean hasPrincipal() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Principal of framework(s) to be throttled. Should match
       * FrameworkInfo.principal and Credential.principal (if using authentication).
       * 
* * required string principal = 2; */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; 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()) { principal_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Principal of framework(s) to be throttled. Should match
       * FrameworkInfo.principal and Credential.principal (if using authentication).
       * 
* * required string principal = 2; */ public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); principal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Principal of framework(s) to be throttled. Should match
       * FrameworkInfo.principal and Credential.principal (if using authentication).
       * 
* * required string principal = 2; */ public Builder setPrincipal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; principal_ = value; onChanged(); return this; } /** *
       * Principal of framework(s) to be throttled. Should match
       * FrameworkInfo.principal and Credential.principal (if using authentication).
       * 
* * required string principal = 2; */ public Builder clearPrincipal() { bitField0_ = (bitField0_ & ~0x00000002); principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** *
       * Principal of framework(s) to be throttled. Should match
       * FrameworkInfo.principal and Credential.principal (if using authentication).
       * 
* * required string principal = 2; */ public Builder setPrincipalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; principal_ = value; onChanged(); return this; } private long capacity_ ; /** *
       * Max number of outstanding messages from frameworks of this principal
       * allowed by master before the next message is dropped and an error is sent
       * back to the sender. Messages received before the capacity is reached are
       * still going to be processed after the error is sent.
       * If unspecified, this principal is assigned unlimited capacity.
       * NOTE: This value is ignored if 'qps' is not set.
       * 
* * optional uint64 capacity = 3; */ public boolean hasCapacity() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Max number of outstanding messages from frameworks of this principal
       * allowed by master before the next message is dropped and an error is sent
       * back to the sender. Messages received before the capacity is reached are
       * still going to be processed after the error is sent.
       * If unspecified, this principal is assigned unlimited capacity.
       * NOTE: This value is ignored if 'qps' is not set.
       * 
* * optional uint64 capacity = 3; */ public long getCapacity() { return capacity_; } /** *
       * Max number of outstanding messages from frameworks of this principal
       * allowed by master before the next message is dropped and an error is sent
       * back to the sender. Messages received before the capacity is reached are
       * still going to be processed after the error is sent.
       * If unspecified, this principal is assigned unlimited capacity.
       * NOTE: This value is ignored if 'qps' is not set.
       * 
* * optional uint64 capacity = 3; */ public Builder setCapacity(long value) { bitField0_ |= 0x00000004; capacity_ = value; onChanged(); return this; } /** *
       * Max number of outstanding messages from frameworks of this principal
       * allowed by master before the next message is dropped and an error is sent
       * back to the sender. Messages received before the capacity is reached are
       * still going to be processed after the error is sent.
       * If unspecified, this principal is assigned unlimited capacity.
       * NOTE: This value is ignored if 'qps' is not set.
       * 
* * optional uint64 capacity = 3; */ public Builder clearCapacity() { bitField0_ = (bitField0_ & ~0x00000004); capacity_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.RateLimit) } // @@protoc_insertion_point(class_scope:mesos.v1.RateLimit) private static final org.apache.mesos.v1.Protos.RateLimit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.RateLimit(); } public static org.apache.mesos.v1.Protos.RateLimit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RateLimit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RateLimit(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.RateLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RateLimitsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.RateLimits) com.google.protobuf.MessageOrBuilder { /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ java.util.List getLimitsList(); /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ org.apache.mesos.v1.Protos.RateLimit getLimits(int index); /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ int getLimitsCount(); /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ java.util.List getLimitsOrBuilderList(); /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ org.apache.mesos.v1.Protos.RateLimitOrBuilder getLimitsOrBuilder( int index); /** *
     * All the frameworks not specified in 'limits' get this default rate.
     * This rate is an aggregate rate for all of them, i.e., their combined
     * traffic is throttled together at this rate.
     * 
* * optional double aggregate_default_qps = 2; */ boolean hasAggregateDefaultQps(); /** *
     * All the frameworks not specified in 'limits' get this default rate.
     * This rate is an aggregate rate for all of them, i.e., their combined
     * traffic is throttled together at this rate.
     * 
* * optional double aggregate_default_qps = 2; */ double getAggregateDefaultQps(); /** *
     * All the frameworks not specified in 'limits' get this default capacity.
     * This is an aggregate value similar to 'aggregate_default_qps'.
     * 
* * optional uint64 aggregate_default_capacity = 3; */ boolean hasAggregateDefaultCapacity(); /** *
     * All the frameworks not specified in 'limits' get this default capacity.
     * This is an aggregate value similar to 'aggregate_default_qps'.
     * 
* * optional uint64 aggregate_default_capacity = 3; */ long getAggregateDefaultCapacity(); } /** *
   **
   * Collection of RateLimit.
   * Frameworks without rate limits defined here are not throttled unless
   * 'aggregate_default_qps' is specified.
   * 
* * Protobuf type {@code mesos.v1.RateLimits} */ public static final class RateLimits extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.RateLimits) RateLimitsOrBuilder { private static final long serialVersionUID = 0L; // Use RateLimits.newBuilder() to construct. private RateLimits(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RateLimits() { limits_ = java.util.Collections.emptyList(); aggregateDefaultQps_ = 0D; aggregateDefaultCapacity_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RateLimits( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { limits_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } limits_.add( input.readMessage(org.apache.mesos.v1.Protos.RateLimit.PARSER, extensionRegistry)); break; } case 17: { bitField0_ |= 0x00000001; aggregateDefaultQps_ = input.readDouble(); break; } case 24: { bitField0_ |= 0x00000002; aggregateDefaultCapacity_ = 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).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { limits_ = java.util.Collections.unmodifiableList(limits_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimits_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimits_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.RateLimits.class, org.apache.mesos.v1.Protos.RateLimits.Builder.class); } private int bitField0_; public static final int LIMITS_FIELD_NUMBER = 1; private java.util.List limits_; /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public java.util.List getLimitsList() { return limits_; } /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public java.util.List getLimitsOrBuilderList() { return limits_; } /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public int getLimitsCount() { return limits_.size(); } /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public org.apache.mesos.v1.Protos.RateLimit getLimits(int index) { return limits_.get(index); } /** *
     * Items should have unique principals.
     * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public org.apache.mesos.v1.Protos.RateLimitOrBuilder getLimitsOrBuilder( int index) { return limits_.get(index); } public static final int AGGREGATE_DEFAULT_QPS_FIELD_NUMBER = 2; private double aggregateDefaultQps_; /** *
     * All the frameworks not specified in 'limits' get this default rate.
     * This rate is an aggregate rate for all of them, i.e., their combined
     * traffic is throttled together at this rate.
     * 
* * optional double aggregate_default_qps = 2; */ public boolean hasAggregateDefaultQps() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * All the frameworks not specified in 'limits' get this default rate.
     * This rate is an aggregate rate for all of them, i.e., their combined
     * traffic is throttled together at this rate.
     * 
* * optional double aggregate_default_qps = 2; */ public double getAggregateDefaultQps() { return aggregateDefaultQps_; } public static final int AGGREGATE_DEFAULT_CAPACITY_FIELD_NUMBER = 3; private long aggregateDefaultCapacity_; /** *
     * All the frameworks not specified in 'limits' get this default capacity.
     * This is an aggregate value similar to 'aggregate_default_qps'.
     * 
* * optional uint64 aggregate_default_capacity = 3; */ public boolean hasAggregateDefaultCapacity() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * All the frameworks not specified in 'limits' get this default capacity.
     * This is an aggregate value similar to 'aggregate_default_qps'.
     * 
* * optional uint64 aggregate_default_capacity = 3; */ public long getAggregateDefaultCapacity() { return aggregateDefaultCapacity_; } 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 < getLimitsCount(); i++) { if (!getLimits(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < limits_.size(); i++) { output.writeMessage(1, limits_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeDouble(2, aggregateDefaultQps_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(3, aggregateDefaultCapacity_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < limits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, limits_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, aggregateDefaultQps_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, aggregateDefaultCapacity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.RateLimits)) { return super.equals(obj); } org.apache.mesos.v1.Protos.RateLimits other = (org.apache.mesos.v1.Protos.RateLimits) obj; boolean result = true; result = result && getLimitsList() .equals(other.getLimitsList()); result = result && (hasAggregateDefaultQps() == other.hasAggregateDefaultQps()); if (hasAggregateDefaultQps()) { result = result && ( java.lang.Double.doubleToLongBits(getAggregateDefaultQps()) == java.lang.Double.doubleToLongBits( other.getAggregateDefaultQps())); } result = result && (hasAggregateDefaultCapacity() == other.hasAggregateDefaultCapacity()); if (hasAggregateDefaultCapacity()) { result = result && (getAggregateDefaultCapacity() == other.getAggregateDefaultCapacity()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getLimitsCount() > 0) { hash = (37 * hash) + LIMITS_FIELD_NUMBER; hash = (53 * hash) + getLimitsList().hashCode(); } if (hasAggregateDefaultQps()) { hash = (37 * hash) + AGGREGATE_DEFAULT_QPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAggregateDefaultQps())); } if (hasAggregateDefaultCapacity()) { hash = (37 * hash) + AGGREGATE_DEFAULT_CAPACITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAggregateDefaultCapacity()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.RateLimits parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RateLimits parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.RateLimits parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RateLimits 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.Protos.RateLimits parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RateLimits parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.RateLimits parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RateLimits parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.RateLimits parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RateLimits parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.RateLimits parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RateLimits parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.RateLimits prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Collection of RateLimit.
     * Frameworks without rate limits defined here are not throttled unless
     * 'aggregate_default_qps' is specified.
     * 
* * Protobuf type {@code mesos.v1.RateLimits} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.RateLimits) org.apache.mesos.v1.Protos.RateLimitsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimits_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimits_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.RateLimits.class, org.apache.mesos.v1.Protos.RateLimits.Builder.class); } // Construct using org.apache.mesos.v1.Protos.RateLimits.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLimitsFieldBuilder(); } } public Builder clear() { super.clear(); if (limitsBuilder_ == null) { limits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { limitsBuilder_.clear(); } aggregateDefaultQps_ = 0D; bitField0_ = (bitField0_ & ~0x00000002); aggregateDefaultCapacity_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RateLimits_descriptor; } public org.apache.mesos.v1.Protos.RateLimits getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.RateLimits.getDefaultInstance(); } public org.apache.mesos.v1.Protos.RateLimits build() { org.apache.mesos.v1.Protos.RateLimits result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.RateLimits buildPartial() { org.apache.mesos.v1.Protos.RateLimits result = new org.apache.mesos.v1.Protos.RateLimits(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (limitsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { limits_ = java.util.Collections.unmodifiableList(limits_); bitField0_ = (bitField0_ & ~0x00000001); } result.limits_ = limits_; } else { result.limits_ = limitsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.aggregateDefaultQps_ = aggregateDefaultQps_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.aggregateDefaultCapacity_ = aggregateDefaultCapacity_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.RateLimits) { return mergeFrom((org.apache.mesos.v1.Protos.RateLimits)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.RateLimits other) { if (other == org.apache.mesos.v1.Protos.RateLimits.getDefaultInstance()) return this; if (limitsBuilder_ == null) { if (!other.limits_.isEmpty()) { if (limits_.isEmpty()) { limits_ = other.limits_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLimitsIsMutable(); limits_.addAll(other.limits_); } onChanged(); } } else { if (!other.limits_.isEmpty()) { if (limitsBuilder_.isEmpty()) { limitsBuilder_.dispose(); limitsBuilder_ = null; limits_ = other.limits_; bitField0_ = (bitField0_ & ~0x00000001); limitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLimitsFieldBuilder() : null; } else { limitsBuilder_.addAllMessages(other.limits_); } } } if (other.hasAggregateDefaultQps()) { setAggregateDefaultQps(other.getAggregateDefaultQps()); } if (other.hasAggregateDefaultCapacity()) { setAggregateDefaultCapacity(other.getAggregateDefaultCapacity()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getLimitsCount(); i++) { if (!getLimits(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.Protos.RateLimits parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.RateLimits) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List limits_ = java.util.Collections.emptyList(); private void ensureLimitsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { limits_ = new java.util.ArrayList(limits_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.RateLimit, org.apache.mesos.v1.Protos.RateLimit.Builder, org.apache.mesos.v1.Protos.RateLimitOrBuilder> limitsBuilder_; /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public java.util.List getLimitsList() { if (limitsBuilder_ == null) { return java.util.Collections.unmodifiableList(limits_); } else { return limitsBuilder_.getMessageList(); } } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public int getLimitsCount() { if (limitsBuilder_ == null) { return limits_.size(); } else { return limitsBuilder_.getCount(); } } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public org.apache.mesos.v1.Protos.RateLimit getLimits(int index) { if (limitsBuilder_ == null) { return limits_.get(index); } else { return limitsBuilder_.getMessage(index); } } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder setLimits( int index, org.apache.mesos.v1.Protos.RateLimit value) { if (limitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLimitsIsMutable(); limits_.set(index, value); onChanged(); } else { limitsBuilder_.setMessage(index, value); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder setLimits( int index, org.apache.mesos.v1.Protos.RateLimit.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.set(index, builderForValue.build()); onChanged(); } else { limitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder addLimits(org.apache.mesos.v1.Protos.RateLimit value) { if (limitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLimitsIsMutable(); limits_.add(value); onChanged(); } else { limitsBuilder_.addMessage(value); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder addLimits( int index, org.apache.mesos.v1.Protos.RateLimit value) { if (limitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLimitsIsMutable(); limits_.add(index, value); onChanged(); } else { limitsBuilder_.addMessage(index, value); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder addLimits( org.apache.mesos.v1.Protos.RateLimit.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.add(builderForValue.build()); onChanged(); } else { limitsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder addLimits( int index, org.apache.mesos.v1.Protos.RateLimit.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.add(index, builderForValue.build()); onChanged(); } else { limitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder addAllLimits( java.lang.Iterable values) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, limits_); onChanged(); } else { limitsBuilder_.addAllMessages(values); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder clearLimits() { if (limitsBuilder_ == null) { limits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { limitsBuilder_.clear(); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public Builder removeLimits(int index) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.remove(index); onChanged(); } else { limitsBuilder_.remove(index); } return this; } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public org.apache.mesos.v1.Protos.RateLimit.Builder getLimitsBuilder( int index) { return getLimitsFieldBuilder().getBuilder(index); } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public org.apache.mesos.v1.Protos.RateLimitOrBuilder getLimitsOrBuilder( int index) { if (limitsBuilder_ == null) { return limits_.get(index); } else { return limitsBuilder_.getMessageOrBuilder(index); } } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public java.util.List getLimitsOrBuilderList() { if (limitsBuilder_ != null) { return limitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(limits_); } } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public org.apache.mesos.v1.Protos.RateLimit.Builder addLimitsBuilder() { return getLimitsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.RateLimit.getDefaultInstance()); } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public org.apache.mesos.v1.Protos.RateLimit.Builder addLimitsBuilder( int index) { return getLimitsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.RateLimit.getDefaultInstance()); } /** *
       * Items should have unique principals.
       * 
* * repeated .mesos.v1.RateLimit limits = 1; */ public java.util.List getLimitsBuilderList() { return getLimitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.RateLimit, org.apache.mesos.v1.Protos.RateLimit.Builder, org.apache.mesos.v1.Protos.RateLimitOrBuilder> getLimitsFieldBuilder() { if (limitsBuilder_ == null) { limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.RateLimit, org.apache.mesos.v1.Protos.RateLimit.Builder, org.apache.mesos.v1.Protos.RateLimitOrBuilder>( limits_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); limits_ = null; } return limitsBuilder_; } private double aggregateDefaultQps_ ; /** *
       * All the frameworks not specified in 'limits' get this default rate.
       * This rate is an aggregate rate for all of them, i.e., their combined
       * traffic is throttled together at this rate.
       * 
* * optional double aggregate_default_qps = 2; */ public boolean hasAggregateDefaultQps() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * All the frameworks not specified in 'limits' get this default rate.
       * This rate is an aggregate rate for all of them, i.e., their combined
       * traffic is throttled together at this rate.
       * 
* * optional double aggregate_default_qps = 2; */ public double getAggregateDefaultQps() { return aggregateDefaultQps_; } /** *
       * All the frameworks not specified in 'limits' get this default rate.
       * This rate is an aggregate rate for all of them, i.e., their combined
       * traffic is throttled together at this rate.
       * 
* * optional double aggregate_default_qps = 2; */ public Builder setAggregateDefaultQps(double value) { bitField0_ |= 0x00000002; aggregateDefaultQps_ = value; onChanged(); return this; } /** *
       * All the frameworks not specified in 'limits' get this default rate.
       * This rate is an aggregate rate for all of them, i.e., their combined
       * traffic is throttled together at this rate.
       * 
* * optional double aggregate_default_qps = 2; */ public Builder clearAggregateDefaultQps() { bitField0_ = (bitField0_ & ~0x00000002); aggregateDefaultQps_ = 0D; onChanged(); return this; } private long aggregateDefaultCapacity_ ; /** *
       * All the frameworks not specified in 'limits' get this default capacity.
       * This is an aggregate value similar to 'aggregate_default_qps'.
       * 
* * optional uint64 aggregate_default_capacity = 3; */ public boolean hasAggregateDefaultCapacity() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * All the frameworks not specified in 'limits' get this default capacity.
       * This is an aggregate value similar to 'aggregate_default_qps'.
       * 
* * optional uint64 aggregate_default_capacity = 3; */ public long getAggregateDefaultCapacity() { return aggregateDefaultCapacity_; } /** *
       * All the frameworks not specified in 'limits' get this default capacity.
       * This is an aggregate value similar to 'aggregate_default_qps'.
       * 
* * optional uint64 aggregate_default_capacity = 3; */ public Builder setAggregateDefaultCapacity(long value) { bitField0_ |= 0x00000004; aggregateDefaultCapacity_ = value; onChanged(); return this; } /** *
       * All the frameworks not specified in 'limits' get this default capacity.
       * This is an aggregate value similar to 'aggregate_default_qps'.
       * 
* * optional uint64 aggregate_default_capacity = 3; */ public Builder clearAggregateDefaultCapacity() { bitField0_ = (bitField0_ & ~0x00000004); aggregateDefaultCapacity_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.RateLimits) } // @@protoc_insertion_point(class_scope:mesos.v1.RateLimits) private static final org.apache.mesos.v1.Protos.RateLimits DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.RateLimits(); } public static org.apache.mesos.v1.Protos.RateLimits getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RateLimits parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RateLimits(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.RateLimits getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Image) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.Image.Type type = 1; */ boolean hasType(); /** * required .mesos.v1.Image.Type type = 1; */ org.apache.mesos.v1.Protos.Image.Type getType(); /** *
     * Only one of the following image messages should be set to match
     * the type.
     * 
* * optional .mesos.v1.Image.Appc appc = 2; */ boolean hasAppc(); /** *
     * Only one of the following image messages should be set to match
     * the type.
     * 
* * optional .mesos.v1.Image.Appc appc = 2; */ org.apache.mesos.v1.Protos.Image.Appc getAppc(); /** *
     * Only one of the following image messages should be set to match
     * the type.
     * 
* * optional .mesos.v1.Image.Appc appc = 2; */ org.apache.mesos.v1.Protos.Image.AppcOrBuilder getAppcOrBuilder(); /** * optional .mesos.v1.Image.Docker docker = 3; */ boolean hasDocker(); /** * optional .mesos.v1.Image.Docker docker = 3; */ org.apache.mesos.v1.Protos.Image.Docker getDocker(); /** * optional .mesos.v1.Image.Docker docker = 3; */ org.apache.mesos.v1.Protos.Image.DockerOrBuilder getDockerOrBuilder(); /** *
     * With this flag set to false, the mesos containerizer will pull
     * the docker/appc image from the registry even if the image is
     * already downloaded on the agent.
     * 
* * optional bool cached = 4 [default = true]; */ boolean hasCached(); /** *
     * With this flag set to false, the mesos containerizer will pull
     * the docker/appc image from the registry even if the image is
     * already downloaded on the agent.
     * 
* * optional bool cached = 4 [default = true]; */ boolean getCached(); } /** *
   **
   * Describe an image used by tasks or executors. Note that it's only
   * for tasks or executors launched by MesosContainerizer currently.
   * 
* * Protobuf type {@code mesos.v1.Image} */ public static final class Image extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Image) ImageOrBuilder { private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Image() { type_ = 1; cached_ = true; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Image.Type value = org.apache.mesos.v1.Protos.Image.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { org.apache.mesos.v1.Protos.Image.Appc.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = appc_.toBuilder(); } appc_ = input.readMessage(org.apache.mesos.v1.Protos.Image.Appc.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(appc_); appc_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.Image.Docker.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = docker_.toBuilder(); } docker_ = input.readMessage(org.apache.mesos.v1.Protos.Image.Docker.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(docker_); docker_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; cached_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Image.class, org.apache.mesos.v1.Protos.Image.Builder.class); } /** * Protobuf enum {@code mesos.v1.Image.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * APPC = 1; */ APPC(1), /** * DOCKER = 2; */ DOCKER(2), ; /** * APPC = 1; */ public static final int APPC_VALUE = 1; /** * DOCKER = 2; */ public static final int DOCKER_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 1: return APPC; case 2: return DOCKER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Image.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Image.Type) } public interface AppcOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Image.Appc) com.google.protobuf.MessageOrBuilder { /** *
       * The name of the image.
       * 
* * required string name = 1; */ boolean hasName(); /** *
       * The name of the image.
       * 
* * required string name = 1; */ java.lang.String getName(); /** *
       * The name of the image.
       * 
* * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
       * An image ID is a string of the format "hash-value", where
       * "hash" is the hash algorithm used and "value" is the hex
       * encoded string of the digest. Currently the only permitted
       * hash algorithm is sha512.
       * 
* * optional string id = 2; */ boolean hasId(); /** *
       * An image ID is a string of the format "hash-value", where
       * "hash" is the hash algorithm used and "value" is the hex
       * encoded string of the digest. Currently the only permitted
       * hash algorithm is sha512.
       * 
* * optional string id = 2; */ java.lang.String getId(); /** *
       * An image ID is a string of the format "hash-value", where
       * "hash" is the hash algorithm used and "value" is the hex
       * encoded string of the digest. Currently the only permitted
       * hash algorithm is sha512.
       * 
* * optional string id = 2; */ com.google.protobuf.ByteString getIdBytes(); /** *
       * Optional labels. Suggested labels: "version", "os", and "arch".
       * 
* * optional .mesos.v1.Labels labels = 3; */ boolean hasLabels(); /** *
       * Optional labels. Suggested labels: "version", "os", and "arch".
       * 
* * optional .mesos.v1.Labels labels = 3; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** *
       * Optional labels. Suggested labels: "version", "os", and "arch".
       * 
* * optional .mesos.v1.Labels labels = 3; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); } /** *
     * Protobuf for specifying an Appc container image. See:
     * https://github.com/appc/spec/blob/master/spec/aci.md
     * 
* * Protobuf type {@code mesos.v1.Image.Appc} */ public static final class Appc extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Image.Appc) AppcOrBuilder { private static final long serialVersionUID = 0L; // Use Appc.newBuilder() to construct. private Appc(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Appc() { name_ = ""; id_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Appc( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; id_ = bs; break; } case 26: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Appc_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Appc_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Image.Appc.class, org.apache.mesos.v1.Protos.Image.Appc.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
       * The name of the image.
       * 
* * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The name of the image.
       * 
* * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
       * The name of the image.
       * 
* * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** *
       * An image ID is a string of the format "hash-value", where
       * "hash" is the hash algorithm used and "value" is the hex
       * encoded string of the digest. Currently the only permitted
       * hash algorithm is sha512.
       * 
* * optional string id = 2; */ public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * An image ID is a string of the format "hash-value", where
       * "hash" is the hash algorithm used and "value" is the hex
       * encoded string of the digest. Currently the only permitted
       * hash algorithm is sha512.
       * 
* * optional string id = 2; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** *
       * An image ID is a string of the format "hash-value", where
       * "hash" is the hash algorithm used and "value" is the hex
       * encoded string of the digest. Currently the only permitted
       * hash algorithm is sha512.
       * 
* * optional string id = 2; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Labels labels_; /** *
       * Optional labels. Suggested labels: "version", "os", and "arch".
       * 
* * optional .mesos.v1.Labels labels = 3; */ public boolean hasLabels() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Optional labels. Suggested labels: "version", "os", and "arch".
       * 
* * optional .mesos.v1.Labels labels = 3; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** *
       * Optional labels. Suggested labels: "version", "os", and "arch".
       * 
* * optional .mesos.v1.Labels labels = 3; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getLabels()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLabels()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Image.Appc)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Image.Appc other = (org.apache.mesos.v1.Protos.Image.Appc) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Image.Appc parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image.Appc parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image.Appc parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image.Appc 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.Protos.Image.Appc parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image.Appc parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image.Appc parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image.Appc parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image.Appc parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image.Appc parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image.Appc parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image.Appc parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Image.Appc prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Protobuf for specifying an Appc container image. See:
       * https://github.com/appc/spec/blob/master/spec/aci.md
       * 
* * Protobuf type {@code mesos.v1.Image.Appc} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Image.Appc) org.apache.mesos.v1.Protos.Image.AppcOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Appc_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Appc_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Image.Appc.class, org.apache.mesos.v1.Protos.Image.Appc.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Image.Appc.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLabelsFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); id_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Appc_descriptor; } public org.apache.mesos.v1.Protos.Image.Appc getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Image.Appc.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Image.Appc build() { org.apache.mesos.v1.Protos.Image.Appc result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Image.Appc buildPartial() { org.apache.mesos.v1.Protos.Image.Appc result = new org.apache.mesos.v1.Protos.Image.Appc(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.id_ = id_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Image.Appc) { return mergeFrom((org.apache.mesos.v1.Protos.Image.Appc)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Image.Appc other) { if (other == org.apache.mesos.v1.Protos.Image.Appc.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasId()) { bitField0_ |= 0x00000002; id_ = other.id_; onChanged(); } if (other.hasLabels()) { mergeLabels(other.getLabels()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (hasLabels()) { if (!getLabels().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.Protos.Image.Appc parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Image.Appc) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
         * The name of the image.
         * 
* * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * The name of the image.
         * 
* * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * The name of the image.
         * 
* * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The name of the image.
         * 
* * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** *
         * The name of the image.
         * 
* * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
         * The name of the image.
         * 
* * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
         * An image ID is a string of the format "hash-value", where
         * "hash" is the hash algorithm used and "value" is the hex
         * encoded string of the digest. Currently the only permitted
         * hash algorithm is sha512.
         * 
* * optional string id = 2; */ public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * An image ID is a string of the format "hash-value", where
         * "hash" is the hash algorithm used and "value" is the hex
         * encoded string of the digest. Currently the only permitted
         * hash algorithm is sha512.
         * 
* * optional string id = 2; */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * An image ID is a string of the format "hash-value", where
         * "hash" is the hash algorithm used and "value" is the hex
         * encoded string of the digest. Currently the only permitted
         * hash algorithm is sha512.
         * 
* * optional string id = 2; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * An image ID is a string of the format "hash-value", where
         * "hash" is the hash algorithm used and "value" is the hex
         * encoded string of the digest. Currently the only permitted
         * hash algorithm is sha512.
         * 
* * optional string id = 2; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; id_ = value; onChanged(); return this; } /** *
         * An image ID is a string of the format "hash-value", where
         * "hash" is the hash algorithm used and "value" is the hex
         * encoded string of the digest. Currently the only permitted
         * hash algorithm is sha512.
         * 
* * optional string id = 2; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000002); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
         * An image ID is a string of the format "hash-value", where
         * "hash" is the hash algorithm used and "value" is the hex
         * encoded string of the digest. Currently the only permitted
         * hash algorithm is sha512.
         * 
* * optional string id = 2; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; id_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ public boolean hasLabels() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** *
         * Optional labels. Suggested labels: "version", "os", and "arch".
         * 
* * optional .mesos.v1.Labels labels = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Image.Appc) } // @@protoc_insertion_point(class_scope:mesos.v1.Image.Appc) private static final org.apache.mesos.v1.Protos.Image.Appc DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Image.Appc(); } public static org.apache.mesos.v1.Protos.Image.Appc getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Appc parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Appc(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Image.Appc getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DockerOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Image.Docker) com.google.protobuf.MessageOrBuilder { /** *
       * The name of the image. Expected format:
       *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
       * See: https://docs.docker.com/reference/commandline/pull/
       * 
* * required string name = 1; */ boolean hasName(); /** *
       * The name of the image. Expected format:
       *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
       * See: https://docs.docker.com/reference/commandline/pull/
       * 
* * required string name = 1; */ java.lang.String getName(); /** *
       * The name of the image. Expected format:
       *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
       * See: https://docs.docker.com/reference/commandline/pull/
       * 
* * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
       * Credential to authenticate with docker registry.
       * NOTE: This is not encrypted, therefore framework and operators
       * should enable SSL when passing this information.
       * This field has never been used in Mesos before and is
       * deprecated since Mesos 1.3. Please use `config` below
       * (see MESOS-7088 for details).
       * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated boolean hasCredential(); /** *
       * Credential to authenticate with docker registry.
       * NOTE: This is not encrypted, therefore framework and operators
       * should enable SSL when passing this information.
       * This field has never been used in Mesos before and is
       * deprecated since Mesos 1.3. Please use `config` below
       * (see MESOS-7088 for details).
       * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated org.apache.mesos.v1.Protos.Credential getCredential(); /** *
       * Credential to authenticate with docker registry.
       * NOTE: This is not encrypted, therefore framework and operators
       * should enable SSL when passing this information.
       * This field has never been used in Mesos before and is
       * deprecated since Mesos 1.3. Please use `config` below
       * (see MESOS-7088 for details).
       * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated org.apache.mesos.v1.Protos.CredentialOrBuilder getCredentialOrBuilder(); /** *
       * Docker config containing credentials to authenticate with
       * docker registry. The secret is expected to be a docker
       * config file in JSON format with UTF-8 character encoding.
       * 
* * optional .mesos.v1.Secret config = 3; */ boolean hasConfig(); /** *
       * Docker config containing credentials to authenticate with
       * docker registry. The secret is expected to be a docker
       * config file in JSON format with UTF-8 character encoding.
       * 
* * optional .mesos.v1.Secret config = 3; */ org.apache.mesos.v1.Protos.Secret getConfig(); /** *
       * Docker config containing credentials to authenticate with
       * docker registry. The secret is expected to be a docker
       * config file in JSON format with UTF-8 character encoding.
       * 
* * optional .mesos.v1.Secret config = 3; */ org.apache.mesos.v1.Protos.SecretOrBuilder getConfigOrBuilder(); } /** * Protobuf type {@code mesos.v1.Image.Docker} */ public static final class Docker extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Image.Docker) DockerOrBuilder { private static final long serialVersionUID = 0L; // Use Docker.newBuilder() to construct. private Docker(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Docker() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Docker( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { org.apache.mesos.v1.Protos.Credential.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = credential_.toBuilder(); } credential_ = input.readMessage(org.apache.mesos.v1.Protos.Credential.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(credential_); credential_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.Secret.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = config_.toBuilder(); } config_ = input.readMessage(org.apache.mesos.v1.Protos.Secret.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(config_); config_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Docker_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Docker_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Image.Docker.class, org.apache.mesos.v1.Protos.Image.Docker.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
       * The name of the image. Expected format:
       *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
       * See: https://docs.docker.com/reference/commandline/pull/
       * 
* * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The name of the image. Expected format:
       *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
       * See: https://docs.docker.com/reference/commandline/pull/
       * 
* * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
       * The name of the image. Expected format:
       *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
       * See: https://docs.docker.com/reference/commandline/pull/
       * 
* * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREDENTIAL_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Credential credential_; /** *
       * Credential to authenticate with docker registry.
       * NOTE: This is not encrypted, therefore framework and operators
       * should enable SSL when passing this information.
       * This field has never been used in Mesos before and is
       * deprecated since Mesos 1.3. Please use `config` below
       * (see MESOS-7088 for details).
       * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public boolean hasCredential() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Credential to authenticate with docker registry.
       * NOTE: This is not encrypted, therefore framework and operators
       * should enable SSL when passing this information.
       * This field has never been used in Mesos before and is
       * deprecated since Mesos 1.3. Please use `config` below
       * (see MESOS-7088 for details).
       * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.Credential getCredential() { return credential_ == null ? org.apache.mesos.v1.Protos.Credential.getDefaultInstance() : credential_; } /** *
       * Credential to authenticate with docker registry.
       * NOTE: This is not encrypted, therefore framework and operators
       * should enable SSL when passing this information.
       * This field has never been used in Mesos before and is
       * deprecated since Mesos 1.3. Please use `config` below
       * (see MESOS-7088 for details).
       * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.CredentialOrBuilder getCredentialOrBuilder() { return credential_ == null ? org.apache.mesos.v1.Protos.Credential.getDefaultInstance() : credential_; } public static final int CONFIG_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Secret config_; /** *
       * Docker config containing credentials to authenticate with
       * docker registry. The secret is expected to be a docker
       * config file in JSON format with UTF-8 character encoding.
       * 
* * optional .mesos.v1.Secret config = 3; */ public boolean hasConfig() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Docker config containing credentials to authenticate with
       * docker registry. The secret is expected to be a docker
       * config file in JSON format with UTF-8 character encoding.
       * 
* * optional .mesos.v1.Secret config = 3; */ public org.apache.mesos.v1.Protos.Secret getConfig() { return config_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : config_; } /** *
       * Docker config containing credentials to authenticate with
       * docker registry. The secret is expected to be a docker
       * config file in JSON format with UTF-8 character encoding.
       * 
* * optional .mesos.v1.Secret config = 3; */ public org.apache.mesos.v1.Protos.SecretOrBuilder getConfigOrBuilder() { return config_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : config_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (hasCredential()) { if (!getCredential().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasConfig()) { if (!getConfig().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getCredential()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getConfig()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCredential()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Image.Docker)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Image.Docker other = (org.apache.mesos.v1.Protos.Image.Docker) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasCredential() == other.hasCredential()); if (hasCredential()) { result = result && getCredential() .equals(other.getCredential()); } result = result && (hasConfig() == other.hasConfig()); if (hasConfig()) { result = result && getConfig() .equals(other.getConfig()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasCredential()) { hash = (37 * hash) + CREDENTIAL_FIELD_NUMBER; hash = (53 * hash) + getCredential().hashCode(); } if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Image.Docker parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image.Docker parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image.Docker parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image.Docker 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.Protos.Image.Docker parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image.Docker parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image.Docker parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image.Docker parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image.Docker parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image.Docker parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image.Docker parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image.Docker parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Image.Docker prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Image.Docker} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Image.Docker) org.apache.mesos.v1.Protos.Image.DockerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Docker_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Docker_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Image.Docker.class, org.apache.mesos.v1.Protos.Image.Docker.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Image.Docker.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCredentialFieldBuilder(); getConfigFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (credentialBuilder_ == null) { credential_ = null; } else { credentialBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (configBuilder_ == null) { config_ = null; } else { configBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_Docker_descriptor; } public org.apache.mesos.v1.Protos.Image.Docker getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Image.Docker.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Image.Docker build() { org.apache.mesos.v1.Protos.Image.Docker result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Image.Docker buildPartial() { org.apache.mesos.v1.Protos.Image.Docker result = new org.apache.mesos.v1.Protos.Image.Docker(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (credentialBuilder_ == null) { result.credential_ = credential_; } else { result.credential_ = credentialBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Image.Docker) { return mergeFrom((org.apache.mesos.v1.Protos.Image.Docker)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Image.Docker other) { if (other == org.apache.mesos.v1.Protos.Image.Docker.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasCredential()) { mergeCredential(other.getCredential()); } if (other.hasConfig()) { mergeConfig(other.getConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (hasCredential()) { if (!getCredential().isInitialized()) { return false; } } if (hasConfig()) { if (!getConfig().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.Protos.Image.Docker parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Image.Docker) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
         * The name of the image. Expected format:
         *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
         * See: https://docs.docker.com/reference/commandline/pull/
         * 
* * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * The name of the image. Expected format:
         *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
         * See: https://docs.docker.com/reference/commandline/pull/
         * 
* * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * The name of the image. Expected format:
         *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
         * See: https://docs.docker.com/reference/commandline/pull/
         * 
* * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The name of the image. Expected format:
         *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
         * See: https://docs.docker.com/reference/commandline/pull/
         * 
* * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** *
         * The name of the image. Expected format:
         *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
         * See: https://docs.docker.com/reference/commandline/pull/
         * 
* * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
         * The name of the image. Expected format:
         *   [REGISTRY_HOST[:REGISTRY_PORT]/]REPOSITORY[:TAG|@TYPE:DIGEST]
         * See: https://docs.docker.com/reference/commandline/pull/
         * 
* * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Credential credential_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Credential, org.apache.mesos.v1.Protos.Credential.Builder, org.apache.mesos.v1.Protos.CredentialOrBuilder> credentialBuilder_; /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public boolean hasCredential() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.Credential getCredential() { if (credentialBuilder_ == null) { return credential_ == null ? org.apache.mesos.v1.Protos.Credential.getDefaultInstance() : credential_; } else { return credentialBuilder_.getMessage(); } } /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setCredential(org.apache.mesos.v1.Protos.Credential value) { if (credentialBuilder_ == null) { if (value == null) { throw new NullPointerException(); } credential_ = value; onChanged(); } else { credentialBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setCredential( org.apache.mesos.v1.Protos.Credential.Builder builderForValue) { if (credentialBuilder_ == null) { credential_ = builderForValue.build(); onChanged(); } else { credentialBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeCredential(org.apache.mesos.v1.Protos.Credential value) { if (credentialBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && credential_ != null && credential_ != org.apache.mesos.v1.Protos.Credential.getDefaultInstance()) { credential_ = org.apache.mesos.v1.Protos.Credential.newBuilder(credential_).mergeFrom(value).buildPartial(); } else { credential_ = value; } onChanged(); } else { credentialBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder clearCredential() { if (credentialBuilder_ == null) { credential_ = null; onChanged(); } else { credentialBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.Credential.Builder getCredentialBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCredentialFieldBuilder().getBuilder(); } /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.CredentialOrBuilder getCredentialOrBuilder() { if (credentialBuilder_ != null) { return credentialBuilder_.getMessageOrBuilder(); } else { return credential_ == null ? org.apache.mesos.v1.Protos.Credential.getDefaultInstance() : credential_; } } /** *
         * Credential to authenticate with docker registry.
         * NOTE: This is not encrypted, therefore framework and operators
         * should enable SSL when passing this information.
         * This field has never been used in Mesos before and is
         * deprecated since Mesos 1.3. Please use `config` below
         * (see MESOS-7088 for details).
         * 
* * optional .mesos.v1.Credential credential = 2 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Credential, org.apache.mesos.v1.Protos.Credential.Builder, org.apache.mesos.v1.Protos.CredentialOrBuilder> getCredentialFieldBuilder() { if (credentialBuilder_ == null) { credentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Credential, org.apache.mesos.v1.Protos.Credential.Builder, org.apache.mesos.v1.Protos.CredentialOrBuilder>( getCredential(), getParentForChildren(), isClean()); credential_ = null; } return credentialBuilder_; } private org.apache.mesos.v1.Protos.Secret config_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder> configBuilder_; /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ public boolean hasConfig() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ public org.apache.mesos.v1.Protos.Secret getConfig() { if (configBuilder_ == null) { return config_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ public Builder setConfig(org.apache.mesos.v1.Protos.Secret value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ public Builder setConfig( org.apache.mesos.v1.Protos.Secret.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ public Builder mergeConfig(org.apache.mesos.v1.Protos.Secret value) { if (configBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && config_ != null && config_ != org.apache.mesos.v1.Protos.Secret.getDefaultInstance()) { config_ = org.apache.mesos.v1.Protos.Secret.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { configBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ public org.apache.mesos.v1.Protos.Secret.Builder getConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ public org.apache.mesos.v1.Protos.SecretOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : config_; } } /** *
         * Docker config containing credentials to authenticate with
         * docker registry. The secret is expected to be a docker
         * config file in JSON format with UTF-8 character encoding.
         * 
* * optional .mesos.v1.Secret config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Image.Docker) } // @@protoc_insertion_point(class_scope:mesos.v1.Image.Docker) private static final org.apache.mesos.v1.Protos.Image.Docker DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Image.Docker(); } public static org.apache.mesos.v1.Protos.Image.Docker getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Docker parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Docker(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Image.Docker getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required .mesos.v1.Image.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Image.Type type = 1; */ public org.apache.mesos.v1.Protos.Image.Type getType() { org.apache.mesos.v1.Protos.Image.Type result = org.apache.mesos.v1.Protos.Image.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Image.Type.APPC : result; } public static final int APPC_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Image.Appc appc_; /** *
     * Only one of the following image messages should be set to match
     * the type.
     * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public boolean hasAppc() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Only one of the following image messages should be set to match
     * the type.
     * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public org.apache.mesos.v1.Protos.Image.Appc getAppc() { return appc_ == null ? org.apache.mesos.v1.Protos.Image.Appc.getDefaultInstance() : appc_; } /** *
     * Only one of the following image messages should be set to match
     * the type.
     * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public org.apache.mesos.v1.Protos.Image.AppcOrBuilder getAppcOrBuilder() { return appc_ == null ? org.apache.mesos.v1.Protos.Image.Appc.getDefaultInstance() : appc_; } public static final int DOCKER_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Image.Docker docker_; /** * optional .mesos.v1.Image.Docker docker = 3; */ public boolean hasDocker() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Image.Docker docker = 3; */ public org.apache.mesos.v1.Protos.Image.Docker getDocker() { return docker_ == null ? org.apache.mesos.v1.Protos.Image.Docker.getDefaultInstance() : docker_; } /** * optional .mesos.v1.Image.Docker docker = 3; */ public org.apache.mesos.v1.Protos.Image.DockerOrBuilder getDockerOrBuilder() { return docker_ == null ? org.apache.mesos.v1.Protos.Image.Docker.getDefaultInstance() : docker_; } public static final int CACHED_FIELD_NUMBER = 4; private boolean cached_; /** *
     * With this flag set to false, the mesos containerizer will pull
     * the docker/appc image from the registry even if the image is
     * already downloaded on the agent.
     * 
* * optional bool cached = 4 [default = true]; */ public boolean hasCached() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * With this flag set to false, the mesos containerizer will pull
     * the docker/appc image from the registry even if the image is
     * already downloaded on the agent.
     * 
* * optional bool cached = 4 [default = true]; */ public boolean getCached() { return cached_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasAppc()) { if (!getAppc().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDocker()) { if (!getDocker().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getAppc()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getDocker()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, cached_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAppc()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDocker()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, cached_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Image)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Image other = (org.apache.mesos.v1.Protos.Image) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasAppc() == other.hasAppc()); if (hasAppc()) { result = result && getAppc() .equals(other.getAppc()); } result = result && (hasDocker() == other.hasDocker()); if (hasDocker()) { result = result && getDocker() .equals(other.getDocker()); } result = result && (hasCached() == other.hasCached()); if (hasCached()) { result = result && (getCached() == other.getCached()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasAppc()) { hash = (37 * hash) + APPC_FIELD_NUMBER; hash = (53 * hash) + getAppc().hashCode(); } if (hasDocker()) { hash = (37 * hash) + DOCKER_FIELD_NUMBER; hash = (53 * hash) + getDocker().hashCode(); } if (hasCached()) { hash = (37 * hash) + CACHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCached()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Image parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image 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.Protos.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Image parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Image parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describe an image used by tasks or executors. Note that it's only
     * for tasks or executors launched by MesosContainerizer currently.
     * 
* * Protobuf type {@code mesos.v1.Image} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Image) org.apache.mesos.v1.Protos.ImageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Image.class, org.apache.mesos.v1.Protos.Image.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Image.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAppcFieldBuilder(); getDockerFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 1; bitField0_ = (bitField0_ & ~0x00000001); if (appcBuilder_ == null) { appc_ = null; } else { appcBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (dockerBuilder_ == null) { docker_ = null; } else { dockerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); cached_ = true; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Image_descriptor; } public org.apache.mesos.v1.Protos.Image getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Image.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Image build() { org.apache.mesos.v1.Protos.Image result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Image buildPartial() { org.apache.mesos.v1.Protos.Image result = new org.apache.mesos.v1.Protos.Image(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 (appcBuilder_ == null) { result.appc_ = appc_; } else { result.appc_ = appcBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (dockerBuilder_ == null) { result.docker_ = docker_; } else { result.docker_ = dockerBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.cached_ = cached_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Image) { return mergeFrom((org.apache.mesos.v1.Protos.Image)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Image other) { if (other == org.apache.mesos.v1.Protos.Image.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasAppc()) { mergeAppc(other.getAppc()); } if (other.hasDocker()) { mergeDocker(other.getDocker()); } if (other.hasCached()) { setCached(other.getCached()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (hasAppc()) { if (!getAppc().isInitialized()) { return false; } } if (hasDocker()) { if (!getDocker().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.Protos.Image parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Image) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 1; /** * required .mesos.v1.Image.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Image.Type type = 1; */ public org.apache.mesos.v1.Protos.Image.Type getType() { org.apache.mesos.v1.Protos.Image.Type result = org.apache.mesos.v1.Protos.Image.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Image.Type.APPC : result; } /** * required .mesos.v1.Image.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.Image.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * required .mesos.v1.Image.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; onChanged(); return this; } private org.apache.mesos.v1.Protos.Image.Appc appc_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image.Appc, org.apache.mesos.v1.Protos.Image.Appc.Builder, org.apache.mesos.v1.Protos.Image.AppcOrBuilder> appcBuilder_; /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public boolean hasAppc() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public org.apache.mesos.v1.Protos.Image.Appc getAppc() { if (appcBuilder_ == null) { return appc_ == null ? org.apache.mesos.v1.Protos.Image.Appc.getDefaultInstance() : appc_; } else { return appcBuilder_.getMessage(); } } /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public Builder setAppc(org.apache.mesos.v1.Protos.Image.Appc value) { if (appcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appc_ = value; onChanged(); } else { appcBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public Builder setAppc( org.apache.mesos.v1.Protos.Image.Appc.Builder builderForValue) { if (appcBuilder_ == null) { appc_ = builderForValue.build(); onChanged(); } else { appcBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public Builder mergeAppc(org.apache.mesos.v1.Protos.Image.Appc value) { if (appcBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && appc_ != null && appc_ != org.apache.mesos.v1.Protos.Image.Appc.getDefaultInstance()) { appc_ = org.apache.mesos.v1.Protos.Image.Appc.newBuilder(appc_).mergeFrom(value).buildPartial(); } else { appc_ = value; } onChanged(); } else { appcBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public Builder clearAppc() { if (appcBuilder_ == null) { appc_ = null; onChanged(); } else { appcBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public org.apache.mesos.v1.Protos.Image.Appc.Builder getAppcBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAppcFieldBuilder().getBuilder(); } /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ public org.apache.mesos.v1.Protos.Image.AppcOrBuilder getAppcOrBuilder() { if (appcBuilder_ != null) { return appcBuilder_.getMessageOrBuilder(); } else { return appc_ == null ? org.apache.mesos.v1.Protos.Image.Appc.getDefaultInstance() : appc_; } } /** *
       * Only one of the following image messages should be set to match
       * the type.
       * 
* * optional .mesos.v1.Image.Appc appc = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image.Appc, org.apache.mesos.v1.Protos.Image.Appc.Builder, org.apache.mesos.v1.Protos.Image.AppcOrBuilder> getAppcFieldBuilder() { if (appcBuilder_ == null) { appcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image.Appc, org.apache.mesos.v1.Protos.Image.Appc.Builder, org.apache.mesos.v1.Protos.Image.AppcOrBuilder>( getAppc(), getParentForChildren(), isClean()); appc_ = null; } return appcBuilder_; } private org.apache.mesos.v1.Protos.Image.Docker docker_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image.Docker, org.apache.mesos.v1.Protos.Image.Docker.Builder, org.apache.mesos.v1.Protos.Image.DockerOrBuilder> dockerBuilder_; /** * optional .mesos.v1.Image.Docker docker = 3; */ public boolean hasDocker() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Image.Docker docker = 3; */ public org.apache.mesos.v1.Protos.Image.Docker getDocker() { if (dockerBuilder_ == null) { return docker_ == null ? org.apache.mesos.v1.Protos.Image.Docker.getDefaultInstance() : docker_; } else { return dockerBuilder_.getMessage(); } } /** * optional .mesos.v1.Image.Docker docker = 3; */ public Builder setDocker(org.apache.mesos.v1.Protos.Image.Docker value) { if (dockerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } docker_ = value; onChanged(); } else { dockerBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Image.Docker docker = 3; */ public Builder setDocker( org.apache.mesos.v1.Protos.Image.Docker.Builder builderForValue) { if (dockerBuilder_ == null) { docker_ = builderForValue.build(); onChanged(); } else { dockerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Image.Docker docker = 3; */ public Builder mergeDocker(org.apache.mesos.v1.Protos.Image.Docker value) { if (dockerBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && docker_ != null && docker_ != org.apache.mesos.v1.Protos.Image.Docker.getDefaultInstance()) { docker_ = org.apache.mesos.v1.Protos.Image.Docker.newBuilder(docker_).mergeFrom(value).buildPartial(); } else { docker_ = value; } onChanged(); } else { dockerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Image.Docker docker = 3; */ public Builder clearDocker() { if (dockerBuilder_ == null) { docker_ = null; onChanged(); } else { dockerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.Image.Docker docker = 3; */ public org.apache.mesos.v1.Protos.Image.Docker.Builder getDockerBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDockerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Image.Docker docker = 3; */ public org.apache.mesos.v1.Protos.Image.DockerOrBuilder getDockerOrBuilder() { if (dockerBuilder_ != null) { return dockerBuilder_.getMessageOrBuilder(); } else { return docker_ == null ? org.apache.mesos.v1.Protos.Image.Docker.getDefaultInstance() : docker_; } } /** * optional .mesos.v1.Image.Docker docker = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image.Docker, org.apache.mesos.v1.Protos.Image.Docker.Builder, org.apache.mesos.v1.Protos.Image.DockerOrBuilder> getDockerFieldBuilder() { if (dockerBuilder_ == null) { dockerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image.Docker, org.apache.mesos.v1.Protos.Image.Docker.Builder, org.apache.mesos.v1.Protos.Image.DockerOrBuilder>( getDocker(), getParentForChildren(), isClean()); docker_ = null; } return dockerBuilder_; } private boolean cached_ = true; /** *
       * With this flag set to false, the mesos containerizer will pull
       * the docker/appc image from the registry even if the image is
       * already downloaded on the agent.
       * 
* * optional bool cached = 4 [default = true]; */ public boolean hasCached() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * With this flag set to false, the mesos containerizer will pull
       * the docker/appc image from the registry even if the image is
       * already downloaded on the agent.
       * 
* * optional bool cached = 4 [default = true]; */ public boolean getCached() { return cached_; } /** *
       * With this flag set to false, the mesos containerizer will pull
       * the docker/appc image from the registry even if the image is
       * already downloaded on the agent.
       * 
* * optional bool cached = 4 [default = true]; */ public Builder setCached(boolean value) { bitField0_ |= 0x00000008; cached_ = value; onChanged(); return this; } /** *
       * With this flag set to false, the mesos containerizer will pull
       * the docker/appc image from the registry even if the image is
       * already downloaded on the agent.
       * 
* * optional bool cached = 4 [default = true]; */ public Builder clearCached() { bitField0_ = (bitField0_ & ~0x00000008); cached_ = true; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Image) } // @@protoc_insertion_point(class_scope:mesos.v1.Image) private static final org.apache.mesos.v1.Protos.Image DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Image(); } public static org.apache.mesos.v1.Protos.Image getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Image parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Image(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MountPropagationOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.MountPropagation) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.MountPropagation.Mode mode = 1; */ boolean hasMode(); /** * optional .mesos.v1.MountPropagation.Mode mode = 1; */ org.apache.mesos.v1.Protos.MountPropagation.Mode getMode(); } /** *
   **
   * Describes how the mount will be propagated for a volume. See the
   * following doc for more details about mount propagation:
   * https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt
   * 
* * Protobuf type {@code mesos.v1.MountPropagation} */ public static final class MountPropagation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.MountPropagation) MountPropagationOrBuilder { private static final long serialVersionUID = 0L; // Use MountPropagation.newBuilder() to construct. private MountPropagation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MountPropagation() { mode_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MountPropagation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.MountPropagation.Mode value = org.apache.mesos.v1.Protos.MountPropagation.Mode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; mode_ = rawValue; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MountPropagation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MountPropagation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MountPropagation.class, org.apache.mesos.v1.Protos.MountPropagation.Builder.class); } /** * Protobuf enum {@code mesos.v1.MountPropagation.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** *
       * The volume in a container will receive new mounts from the host
       * or other containers, but filesystems mounted inside the
       * container won't be propagated to the host or other containers.
       * This is currently the default behavior for all volumes.
       * 
* * HOST_TO_CONTAINER = 1; */ HOST_TO_CONTAINER(1), /** *
       * The volume in a container will receive new mounts from the host
       * or other containers, and its own mounts will be propagated from
       * the container to the host or other containers.
       * 
* * BIDIRECTIONAL = 2; */ BIDIRECTIONAL(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
       * The volume in a container will receive new mounts from the host
       * or other containers, but filesystems mounted inside the
       * container won't be propagated to the host or other containers.
       * This is currently the default behavior for all volumes.
       * 
* * HOST_TO_CONTAINER = 1; */ public static final int HOST_TO_CONTAINER_VALUE = 1; /** *
       * The volume in a container will receive new mounts from the host
       * or other containers, and its own mounts will be propagated from
       * the container to the host or other containers.
       * 
* * BIDIRECTIONAL = 2; */ public static final int BIDIRECTIONAL_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode valueOf(int value) { return forNumber(value); } public static Mode forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return HOST_TO_CONTAINER; case 2: return BIDIRECTIONAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.MountPropagation.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.MountPropagation.Mode) } private int bitField0_; public static final int MODE_FIELD_NUMBER = 1; private int mode_; /** * optional .mesos.v1.MountPropagation.Mode mode = 1; */ public boolean hasMode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.MountPropagation.Mode mode = 1; */ public org.apache.mesos.v1.Protos.MountPropagation.Mode getMode() { org.apache.mesos.v1.Protos.MountPropagation.Mode result = org.apache.mesos.v1.Protos.MountPropagation.Mode.valueOf(mode_); return result == null ? org.apache.mesos.v1.Protos.MountPropagation.Mode.UNKNOWN : result; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, mode_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, mode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.MountPropagation)) { return super.equals(obj); } org.apache.mesos.v1.Protos.MountPropagation other = (org.apache.mesos.v1.Protos.MountPropagation) obj; boolean result = true; result = result && (hasMode() == other.hasMode()); if (hasMode()) { result = result && mode_ == other.mode_; } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMode()) { hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.MountPropagation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MountPropagation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MountPropagation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MountPropagation 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.Protos.MountPropagation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.MountPropagation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.MountPropagation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MountPropagation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MountPropagation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MountPropagation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.MountPropagation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.MountPropagation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.MountPropagation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes how the mount will be propagated for a volume. See the
     * following doc for more details about mount propagation:
     * https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt
     * 
* * Protobuf type {@code mesos.v1.MountPropagation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.MountPropagation) org.apache.mesos.v1.Protos.MountPropagationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MountPropagation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MountPropagation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.MountPropagation.class, org.apache.mesos.v1.Protos.MountPropagation.Builder.class); } // Construct using org.apache.mesos.v1.Protos.MountPropagation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); mode_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_MountPropagation_descriptor; } public org.apache.mesos.v1.Protos.MountPropagation getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.MountPropagation.getDefaultInstance(); } public org.apache.mesos.v1.Protos.MountPropagation build() { org.apache.mesos.v1.Protos.MountPropagation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.MountPropagation buildPartial() { org.apache.mesos.v1.Protos.MountPropagation result = new org.apache.mesos.v1.Protos.MountPropagation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.mode_ = mode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.MountPropagation) { return mergeFrom((org.apache.mesos.v1.Protos.MountPropagation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.MountPropagation other) { if (other == org.apache.mesos.v1.Protos.MountPropagation.getDefaultInstance()) return this; if (other.hasMode()) { setMode(other.getMode()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.MountPropagation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.MountPropagation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int mode_ = 0; /** * optional .mesos.v1.MountPropagation.Mode mode = 1; */ public boolean hasMode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.MountPropagation.Mode mode = 1; */ public org.apache.mesos.v1.Protos.MountPropagation.Mode getMode() { org.apache.mesos.v1.Protos.MountPropagation.Mode result = org.apache.mesos.v1.Protos.MountPropagation.Mode.valueOf(mode_); return result == null ? org.apache.mesos.v1.Protos.MountPropagation.Mode.UNKNOWN : result; } /** * optional .mesos.v1.MountPropagation.Mode mode = 1; */ public Builder setMode(org.apache.mesos.v1.Protos.MountPropagation.Mode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mode_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.MountPropagation.Mode mode = 1; */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000001); mode_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.MountPropagation) } // @@protoc_insertion_point(class_scope:mesos.v1.MountPropagation) private static final org.apache.mesos.v1.Protos.MountPropagation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.MountPropagation(); } public static org.apache.mesos.v1.Protos.MountPropagation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MountPropagation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MountPropagation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.MountPropagation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Volume) com.google.protobuf.MessageOrBuilder { /** *
     * TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
     * 
* * required .mesos.v1.Volume.Mode mode = 3; */ boolean hasMode(); /** *
     * TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
     * 
* * required .mesos.v1.Volume.Mode mode = 3; */ org.apache.mesos.v1.Protos.Volume.Mode getMode(); /** *
     * Path pointing to a directory or file in the container. If the
     * path is a relative path, it is relative to the container work
     * directory. If the path is an absolute path, that path must
     * already exist.
     * 
* * required string container_path = 1; */ boolean hasContainerPath(); /** *
     * Path pointing to a directory or file in the container. If the
     * path is a relative path, it is relative to the container work
     * directory. If the path is an absolute path, that path must
     * already exist.
     * 
* * required string container_path = 1; */ java.lang.String getContainerPath(); /** *
     * Path pointing to a directory or file in the container. If the
     * path is a relative path, it is relative to the container work
     * directory. If the path is an absolute path, that path must
     * already exist.
     * 
* * required string container_path = 1; */ com.google.protobuf.ByteString getContainerPathBytes(); /** *
     * Absolute path pointing to a directory or file on the host or a
     * path relative to the container work directory.
     * 
* * optional string host_path = 2; */ boolean hasHostPath(); /** *
     * Absolute path pointing to a directory or file on the host or a
     * path relative to the container work directory.
     * 
* * optional string host_path = 2; */ java.lang.String getHostPath(); /** *
     * Absolute path pointing to a directory or file on the host or a
     * path relative to the container work directory.
     * 
* * optional string host_path = 2; */ com.google.protobuf.ByteString getHostPathBytes(); /** *
     * The source of the volume is an Image which describes a root
     * filesystem which will be provisioned by Mesos.
     * 
* * optional .mesos.v1.Image image = 4; */ boolean hasImage(); /** *
     * The source of the volume is an Image which describes a root
     * filesystem which will be provisioned by Mesos.
     * 
* * optional .mesos.v1.Image image = 4; */ org.apache.mesos.v1.Protos.Image getImage(); /** *
     * The source of the volume is an Image which describes a root
     * filesystem which will be provisioned by Mesos.
     * 
* * optional .mesos.v1.Image image = 4; */ org.apache.mesos.v1.Protos.ImageOrBuilder getImageOrBuilder(); /** * optional .mesos.v1.Volume.Source source = 5; */ boolean hasSource(); /** * optional .mesos.v1.Volume.Source source = 5; */ org.apache.mesos.v1.Protos.Volume.Source getSource(); /** * optional .mesos.v1.Volume.Source source = 5; */ org.apache.mesos.v1.Protos.Volume.SourceOrBuilder getSourceOrBuilder(); } /** *
   **
   * Describes a volume mapping either from host to container or vice
   * versa. Both paths can either refer to a directory or a file.
   * 
* * Protobuf type {@code mesos.v1.Volume} */ public static final class Volume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Volume) VolumeOrBuilder { private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Volume() { mode_ = 1; containerPath_ = ""; hostPath_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; containerPath_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; hostPath_ = bs; break; } case 24: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Volume.Mode value = org.apache.mesos.v1.Protos.Volume.Mode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000001; mode_ = rawValue; } break; } case 34: { org.apache.mesos.v1.Protos.Image.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = image_.toBuilder(); } image_ = input.readMessage(org.apache.mesos.v1.Protos.Image.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(image_); image_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { org.apache.mesos.v1.Protos.Volume.Source.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(org.apache.mesos.v1.Protos.Volume.Source.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.class, org.apache.mesos.v1.Protos.Volume.Builder.class); } /** * Protobuf enum {@code mesos.v1.Volume.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * read-write.
       * 
* * RW = 1; */ RW(1), /** *
       * read-only.
       * 
* * RO = 2; */ RO(2), ; /** *
       * read-write.
       * 
* * RW = 1; */ public static final int RW_VALUE = 1; /** *
       * read-only.
       * 
* * RO = 2; */ public static final int RO_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode valueOf(int value) { return forNumber(value); } public static Mode forNumber(int value) { switch (value) { case 1: return RW; case 2: return RO; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Volume.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Volume.Mode) } public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Volume.Source) com.google.protobuf.MessageOrBuilder { /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.Volume.Source.Type type = 1; */ boolean hasType(); /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.Volume.Source.Type type = 1; */ org.apache.mesos.v1.Protos.Volume.Source.Type getType(); /** *
       * The source of the volume created by docker volume driver.
       * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ boolean hasDockerVolume(); /** *
       * The source of the volume created by docker volume driver.
       * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ org.apache.mesos.v1.Protos.Volume.Source.DockerVolume getDockerVolume(); /** *
       * The source of the volume created by docker volume driver.
       * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ org.apache.mesos.v1.Protos.Volume.Source.DockerVolumeOrBuilder getDockerVolumeOrBuilder(); /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ boolean hasHostPath(); /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ org.apache.mesos.v1.Protos.Volume.Source.HostPath getHostPath(); /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ org.apache.mesos.v1.Protos.Volume.Source.HostPathOrBuilder getHostPathOrBuilder(); /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ boolean hasSandboxPath(); /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ org.apache.mesos.v1.Protos.Volume.Source.SandboxPath getSandboxPath(); /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ org.apache.mesos.v1.Protos.Volume.Source.SandboxPathOrBuilder getSandboxPathOrBuilder(); /** *
       * The volume/secret isolator uses the secret-fetcher module (third-party or
       * internal) downloads the secret and makes it available at container_path.
       * 
* * optional .mesos.v1.Secret secret = 4; */ boolean hasSecret(); /** *
       * The volume/secret isolator uses the secret-fetcher module (third-party or
       * internal) downloads the secret and makes it available at container_path.
       * 
* * optional .mesos.v1.Secret secret = 4; */ org.apache.mesos.v1.Protos.Secret getSecret(); /** *
       * The volume/secret isolator uses the secret-fetcher module (third-party or
       * internal) downloads the secret and makes it available at container_path.
       * 
* * optional .mesos.v1.Secret secret = 4; */ org.apache.mesos.v1.Protos.SecretOrBuilder getSecretOrBuilder(); } /** *
     * Describes where a volume originates from.
     * 
* * Protobuf type {@code mesos.v1.Volume.Source} */ public static final class Source extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Volume.Source) SourceOrBuilder { private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Source() { type_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Volume.Source.Type value = org.apache.mesos.v1.Protos.Volume.Source.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = dockerVolume_.toBuilder(); } dockerVolume_ = input.readMessage(org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dockerVolume_); dockerVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = sandboxPath_.toBuilder(); } sandboxPath_ = input.readMessage(org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sandboxPath_); sandboxPath_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 34: { org.apache.mesos.v1.Protos.Secret.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = secret_.toBuilder(); } secret_ = input.readMessage(org.apache.mesos.v1.Protos.Secret.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secret_); secret_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 42: { org.apache.mesos.v1.Protos.Volume.Source.HostPath.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = hostPath_.toBuilder(); } hostPath_ = input.readMessage(org.apache.mesos.v1.Protos.Volume.Source.HostPath.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hostPath_); hostPath_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.Source.class, org.apache.mesos.v1.Protos.Volume.Source.Builder.class); } /** * Protobuf enum {@code mesos.v1.Volume.Source.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** *
         * This must be the first enum value in this list, to
         * ensure that if 'type' is not set, the default value
         * is UNKNOWN. This enables enum values to be added
         * in a backwards-compatible way. See: MESOS-4997.
         * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
         * TODO(gyliu513): Add IMAGE as volume source type.
         * 
* * DOCKER_VOLUME = 1; */ DOCKER_VOLUME(1), /** * HOST_PATH = 4; */ HOST_PATH(4), /** * SANDBOX_PATH = 2; */ SANDBOX_PATH(2), /** * SECRET = 3; */ SECRET(3), ; /** *
         * This must be the first enum value in this list, to
         * ensure that if 'type' is not set, the default value
         * is UNKNOWN. This enables enum values to be added
         * in a backwards-compatible way. See: MESOS-4997.
         * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
         * TODO(gyliu513): Add IMAGE as volume source type.
         * 
* * DOCKER_VOLUME = 1; */ public static final int DOCKER_VOLUME_VALUE = 1; /** * HOST_PATH = 4; */ public static final int HOST_PATH_VALUE = 4; /** * SANDBOX_PATH = 2; */ public static final int SANDBOX_PATH_VALUE = 2; /** * SECRET = 3; */ public static final int SECRET_VALUE = 3; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return DOCKER_VOLUME; case 4: return HOST_PATH; case 2: return SANDBOX_PATH; case 3: return SECRET; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Volume.Source.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Volume.Source.Type) } public interface DockerVolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Volume.Source.DockerVolume) com.google.protobuf.MessageOrBuilder { /** *
         * Driver of the volume, it can be flocker, convoy, raxrey etc.
         * 
* * optional string driver = 1; */ boolean hasDriver(); /** *
         * Driver of the volume, it can be flocker, convoy, raxrey etc.
         * 
* * optional string driver = 1; */ java.lang.String getDriver(); /** *
         * Driver of the volume, it can be flocker, convoy, raxrey etc.
         * 
* * optional string driver = 1; */ com.google.protobuf.ByteString getDriverBytes(); /** *
         * Name of the volume.
         * 
* * required string name = 2; */ boolean hasName(); /** *
         * Name of the volume.
         * 
* * required string name = 2; */ java.lang.String getName(); /** *
         * Name of the volume.
         * 
* * required string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** *
         * Volume driver specific options.
         * 
* * optional .mesos.v1.Parameters driver_options = 3; */ boolean hasDriverOptions(); /** *
         * Volume driver specific options.
         * 
* * optional .mesos.v1.Parameters driver_options = 3; */ org.apache.mesos.v1.Protos.Parameters getDriverOptions(); /** *
         * Volume driver specific options.
         * 
* * optional .mesos.v1.Parameters driver_options = 3; */ org.apache.mesos.v1.Protos.ParametersOrBuilder getDriverOptionsOrBuilder(); } /** * Protobuf type {@code mesos.v1.Volume.Source.DockerVolume} */ public static final class DockerVolume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Volume.Source.DockerVolume) DockerVolumeOrBuilder { private static final long serialVersionUID = 0L; // Use DockerVolume.newBuilder() to construct. private DockerVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DockerVolume() { driver_ = ""; name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DockerVolume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; driver_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { org.apache.mesos.v1.Protos.Parameters.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = driverOptions_.toBuilder(); } driverOptions_ = input.readMessage(org.apache.mesos.v1.Protos.Parameters.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(driverOptions_); driverOptions_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_DockerVolume_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_DockerVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.class, org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.Builder.class); } private int bitField0_; public static final int DRIVER_FIELD_NUMBER = 1; private volatile java.lang.Object driver_; /** *
         * Driver of the volume, it can be flocker, convoy, raxrey etc.
         * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Driver of the volume, it can be flocker, convoy, raxrey etc.
         * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } } /** *
         * Driver of the volume, it can be flocker, convoy, raxrey etc.
         * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
         * Name of the volume.
         * 
* * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Name of the volume.
         * 
* * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
         * Name of the volume.
         * 
* * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DRIVER_OPTIONS_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Parameters driverOptions_; /** *
         * Volume driver specific options.
         * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public boolean hasDriverOptions() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Volume driver specific options.
         * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public org.apache.mesos.v1.Protos.Parameters getDriverOptions() { return driverOptions_ == null ? org.apache.mesos.v1.Protos.Parameters.getDefaultInstance() : driverOptions_; } /** *
         * Volume driver specific options.
         * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public org.apache.mesos.v1.Protos.ParametersOrBuilder getDriverOptionsOrBuilder() { return driverOptions_ == null ? org.apache.mesos.v1.Protos.Parameters.getDefaultInstance() : driverOptions_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (hasDriverOptions()) { if (!getDriverOptions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getDriverOptions()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDriverOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Volume.Source.DockerVolume)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Volume.Source.DockerVolume other = (org.apache.mesos.v1.Protos.Volume.Source.DockerVolume) obj; boolean result = true; result = result && (hasDriver() == other.hasDriver()); if (hasDriver()) { result = result && getDriver() .equals(other.getDriver()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasDriverOptions() == other.hasDriverOptions()); if (hasDriverOptions()) { result = result && getDriverOptions() .equals(other.getDriverOptions()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDriver()) { hash = (37 * hash) + DRIVER_FIELD_NUMBER; hash = (53 * hash) + getDriver().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasDriverOptions()) { hash = (37 * hash) + DRIVER_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getDriverOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume 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.Protos.Volume.Source.DockerVolume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Volume.Source.DockerVolume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.Volume.Source.DockerVolume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Volume.Source.DockerVolume) org.apache.mesos.v1.Protos.Volume.Source.DockerVolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_DockerVolume_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_DockerVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.class, org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDriverOptionsFieldBuilder(); } } public Builder clear() { super.clear(); driver_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (driverOptionsBuilder_ == null) { driverOptions_ = null; } else { driverOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_DockerVolume_descriptor; } public org.apache.mesos.v1.Protos.Volume.Source.DockerVolume getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Volume.Source.DockerVolume build() { org.apache.mesos.v1.Protos.Volume.Source.DockerVolume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Volume.Source.DockerVolume buildPartial() { org.apache.mesos.v1.Protos.Volume.Source.DockerVolume result = new org.apache.mesos.v1.Protos.Volume.Source.DockerVolume(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.driver_ = driver_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (driverOptionsBuilder_ == null) { result.driverOptions_ = driverOptions_; } else { result.driverOptions_ = driverOptionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Volume.Source.DockerVolume) { return mergeFrom((org.apache.mesos.v1.Protos.Volume.Source.DockerVolume)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Volume.Source.DockerVolume other) { if (other == org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.getDefaultInstance()) return this; if (other.hasDriver()) { bitField0_ |= 0x00000001; driver_ = other.driver_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasDriverOptions()) { mergeDriverOptions(other.getDriverOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (hasDriverOptions()) { if (!getDriverOptions().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.Protos.Volume.Source.DockerVolume parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Volume.Source.DockerVolume) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object driver_ = ""; /** *
           * Driver of the volume, it can be flocker, convoy, raxrey etc.
           * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
           * Driver of the volume, it can be flocker, convoy, raxrey etc.
           * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * Driver of the volume, it can be flocker, convoy, raxrey etc.
           * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Driver of the volume, it can be flocker, convoy, raxrey etc.
           * 
* * optional string driver = 1; */ public Builder setDriver( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } /** *
           * Driver of the volume, it can be flocker, convoy, raxrey etc.
           * 
* * optional string driver = 1; */ public Builder clearDriver() { bitField0_ = (bitField0_ & ~0x00000001); driver_ = getDefaultInstance().getDriver(); onChanged(); return this; } /** *
           * Driver of the volume, it can be flocker, convoy, raxrey etc.
           * 
* * optional string driver = 1; */ public Builder setDriverBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
           * Name of the volume.
           * 
* * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
           * Name of the volume.
           * 
* * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * Name of the volume.
           * 
* * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Name of the volume.
           * 
* * required string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** *
           * Name of the volume.
           * 
* * required string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
           * Name of the volume.
           * 
* * required string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Parameters driverOptions_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Parameters, org.apache.mesos.v1.Protos.Parameters.Builder, org.apache.mesos.v1.Protos.ParametersOrBuilder> driverOptionsBuilder_; /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public boolean hasDriverOptions() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public org.apache.mesos.v1.Protos.Parameters getDriverOptions() { if (driverOptionsBuilder_ == null) { return driverOptions_ == null ? org.apache.mesos.v1.Protos.Parameters.getDefaultInstance() : driverOptions_; } else { return driverOptionsBuilder_.getMessage(); } } /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public Builder setDriverOptions(org.apache.mesos.v1.Protos.Parameters value) { if (driverOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } driverOptions_ = value; onChanged(); } else { driverOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public Builder setDriverOptions( org.apache.mesos.v1.Protos.Parameters.Builder builderForValue) { if (driverOptionsBuilder_ == null) { driverOptions_ = builderForValue.build(); onChanged(); } else { driverOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public Builder mergeDriverOptions(org.apache.mesos.v1.Protos.Parameters value) { if (driverOptionsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && driverOptions_ != null && driverOptions_ != org.apache.mesos.v1.Protos.Parameters.getDefaultInstance()) { driverOptions_ = org.apache.mesos.v1.Protos.Parameters.newBuilder(driverOptions_).mergeFrom(value).buildPartial(); } else { driverOptions_ = value; } onChanged(); } else { driverOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public Builder clearDriverOptions() { if (driverOptionsBuilder_ == null) { driverOptions_ = null; onChanged(); } else { driverOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public org.apache.mesos.v1.Protos.Parameters.Builder getDriverOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDriverOptionsFieldBuilder().getBuilder(); } /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ public org.apache.mesos.v1.Protos.ParametersOrBuilder getDriverOptionsOrBuilder() { if (driverOptionsBuilder_ != null) { return driverOptionsBuilder_.getMessageOrBuilder(); } else { return driverOptions_ == null ? org.apache.mesos.v1.Protos.Parameters.getDefaultInstance() : driverOptions_; } } /** *
           * Volume driver specific options.
           * 
* * optional .mesos.v1.Parameters driver_options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Parameters, org.apache.mesos.v1.Protos.Parameters.Builder, org.apache.mesos.v1.Protos.ParametersOrBuilder> getDriverOptionsFieldBuilder() { if (driverOptionsBuilder_ == null) { driverOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Parameters, org.apache.mesos.v1.Protos.Parameters.Builder, org.apache.mesos.v1.Protos.ParametersOrBuilder>( getDriverOptions(), getParentForChildren(), isClean()); driverOptions_ = null; } return driverOptionsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Volume.Source.DockerVolume) } // @@protoc_insertion_point(class_scope:mesos.v1.Volume.Source.DockerVolume) private static final org.apache.mesos.v1.Protos.Volume.Source.DockerVolume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Volume.Source.DockerVolume(); } public static org.apache.mesos.v1.Protos.Volume.Source.DockerVolume getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DockerVolume parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DockerVolume(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Volume.Source.DockerVolume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostPathOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Volume.Source.HostPath) 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(); /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ boolean hasMountPropagation(); /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ org.apache.mesos.v1.Protos.MountPropagation getMountPropagation(); /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ org.apache.mesos.v1.Protos.MountPropagationOrBuilder getMountPropagationOrBuilder(); } /** *
       * Absolute path pointing to a directory or file on the host.
       * 
* * Protobuf type {@code mesos.v1.Volume.Source.HostPath} */ public static final class HostPath extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Volume.Source.HostPath) HostPathOrBuilder { private static final long serialVersionUID = 0L; // Use HostPath.newBuilder() to construct. private HostPath(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HostPath() { path_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HostPath( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; path_ = bs; break; } case 18: { org.apache.mesos.v1.Protos.MountPropagation.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = mountPropagation_.toBuilder(); } mountPropagation_ = input.readMessage(org.apache.mesos.v1.Protos.MountPropagation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mountPropagation_); mountPropagation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_HostPath_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_HostPath_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.Source.HostPath.class, org.apache.mesos.v1.Protos.Volume.Source.HostPath.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private volatile 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; } } public static final int MOUNT_PROPAGATION_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.MountPropagation mountPropagation_; /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public boolean hasMountPropagation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public org.apache.mesos.v1.Protos.MountPropagation getMountPropagation() { return mountPropagation_ == null ? org.apache.mesos.v1.Protos.MountPropagation.getDefaultInstance() : mountPropagation_; } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public org.apache.mesos.v1.Protos.MountPropagationOrBuilder getMountPropagationOrBuilder() { return mountPropagation_ == null ? org.apache.mesos.v1.Protos.MountPropagation.getDefaultInstance() : mountPropagation_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getMountPropagation()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMountPropagation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Volume.Source.HostPath)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Volume.Source.HostPath other = (org.apache.mesos.v1.Protos.Volume.Source.HostPath) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); } result = result && (hasMountPropagation() == other.hasMountPropagation()); if (hasMountPropagation()) { result = result && getMountPropagation() .equals(other.getMountPropagation()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasMountPropagation()) { hash = (37 * hash) + MOUNT_PROPAGATION_FIELD_NUMBER; hash = (53 * hash) + getMountPropagation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath 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.Protos.Volume.Source.HostPath parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Volume.Source.HostPath prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Absolute path pointing to a directory or file on the host.
         * 
* * Protobuf type {@code mesos.v1.Volume.Source.HostPath} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Volume.Source.HostPath) org.apache.mesos.v1.Protos.Volume.Source.HostPathOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_HostPath_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_HostPath_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.Source.HostPath.class, org.apache.mesos.v1.Protos.Volume.Source.HostPath.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Volume.Source.HostPath.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMountPropagationFieldBuilder(); } } public Builder clear() { super.clear(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (mountPropagationBuilder_ == null) { mountPropagation_ = null; } else { mountPropagationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_HostPath_descriptor; } public org.apache.mesos.v1.Protos.Volume.Source.HostPath getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Volume.Source.HostPath.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Volume.Source.HostPath build() { org.apache.mesos.v1.Protos.Volume.Source.HostPath result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Volume.Source.HostPath buildPartial() { org.apache.mesos.v1.Protos.Volume.Source.HostPath result = new org.apache.mesos.v1.Protos.Volume.Source.HostPath(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; } if (mountPropagationBuilder_ == null) { result.mountPropagation_ = mountPropagation_; } else { result.mountPropagation_ = mountPropagationBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Volume.Source.HostPath) { return mergeFrom((org.apache.mesos.v1.Protos.Volume.Source.HostPath)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Volume.Source.HostPath other) { if (other == org.apache.mesos.v1.Protos.Volume.Source.HostPath.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } if (other.hasMountPropagation()) { mergeMountPropagation(other.getMountPropagation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Volume.Source.HostPath parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Volume.Source.HostPath) e.getUnfinishedMessage(); throw e.unwrapIOException(); } 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; } private org.apache.mesos.v1.Protos.MountPropagation mountPropagation_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.MountPropagation, org.apache.mesos.v1.Protos.MountPropagation.Builder, org.apache.mesos.v1.Protos.MountPropagationOrBuilder> mountPropagationBuilder_; /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public boolean hasMountPropagation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public org.apache.mesos.v1.Protos.MountPropagation getMountPropagation() { if (mountPropagationBuilder_ == null) { return mountPropagation_ == null ? org.apache.mesos.v1.Protos.MountPropagation.getDefaultInstance() : mountPropagation_; } else { return mountPropagationBuilder_.getMessage(); } } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public Builder setMountPropagation(org.apache.mesos.v1.Protos.MountPropagation value) { if (mountPropagationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mountPropagation_ = value; onChanged(); } else { mountPropagationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public Builder setMountPropagation( org.apache.mesos.v1.Protos.MountPropagation.Builder builderForValue) { if (mountPropagationBuilder_ == null) { mountPropagation_ = builderForValue.build(); onChanged(); } else { mountPropagationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public Builder mergeMountPropagation(org.apache.mesos.v1.Protos.MountPropagation value) { if (mountPropagationBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && mountPropagation_ != null && mountPropagation_ != org.apache.mesos.v1.Protos.MountPropagation.getDefaultInstance()) { mountPropagation_ = org.apache.mesos.v1.Protos.MountPropagation.newBuilder(mountPropagation_).mergeFrom(value).buildPartial(); } else { mountPropagation_ = value; } onChanged(); } else { mountPropagationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public Builder clearMountPropagation() { if (mountPropagationBuilder_ == null) { mountPropagation_ = null; onChanged(); } else { mountPropagationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public org.apache.mesos.v1.Protos.MountPropagation.Builder getMountPropagationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMountPropagationFieldBuilder().getBuilder(); } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ public org.apache.mesos.v1.Protos.MountPropagationOrBuilder getMountPropagationOrBuilder() { if (mountPropagationBuilder_ != null) { return mountPropagationBuilder_.getMessageOrBuilder(); } else { return mountPropagation_ == null ? org.apache.mesos.v1.Protos.MountPropagation.getDefaultInstance() : mountPropagation_; } } /** * optional .mesos.v1.MountPropagation mount_propagation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.MountPropagation, org.apache.mesos.v1.Protos.MountPropagation.Builder, org.apache.mesos.v1.Protos.MountPropagationOrBuilder> getMountPropagationFieldBuilder() { if (mountPropagationBuilder_ == null) { mountPropagationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.MountPropagation, org.apache.mesos.v1.Protos.MountPropagation.Builder, org.apache.mesos.v1.Protos.MountPropagationOrBuilder>( getMountPropagation(), getParentForChildren(), isClean()); mountPropagation_ = null; } return mountPropagationBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Volume.Source.HostPath) } // @@protoc_insertion_point(class_scope:mesos.v1.Volume.Source.HostPath) private static final org.apache.mesos.v1.Protos.Volume.Source.HostPath DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Volume.Source.HostPath(); } public static org.apache.mesos.v1.Protos.Volume.Source.HostPath getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HostPath parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HostPath(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Volume.Source.HostPath getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SandboxPathOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Volume.Source.SandboxPath) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.Volume.Source.SandboxPath.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.Volume.Source.SandboxPath.Type type = 1; */ org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type getType(); /** *
         * A path relative to the corresponding container's sandbox.
         * Note that upwards traversal (i.e. ../../abc) is not allowed.
         * 
* * required string path = 2; */ boolean hasPath(); /** *
         * A path relative to the corresponding container's sandbox.
         * Note that upwards traversal (i.e. ../../abc) is not allowed.
         * 
* * required string path = 2; */ java.lang.String getPath(); /** *
         * A path relative to the corresponding container's sandbox.
         * Note that upwards traversal (i.e. ../../abc) is not allowed.
         * 
* * required string path = 2; */ com.google.protobuf.ByteString getPathBytes(); } /** *
       * Describe a path from a container's sandbox. The container can
       * be the current container (SELF), or its parent container
       * (PARENT). PARENT allows all child containers to share a volume
       * from their parent container's sandbox. It'll be an error if
       * the current container is a top level container.
       * 
* * Protobuf type {@code mesos.v1.Volume.Source.SandboxPath} */ public static final class SandboxPath extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Volume.Source.SandboxPath) SandboxPathOrBuilder { private static final long serialVersionUID = 0L; // Use SandboxPath.newBuilder() to construct. private SandboxPath(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SandboxPath() { type_ = 0; path_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SandboxPath( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type value = org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_SandboxPath_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_SandboxPath_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.class, org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Builder.class); } /** * Protobuf enum {@code mesos.v1.Volume.Source.SandboxPath.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * SELF = 1; */ SELF(1), /** * PARENT = 2; */ PARENT(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * SELF = 1; */ public static final int SELF_VALUE = 1; /** * PARENT = 2; */ public static final int PARENT_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return SELF; case 2: return PARENT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.Volume.Source.SandboxPath.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .mesos.v1.Volume.Source.SandboxPath.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Volume.Source.SandboxPath.Type type = 1; */ public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type getType() { org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type result = org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type.UNKNOWN : result; } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** *
         * A path relative to the corresponding container's sandbox.
         * Note that upwards traversal (i.e. ../../abc) is not allowed.
         * 
* * required string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * A path relative to the corresponding container's sandbox.
         * Note that upwards traversal (i.e. ../../abc) is not allowed.
         * 
* * required string path = 2; */ 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; } } /** *
         * A path relative to the corresponding container's sandbox.
         * Note that upwards traversal (i.e. ../../abc) is not allowed.
         * 
* * required string path = 2; */ 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 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Volume.Source.SandboxPath)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Volume.Source.SandboxPath other = (org.apache.mesos.v1.Protos.Volume.Source.SandboxPath) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath 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.Protos.Volume.Source.SandboxPath parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Volume.Source.SandboxPath prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Describe a path from a container's sandbox. The container can
         * be the current container (SELF), or its parent container
         * (PARENT). PARENT allows all child containers to share a volume
         * from their parent container's sandbox. It'll be an error if
         * the current container is a top level container.
         * 
* * Protobuf type {@code mesos.v1.Volume.Source.SandboxPath} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Volume.Source.SandboxPath) org.apache.mesos.v1.Protos.Volume.Source.SandboxPathOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_SandboxPath_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_SandboxPath_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.class, org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_SandboxPath_descriptor; } public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath build() { org.apache.mesos.v1.Protos.Volume.Source.SandboxPath result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath buildPartial() { org.apache.mesos.v1.Protos.Volume.Source.SandboxPath result = new org.apache.mesos.v1.Protos.Volume.Source.SandboxPath(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.path_ = path_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Volume.Source.SandboxPath) { return mergeFrom((org.apache.mesos.v1.Protos.Volume.Source.SandboxPath)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Volume.Source.SandboxPath other) { if (other == org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.Volume.Source.SandboxPath parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Volume.Source.SandboxPath) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * optional .mesos.v1.Volume.Source.SandboxPath.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Volume.Source.SandboxPath.Type type = 1; */ public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type getType() { org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type result = org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type.UNKNOWN : result; } /** * optional .mesos.v1.Volume.Source.SandboxPath.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.Volume.Source.SandboxPath.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private java.lang.Object path_ = ""; /** *
           * A path relative to the corresponding container's sandbox.
           * Note that upwards traversal (i.e. ../../abc) is not allowed.
           * 
* * required string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
           * A path relative to the corresponding container's sandbox.
           * Note that upwards traversal (i.e. ../../abc) is not allowed.
           * 
* * required string path = 2; */ 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; } } /** *
           * A path relative to the corresponding container's sandbox.
           * Note that upwards traversal (i.e. ../../abc) is not allowed.
           * 
* * required string path = 2; */ 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; } } /** *
           * A path relative to the corresponding container's sandbox.
           * Note that upwards traversal (i.e. ../../abc) is not allowed.
           * 
* * required string path = 2; */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** *
           * A path relative to the corresponding container's sandbox.
           * Note that upwards traversal (i.e. ../../abc) is not allowed.
           * 
* * required string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** *
           * A path relative to the corresponding container's sandbox.
           * Note that upwards traversal (i.e. ../../abc) is not allowed.
           * 
* * required string path = 2; */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Volume.Source.SandboxPath) } // @@protoc_insertion_point(class_scope:mesos.v1.Volume.Source.SandboxPath) private static final org.apache.mesos.v1.Protos.Volume.Source.SandboxPath DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Volume.Source.SandboxPath(); } public static org.apache.mesos.v1.Protos.Volume.Source.SandboxPath getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SandboxPath parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SandboxPath(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.Volume.Source.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Enum fields should be optional, see: MESOS-4997.
       * 
* * optional .mesos.v1.Volume.Source.Type type = 1; */ public org.apache.mesos.v1.Protos.Volume.Source.Type getType() { org.apache.mesos.v1.Protos.Volume.Source.Type result = org.apache.mesos.v1.Protos.Volume.Source.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Volume.Source.Type.UNKNOWN : result; } public static final int DOCKER_VOLUME_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Volume.Source.DockerVolume dockerVolume_; /** *
       * The source of the volume created by docker volume driver.
       * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public boolean hasDockerVolume() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * The source of the volume created by docker volume driver.
       * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public org.apache.mesos.v1.Protos.Volume.Source.DockerVolume getDockerVolume() { return dockerVolume_ == null ? org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.getDefaultInstance() : dockerVolume_; } /** *
       * The source of the volume created by docker volume driver.
       * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public org.apache.mesos.v1.Protos.Volume.Source.DockerVolumeOrBuilder getDockerVolumeOrBuilder() { return dockerVolume_ == null ? org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.getDefaultInstance() : dockerVolume_; } public static final int HOST_PATH_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.Volume.Source.HostPath hostPath_; /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public boolean hasHostPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public org.apache.mesos.v1.Protos.Volume.Source.HostPath getHostPath() { return hostPath_ == null ? org.apache.mesos.v1.Protos.Volume.Source.HostPath.getDefaultInstance() : hostPath_; } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public org.apache.mesos.v1.Protos.Volume.Source.HostPathOrBuilder getHostPathOrBuilder() { return hostPath_ == null ? org.apache.mesos.v1.Protos.Volume.Source.HostPath.getDefaultInstance() : hostPath_; } public static final int SANDBOX_PATH_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.Volume.Source.SandboxPath sandboxPath_; /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public boolean hasSandboxPath() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath getSandboxPath() { return sandboxPath_ == null ? org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.getDefaultInstance() : sandboxPath_; } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public org.apache.mesos.v1.Protos.Volume.Source.SandboxPathOrBuilder getSandboxPathOrBuilder() { return sandboxPath_ == null ? org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.getDefaultInstance() : sandboxPath_; } public static final int SECRET_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Secret secret_; /** *
       * The volume/secret isolator uses the secret-fetcher module (third-party or
       * internal) downloads the secret and makes it available at container_path.
       * 
* * optional .mesos.v1.Secret secret = 4; */ public boolean hasSecret() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * The volume/secret isolator uses the secret-fetcher module (third-party or
       * internal) downloads the secret and makes it available at container_path.
       * 
* * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.Secret getSecret() { return secret_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : secret_; } /** *
       * The volume/secret isolator uses the secret-fetcher module (third-party or
       * internal) downloads the secret and makes it available at container_path.
       * 
* * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.SecretOrBuilder getSecretOrBuilder() { return secret_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : secret_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasDockerVolume()) { if (!getDockerVolume().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasHostPath()) { if (!getHostPath().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasSandboxPath()) { if (!getSandboxPath().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasSecret()) { if (!getSecret().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getDockerVolume()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(3, getSandboxPath()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(4, getSecret()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(5, getHostPath()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getDockerVolume()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSandboxPath()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSecret()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getHostPath()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Volume.Source)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Volume.Source other = (org.apache.mesos.v1.Protos.Volume.Source) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasDockerVolume() == other.hasDockerVolume()); if (hasDockerVolume()) { result = result && getDockerVolume() .equals(other.getDockerVolume()); } result = result && (hasHostPath() == other.hasHostPath()); if (hasHostPath()) { result = result && getHostPath() .equals(other.getHostPath()); } result = result && (hasSandboxPath() == other.hasSandboxPath()); if (hasSandboxPath()) { result = result && getSandboxPath() .equals(other.getSandboxPath()); } result = result && (hasSecret() == other.hasSecret()); if (hasSecret()) { result = result && getSecret() .equals(other.getSecret()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasDockerVolume()) { hash = (37 * hash) + DOCKER_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getDockerVolume().hashCode(); } if (hasHostPath()) { hash = (37 * hash) + HOST_PATH_FIELD_NUMBER; hash = (53 * hash) + getHostPath().hashCode(); } if (hasSandboxPath()) { hash = (37 * hash) + SANDBOX_PATH_FIELD_NUMBER; hash = (53 * hash) + getSandboxPath().hashCode(); } if (hasSecret()) { hash = (37 * hash) + SECRET_FIELD_NUMBER; hash = (53 * hash) + getSecret().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Volume.Source parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source 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.Protos.Volume.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume.Source parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume.Source parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Volume.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes where a volume originates from.
       * 
* * Protobuf type {@code mesos.v1.Volume.Source} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Volume.Source) org.apache.mesos.v1.Protos.Volume.SourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.Source.class, org.apache.mesos.v1.Protos.Volume.Source.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Volume.Source.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDockerVolumeFieldBuilder(); getHostPathFieldBuilder(); getSandboxPathFieldBuilder(); getSecretFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (dockerVolumeBuilder_ == null) { dockerVolume_ = null; } else { dockerVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (hostPathBuilder_ == null) { hostPath_ = null; } else { hostPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (sandboxPathBuilder_ == null) { sandboxPath_ = null; } else { sandboxPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (secretBuilder_ == null) { secret_ = null; } else { secretBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_Source_descriptor; } public org.apache.mesos.v1.Protos.Volume.Source getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Volume.Source.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Volume.Source build() { org.apache.mesos.v1.Protos.Volume.Source result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Volume.Source buildPartial() { org.apache.mesos.v1.Protos.Volume.Source result = new org.apache.mesos.v1.Protos.Volume.Source(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 (dockerVolumeBuilder_ == null) { result.dockerVolume_ = dockerVolume_; } else { result.dockerVolume_ = dockerVolumeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (hostPathBuilder_ == null) { result.hostPath_ = hostPath_; } else { result.hostPath_ = hostPathBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (sandboxPathBuilder_ == null) { result.sandboxPath_ = sandboxPath_; } else { result.sandboxPath_ = sandboxPathBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (secretBuilder_ == null) { result.secret_ = secret_; } else { result.secret_ = secretBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Volume.Source) { return mergeFrom((org.apache.mesos.v1.Protos.Volume.Source)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Volume.Source other) { if (other == org.apache.mesos.v1.Protos.Volume.Source.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasDockerVolume()) { mergeDockerVolume(other.getDockerVolume()); } if (other.hasHostPath()) { mergeHostPath(other.getHostPath()); } if (other.hasSandboxPath()) { mergeSandboxPath(other.getSandboxPath()); } if (other.hasSecret()) { mergeSecret(other.getSecret()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasDockerVolume()) { if (!getDockerVolume().isInitialized()) { return false; } } if (hasHostPath()) { if (!getHostPath().isInitialized()) { return false; } } if (hasSandboxPath()) { if (!getSandboxPath().isInitialized()) { return false; } } if (hasSecret()) { if (!getSecret().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.Protos.Volume.Source parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Volume.Source) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.Volume.Source.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.Volume.Source.Type type = 1; */ public org.apache.mesos.v1.Protos.Volume.Source.Type getType() { org.apache.mesos.v1.Protos.Volume.Source.Type result = org.apache.mesos.v1.Protos.Volume.Source.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.Volume.Source.Type.UNKNOWN : result; } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.Volume.Source.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.Volume.Source.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
         * Enum fields should be optional, see: MESOS-4997.
         * 
* * optional .mesos.v1.Volume.Source.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.Volume.Source.DockerVolume dockerVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.DockerVolume, org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.Builder, org.apache.mesos.v1.Protos.Volume.Source.DockerVolumeOrBuilder> dockerVolumeBuilder_; /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public boolean hasDockerVolume() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public org.apache.mesos.v1.Protos.Volume.Source.DockerVolume getDockerVolume() { if (dockerVolumeBuilder_ == null) { return dockerVolume_ == null ? org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.getDefaultInstance() : dockerVolume_; } else { return dockerVolumeBuilder_.getMessage(); } } /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public Builder setDockerVolume(org.apache.mesos.v1.Protos.Volume.Source.DockerVolume value) { if (dockerVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dockerVolume_ = value; onChanged(); } else { dockerVolumeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public Builder setDockerVolume( org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.Builder builderForValue) { if (dockerVolumeBuilder_ == null) { dockerVolume_ = builderForValue.build(); onChanged(); } else { dockerVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public Builder mergeDockerVolume(org.apache.mesos.v1.Protos.Volume.Source.DockerVolume value) { if (dockerVolumeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && dockerVolume_ != null && dockerVolume_ != org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.getDefaultInstance()) { dockerVolume_ = org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.newBuilder(dockerVolume_).mergeFrom(value).buildPartial(); } else { dockerVolume_ = value; } onChanged(); } else { dockerVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public Builder clearDockerVolume() { if (dockerVolumeBuilder_ == null) { dockerVolume_ = null; onChanged(); } else { dockerVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.Builder getDockerVolumeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDockerVolumeFieldBuilder().getBuilder(); } /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ public org.apache.mesos.v1.Protos.Volume.Source.DockerVolumeOrBuilder getDockerVolumeOrBuilder() { if (dockerVolumeBuilder_ != null) { return dockerVolumeBuilder_.getMessageOrBuilder(); } else { return dockerVolume_ == null ? org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.getDefaultInstance() : dockerVolume_; } } /** *
         * The source of the volume created by docker volume driver.
         * 
* * optional .mesos.v1.Volume.Source.DockerVolume docker_volume = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.DockerVolume, org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.Builder, org.apache.mesos.v1.Protos.Volume.Source.DockerVolumeOrBuilder> getDockerVolumeFieldBuilder() { if (dockerVolumeBuilder_ == null) { dockerVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.DockerVolume, org.apache.mesos.v1.Protos.Volume.Source.DockerVolume.Builder, org.apache.mesos.v1.Protos.Volume.Source.DockerVolumeOrBuilder>( getDockerVolume(), getParentForChildren(), isClean()); dockerVolume_ = null; } return dockerVolumeBuilder_; } private org.apache.mesos.v1.Protos.Volume.Source.HostPath hostPath_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.HostPath, org.apache.mesos.v1.Protos.Volume.Source.HostPath.Builder, org.apache.mesos.v1.Protos.Volume.Source.HostPathOrBuilder> hostPathBuilder_; /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public boolean hasHostPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public org.apache.mesos.v1.Protos.Volume.Source.HostPath getHostPath() { if (hostPathBuilder_ == null) { return hostPath_ == null ? org.apache.mesos.v1.Protos.Volume.Source.HostPath.getDefaultInstance() : hostPath_; } else { return hostPathBuilder_.getMessage(); } } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public Builder setHostPath(org.apache.mesos.v1.Protos.Volume.Source.HostPath value) { if (hostPathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hostPath_ = value; onChanged(); } else { hostPathBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public Builder setHostPath( org.apache.mesos.v1.Protos.Volume.Source.HostPath.Builder builderForValue) { if (hostPathBuilder_ == null) { hostPath_ = builderForValue.build(); onChanged(); } else { hostPathBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public Builder mergeHostPath(org.apache.mesos.v1.Protos.Volume.Source.HostPath value) { if (hostPathBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && hostPath_ != null && hostPath_ != org.apache.mesos.v1.Protos.Volume.Source.HostPath.getDefaultInstance()) { hostPath_ = org.apache.mesos.v1.Protos.Volume.Source.HostPath.newBuilder(hostPath_).mergeFrom(value).buildPartial(); } else { hostPath_ = value; } onChanged(); } else { hostPathBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public Builder clearHostPath() { if (hostPathBuilder_ == null) { hostPath_ = null; onChanged(); } else { hostPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public org.apache.mesos.v1.Protos.Volume.Source.HostPath.Builder getHostPathBuilder() { bitField0_ |= 0x00000004; onChanged(); return getHostPathFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ public org.apache.mesos.v1.Protos.Volume.Source.HostPathOrBuilder getHostPathOrBuilder() { if (hostPathBuilder_ != null) { return hostPathBuilder_.getMessageOrBuilder(); } else { return hostPath_ == null ? org.apache.mesos.v1.Protos.Volume.Source.HostPath.getDefaultInstance() : hostPath_; } } /** * optional .mesos.v1.Volume.Source.HostPath host_path = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.HostPath, org.apache.mesos.v1.Protos.Volume.Source.HostPath.Builder, org.apache.mesos.v1.Protos.Volume.Source.HostPathOrBuilder> getHostPathFieldBuilder() { if (hostPathBuilder_ == null) { hostPathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.HostPath, org.apache.mesos.v1.Protos.Volume.Source.HostPath.Builder, org.apache.mesos.v1.Protos.Volume.Source.HostPathOrBuilder>( getHostPath(), getParentForChildren(), isClean()); hostPath_ = null; } return hostPathBuilder_; } private org.apache.mesos.v1.Protos.Volume.Source.SandboxPath sandboxPath_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.SandboxPath, org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Builder, org.apache.mesos.v1.Protos.Volume.Source.SandboxPathOrBuilder> sandboxPathBuilder_; /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public boolean hasSandboxPath() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath getSandboxPath() { if (sandboxPathBuilder_ == null) { return sandboxPath_ == null ? org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.getDefaultInstance() : sandboxPath_; } else { return sandboxPathBuilder_.getMessage(); } } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public Builder setSandboxPath(org.apache.mesos.v1.Protos.Volume.Source.SandboxPath value) { if (sandboxPathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sandboxPath_ = value; onChanged(); } else { sandboxPathBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public Builder setSandboxPath( org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Builder builderForValue) { if (sandboxPathBuilder_ == null) { sandboxPath_ = builderForValue.build(); onChanged(); } else { sandboxPathBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public Builder mergeSandboxPath(org.apache.mesos.v1.Protos.Volume.Source.SandboxPath value) { if (sandboxPathBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && sandboxPath_ != null && sandboxPath_ != org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.getDefaultInstance()) { sandboxPath_ = org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.newBuilder(sandboxPath_).mergeFrom(value).buildPartial(); } else { sandboxPath_ = value; } onChanged(); } else { sandboxPathBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public Builder clearSandboxPath() { if (sandboxPathBuilder_ == null) { sandboxPath_ = null; onChanged(); } else { sandboxPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Builder getSandboxPathBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSandboxPathFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ public org.apache.mesos.v1.Protos.Volume.Source.SandboxPathOrBuilder getSandboxPathOrBuilder() { if (sandboxPathBuilder_ != null) { return sandboxPathBuilder_.getMessageOrBuilder(); } else { return sandboxPath_ == null ? org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.getDefaultInstance() : sandboxPath_; } } /** * optional .mesos.v1.Volume.Source.SandboxPath sandbox_path = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.SandboxPath, org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Builder, org.apache.mesos.v1.Protos.Volume.Source.SandboxPathOrBuilder> getSandboxPathFieldBuilder() { if (sandboxPathBuilder_ == null) { sandboxPathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source.SandboxPath, org.apache.mesos.v1.Protos.Volume.Source.SandboxPath.Builder, org.apache.mesos.v1.Protos.Volume.Source.SandboxPathOrBuilder>( getSandboxPath(), getParentForChildren(), isClean()); sandboxPath_ = null; } return sandboxPathBuilder_; } private org.apache.mesos.v1.Protos.Secret secret_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder> secretBuilder_; /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ public boolean hasSecret() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.Secret getSecret() { if (secretBuilder_ == null) { return secret_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : secret_; } else { return secretBuilder_.getMessage(); } } /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ public Builder setSecret(org.apache.mesos.v1.Protos.Secret value) { if (secretBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secret_ = value; onChanged(); } else { secretBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ public Builder setSecret( org.apache.mesos.v1.Protos.Secret.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); } else { secretBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ public Builder mergeSecret(org.apache.mesos.v1.Protos.Secret value) { if (secretBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && secret_ != null && secret_ != org.apache.mesos.v1.Protos.Secret.getDefaultInstance()) { secret_ = org.apache.mesos.v1.Protos.Secret.newBuilder(secret_).mergeFrom(value).buildPartial(); } else { secret_ = value; } onChanged(); } else { secretBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ public Builder clearSecret() { if (secretBuilder_ == null) { secret_ = null; onChanged(); } else { secretBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.Secret.Builder getSecretBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSecretFieldBuilder().getBuilder(); } /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ public org.apache.mesos.v1.Protos.SecretOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { return secret_ == null ? org.apache.mesos.v1.Protos.Secret.getDefaultInstance() : secret_; } } /** *
         * The volume/secret isolator uses the secret-fetcher module (third-party or
         * internal) downloads the secret and makes it available at container_path.
         * 
* * optional .mesos.v1.Secret secret = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Secret, org.apache.mesos.v1.Protos.Secret.Builder, org.apache.mesos.v1.Protos.SecretOrBuilder>( getSecret(), getParentForChildren(), isClean()); secret_ = null; } return secretBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Volume.Source) } // @@protoc_insertion_point(class_scope:mesos.v1.Volume.Source) private static final org.apache.mesos.v1.Protos.Volume.Source DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Volume.Source(); } public static org.apache.mesos.v1.Protos.Volume.Source getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Source parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Source(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Volume.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int MODE_FIELD_NUMBER = 3; private int mode_; /** *
     * TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
     * 
* * required .mesos.v1.Volume.Mode mode = 3; */ public boolean hasMode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
     * 
* * required .mesos.v1.Volume.Mode mode = 3; */ public org.apache.mesos.v1.Protos.Volume.Mode getMode() { org.apache.mesos.v1.Protos.Volume.Mode result = org.apache.mesos.v1.Protos.Volume.Mode.valueOf(mode_); return result == null ? org.apache.mesos.v1.Protos.Volume.Mode.RW : result; } public static final int CONTAINER_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object containerPath_; /** *
     * Path pointing to a directory or file in the container. If the
     * path is a relative path, it is relative to the container work
     * directory. If the path is an absolute path, that path must
     * already exist.
     * 
* * required string container_path = 1; */ public boolean hasContainerPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Path pointing to a directory or file in the container. If the
     * path is a relative path, it is relative to the container work
     * directory. If the path is an absolute path, that path must
     * already exist.
     * 
* * required string container_path = 1; */ public java.lang.String getContainerPath() { java.lang.Object ref = containerPath_; 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()) { containerPath_ = s; } return s; } } /** *
     * Path pointing to a directory or file in the container. If the
     * path is a relative path, it is relative to the container work
     * directory. If the path is an absolute path, that path must
     * already exist.
     * 
* * required string container_path = 1; */ public com.google.protobuf.ByteString getContainerPathBytes() { java.lang.Object ref = containerPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); containerPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object hostPath_; /** *
     * Absolute path pointing to a directory or file on the host or a
     * path relative to the container work directory.
     * 
* * optional string host_path = 2; */ public boolean hasHostPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Absolute path pointing to a directory or file on the host or a
     * path relative to the container work directory.
     * 
* * optional string host_path = 2; */ public java.lang.String getHostPath() { java.lang.Object ref = hostPath_; 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()) { hostPath_ = s; } return s; } } /** *
     * Absolute path pointing to a directory or file on the host or a
     * path relative to the container work directory.
     * 
* * optional string host_path = 2; */ public com.google.protobuf.ByteString getHostPathBytes() { java.lang.Object ref = hostPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMAGE_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Image image_; /** *
     * The source of the volume is an Image which describes a root
     * filesystem which will be provisioned by Mesos.
     * 
* * optional .mesos.v1.Image image = 4; */ public boolean hasImage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * The source of the volume is an Image which describes a root
     * filesystem which will be provisioned by Mesos.
     * 
* * optional .mesos.v1.Image image = 4; */ public org.apache.mesos.v1.Protos.Image getImage() { return image_ == null ? org.apache.mesos.v1.Protos.Image.getDefaultInstance() : image_; } /** *
     * The source of the volume is an Image which describes a root
     * filesystem which will be provisioned by Mesos.
     * 
* * optional .mesos.v1.Image image = 4; */ public org.apache.mesos.v1.Protos.ImageOrBuilder getImageOrBuilder() { return image_ == null ? org.apache.mesos.v1.Protos.Image.getDefaultInstance() : image_; } public static final int SOURCE_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.Volume.Source source_; /** * optional .mesos.v1.Volume.Source source = 5; */ public boolean hasSource() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Volume.Source source = 5; */ public org.apache.mesos.v1.Protos.Volume.Source getSource() { return source_ == null ? org.apache.mesos.v1.Protos.Volume.Source.getDefaultInstance() : source_; } /** * optional .mesos.v1.Volume.Source source = 5; */ public org.apache.mesos.v1.Protos.Volume.SourceOrBuilder getSourceOrBuilder() { return source_ == null ? org.apache.mesos.v1.Protos.Volume.Source.getDefaultInstance() : source_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasMode()) { memoizedIsInitialized = 0; return false; } if (!hasContainerPath()) { memoizedIsInitialized = 0; return false; } if (hasImage()) { if (!getImage().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasSource()) { if (!getSource().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, containerPath_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostPath_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(3, mode_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getImage()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getSource()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, containerPath_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostPath_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, mode_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getImage()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Volume)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Volume other = (org.apache.mesos.v1.Protos.Volume) obj; boolean result = true; result = result && (hasMode() == other.hasMode()); if (hasMode()) { result = result && mode_ == other.mode_; } result = result && (hasContainerPath() == other.hasContainerPath()); if (hasContainerPath()) { result = result && getContainerPath() .equals(other.getContainerPath()); } result = result && (hasHostPath() == other.hasHostPath()); if (hasHostPath()) { result = result && getHostPath() .equals(other.getHostPath()); } result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage() .equals(other.getImage()); } result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource() .equals(other.getSource()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMode()) { hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; } if (hasContainerPath()) { hash = (37 * hash) + CONTAINER_PATH_FIELD_NUMBER; hash = (53 * hash) + getContainerPath().hashCode(); } if (hasHostPath()) { hash = (37 * hash) + HOST_PATH_FIELD_NUMBER; hash = (53 * hash) + getHostPath().hashCode(); } if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Volume parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume 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.Protos.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Volume parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Volume parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Volume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Volume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a volume mapping either from host to container or vice
     * versa. Both paths can either refer to a directory or a file.
     * 
* * Protobuf type {@code mesos.v1.Volume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Volume) org.apache.mesos.v1.Protos.VolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Volume.class, org.apache.mesos.v1.Protos.Volume.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Volume.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getImageFieldBuilder(); getSourceFieldBuilder(); } } public Builder clear() { super.clear(); mode_ = 1; bitField0_ = (bitField0_ & ~0x00000001); containerPath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); hostPath_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (imageBuilder_ == null) { image_ = null; } else { imageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Volume_descriptor; } public org.apache.mesos.v1.Protos.Volume getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Volume.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Volume build() { org.apache.mesos.v1.Protos.Volume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Volume buildPartial() { org.apache.mesos.v1.Protos.Volume result = new org.apache.mesos.v1.Protos.Volume(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.mode_ = mode_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.containerPath_ = containerPath_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.hostPath_ = hostPath_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (imageBuilder_ == null) { result.image_ = image_; } else { result.image_ = imageBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Volume) { return mergeFrom((org.apache.mesos.v1.Protos.Volume)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Volume other) { if (other == org.apache.mesos.v1.Protos.Volume.getDefaultInstance()) return this; if (other.hasMode()) { setMode(other.getMode()); } if (other.hasContainerPath()) { bitField0_ |= 0x00000002; containerPath_ = other.containerPath_; onChanged(); } if (other.hasHostPath()) { bitField0_ |= 0x00000004; hostPath_ = other.hostPath_; onChanged(); } if (other.hasImage()) { mergeImage(other.getImage()); } if (other.hasSource()) { mergeSource(other.getSource()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasMode()) { return false; } if (!hasContainerPath()) { return false; } if (hasImage()) { if (!getImage().isInitialized()) { return false; } } if (hasSource()) { if (!getSource().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.Protos.Volume parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Volume) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int mode_ = 1; /** *
       * TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
       * 
* * required .mesos.v1.Volume.Mode mode = 3; */ public boolean hasMode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
       * 
* * required .mesos.v1.Volume.Mode mode = 3; */ public org.apache.mesos.v1.Protos.Volume.Mode getMode() { org.apache.mesos.v1.Protos.Volume.Mode result = org.apache.mesos.v1.Protos.Volume.Mode.valueOf(mode_); return result == null ? org.apache.mesos.v1.Protos.Volume.Mode.RW : result; } /** *
       * TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
       * 
* * required .mesos.v1.Volume.Mode mode = 3; */ public Builder setMode(org.apache.mesos.v1.Protos.Volume.Mode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mode_ = value.getNumber(); onChanged(); return this; } /** *
       * TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
       * 
* * required .mesos.v1.Volume.Mode mode = 3; */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000001); mode_ = 1; onChanged(); return this; } private java.lang.Object containerPath_ = ""; /** *
       * Path pointing to a directory or file in the container. If the
       * path is a relative path, it is relative to the container work
       * directory. If the path is an absolute path, that path must
       * already exist.
       * 
* * required string container_path = 1; */ public boolean hasContainerPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Path pointing to a directory or file in the container. If the
       * path is a relative path, it is relative to the container work
       * directory. If the path is an absolute path, that path must
       * already exist.
       * 
* * required string container_path = 1; */ public java.lang.String getContainerPath() { java.lang.Object ref = containerPath_; 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()) { containerPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Path pointing to a directory or file in the container. If the
       * path is a relative path, it is relative to the container work
       * directory. If the path is an absolute path, that path must
       * already exist.
       * 
* * required string container_path = 1; */ public com.google.protobuf.ByteString getContainerPathBytes() { java.lang.Object ref = containerPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); containerPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Path pointing to a directory or file in the container. If the
       * path is a relative path, it is relative to the container work
       * directory. If the path is an absolute path, that path must
       * already exist.
       * 
* * required string container_path = 1; */ public Builder setContainerPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; containerPath_ = value; onChanged(); return this; } /** *
       * Path pointing to a directory or file in the container. If the
       * path is a relative path, it is relative to the container work
       * directory. If the path is an absolute path, that path must
       * already exist.
       * 
* * required string container_path = 1; */ public Builder clearContainerPath() { bitField0_ = (bitField0_ & ~0x00000002); containerPath_ = getDefaultInstance().getContainerPath(); onChanged(); return this; } /** *
       * Path pointing to a directory or file in the container. If the
       * path is a relative path, it is relative to the container work
       * directory. If the path is an absolute path, that path must
       * already exist.
       * 
* * required string container_path = 1; */ public Builder setContainerPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; containerPath_ = value; onChanged(); return this; } private java.lang.Object hostPath_ = ""; /** *
       * Absolute path pointing to a directory or file on the host or a
       * path relative to the container work directory.
       * 
* * optional string host_path = 2; */ public boolean hasHostPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Absolute path pointing to a directory or file on the host or a
       * path relative to the container work directory.
       * 
* * optional string host_path = 2; */ public java.lang.String getHostPath() { java.lang.Object ref = hostPath_; 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()) { hostPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Absolute path pointing to a directory or file on the host or a
       * path relative to the container work directory.
       * 
* * optional string host_path = 2; */ public com.google.protobuf.ByteString getHostPathBytes() { java.lang.Object ref = hostPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Absolute path pointing to a directory or file on the host or a
       * path relative to the container work directory.
       * 
* * optional string host_path = 2; */ public Builder setHostPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; hostPath_ = value; onChanged(); return this; } /** *
       * Absolute path pointing to a directory or file on the host or a
       * path relative to the container work directory.
       * 
* * optional string host_path = 2; */ public Builder clearHostPath() { bitField0_ = (bitField0_ & ~0x00000004); hostPath_ = getDefaultInstance().getHostPath(); onChanged(); return this; } /** *
       * Absolute path pointing to a directory or file on the host or a
       * path relative to the container work directory.
       * 
* * optional string host_path = 2; */ public Builder setHostPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; hostPath_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.Image image_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image, org.apache.mesos.v1.Protos.Image.Builder, org.apache.mesos.v1.Protos.ImageOrBuilder> imageBuilder_; /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ public boolean hasImage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ public org.apache.mesos.v1.Protos.Image getImage() { if (imageBuilder_ == null) { return image_ == null ? org.apache.mesos.v1.Protos.Image.getDefaultInstance() : image_; } else { return imageBuilder_.getMessage(); } } /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ public Builder setImage(org.apache.mesos.v1.Protos.Image value) { if (imageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } image_ = value; onChanged(); } else { imageBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ public Builder setImage( org.apache.mesos.v1.Protos.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); } else { imageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ public Builder mergeImage(org.apache.mesos.v1.Protos.Image value) { if (imageBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && image_ != null && image_ != org.apache.mesos.v1.Protos.Image.getDefaultInstance()) { image_ = org.apache.mesos.v1.Protos.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } onChanged(); } else { imageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ public Builder clearImage() { if (imageBuilder_ == null) { image_ = null; onChanged(); } else { imageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ public org.apache.mesos.v1.Protos.Image.Builder getImageBuilder() { bitField0_ |= 0x00000008; onChanged(); return getImageFieldBuilder().getBuilder(); } /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ public org.apache.mesos.v1.Protos.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { return image_ == null ? org.apache.mesos.v1.Protos.Image.getDefaultInstance() : image_; } } /** *
       * The source of the volume is an Image which describes a root
       * filesystem which will be provisioned by Mesos.
       * 
* * optional .mesos.v1.Image image = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image, org.apache.mesos.v1.Protos.Image.Builder, org.apache.mesos.v1.Protos.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image, org.apache.mesos.v1.Protos.Image.Builder, org.apache.mesos.v1.Protos.ImageOrBuilder>( getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } private org.apache.mesos.v1.Protos.Volume.Source source_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source, org.apache.mesos.v1.Protos.Volume.Source.Builder, org.apache.mesos.v1.Protos.Volume.SourceOrBuilder> sourceBuilder_; /** * optional .mesos.v1.Volume.Source source = 5; */ public boolean hasSource() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.Volume.Source source = 5; */ public org.apache.mesos.v1.Protos.Volume.Source getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.apache.mesos.v1.Protos.Volume.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * optional .mesos.v1.Volume.Source source = 5; */ public Builder setSource(org.apache.mesos.v1.Protos.Volume.Source value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Volume.Source source = 5; */ public Builder setSource( org.apache.mesos.v1.Protos.Volume.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Volume.Source source = 5; */ public Builder mergeSource(org.apache.mesos.v1.Protos.Volume.Source value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && source_ != null && source_ != org.apache.mesos.v1.Protos.Volume.Source.getDefaultInstance()) { source_ = org.apache.mesos.v1.Protos.Volume.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.Volume.Source source = 5; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.Volume.Source source = 5; */ public org.apache.mesos.v1.Protos.Volume.Source.Builder getSourceBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Volume.Source source = 5; */ public org.apache.mesos.v1.Protos.Volume.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.apache.mesos.v1.Protos.Volume.Source.getDefaultInstance() : source_; } } /** * optional .mesos.v1.Volume.Source source = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source, org.apache.mesos.v1.Protos.Volume.Source.Builder, org.apache.mesos.v1.Protos.Volume.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Volume.Source, org.apache.mesos.v1.Protos.Volume.Source.Builder, org.apache.mesos.v1.Protos.Volume.SourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Volume) } // @@protoc_insertion_point(class_scope:mesos.v1.Volume) private static final org.apache.mesos.v1.Protos.Volume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Volume(); } public static org.apache.mesos.v1.Protos.Volume getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Volume parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Volume(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NetworkInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.NetworkInfo) com.google.protobuf.MessageOrBuilder { /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ java.util.List getIpAddressesList(); /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ org.apache.mesos.v1.Protos.NetworkInfo.IPAddress getIpAddresses(int index); /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ int getIpAddressesCount(); /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ java.util.List getIpAddressesOrBuilderList(); /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ org.apache.mesos.v1.Protos.NetworkInfo.IPAddressOrBuilder getIpAddressesOrBuilder( int index); /** *
     * Name of the network which will be used by network isolator to determine
     * the network that the container joins. It's up to the network isolator
     * to decide how to interpret this field.
     * 
* * optional string name = 6; */ boolean hasName(); /** *
     * Name of the network which will be used by network isolator to determine
     * the network that the container joins. It's up to the network isolator
     * to decide how to interpret this field.
     * 
* * optional string name = 6; */ java.lang.String getName(); /** *
     * Name of the network which will be used by network isolator to determine
     * the network that the container joins. It's up to the network isolator
     * to decide how to interpret this field.
     * 
* * optional string name = 6; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * A group is the name given to a set of logically-related interfaces that
     * are allowed to communicate among themselves. Network traffic is allowed
     * between two container interfaces that share at least one network group.
     * For example, one might want to create separate groups for isolating dev,
     * testing, qa and prod deployment environments.
     * 
* * repeated string groups = 3; */ java.util.List getGroupsList(); /** *
     * A group is the name given to a set of logically-related interfaces that
     * are allowed to communicate among themselves. Network traffic is allowed
     * between two container interfaces that share at least one network group.
     * For example, one might want to create separate groups for isolating dev,
     * testing, qa and prod deployment environments.
     * 
* * repeated string groups = 3; */ int getGroupsCount(); /** *
     * A group is the name given to a set of logically-related interfaces that
     * are allowed to communicate among themselves. Network traffic is allowed
     * between two container interfaces that share at least one network group.
     * For example, one might want to create separate groups for isolating dev,
     * testing, qa and prod deployment environments.
     * 
* * repeated string groups = 3; */ java.lang.String getGroups(int index); /** *
     * A group is the name given to a set of logically-related interfaces that
     * are allowed to communicate among themselves. Network traffic is allowed
     * between two container interfaces that share at least one network group.
     * For example, one might want to create separate groups for isolating dev,
     * testing, qa and prod deployment environments.
     * 
* * repeated string groups = 3; */ com.google.protobuf.ByteString getGroupsBytes(int index); /** *
     * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
     * 
* * optional .mesos.v1.Labels labels = 4; */ boolean hasLabels(); /** *
     * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
     * 
* * optional .mesos.v1.Labels labels = 4; */ org.apache.mesos.v1.Protos.Labels getLabels(); /** *
     * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
     * 
* * optional .mesos.v1.Labels labels = 4; */ org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder(); /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ java.util.List getPortMappingsList(); /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ org.apache.mesos.v1.Protos.NetworkInfo.PortMapping getPortMappings(int index); /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ int getPortMappingsCount(); /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ java.util.List getPortMappingsOrBuilderList(); /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ org.apache.mesos.v1.Protos.NetworkInfo.PortMappingOrBuilder getPortMappingsOrBuilder( int index); } /** *
   **
   * Describes a network request from a framework as well as network resolution
   * provided by Mesos.
   * A framework may request the network isolator on the Agent to isolate the
   * container in a network namespace and create a virtual network interface.
   * The `NetworkInfo` message describes the properties of that virtual
   * interface, including the IP addresses and network isolation policy
   * (network group membership).
   * The NetworkInfo message is not interpreted by the Master or Agent and is
   * intended to be used by Agent and Master modules implementing network
   * isolation. If the modules are missing, the message is simply ignored. In
   * future, the task launch will fail if there is no module providing the
   * network isolation capabilities (MESOS-3390).
   * An executor, Agent, or an Agent module may append NetworkInfos inside
   * TaskStatus::container_status to provide information such as the container IP
   * address and isolation groups.
   * 
* * Protobuf type {@code mesos.v1.NetworkInfo} */ public static final class NetworkInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.NetworkInfo) NetworkInfoOrBuilder { private static final long serialVersionUID = 0L; // Use NetworkInfo.newBuilder() to construct. private NetworkInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NetworkInfo() { ipAddresses_ = java.util.Collections.emptyList(); name_ = ""; groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; portMappings_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NetworkInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { groups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } groups_.add(bs); break; } case 34: { org.apache.mesos.v1.Protos.Labels.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = labels_.toBuilder(); } labels_ = input.readMessage(org.apache.mesos.v1.Protos.Labels.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labels_); labels_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { ipAddresses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ipAddresses_.add( input.readMessage(org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.PARSER, extensionRegistry)); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 58: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { portMappings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } portMappings_.add( input.readMessage(org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { groups_ = groups_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { ipAddresses_ = java.util.Collections.unmodifiableList(ipAddresses_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { portMappings_ = java.util.Collections.unmodifiableList(portMappings_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.NetworkInfo.class, org.apache.mesos.v1.Protos.NetworkInfo.Builder.class); } /** * Protobuf enum {@code mesos.v1.NetworkInfo.Protocol} */ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { /** * IPv4 = 1; */ IPv4(1), /** * IPv6 = 2; */ IPv6(2), ; /** * IPv4 = 1; */ public static final int IPv4_VALUE = 1; /** * IPv6 = 2; */ public static final int IPv6_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Protocol valueOf(int value) { return forNumber(value); } public static Protocol forNumber(int value) { switch (value) { case 1: return IPv4; case 2: return IPv6; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Protocol> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Protocol findValueByNumber(int number) { return Protocol.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.NetworkInfo.getDescriptor().getEnumTypes().get(0); } private static final Protocol[] VALUES = values(); public static Protocol valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Protocol(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.NetworkInfo.Protocol) } public interface IPAddressOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.NetworkInfo.IPAddress) com.google.protobuf.MessageOrBuilder { /** *
       * Specify IP address requirement. Set protocol to the desired value to
       * request the network isolator on the Agent to assign an IP address to the
       * container being launched. If a specific IP address is specified in
       * ip_address, this field should not be set.
       * 
* * optional .mesos.v1.NetworkInfo.Protocol protocol = 1 [default = IPv4]; */ boolean hasProtocol(); /** *
       * Specify IP address requirement. Set protocol to the desired value to
       * request the network isolator on the Agent to assign an IP address to the
       * container being launched. If a specific IP address is specified in
       * ip_address, this field should not be set.
       * 
* * optional .mesos.v1.NetworkInfo.Protocol protocol = 1 [default = IPv4]; */ org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol(); /** *
       * Statically assigned IP provided by the Framework. This IP will be
       * assigned to the container by the network isolator module on the Agent.
       * This field should not be used with the protocol field above.
       * If an explicit address is requested but is unavailable, the network
       * isolator should fail the task.
       * 
* * optional string ip_address = 2; */ boolean hasIpAddress(); /** *
       * Statically assigned IP provided by the Framework. This IP will be
       * assigned to the container by the network isolator module on the Agent.
       * This field should not be used with the protocol field above.
       * If an explicit address is requested but is unavailable, the network
       * isolator should fail the task.
       * 
* * optional string ip_address = 2; */ java.lang.String getIpAddress(); /** *
       * Statically assigned IP provided by the Framework. This IP will be
       * assigned to the container by the network isolator module on the Agent.
       * This field should not be used with the protocol field above.
       * If an explicit address is requested but is unavailable, the network
       * isolator should fail the task.
       * 
* * optional string ip_address = 2; */ com.google.protobuf.ByteString getIpAddressBytes(); } /** *
     * Specifies a request for an IP address, or reports the assigned container
     * IP address.
     * Users can request an automatically assigned IP (for example, via an
     * IPAM service) or a specific IP by adding a NetworkInfo to the
     * ContainerInfo for a task.  On a request, specifying neither `protocol`
     * nor `ip_address` means that any available address may be assigned.
     * 
* * Protobuf type {@code mesos.v1.NetworkInfo.IPAddress} */ public static final class IPAddress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.NetworkInfo.IPAddress) IPAddressOrBuilder { private static final long serialVersionUID = 0L; // Use IPAddress.newBuilder() to construct. private IPAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IPAddress() { protocol_ = 1; ipAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IPAddress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.NetworkInfo.Protocol value = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; protocol_ = rawValue; } break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; ipAddress_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_IPAddress_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_IPAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.class, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder.class); } private int bitField0_; public static final int PROTOCOL_FIELD_NUMBER = 1; private int protocol_; /** *
       * Specify IP address requirement. Set protocol to the desired value to
       * request the network isolator on the Agent to assign an IP address to the
       * container being launched. If a specific IP address is specified in
       * ip_address, this field should not be set.
       * 
* * optional .mesos.v1.NetworkInfo.Protocol protocol = 1 [default = IPv4]; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Specify IP address requirement. Set protocol to the desired value to
       * request the network isolator on the Agent to assign an IP address to the
       * container being launched. If a specific IP address is specified in
       * ip_address, this field should not be set.
       * 
* * optional .mesos.v1.NetworkInfo.Protocol protocol = 1 [default = IPv4]; */ public org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol() { org.apache.mesos.v1.Protos.NetworkInfo.Protocol result = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(protocol_); return result == null ? org.apache.mesos.v1.Protos.NetworkInfo.Protocol.IPv4 : result; } public static final int IP_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object ipAddress_; /** *
       * Statically assigned IP provided by the Framework. This IP will be
       * assigned to the container by the network isolator module on the Agent.
       * This field should not be used with the protocol field above.
       * If an explicit address is requested but is unavailable, the network
       * isolator should fail the task.
       * 
* * optional string ip_address = 2; */ public boolean hasIpAddress() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Statically assigned IP provided by the Framework. This IP will be
       * assigned to the container by the network isolator module on the Agent.
       * This field should not be used with the protocol field above.
       * If an explicit address is requested but is unavailable, the network
       * isolator should fail the task.
       * 
* * optional string ip_address = 2; */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; 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()) { ipAddress_ = s; } return s; } } /** *
       * Statically assigned IP provided by the Framework. This IP will be
       * assigned to the container by the network isolator module on the Agent.
       * This field should not be used with the protocol field above.
       * If an explicit address is requested but is unavailable, the network
       * isolator should fail the task.
       * 
* * optional string ip_address = 2; */ public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ipAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, protocol_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipAddress_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, protocol_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.NetworkInfo.IPAddress)) { return super.equals(obj); } org.apache.mesos.v1.Protos.NetworkInfo.IPAddress other = (org.apache.mesos.v1.Protos.NetworkInfo.IPAddress) obj; boolean result = true; result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && protocol_ == other.protocol_; } result = result && (hasIpAddress() == other.hasIpAddress()); if (hasIpAddress()) { result = result && getIpAddress() .equals(other.getIpAddress()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; } if (hasIpAddress()) { hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress 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.Protos.NetworkInfo.IPAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.NetworkInfo.IPAddress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Specifies a request for an IP address, or reports the assigned container
       * IP address.
       * Users can request an automatically assigned IP (for example, via an
       * IPAM service) or a specific IP by adding a NetworkInfo to the
       * ContainerInfo for a task.  On a request, specifying neither `protocol`
       * nor `ip_address` means that any available address may be assigned.
       * 
* * Protobuf type {@code mesos.v1.NetworkInfo.IPAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.NetworkInfo.IPAddress) org.apache.mesos.v1.Protos.NetworkInfo.IPAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_IPAddress_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_IPAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.class, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder.class); } // Construct using org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); protocol_ = 1; bitField0_ = (bitField0_ & ~0x00000001); ipAddress_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_IPAddress_descriptor; } public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.getDefaultInstance(); } public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress build() { org.apache.mesos.v1.Protos.NetworkInfo.IPAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress buildPartial() { org.apache.mesos.v1.Protos.NetworkInfo.IPAddress result = new org.apache.mesos.v1.Protos.NetworkInfo.IPAddress(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.protocol_ = protocol_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.ipAddress_ = ipAddress_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.NetworkInfo.IPAddress) { return mergeFrom((org.apache.mesos.v1.Protos.NetworkInfo.IPAddress)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.NetworkInfo.IPAddress other) { if (other == org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.getDefaultInstance()) return this; if (other.hasProtocol()) { setProtocol(other.getProtocol()); } if (other.hasIpAddress()) { bitField0_ |= 0x00000002; ipAddress_ = other.ipAddress_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.NetworkInfo.IPAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.NetworkInfo.IPAddress) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int protocol_ = 1; /** *
         * Specify IP address requirement. Set protocol to the desired value to
         * request the network isolator on the Agent to assign an IP address to the
         * container being launched. If a specific IP address is specified in
         * ip_address, this field should not be set.
         * 
* * optional .mesos.v1.NetworkInfo.Protocol protocol = 1 [default = IPv4]; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Specify IP address requirement. Set protocol to the desired value to
         * request the network isolator on the Agent to assign an IP address to the
         * container being launched. If a specific IP address is specified in
         * ip_address, this field should not be set.
         * 
* * optional .mesos.v1.NetworkInfo.Protocol protocol = 1 [default = IPv4]; */ public org.apache.mesos.v1.Protos.NetworkInfo.Protocol getProtocol() { org.apache.mesos.v1.Protos.NetworkInfo.Protocol result = org.apache.mesos.v1.Protos.NetworkInfo.Protocol.valueOf(protocol_); return result == null ? org.apache.mesos.v1.Protos.NetworkInfo.Protocol.IPv4 : result; } /** *
         * Specify IP address requirement. Set protocol to the desired value to
         * request the network isolator on the Agent to assign an IP address to the
         * container being launched. If a specific IP address is specified in
         * ip_address, this field should not be set.
         * 
* * optional .mesos.v1.NetworkInfo.Protocol protocol = 1 [default = IPv4]; */ public Builder setProtocol(org.apache.mesos.v1.Protos.NetworkInfo.Protocol value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; protocol_ = value.getNumber(); onChanged(); return this; } /** *
         * Specify IP address requirement. Set protocol to the desired value to
         * request the network isolator on the Agent to assign an IP address to the
         * container being launched. If a specific IP address is specified in
         * ip_address, this field should not be set.
         * 
* * optional .mesos.v1.NetworkInfo.Protocol protocol = 1 [default = IPv4]; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000001); protocol_ = 1; onChanged(); return this; } private java.lang.Object ipAddress_ = ""; /** *
         * Statically assigned IP provided by the Framework. This IP will be
         * assigned to the container by the network isolator module on the Agent.
         * This field should not be used with the protocol field above.
         * If an explicit address is requested but is unavailable, the network
         * isolator should fail the task.
         * 
* * optional string ip_address = 2; */ public boolean hasIpAddress() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Statically assigned IP provided by the Framework. This IP will be
         * assigned to the container by the network isolator module on the Agent.
         * This field should not be used with the protocol field above.
         * If an explicit address is requested but is unavailable, the network
         * isolator should fail the task.
         * 
* * optional string ip_address = 2; */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; 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()) { ipAddress_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * Statically assigned IP provided by the Framework. This IP will be
         * assigned to the container by the network isolator module on the Agent.
         * This field should not be used with the protocol field above.
         * If an explicit address is requested but is unavailable, the network
         * isolator should fail the task.
         * 
* * optional string ip_address = 2; */ public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ipAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Statically assigned IP provided by the Framework. This IP will be
         * assigned to the container by the network isolator module on the Agent.
         * This field should not be used with the protocol field above.
         * If an explicit address is requested but is unavailable, the network
         * isolator should fail the task.
         * 
* * optional string ip_address = 2; */ public Builder setIpAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; ipAddress_ = value; onChanged(); return this; } /** *
         * Statically assigned IP provided by the Framework. This IP will be
         * assigned to the container by the network isolator module on the Agent.
         * This field should not be used with the protocol field above.
         * If an explicit address is requested but is unavailable, the network
         * isolator should fail the task.
         * 
* * optional string ip_address = 2; */ public Builder clearIpAddress() { bitField0_ = (bitField0_ & ~0x00000002); ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** *
         * Statically assigned IP provided by the Framework. This IP will be
         * assigned to the container by the network isolator module on the Agent.
         * This field should not be used with the protocol field above.
         * If an explicit address is requested but is unavailable, the network
         * isolator should fail the task.
         * 
* * optional string ip_address = 2; */ public Builder setIpAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; ipAddress_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.NetworkInfo.IPAddress) } // @@protoc_insertion_point(class_scope:mesos.v1.NetworkInfo.IPAddress) private static final org.apache.mesos.v1.Protos.NetworkInfo.IPAddress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.NetworkInfo.IPAddress(); } public static org.apache.mesos.v1.Protos.NetworkInfo.IPAddress getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IPAddress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IPAddress(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PortMappingOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.NetworkInfo.PortMapping) com.google.protobuf.MessageOrBuilder { /** * required uint32 host_port = 1; */ boolean hasHostPort(); /** * required uint32 host_port = 1; */ int getHostPort(); /** * required uint32 container_port = 2; */ boolean hasContainerPort(); /** * required uint32 container_port = 2; */ int getContainerPort(); /** *
       * Protocol to expose as (ie: tcp, udp).
       * 
* * optional string protocol = 3; */ boolean hasProtocol(); /** *
       * Protocol to expose as (ie: tcp, udp).
       * 
* * optional string protocol = 3; */ java.lang.String getProtocol(); /** *
       * Protocol to expose as (ie: tcp, udp).
       * 
* * optional string protocol = 3; */ com.google.protobuf.ByteString getProtocolBytes(); } /** *
     * Specifies a port mapping request for the task on this network.
     * 
* * Protobuf type {@code mesos.v1.NetworkInfo.PortMapping} */ public static final class PortMapping extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.NetworkInfo.PortMapping) PortMappingOrBuilder { private static final long serialVersionUID = 0L; // Use PortMapping.newBuilder() to construct. private PortMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PortMapping() { hostPort_ = 0; containerPort_ = 0; protocol_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PortMapping( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; hostPort_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; containerPort_ = input.readUInt32(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; protocol_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_PortMapping_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_PortMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.class, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder.class); } private int bitField0_; public static final int HOST_PORT_FIELD_NUMBER = 1; private int hostPort_; /** * required uint32 host_port = 1; */ public boolean hasHostPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 host_port = 1; */ public int getHostPort() { return hostPort_; } public static final int CONTAINER_PORT_FIELD_NUMBER = 2; private int containerPort_; /** * required uint32 container_port = 2; */ public boolean hasContainerPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 container_port = 2; */ public int getContainerPort() { return containerPort_; } public static final int PROTOCOL_FIELD_NUMBER = 3; private volatile java.lang.Object protocol_; /** *
       * Protocol to expose as (ie: tcp, udp).
       * 
* * optional string protocol = 3; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Protocol to expose as (ie: tcp, udp).
       * 
* * optional string protocol = 3; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } } /** *
       * Protocol to expose as (ie: tcp, udp).
       * 
* * optional string protocol = 3; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasHostPort()) { memoizedIsInitialized = 0; return false; } if (!hasContainerPort()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, hostPort_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, containerPort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, protocol_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, hostPort_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, containerPort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, protocol_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.NetworkInfo.PortMapping)) { return super.equals(obj); } org.apache.mesos.v1.Protos.NetworkInfo.PortMapping other = (org.apache.mesos.v1.Protos.NetworkInfo.PortMapping) obj; boolean result = true; result = result && (hasHostPort() == other.hasHostPort()); if (hasHostPort()) { result = result && (getHostPort() == other.getHostPort()); } result = result && (hasContainerPort() == other.hasContainerPort()); if (hasContainerPort()) { result = result && (getContainerPort() == other.getContainerPort()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol() .equals(other.getProtocol()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHostPort()) { hash = (37 * hash) + HOST_PORT_FIELD_NUMBER; hash = (53 * hash) + getHostPort(); } if (hasContainerPort()) { hash = (37 * hash) + CONTAINER_PORT_FIELD_NUMBER; hash = (53 * hash) + getContainerPort(); } if (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping 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.Protos.NetworkInfo.PortMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.NetworkInfo.PortMapping prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Specifies a port mapping request for the task on this network.
       * 
* * Protobuf type {@code mesos.v1.NetworkInfo.PortMapping} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.NetworkInfo.PortMapping) org.apache.mesos.v1.Protos.NetworkInfo.PortMappingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_PortMapping_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_PortMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.class, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder.class); } // Construct using org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); hostPort_ = 0; bitField0_ = (bitField0_ & ~0x00000001); containerPort_ = 0; bitField0_ = (bitField0_ & ~0x00000002); protocol_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_PortMapping_descriptor; } public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.getDefaultInstance(); } public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping build() { org.apache.mesos.v1.Protos.NetworkInfo.PortMapping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping buildPartial() { org.apache.mesos.v1.Protos.NetworkInfo.PortMapping result = new org.apache.mesos.v1.Protos.NetworkInfo.PortMapping(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.hostPort_ = hostPort_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.containerPort_ = containerPort_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.protocol_ = protocol_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.NetworkInfo.PortMapping) { return mergeFrom((org.apache.mesos.v1.Protos.NetworkInfo.PortMapping)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.NetworkInfo.PortMapping other) { if (other == org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.getDefaultInstance()) return this; if (other.hasHostPort()) { setHostPort(other.getHostPort()); } if (other.hasContainerPort()) { setContainerPort(other.getContainerPort()); } if (other.hasProtocol()) { bitField0_ |= 0x00000004; protocol_ = other.protocol_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasHostPort()) { return false; } if (!hasContainerPort()) { 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.Protos.NetworkInfo.PortMapping parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.NetworkInfo.PortMapping) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int hostPort_ ; /** * required uint32 host_port = 1; */ public boolean hasHostPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 host_port = 1; */ public int getHostPort() { return hostPort_; } /** * required uint32 host_port = 1; */ public Builder setHostPort(int value) { bitField0_ |= 0x00000001; hostPort_ = value; onChanged(); return this; } /** * required uint32 host_port = 1; */ public Builder clearHostPort() { bitField0_ = (bitField0_ & ~0x00000001); hostPort_ = 0; onChanged(); return this; } private int containerPort_ ; /** * required uint32 container_port = 2; */ public boolean hasContainerPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 container_port = 2; */ public int getContainerPort() { return containerPort_; } /** * required uint32 container_port = 2; */ public Builder setContainerPort(int value) { bitField0_ |= 0x00000002; containerPort_ = value; onChanged(); return this; } /** * required uint32 container_port = 2; */ public Builder clearContainerPort() { bitField0_ = (bitField0_ & ~0x00000002); containerPort_ = 0; onChanged(); return this; } private java.lang.Object protocol_ = ""; /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public Builder setProtocol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; protocol_ = value; onChanged(); return this; } /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000004); protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public Builder setProtocolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; protocol_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.NetworkInfo.PortMapping) } // @@protoc_insertion_point(class_scope:mesos.v1.NetworkInfo.PortMapping) private static final org.apache.mesos.v1.Protos.NetworkInfo.PortMapping DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.NetworkInfo.PortMapping(); } public static org.apache.mesos.v1.Protos.NetworkInfo.PortMapping getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PortMapping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PortMapping(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int IP_ADDRESSES_FIELD_NUMBER = 5; private java.util.List ipAddresses_; /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public java.util.List getIpAddressesList() { return ipAddresses_; } /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public java.util.List getIpAddressesOrBuilderList() { return ipAddresses_; } /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress getIpAddresses(int index) { return ipAddresses_.get(index); } /** *
     * When included in a ContainerInfo, each of these represent a
     * request for an IP address. Each request can specify an explicit address
     * or the IP protocol to use.
     * When included in a TaskStatus message, these inform the framework
     * scheduler about the IP addresses that are bound to the container
     * interface. When there are no custom network isolator modules installed,
     * this field is filled in automatically with the Agent IP address.
     * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public org.apache.mesos.v1.Protos.NetworkInfo.IPAddressOrBuilder getIpAddressesOrBuilder( int index) { return ipAddresses_.get(index); } public static final int NAME_FIELD_NUMBER = 6; private volatile java.lang.Object name_; /** *
     * Name of the network which will be used by network isolator to determine
     * the network that the container joins. It's up to the network isolator
     * to decide how to interpret this field.
     * 
* * optional string name = 6; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Name of the network which will be used by network isolator to determine
     * the network that the container joins. It's up to the network isolator
     * to decide how to interpret this field.
     * 
* * optional string name = 6; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
     * Name of the network which will be used by network isolator to determine
     * the network that the container joins. It's up to the network isolator
     * to decide how to interpret this field.
     * 
* * optional string name = 6; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GROUPS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList groups_; /** *
     * A group is the name given to a set of logically-related interfaces that
     * are allowed to communicate among themselves. Network traffic is allowed
     * between two container interfaces that share at least one network group.
     * For example, one might want to create separate groups for isolating dev,
     * testing, qa and prod deployment environments.
     * 
* * repeated string groups = 3; */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_; } /** *
     * A group is the name given to a set of logically-related interfaces that
     * are allowed to communicate among themselves. Network traffic is allowed
     * between two container interfaces that share at least one network group.
     * For example, one might want to create separate groups for isolating dev,
     * testing, qa and prod deployment environments.
     * 
* * repeated string groups = 3; */ public int getGroupsCount() { return groups_.size(); } /** *
     * A group is the name given to a set of logically-related interfaces that
     * are allowed to communicate among themselves. Network traffic is allowed
     * between two container interfaces that share at least one network group.
     * For example, one might want to create separate groups for isolating dev,
     * testing, qa and prod deployment environments.
     * 
* * repeated string groups = 3; */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** *
     * A group is the name given to a set of logically-related interfaces that
     * are allowed to communicate among themselves. Network traffic is allowed
     * between two container interfaces that share at least one network group.
     * For example, one might want to create separate groups for isolating dev,
     * testing, qa and prod deployment environments.
     * 
* * repeated string groups = 3; */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } public static final int LABELS_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.Labels labels_; /** *
     * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
     * 
* * optional .mesos.v1.Labels labels = 4; */ public boolean hasLabels() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
     * 
* * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.Labels getLabels() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } /** *
     * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
     * 
* * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } public static final int PORT_MAPPINGS_FIELD_NUMBER = 7; private java.util.List portMappings_; /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public java.util.List getPortMappingsList() { return portMappings_; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public java.util.List getPortMappingsOrBuilderList() { return portMappings_; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public int getPortMappingsCount() { return portMappings_.size(); } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping getPortMappings(int index) { return portMappings_.get(index); } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.PortMappingOrBuilder getPortMappingsOrBuilder( int index) { return portMappings_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasLabels()) { if (!getLabels().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getPortMappingsCount(); i++) { if (!getPortMappings(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < groups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groups_.getRaw(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(4, getLabels()); } for (int i = 0; i < ipAddresses_.size(); i++) { output.writeMessage(5, ipAddresses_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } for (int i = 0; i < portMappings_.size(); i++) { output.writeMessage(7, portMappings_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < groups_.size(); i++) { dataSize += computeStringSizeNoTag(groups_.getRaw(i)); } size += dataSize; size += 1 * getGroupsList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLabels()); } for (int i = 0; i < ipAddresses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, ipAddresses_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } for (int i = 0; i < portMappings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, portMappings_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.NetworkInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.NetworkInfo other = (org.apache.mesos.v1.Protos.NetworkInfo) obj; boolean result = true; result = result && getIpAddressesList() .equals(other.getIpAddressesList()); result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && getGroupsList() .equals(other.getGroupsList()); result = result && (hasLabels() == other.hasLabels()); if (hasLabels()) { result = result && getLabels() .equals(other.getLabels()); } result = result && getPortMappingsList() .equals(other.getPortMappingsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getIpAddressesCount() > 0) { hash = (37 * hash) + IP_ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getIpAddressesList().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (getGroupsCount() > 0) { hash = (37 * hash) + GROUPS_FIELD_NUMBER; hash = (53 * hash) + getGroupsList().hashCode(); } if (hasLabels()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); } if (getPortMappingsCount() > 0) { hash = (37 * hash) + PORT_MAPPINGS_FIELD_NUMBER; hash = (53 * hash) + getPortMappingsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.NetworkInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo 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.Protos.NetworkInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.NetworkInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.NetworkInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.NetworkInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.NetworkInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a network request from a framework as well as network resolution
     * provided by Mesos.
     * A framework may request the network isolator on the Agent to isolate the
     * container in a network namespace and create a virtual network interface.
     * The `NetworkInfo` message describes the properties of that virtual
     * interface, including the IP addresses and network isolation policy
     * (network group membership).
     * The NetworkInfo message is not interpreted by the Master or Agent and is
     * intended to be used by Agent and Master modules implementing network
     * isolation. If the modules are missing, the message is simply ignored. In
     * future, the task launch will fail if there is no module providing the
     * network isolation capabilities (MESOS-3390).
     * An executor, Agent, or an Agent module may append NetworkInfos inside
     * TaskStatus::container_status to provide information such as the container IP
     * address and isolation groups.
     * 
* * Protobuf type {@code mesos.v1.NetworkInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.NetworkInfo) org.apache.mesos.v1.Protos.NetworkInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.NetworkInfo.class, org.apache.mesos.v1.Protos.NetworkInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.NetworkInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIpAddressesFieldBuilder(); getLabelsFieldBuilder(); getPortMappingsFieldBuilder(); } } public Builder clear() { super.clear(); if (ipAddressesBuilder_ == null) { ipAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { ipAddressesBuilder_.clear(); } name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (labelsBuilder_ == null) { labels_ = null; } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (portMappingsBuilder_ == null) { portMappings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { portMappingsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_NetworkInfo_descriptor; } public org.apache.mesos.v1.Protos.NetworkInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.NetworkInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.NetworkInfo build() { org.apache.mesos.v1.Protos.NetworkInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.NetworkInfo buildPartial() { org.apache.mesos.v1.Protos.NetworkInfo result = new org.apache.mesos.v1.Protos.NetworkInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (ipAddressesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { ipAddresses_ = java.util.Collections.unmodifiableList(ipAddresses_); bitField0_ = (bitField0_ & ~0x00000001); } result.ipAddresses_ = ipAddresses_; } else { result.ipAddresses_ = ipAddressesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((bitField0_ & 0x00000004) == 0x00000004)) { groups_ = groups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.groups_ = groups_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } if (labelsBuilder_ == null) { result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } if (portMappingsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { portMappings_ = java.util.Collections.unmodifiableList(portMappings_); bitField0_ = (bitField0_ & ~0x00000010); } result.portMappings_ = portMappings_; } else { result.portMappings_ = portMappingsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.NetworkInfo) { return mergeFrom((org.apache.mesos.v1.Protos.NetworkInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.NetworkInfo other) { if (other == org.apache.mesos.v1.Protos.NetworkInfo.getDefaultInstance()) return this; if (ipAddressesBuilder_ == null) { if (!other.ipAddresses_.isEmpty()) { if (ipAddresses_.isEmpty()) { ipAddresses_ = other.ipAddresses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIpAddressesIsMutable(); ipAddresses_.addAll(other.ipAddresses_); } onChanged(); } } else { if (!other.ipAddresses_.isEmpty()) { if (ipAddressesBuilder_.isEmpty()) { ipAddressesBuilder_.dispose(); ipAddressesBuilder_ = null; ipAddresses_ = other.ipAddresses_; bitField0_ = (bitField0_ & ~0x00000001); ipAddressesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIpAddressesFieldBuilder() : null; } else { ipAddressesBuilder_.addAllMessages(other.ipAddresses_); } } } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (!other.groups_.isEmpty()) { if (groups_.isEmpty()) { groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureGroupsIsMutable(); groups_.addAll(other.groups_); } onChanged(); } if (other.hasLabels()) { mergeLabels(other.getLabels()); } if (portMappingsBuilder_ == null) { if (!other.portMappings_.isEmpty()) { if (portMappings_.isEmpty()) { portMappings_ = other.portMappings_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePortMappingsIsMutable(); portMappings_.addAll(other.portMappings_); } onChanged(); } } else { if (!other.portMappings_.isEmpty()) { if (portMappingsBuilder_.isEmpty()) { portMappingsBuilder_.dispose(); portMappingsBuilder_ = null; portMappings_ = other.portMappings_; bitField0_ = (bitField0_ & ~0x00000010); portMappingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortMappingsFieldBuilder() : null; } else { portMappingsBuilder_.addAllMessages(other.portMappings_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasLabels()) { if (!getLabels().isInitialized()) { return false; } } for (int i = 0; i < getPortMappingsCount(); i++) { if (!getPortMappings(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.Protos.NetworkInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.NetworkInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List ipAddresses_ = java.util.Collections.emptyList(); private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { ipAddresses_ = new java.util.ArrayList(ipAddresses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo.IPAddress, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder, org.apache.mesos.v1.Protos.NetworkInfo.IPAddressOrBuilder> ipAddressesBuilder_; /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public java.util.List getIpAddressesList() { if (ipAddressesBuilder_ == null) { return java.util.Collections.unmodifiableList(ipAddresses_); } else { return ipAddressesBuilder_.getMessageList(); } } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public int getIpAddressesCount() { if (ipAddressesBuilder_ == null) { return ipAddresses_.size(); } else { return ipAddressesBuilder_.getCount(); } } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress getIpAddresses(int index) { if (ipAddressesBuilder_ == null) { return ipAddresses_.get(index); } else { return ipAddressesBuilder_.getMessage(index); } } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder setIpAddresses( int index, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress value) { if (ipAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); } else { ipAddressesBuilder_.setMessage(index, value); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder setIpAddresses( int index, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder builderForValue) { if (ipAddressesBuilder_ == null) { ensureIpAddressesIsMutable(); ipAddresses_.set(index, builderForValue.build()); onChanged(); } else { ipAddressesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder addIpAddresses(org.apache.mesos.v1.Protos.NetworkInfo.IPAddress value) { if (ipAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); } else { ipAddressesBuilder_.addMessage(value); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder addIpAddresses( int index, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress value) { if (ipAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIpAddressesIsMutable(); ipAddresses_.add(index, value); onChanged(); } else { ipAddressesBuilder_.addMessage(index, value); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder addIpAddresses( org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder builderForValue) { if (ipAddressesBuilder_ == null) { ensureIpAddressesIsMutable(); ipAddresses_.add(builderForValue.build()); onChanged(); } else { ipAddressesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder addIpAddresses( int index, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder builderForValue) { if (ipAddressesBuilder_ == null) { ensureIpAddressesIsMutable(); ipAddresses_.add(index, builderForValue.build()); onChanged(); } else { ipAddressesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder addAllIpAddresses( java.lang.Iterable values) { if (ipAddressesBuilder_ == null) { ensureIpAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ipAddresses_); onChanged(); } else { ipAddressesBuilder_.addAllMessages(values); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder clearIpAddresses() { if (ipAddressesBuilder_ == null) { ipAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { ipAddressesBuilder_.clear(); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public Builder removeIpAddresses(int index) { if (ipAddressesBuilder_ == null) { ensureIpAddressesIsMutable(); ipAddresses_.remove(index); onChanged(); } else { ipAddressesBuilder_.remove(index); } return this; } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder getIpAddressesBuilder( int index) { return getIpAddressesFieldBuilder().getBuilder(index); } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public org.apache.mesos.v1.Protos.NetworkInfo.IPAddressOrBuilder getIpAddressesOrBuilder( int index) { if (ipAddressesBuilder_ == null) { return ipAddresses_.get(index); } else { return ipAddressesBuilder_.getMessageOrBuilder(index); } } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public java.util.List getIpAddressesOrBuilderList() { if (ipAddressesBuilder_ != null) { return ipAddressesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ipAddresses_); } } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder addIpAddressesBuilder() { return getIpAddressesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.getDefaultInstance()); } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder addIpAddressesBuilder( int index) { return getIpAddressesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.getDefaultInstance()); } /** *
       * When included in a ContainerInfo, each of these represent a
       * request for an IP address. Each request can specify an explicit address
       * or the IP protocol to use.
       * When included in a TaskStatus message, these inform the framework
       * scheduler about the IP addresses that are bound to the container
       * interface. When there are no custom network isolator modules installed,
       * this field is filled in automatically with the Agent IP address.
       * 
* * repeated .mesos.v1.NetworkInfo.IPAddress ip_addresses = 5; */ public java.util.List getIpAddressesBuilderList() { return getIpAddressesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo.IPAddress, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder, org.apache.mesos.v1.Protos.NetworkInfo.IPAddressOrBuilder> getIpAddressesFieldBuilder() { if (ipAddressesBuilder_ == null) { ipAddressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo.IPAddress, org.apache.mesos.v1.Protos.NetworkInfo.IPAddress.Builder, org.apache.mesos.v1.Protos.NetworkInfo.IPAddressOrBuilder>( ipAddresses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); ipAddresses_ = null; } return ipAddressesBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the network which will be used by network isolator to determine
       * the network that the container joins. It's up to the network isolator
       * to decide how to interpret this field.
       * 
* * optional string name = 6; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Name of the network which will be used by network isolator to determine
       * the network that the container joins. It's up to the network isolator
       * to decide how to interpret this field.
       * 
* * optional string name = 6; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the network which will be used by network isolator to determine
       * the network that the container joins. It's up to the network isolator
       * to decide how to interpret this field.
       * 
* * optional string name = 6; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the network which will be used by network isolator to determine
       * the network that the container joins. It's up to the network isolator
       * to decide how to interpret this field.
       * 
* * optional string name = 6; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** *
       * Name of the network which will be used by network isolator to determine
       * the network that the container joins. It's up to the network isolator
       * to decide how to interpret this field.
       * 
* * optional string name = 6; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the network which will be used by network isolator to determine
       * the network that the container joins. It's up to the network isolator
       * to decide how to interpret this field.
       * 
* * optional string name = 6; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGroupsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { groups_ = new com.google.protobuf.LazyStringArrayList(groups_); bitField0_ |= 0x00000004; } } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_.getUnmodifiableView(); } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public int getGroupsCount() { return groups_.size(); } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public Builder setGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.set(index, value); onChanged(); return this; } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public Builder addGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); onChanged(); return this; } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public Builder addAllGroups( java.lang.Iterable values) { ensureGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groups_); onChanged(); return this; } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public Builder clearGroups() { groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * A group is the name given to a set of logically-related interfaces that
       * are allowed to communicate among themselves. Network traffic is allowed
       * between two container interfaces that share at least one network group.
       * For example, one might want to create separate groups for isolating dev,
       * testing, qa and prod deployment environments.
       * 
* * repeated string groups = 3; */ public Builder addGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); onChanged(); return this; } private org.apache.mesos.v1.Protos.Labels labels_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> labelsBuilder_; /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ public boolean hasLabels() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.Labels getLabels() { if (labelsBuilder_ == null) { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } else { return labelsBuilder_.getMessage(); } } /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ public Builder setLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); } else { labelsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ public Builder setLabels( org.apache.mesos.v1.Protos.Labels.Builder builderForValue) { if (labelsBuilder_ == null) { labels_ = builderForValue.build(); onChanged(); } else { labelsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ public Builder mergeLabels(org.apache.mesos.v1.Protos.Labels value) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && labels_ != null && labels_ != org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) { labels_ = org.apache.mesos.v1.Protos.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); } else { labels_ = value; } onChanged(); } else { labelsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = null; onChanged(); } else { labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.Labels.Builder getLabelsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLabelsFieldBuilder().getBuilder(); } /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ public org.apache.mesos.v1.Protos.LabelsOrBuilder getLabelsOrBuilder() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilder(); } else { return labels_ == null ? org.apache.mesos.v1.Protos.Labels.getDefaultInstance() : labels_; } } /** *
       * To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
       * 
* * optional .mesos.v1.Labels labels = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Labels, org.apache.mesos.v1.Protos.Labels.Builder, org.apache.mesos.v1.Protos.LabelsOrBuilder>( getLabels(), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } private java.util.List portMappings_ = java.util.Collections.emptyList(); private void ensurePortMappingsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { portMappings_ = new java.util.ArrayList(portMappings_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo.PortMapping, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder, org.apache.mesos.v1.Protos.NetworkInfo.PortMappingOrBuilder> portMappingsBuilder_; /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public java.util.List getPortMappingsList() { if (portMappingsBuilder_ == null) { return java.util.Collections.unmodifiableList(portMappings_); } else { return portMappingsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public int getPortMappingsCount() { if (portMappingsBuilder_ == null) { return portMappings_.size(); } else { return portMappingsBuilder_.getCount(); } } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping getPortMappings(int index) { if (portMappingsBuilder_ == null) { return portMappings_.get(index); } else { return portMappingsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder setPortMappings( int index, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping value) { if (portMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortMappingsIsMutable(); portMappings_.set(index, value); onChanged(); } else { portMappingsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder setPortMappings( int index, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder builderForValue) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); portMappings_.set(index, builderForValue.build()); onChanged(); } else { portMappingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder addPortMappings(org.apache.mesos.v1.Protos.NetworkInfo.PortMapping value) { if (portMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortMappingsIsMutable(); portMappings_.add(value); onChanged(); } else { portMappingsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder addPortMappings( int index, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping value) { if (portMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortMappingsIsMutable(); portMappings_.add(index, value); onChanged(); } else { portMappingsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder addPortMappings( org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder builderForValue) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); portMappings_.add(builderForValue.build()); onChanged(); } else { portMappingsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder addPortMappings( int index, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder builderForValue) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); portMappings_.add(index, builderForValue.build()); onChanged(); } else { portMappingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder addAllPortMappings( java.lang.Iterable values) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, portMappings_); onChanged(); } else { portMappingsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder clearPortMappings() { if (portMappingsBuilder_ == null) { portMappings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { portMappingsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public Builder removePortMappings(int index) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); portMappings_.remove(index); onChanged(); } else { portMappingsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder getPortMappingsBuilder( int index) { return getPortMappingsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.PortMappingOrBuilder getPortMappingsOrBuilder( int index) { if (portMappingsBuilder_ == null) { return portMappings_.get(index); } else { return portMappingsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public java.util.List getPortMappingsOrBuilderList() { if (portMappingsBuilder_ != null) { return portMappingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(portMappings_); } } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder addPortMappingsBuilder() { return getPortMappingsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.getDefaultInstance()); } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder addPortMappingsBuilder( int index) { return getPortMappingsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.getDefaultInstance()); } /** * repeated .mesos.v1.NetworkInfo.PortMapping port_mappings = 7; */ public java.util.List getPortMappingsBuilderList() { return getPortMappingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo.PortMapping, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder, org.apache.mesos.v1.Protos.NetworkInfo.PortMappingOrBuilder> getPortMappingsFieldBuilder() { if (portMappingsBuilder_ == null) { portMappingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo.PortMapping, org.apache.mesos.v1.Protos.NetworkInfo.PortMapping.Builder, org.apache.mesos.v1.Protos.NetworkInfo.PortMappingOrBuilder>( portMappings_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); portMappings_ = null; } return portMappingsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.NetworkInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.NetworkInfo) private static final org.apache.mesos.v1.Protos.NetworkInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.NetworkInfo(); } public static org.apache.mesos.v1.Protos.NetworkInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NetworkInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NetworkInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.NetworkInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CapabilityInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CapabilityInfo) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ java.util.List getCapabilitiesList(); /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ int getCapabilitiesCount(); /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ org.apache.mesos.v1.Protos.CapabilityInfo.Capability getCapabilities(int index); } /** *
   **
   * Encapsulation of `Capabilities` supported by Linux.
   * Reference: http://linux.die.net/man/7/capabilities.
   * 
* * Protobuf type {@code mesos.v1.CapabilityInfo} */ public static final class CapabilityInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CapabilityInfo) CapabilityInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CapabilityInfo.newBuilder() to construct. private CapabilityInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CapabilityInfo() { capabilities_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CapabilityInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.CapabilityInfo.Capability value = org.apache.mesos.v1.Protos.CapabilityInfo.Capability.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { capabilities_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } capabilities_.add(rawValue); } break; } case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.CapabilityInfo.Capability value = org.apache.mesos.v1.Protos.CapabilityInfo.Capability.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { capabilities_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } capabilities_.add(rawValue); } } input.popLimit(oldLimit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { capabilities_ = java.util.Collections.unmodifiableList(capabilities_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CapabilityInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CapabilityInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CapabilityInfo.class, org.apache.mesos.v1.Protos.CapabilityInfo.Builder.class); } /** *
     * We start the actual values at an offset(1000) because Protobuf 2
     * uses the first value as the default one. Separating the default
     * value from the real first value helps to disambiguate them. This
     * is especially valuable for backward compatibility.
     * See: MESOS-4997.
     * 
* * Protobuf enum {@code mesos.v1.CapabilityInfo.Capability} */ public enum Capability implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * CHOWN = 1000; */ CHOWN(1000), /** * DAC_OVERRIDE = 1001; */ DAC_OVERRIDE(1001), /** * DAC_READ_SEARCH = 1002; */ DAC_READ_SEARCH(1002), /** * FOWNER = 1003; */ FOWNER(1003), /** * FSETID = 1004; */ FSETID(1004), /** * KILL = 1005; */ KILL(1005), /** * SETGID = 1006; */ SETGID(1006), /** * SETUID = 1007; */ SETUID(1007), /** * SETPCAP = 1008; */ SETPCAP(1008), /** * LINUX_IMMUTABLE = 1009; */ LINUX_IMMUTABLE(1009), /** * NET_BIND_SERVICE = 1010; */ NET_BIND_SERVICE(1010), /** * NET_BROADCAST = 1011; */ NET_BROADCAST(1011), /** * NET_ADMIN = 1012; */ NET_ADMIN(1012), /** * NET_RAW = 1013; */ NET_RAW(1013), /** * IPC_LOCK = 1014; */ IPC_LOCK(1014), /** * IPC_OWNER = 1015; */ IPC_OWNER(1015), /** * SYS_MODULE = 1016; */ SYS_MODULE(1016), /** * SYS_RAWIO = 1017; */ SYS_RAWIO(1017), /** * SYS_CHROOT = 1018; */ SYS_CHROOT(1018), /** * SYS_PTRACE = 1019; */ SYS_PTRACE(1019), /** * SYS_PACCT = 1020; */ SYS_PACCT(1020), /** * SYS_ADMIN = 1021; */ SYS_ADMIN(1021), /** * SYS_BOOT = 1022; */ SYS_BOOT(1022), /** * SYS_NICE = 1023; */ SYS_NICE(1023), /** * SYS_RESOURCE = 1024; */ SYS_RESOURCE(1024), /** * SYS_TIME = 1025; */ SYS_TIME(1025), /** * SYS_TTY_CONFIG = 1026; */ SYS_TTY_CONFIG(1026), /** * MKNOD = 1027; */ MKNOD(1027), /** * LEASE = 1028; */ LEASE(1028), /** * AUDIT_WRITE = 1029; */ AUDIT_WRITE(1029), /** * AUDIT_CONTROL = 1030; */ AUDIT_CONTROL(1030), /** * SETFCAP = 1031; */ SETFCAP(1031), /** * MAC_OVERRIDE = 1032; */ MAC_OVERRIDE(1032), /** * MAC_ADMIN = 1033; */ MAC_ADMIN(1033), /** * SYSLOG = 1034; */ SYSLOG(1034), /** * WAKE_ALARM = 1035; */ WAKE_ALARM(1035), /** * BLOCK_SUSPEND = 1036; */ BLOCK_SUSPEND(1036), /** * AUDIT_READ = 1037; */ AUDIT_READ(1037), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * CHOWN = 1000; */ public static final int CHOWN_VALUE = 1000; /** * DAC_OVERRIDE = 1001; */ public static final int DAC_OVERRIDE_VALUE = 1001; /** * DAC_READ_SEARCH = 1002; */ public static final int DAC_READ_SEARCH_VALUE = 1002; /** * FOWNER = 1003; */ public static final int FOWNER_VALUE = 1003; /** * FSETID = 1004; */ public static final int FSETID_VALUE = 1004; /** * KILL = 1005; */ public static final int KILL_VALUE = 1005; /** * SETGID = 1006; */ public static final int SETGID_VALUE = 1006; /** * SETUID = 1007; */ public static final int SETUID_VALUE = 1007; /** * SETPCAP = 1008; */ public static final int SETPCAP_VALUE = 1008; /** * LINUX_IMMUTABLE = 1009; */ public static final int LINUX_IMMUTABLE_VALUE = 1009; /** * NET_BIND_SERVICE = 1010; */ public static final int NET_BIND_SERVICE_VALUE = 1010; /** * NET_BROADCAST = 1011; */ public static final int NET_BROADCAST_VALUE = 1011; /** * NET_ADMIN = 1012; */ public static final int NET_ADMIN_VALUE = 1012; /** * NET_RAW = 1013; */ public static final int NET_RAW_VALUE = 1013; /** * IPC_LOCK = 1014; */ public static final int IPC_LOCK_VALUE = 1014; /** * IPC_OWNER = 1015; */ public static final int IPC_OWNER_VALUE = 1015; /** * SYS_MODULE = 1016; */ public static final int SYS_MODULE_VALUE = 1016; /** * SYS_RAWIO = 1017; */ public static final int SYS_RAWIO_VALUE = 1017; /** * SYS_CHROOT = 1018; */ public static final int SYS_CHROOT_VALUE = 1018; /** * SYS_PTRACE = 1019; */ public static final int SYS_PTRACE_VALUE = 1019; /** * SYS_PACCT = 1020; */ public static final int SYS_PACCT_VALUE = 1020; /** * SYS_ADMIN = 1021; */ public static final int SYS_ADMIN_VALUE = 1021; /** * SYS_BOOT = 1022; */ public static final int SYS_BOOT_VALUE = 1022; /** * SYS_NICE = 1023; */ public static final int SYS_NICE_VALUE = 1023; /** * SYS_RESOURCE = 1024; */ public static final int SYS_RESOURCE_VALUE = 1024; /** * SYS_TIME = 1025; */ public static final int SYS_TIME_VALUE = 1025; /** * SYS_TTY_CONFIG = 1026; */ public static final int SYS_TTY_CONFIG_VALUE = 1026; /** * MKNOD = 1027; */ public static final int MKNOD_VALUE = 1027; /** * LEASE = 1028; */ public static final int LEASE_VALUE = 1028; /** * AUDIT_WRITE = 1029; */ public static final int AUDIT_WRITE_VALUE = 1029; /** * AUDIT_CONTROL = 1030; */ public static final int AUDIT_CONTROL_VALUE = 1030; /** * SETFCAP = 1031; */ public static final int SETFCAP_VALUE = 1031; /** * MAC_OVERRIDE = 1032; */ public static final int MAC_OVERRIDE_VALUE = 1032; /** * MAC_ADMIN = 1033; */ public static final int MAC_ADMIN_VALUE = 1033; /** * SYSLOG = 1034; */ public static final int SYSLOG_VALUE = 1034; /** * WAKE_ALARM = 1035; */ public static final int WAKE_ALARM_VALUE = 1035; /** * BLOCK_SUSPEND = 1036; */ public static final int BLOCK_SUSPEND_VALUE = 1036; /** * AUDIT_READ = 1037; */ public static final int AUDIT_READ_VALUE = 1037; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Capability valueOf(int value) { return forNumber(value); } public static Capability forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1000: return CHOWN; case 1001: return DAC_OVERRIDE; case 1002: return DAC_READ_SEARCH; case 1003: return FOWNER; case 1004: return FSETID; case 1005: return KILL; case 1006: return SETGID; case 1007: return SETUID; case 1008: return SETPCAP; case 1009: return LINUX_IMMUTABLE; case 1010: return NET_BIND_SERVICE; case 1011: return NET_BROADCAST; case 1012: return NET_ADMIN; case 1013: return NET_RAW; case 1014: return IPC_LOCK; case 1015: return IPC_OWNER; case 1016: return SYS_MODULE; case 1017: return SYS_RAWIO; case 1018: return SYS_CHROOT; case 1019: return SYS_PTRACE; case 1020: return SYS_PACCT; case 1021: return SYS_ADMIN; case 1022: return SYS_BOOT; case 1023: return SYS_NICE; case 1024: return SYS_RESOURCE; case 1025: return SYS_TIME; case 1026: return SYS_TTY_CONFIG; case 1027: return MKNOD; case 1028: return LEASE; case 1029: return AUDIT_WRITE; case 1030: return AUDIT_CONTROL; case 1031: return SETFCAP; case 1032: return MAC_OVERRIDE; case 1033: return MAC_ADMIN; case 1034: return SYSLOG; case 1035: return WAKE_ALARM; case 1036: return BLOCK_SUSPEND; case 1037: return AUDIT_READ; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Capability> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Capability findValueByNumber(int number) { return Capability.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.CapabilityInfo.getDescriptor().getEnumTypes().get(0); } private static final Capability[] VALUES = values(); public static Capability valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Capability(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.CapabilityInfo.Capability) } public static final int CAPABILITIES_FIELD_NUMBER = 1; private java.util.List capabilities_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, org.apache.mesos.v1.Protos.CapabilityInfo.Capability> capabilities_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, org.apache.mesos.v1.Protos.CapabilityInfo.Capability>() { public org.apache.mesos.v1.Protos.CapabilityInfo.Capability convert(java.lang.Integer from) { org.apache.mesos.v1.Protos.CapabilityInfo.Capability result = org.apache.mesos.v1.Protos.CapabilityInfo.Capability.valueOf(from); return result == null ? org.apache.mesos.v1.Protos.CapabilityInfo.Capability.UNKNOWN : result; } }; /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public java.util.List getCapabilitiesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, org.apache.mesos.v1.Protos.CapabilityInfo.Capability>(capabilities_, capabilities_converter_); } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public int getCapabilitiesCount() { return capabilities_.size(); } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public org.apache.mesos.v1.Protos.CapabilityInfo.Capability getCapabilities(int index) { return capabilities_converter_.convert(capabilities_.get(index)); } 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 { for (int i = 0; i < capabilities_.size(); i++) { output.writeEnum(1, capabilities_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < capabilities_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(capabilities_.get(i)); } size += dataSize; size += 1 * capabilities_.size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CapabilityInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CapabilityInfo other = (org.apache.mesos.v1.Protos.CapabilityInfo) obj; boolean result = true; result = result && capabilities_.equals(other.capabilities_); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCapabilitiesCount() > 0) { hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + capabilities_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CapabilityInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CapabilityInfo 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.Protos.CapabilityInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CapabilityInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CapabilityInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Encapsulation of `Capabilities` supported by Linux.
     * Reference: http://linux.die.net/man/7/capabilities.
     * 
* * Protobuf type {@code mesos.v1.CapabilityInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CapabilityInfo) org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CapabilityInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CapabilityInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CapabilityInfo.class, org.apache.mesos.v1.Protos.CapabilityInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CapabilityInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); capabilities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CapabilityInfo_descriptor; } public org.apache.mesos.v1.Protos.CapabilityInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CapabilityInfo build() { org.apache.mesos.v1.Protos.CapabilityInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CapabilityInfo buildPartial() { org.apache.mesos.v1.Protos.CapabilityInfo result = new org.apache.mesos.v1.Protos.CapabilityInfo(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { capabilities_ = java.util.Collections.unmodifiableList(capabilities_); bitField0_ = (bitField0_ & ~0x00000001); } result.capabilities_ = capabilities_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CapabilityInfo) { return mergeFrom((org.apache.mesos.v1.Protos.CapabilityInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CapabilityInfo other) { if (other == org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance()) return this; if (!other.capabilities_.isEmpty()) { if (capabilities_.isEmpty()) { capabilities_ = other.capabilities_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCapabilitiesIsMutable(); capabilities_.addAll(other.capabilities_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CapabilityInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CapabilityInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List capabilities_ = java.util.Collections.emptyList(); private void ensureCapabilitiesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { capabilities_ = new java.util.ArrayList(capabilities_); bitField0_ |= 0x00000001; } } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public java.util.List getCapabilitiesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, org.apache.mesos.v1.Protos.CapabilityInfo.Capability>(capabilities_, capabilities_converter_); } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public int getCapabilitiesCount() { return capabilities_.size(); } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public org.apache.mesos.v1.Protos.CapabilityInfo.Capability getCapabilities(int index) { return capabilities_converter_.convert(capabilities_.get(index)); } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public Builder setCapabilities( int index, org.apache.mesos.v1.Protos.CapabilityInfo.Capability value) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public Builder addCapabilities(org.apache.mesos.v1.Protos.CapabilityInfo.Capability value) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.add(value.getNumber()); onChanged(); return this; } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public Builder addAllCapabilities( java.lang.Iterable values) { ensureCapabilitiesIsMutable(); for (org.apache.mesos.v1.Protos.CapabilityInfo.Capability value : values) { capabilities_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .mesos.v1.CapabilityInfo.Capability capabilities = 1; */ public Builder clearCapabilities() { capabilities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CapabilityInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.CapabilityInfo) private static final org.apache.mesos.v1.Protos.CapabilityInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CapabilityInfo(); } public static org.apache.mesos.v1.Protos.CapabilityInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CapabilityInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CapabilityInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CapabilityInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeccompInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.SeccompInfo) com.google.protobuf.MessageOrBuilder { /** *
     * A filename of the Seccomp profile. This should be a path
     * relative to the directory containing Seccomp profiles,
     * which is specified on the agent via the `--seccomp_config_dir` flag.
     * 
* * optional string profile_name = 1; */ boolean hasProfileName(); /** *
     * A filename of the Seccomp profile. This should be a path
     * relative to the directory containing Seccomp profiles,
     * which is specified on the agent via the `--seccomp_config_dir` flag.
     * 
* * optional string profile_name = 1; */ java.lang.String getProfileName(); /** *
     * A filename of the Seccomp profile. This should be a path
     * relative to the directory containing Seccomp profiles,
     * which is specified on the agent via the `--seccomp_config_dir` flag.
     * 
* * optional string profile_name = 1; */ com.google.protobuf.ByteString getProfileNameBytes(); /** *
     * If set to `true`, Seccomp is not applied to the container.
     * If not set or set to `false`, the container is launched with
     * the profile specified in the `profile_name` field.
     * NOTE: `profile_name` must not be specified if `unconfined` set to `true`.
     * `profile_name` must be specified if `unconfined` is not set or
     * is set to `false`.
     * 
* * optional bool unconfined = 2; */ boolean hasUnconfined(); /** *
     * If set to `true`, Seccomp is not applied to the container.
     * If not set or set to `false`, the container is launched with
     * the profile specified in the `profile_name` field.
     * NOTE: `profile_name` must not be specified if `unconfined` set to `true`.
     * `profile_name` must be specified if `unconfined` is not set or
     * is set to `false`.
     * 
* * optional bool unconfined = 2; */ boolean getUnconfined(); } /** *
   **
   * Encapsulation for Seccomp configuration, which is Linux specific.
   * 
* * Protobuf type {@code mesos.v1.SeccompInfo} */ public static final class SeccompInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.SeccompInfo) SeccompInfoOrBuilder { private static final long serialVersionUID = 0L; // Use SeccompInfo.newBuilder() to construct. private SeccompInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeccompInfo() { profileName_ = ""; unconfined_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SeccompInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; profileName_ = bs; break; } case 16: { bitField0_ |= 0x00000002; unconfined_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SeccompInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SeccompInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.SeccompInfo.class, org.apache.mesos.v1.Protos.SeccompInfo.Builder.class); } private int bitField0_; public static final int PROFILE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object profileName_; /** *
     * A filename of the Seccomp profile. This should be a path
     * relative to the directory containing Seccomp profiles,
     * which is specified on the agent via the `--seccomp_config_dir` flag.
     * 
* * optional string profile_name = 1; */ public boolean hasProfileName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * A filename of the Seccomp profile. This should be a path
     * relative to the directory containing Seccomp profiles,
     * which is specified on the agent via the `--seccomp_config_dir` flag.
     * 
* * optional string profile_name = 1; */ public java.lang.String getProfileName() { java.lang.Object ref = profileName_; 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()) { profileName_ = s; } return s; } } /** *
     * A filename of the Seccomp profile. This should be a path
     * relative to the directory containing Seccomp profiles,
     * which is specified on the agent via the `--seccomp_config_dir` flag.
     * 
* * optional string profile_name = 1; */ public com.google.protobuf.ByteString getProfileNameBytes() { java.lang.Object ref = profileName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); profileName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UNCONFINED_FIELD_NUMBER = 2; private boolean unconfined_; /** *
     * If set to `true`, Seccomp is not applied to the container.
     * If not set or set to `false`, the container is launched with
     * the profile specified in the `profile_name` field.
     * NOTE: `profile_name` must not be specified if `unconfined` set to `true`.
     * `profile_name` must be specified if `unconfined` is not set or
     * is set to `false`.
     * 
* * optional bool unconfined = 2; */ public boolean hasUnconfined() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * If set to `true`, Seccomp is not applied to the container.
     * If not set or set to `false`, the container is launched with
     * the profile specified in the `profile_name` field.
     * NOTE: `profile_name` must not be specified if `unconfined` set to `true`.
     * `profile_name` must be specified if `unconfined` is not set or
     * is set to `false`.
     * 
* * optional bool unconfined = 2; */ public boolean getUnconfined() { return unconfined_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, profileName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, unconfined_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, profileName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, unconfined_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.SeccompInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.SeccompInfo other = (org.apache.mesos.v1.Protos.SeccompInfo) obj; boolean result = true; result = result && (hasProfileName() == other.hasProfileName()); if (hasProfileName()) { result = result && getProfileName() .equals(other.getProfileName()); } result = result && (hasUnconfined() == other.hasUnconfined()); if (hasUnconfined()) { result = result && (getUnconfined() == other.getUnconfined()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProfileName()) { hash = (37 * hash) + PROFILE_NAME_FIELD_NUMBER; hash = (53 * hash) + getProfileName().hashCode(); } if (hasUnconfined()) { hash = (37 * hash) + UNCONFINED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUnconfined()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.SeccompInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.SeccompInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.SeccompInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.SeccompInfo 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.Protos.SeccompInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.SeccompInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.SeccompInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.SeccompInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.SeccompInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.SeccompInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.SeccompInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.SeccompInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.SeccompInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Encapsulation for Seccomp configuration, which is Linux specific.
     * 
* * Protobuf type {@code mesos.v1.SeccompInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.SeccompInfo) org.apache.mesos.v1.Protos.SeccompInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SeccompInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SeccompInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.SeccompInfo.class, org.apache.mesos.v1.Protos.SeccompInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.SeccompInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); profileName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); unconfined_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_SeccompInfo_descriptor; } public org.apache.mesos.v1.Protos.SeccompInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.SeccompInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.SeccompInfo build() { org.apache.mesos.v1.Protos.SeccompInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.SeccompInfo buildPartial() { org.apache.mesos.v1.Protos.SeccompInfo result = new org.apache.mesos.v1.Protos.SeccompInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.profileName_ = profileName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.unconfined_ = unconfined_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.SeccompInfo) { return mergeFrom((org.apache.mesos.v1.Protos.SeccompInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.SeccompInfo other) { if (other == org.apache.mesos.v1.Protos.SeccompInfo.getDefaultInstance()) return this; if (other.hasProfileName()) { bitField0_ |= 0x00000001; profileName_ = other.profileName_; onChanged(); } if (other.hasUnconfined()) { setUnconfined(other.getUnconfined()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.SeccompInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.SeccompInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object profileName_ = ""; /** *
       * A filename of the Seccomp profile. This should be a path
       * relative to the directory containing Seccomp profiles,
       * which is specified on the agent via the `--seccomp_config_dir` flag.
       * 
* * optional string profile_name = 1; */ public boolean hasProfileName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * A filename of the Seccomp profile. This should be a path
       * relative to the directory containing Seccomp profiles,
       * which is specified on the agent via the `--seccomp_config_dir` flag.
       * 
* * optional string profile_name = 1; */ public java.lang.String getProfileName() { java.lang.Object ref = profileName_; 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()) { profileName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * A filename of the Seccomp profile. This should be a path
       * relative to the directory containing Seccomp profiles,
       * which is specified on the agent via the `--seccomp_config_dir` flag.
       * 
* * optional string profile_name = 1; */ public com.google.protobuf.ByteString getProfileNameBytes() { java.lang.Object ref = profileName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); profileName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A filename of the Seccomp profile. This should be a path
       * relative to the directory containing Seccomp profiles,
       * which is specified on the agent via the `--seccomp_config_dir` flag.
       * 
* * optional string profile_name = 1; */ public Builder setProfileName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; profileName_ = value; onChanged(); return this; } /** *
       * A filename of the Seccomp profile. This should be a path
       * relative to the directory containing Seccomp profiles,
       * which is specified on the agent via the `--seccomp_config_dir` flag.
       * 
* * optional string profile_name = 1; */ public Builder clearProfileName() { bitField0_ = (bitField0_ & ~0x00000001); profileName_ = getDefaultInstance().getProfileName(); onChanged(); return this; } /** *
       * A filename of the Seccomp profile. This should be a path
       * relative to the directory containing Seccomp profiles,
       * which is specified on the agent via the `--seccomp_config_dir` flag.
       * 
* * optional string profile_name = 1; */ public Builder setProfileNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; profileName_ = value; onChanged(); return this; } private boolean unconfined_ ; /** *
       * If set to `true`, Seccomp is not applied to the container.
       * If not set or set to `false`, the container is launched with
       * the profile specified in the `profile_name` field.
       * NOTE: `profile_name` must not be specified if `unconfined` set to `true`.
       * `profile_name` must be specified if `unconfined` is not set or
       * is set to `false`.
       * 
* * optional bool unconfined = 2; */ public boolean hasUnconfined() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * If set to `true`, Seccomp is not applied to the container.
       * If not set or set to `false`, the container is launched with
       * the profile specified in the `profile_name` field.
       * NOTE: `profile_name` must not be specified if `unconfined` set to `true`.
       * `profile_name` must be specified if `unconfined` is not set or
       * is set to `false`.
       * 
* * optional bool unconfined = 2; */ public boolean getUnconfined() { return unconfined_; } /** *
       * If set to `true`, Seccomp is not applied to the container.
       * If not set or set to `false`, the container is launched with
       * the profile specified in the `profile_name` field.
       * NOTE: `profile_name` must not be specified if `unconfined` set to `true`.
       * `profile_name` must be specified if `unconfined` is not set or
       * is set to `false`.
       * 
* * optional bool unconfined = 2; */ public Builder setUnconfined(boolean value) { bitField0_ |= 0x00000002; unconfined_ = value; onChanged(); return this; } /** *
       * If set to `true`, Seccomp is not applied to the container.
       * If not set or set to `false`, the container is launched with
       * the profile specified in the `profile_name` field.
       * NOTE: `profile_name` must not be specified if `unconfined` set to `true`.
       * `profile_name` must be specified if `unconfined` is not set or
       * is set to `false`.
       * 
* * optional bool unconfined = 2; */ public Builder clearUnconfined() { bitField0_ = (bitField0_ & ~0x00000002); unconfined_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.SeccompInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.SeccompInfo) private static final org.apache.mesos.v1.Protos.SeccompInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.SeccompInfo(); } public static org.apache.mesos.v1.Protos.SeccompInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SeccompInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeccompInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.SeccompInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LinuxInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.LinuxInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Since 1.4.0, deprecated in favor of `effective_capabilities`.
     * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated boolean hasCapabilityInfo(); /** *
     * Since 1.4.0, deprecated in favor of `effective_capabilities`.
     * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated org.apache.mesos.v1.Protos.CapabilityInfo getCapabilityInfo(); /** *
     * Since 1.4.0, deprecated in favor of `effective_capabilities`.
     * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getCapabilityInfoOrBuilder(); /** *
     * The set of capabilities that are allowed but not initially
     * granted to tasks.
     * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ boolean hasBoundingCapabilities(); /** *
     * The set of capabilities that are allowed but not initially
     * granted to tasks.
     * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ org.apache.mesos.v1.Protos.CapabilityInfo getBoundingCapabilities(); /** *
     * The set of capabilities that are allowed but not initially
     * granted to tasks.
     * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getBoundingCapabilitiesOrBuilder(); /** *
     * Represents the set of capabilities that the task will
     * be executed with.
     * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ boolean hasEffectiveCapabilities(); /** *
     * Represents the set of capabilities that the task will
     * be executed with.
     * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ org.apache.mesos.v1.Protos.CapabilityInfo getEffectiveCapabilities(); /** *
     * Represents the set of capabilities that the task will
     * be executed with.
     * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getEffectiveCapabilitiesOrBuilder(); /** *
     * If set as 'true', the container shares the pid namespace with
     * its parent. If the container is a top level container, it will
     * share the pid namespace with the agent. If the container is a
     * nested container, it will share the pid namespace with its
     * parent container. This field will be ignored if 'namespaces/pid'
     * isolator is not enabled.
     * 
* * optional bool share_pid_namespace = 4; */ boolean hasSharePidNamespace(); /** *
     * If set as 'true', the container shares the pid namespace with
     * its parent. If the container is a top level container, it will
     * share the pid namespace with the agent. If the container is a
     * nested container, it will share the pid namespace with its
     * parent container. This field will be ignored if 'namespaces/pid'
     * isolator is not enabled.
     * 
* * optional bool share_pid_namespace = 4; */ boolean getSharePidNamespace(); /** *
     * Represents Seccomp configuration, which is used for syscall filtering.
     * This field is used to override the agent's default Seccomp configuration.
     * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ boolean hasSeccomp(); /** *
     * Represents Seccomp configuration, which is used for syscall filtering.
     * This field is used to override the agent's default Seccomp configuration.
     * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ org.apache.mesos.v1.Protos.SeccompInfo getSeccomp(); /** *
     * Represents Seccomp configuration, which is used for syscall filtering.
     * This field is used to override the agent's default Seccomp configuration.
     * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ org.apache.mesos.v1.Protos.SeccompInfoOrBuilder getSeccompOrBuilder(); /** *
     * There are two special cases that we need to handle for this field:
     * 1. This field is not set: For backward compatibility we will keep the
     *    previous behavior: Top level container will have its own IPC namespace
     *    and nested container will share the IPC namespace from its parent
     *    container. If the container does not have its own rootfs, it will share
     *    agent's /dev/shm, otherwise it will have its own /dev/shm.
     * 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored
     *    in this case. For backward compatibility, in the `filesystem/linux`
     *    isolator we will keep the previous behavior: Any containers will share
     *    IPC namespace from agent, and if the container does not have its own
     *    rootfs, it will also share agent's /dev/shm, otherwise it will have its
     *    own /dev/shm.
     * TODO(qianzhang): Remove the support for the above two cases after the
     * deprecation cycle (started in 1.9). Eventually we want a single isolator
     * (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple
     * /dev/shm from container's rootfs (i.e., whether a container will have its
     * own /dev/shm depends on its `ipc_mode` instead of whether the container
     * has its own rootfs).
     * 
* * optional .mesos.v1.LinuxInfo.IpcMode ipc_mode = 6; */ boolean hasIpcMode(); /** *
     * There are two special cases that we need to handle for this field:
     * 1. This field is not set: For backward compatibility we will keep the
     *    previous behavior: Top level container will have its own IPC namespace
     *    and nested container will share the IPC namespace from its parent
     *    container. If the container does not have its own rootfs, it will share
     *    agent's /dev/shm, otherwise it will have its own /dev/shm.
     * 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored
     *    in this case. For backward compatibility, in the `filesystem/linux`
     *    isolator we will keep the previous behavior: Any containers will share
     *    IPC namespace from agent, and if the container does not have its own
     *    rootfs, it will also share agent's /dev/shm, otherwise it will have its
     *    own /dev/shm.
     * TODO(qianzhang): Remove the support for the above two cases after the
     * deprecation cycle (started in 1.9). Eventually we want a single isolator
     * (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple
     * /dev/shm from container's rootfs (i.e., whether a container will have its
     * own /dev/shm depends on its `ipc_mode` instead of whether the container
     * has its own rootfs).
     * 
* * optional .mesos.v1.LinuxInfo.IpcMode ipc_mode = 6; */ org.apache.mesos.v1.Protos.LinuxInfo.IpcMode getIpcMode(); /** *
     * Size of /dev/shm in MB. If not set, the size of the /dev/shm for container
     * will be value of the `--default_container_shm_size` agent flag, if that
     * flag is not set too, the size of the /dev/shm will be half of the host RAM
     * which is the default behavior of Linux. This field will be ignored for the
     * container which shares /dev/shm from its parent and it will be also ignored
     * for any containers if the `namespaces/ipc` isolator is not enabled. Please
     * note that we only support setting this field when the `ipc_mode` field is
     * set to `PRIVATE` otherwise the container launch will be rejected.
     * 
* * optional uint32 shm_size = 7; */ boolean hasShmSize(); /** *
     * Size of /dev/shm in MB. If not set, the size of the /dev/shm for container
     * will be value of the `--default_container_shm_size` agent flag, if that
     * flag is not set too, the size of the /dev/shm will be half of the host RAM
     * which is the default behavior of Linux. This field will be ignored for the
     * container which shares /dev/shm from its parent and it will be also ignored
     * for any containers if the `namespaces/ipc` isolator is not enabled. Please
     * note that we only support setting this field when the `ipc_mode` field is
     * set to `PRIVATE` otherwise the container launch will be rejected.
     * 
* * optional uint32 shm_size = 7; */ int getShmSize(); } /** *
   **
   * Encapsulation for Linux specific configuration.
   * E.g, capabilities, limits etc.
   * 
* * Protobuf type {@code mesos.v1.LinuxInfo} */ public static final class LinuxInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.LinuxInfo) LinuxInfoOrBuilder { private static final long serialVersionUID = 0L; // Use LinuxInfo.newBuilder() to construct. private LinuxInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LinuxInfo() { sharePidNamespace_ = false; ipcMode_ = 0; shmSize_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LinuxInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.CapabilityInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = capabilityInfo_.toBuilder(); } capabilityInfo_ = input.readMessage(org.apache.mesos.v1.Protos.CapabilityInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(capabilityInfo_); capabilityInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.CapabilityInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = boundingCapabilities_.toBuilder(); } boundingCapabilities_ = input.readMessage(org.apache.mesos.v1.Protos.CapabilityInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(boundingCapabilities_); boundingCapabilities_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.CapabilityInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = effectiveCapabilities_.toBuilder(); } effectiveCapabilities_ = input.readMessage(org.apache.mesos.v1.Protos.CapabilityInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveCapabilities_); effectiveCapabilities_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; sharePidNamespace_ = input.readBool(); break; } case 42: { org.apache.mesos.v1.Protos.SeccompInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = seccomp_.toBuilder(); } seccomp_ = input.readMessage(org.apache.mesos.v1.Protos.SeccompInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seccomp_); seccomp_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 48: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.LinuxInfo.IpcMode value = org.apache.mesos.v1.Protos.LinuxInfo.IpcMode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { bitField0_ |= 0x00000020; ipcMode_ = rawValue; } break; } case 56: { bitField0_ |= 0x00000040; shmSize_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_LinuxInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_LinuxInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.LinuxInfo.class, org.apache.mesos.v1.Protos.LinuxInfo.Builder.class); } /** * Protobuf enum {@code mesos.v1.LinuxInfo.IpcMode} */ public enum IpcMode implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** *
       * The container will have its own IPC namespace and /dev/shm, with a
       * possibility to share them with its child containers.
       * 
* * PRIVATE = 1; */ PRIVATE(1), /** *
       * The container will share the IPC namespace and /dev/shm from its
       * parent. If the container is a top level container, it will share
       * the IPC namespace and /dev/shm from the agent host, if the container
       * is a nested container, it will share the IPC namespace and /dev/shm
       * from its parent container. The implication is if a nested container
       * wants to share the IPC namespace and /dev/shm from the agent host,
       * its parent container has to do it first.
       * 
* * SHARE_PARENT = 2; */ SHARE_PARENT(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
       * The container will have its own IPC namespace and /dev/shm, with a
       * possibility to share them with its child containers.
       * 
* * PRIVATE = 1; */ public static final int PRIVATE_VALUE = 1; /** *
       * The container will share the IPC namespace and /dev/shm from its
       * parent. If the container is a top level container, it will share
       * the IPC namespace and /dev/shm from the agent host, if the container
       * is a nested container, it will share the IPC namespace and /dev/shm
       * from its parent container. The implication is if a nested container
       * wants to share the IPC namespace and /dev/shm from the agent host,
       * its parent container has to do it first.
       * 
* * SHARE_PARENT = 2; */ public static final int SHARE_PARENT_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IpcMode valueOf(int value) { return forNumber(value); } public static IpcMode forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return PRIVATE; case 2: return SHARE_PARENT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IpcMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IpcMode findValueByNumber(int number) { return IpcMode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.LinuxInfo.getDescriptor().getEnumTypes().get(0); } private static final IpcMode[] VALUES = values(); public static IpcMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private IpcMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.LinuxInfo.IpcMode) } private int bitField0_; public static final int CAPABILITY_INFO_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.CapabilityInfo capabilityInfo_; /** *
     * Since 1.4.0, deprecated in favor of `effective_capabilities`.
     * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public boolean hasCapabilityInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Since 1.4.0, deprecated in favor of `effective_capabilities`.
     * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.CapabilityInfo getCapabilityInfo() { return capabilityInfo_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : capabilityInfo_; } /** *
     * Since 1.4.0, deprecated in favor of `effective_capabilities`.
     * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getCapabilityInfoOrBuilder() { return capabilityInfo_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : capabilityInfo_; } public static final int BOUNDING_CAPABILITIES_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.CapabilityInfo boundingCapabilities_; /** *
     * The set of capabilities that are allowed but not initially
     * granted to tasks.
     * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public boolean hasBoundingCapabilities() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * The set of capabilities that are allowed but not initially
     * granted to tasks.
     * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public org.apache.mesos.v1.Protos.CapabilityInfo getBoundingCapabilities() { return boundingCapabilities_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : boundingCapabilities_; } /** *
     * The set of capabilities that are allowed but not initially
     * granted to tasks.
     * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getBoundingCapabilitiesOrBuilder() { return boundingCapabilities_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : boundingCapabilities_; } public static final int EFFECTIVE_CAPABILITIES_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.CapabilityInfo effectiveCapabilities_; /** *
     * Represents the set of capabilities that the task will
     * be executed with.
     * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public boolean hasEffectiveCapabilities() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Represents the set of capabilities that the task will
     * be executed with.
     * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public org.apache.mesos.v1.Protos.CapabilityInfo getEffectiveCapabilities() { return effectiveCapabilities_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : effectiveCapabilities_; } /** *
     * Represents the set of capabilities that the task will
     * be executed with.
     * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getEffectiveCapabilitiesOrBuilder() { return effectiveCapabilities_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : effectiveCapabilities_; } public static final int SHARE_PID_NAMESPACE_FIELD_NUMBER = 4; private boolean sharePidNamespace_; /** *
     * If set as 'true', the container shares the pid namespace with
     * its parent. If the container is a top level container, it will
     * share the pid namespace with the agent. If the container is a
     * nested container, it will share the pid namespace with its
     * parent container. This field will be ignored if 'namespaces/pid'
     * isolator is not enabled.
     * 
* * optional bool share_pid_namespace = 4; */ public boolean hasSharePidNamespace() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * If set as 'true', the container shares the pid namespace with
     * its parent. If the container is a top level container, it will
     * share the pid namespace with the agent. If the container is a
     * nested container, it will share the pid namespace with its
     * parent container. This field will be ignored if 'namespaces/pid'
     * isolator is not enabled.
     * 
* * optional bool share_pid_namespace = 4; */ public boolean getSharePidNamespace() { return sharePidNamespace_; } public static final int SECCOMP_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.SeccompInfo seccomp_; /** *
     * Represents Seccomp configuration, which is used for syscall filtering.
     * This field is used to override the agent's default Seccomp configuration.
     * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public boolean hasSeccomp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * Represents Seccomp configuration, which is used for syscall filtering.
     * This field is used to override the agent's default Seccomp configuration.
     * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public org.apache.mesos.v1.Protos.SeccompInfo getSeccomp() { return seccomp_ == null ? org.apache.mesos.v1.Protos.SeccompInfo.getDefaultInstance() : seccomp_; } /** *
     * Represents Seccomp configuration, which is used for syscall filtering.
     * This field is used to override the agent's default Seccomp configuration.
     * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public org.apache.mesos.v1.Protos.SeccompInfoOrBuilder getSeccompOrBuilder() { return seccomp_ == null ? org.apache.mesos.v1.Protos.SeccompInfo.getDefaultInstance() : seccomp_; } public static final int IPC_MODE_FIELD_NUMBER = 6; private int ipcMode_; /** *
     * There are two special cases that we need to handle for this field:
     * 1. This field is not set: For backward compatibility we will keep the
     *    previous behavior: Top level container will have its own IPC namespace
     *    and nested container will share the IPC namespace from its parent
     *    container. If the container does not have its own rootfs, it will share
     *    agent's /dev/shm, otherwise it will have its own /dev/shm.
     * 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored
     *    in this case. For backward compatibility, in the `filesystem/linux`
     *    isolator we will keep the previous behavior: Any containers will share
     *    IPC namespace from agent, and if the container does not have its own
     *    rootfs, it will also share agent's /dev/shm, otherwise it will have its
     *    own /dev/shm.
     * TODO(qianzhang): Remove the support for the above two cases after the
     * deprecation cycle (started in 1.9). Eventually we want a single isolator
     * (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple
     * /dev/shm from container's rootfs (i.e., whether a container will have its
     * own /dev/shm depends on its `ipc_mode` instead of whether the container
     * has its own rootfs).
     * 
* * optional .mesos.v1.LinuxInfo.IpcMode ipc_mode = 6; */ public boolean hasIpcMode() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * There are two special cases that we need to handle for this field:
     * 1. This field is not set: For backward compatibility we will keep the
     *    previous behavior: Top level container will have its own IPC namespace
     *    and nested container will share the IPC namespace from its parent
     *    container. If the container does not have its own rootfs, it will share
     *    agent's /dev/shm, otherwise it will have its own /dev/shm.
     * 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored
     *    in this case. For backward compatibility, in the `filesystem/linux`
     *    isolator we will keep the previous behavior: Any containers will share
     *    IPC namespace from agent, and if the container does not have its own
     *    rootfs, it will also share agent's /dev/shm, otherwise it will have its
     *    own /dev/shm.
     * TODO(qianzhang): Remove the support for the above two cases after the
     * deprecation cycle (started in 1.9). Eventually we want a single isolator
     * (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple
     * /dev/shm from container's rootfs (i.e., whether a container will have its
     * own /dev/shm depends on its `ipc_mode` instead of whether the container
     * has its own rootfs).
     * 
* * optional .mesos.v1.LinuxInfo.IpcMode ipc_mode = 6; */ public org.apache.mesos.v1.Protos.LinuxInfo.IpcMode getIpcMode() { org.apache.mesos.v1.Protos.LinuxInfo.IpcMode result = org.apache.mesos.v1.Protos.LinuxInfo.IpcMode.valueOf(ipcMode_); return result == null ? org.apache.mesos.v1.Protos.LinuxInfo.IpcMode.UNKNOWN : result; } public static final int SHM_SIZE_FIELD_NUMBER = 7; private int shmSize_; /** *
     * Size of /dev/shm in MB. If not set, the size of the /dev/shm for container
     * will be value of the `--default_container_shm_size` agent flag, if that
     * flag is not set too, the size of the /dev/shm will be half of the host RAM
     * which is the default behavior of Linux. This field will be ignored for the
     * container which shares /dev/shm from its parent and it will be also ignored
     * for any containers if the `namespaces/ipc` isolator is not enabled. Please
     * note that we only support setting this field when the `ipc_mode` field is
     * set to `PRIVATE` otherwise the container launch will be rejected.
     * 
* * optional uint32 shm_size = 7; */ public boolean hasShmSize() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * Size of /dev/shm in MB. If not set, the size of the /dev/shm for container
     * will be value of the `--default_container_shm_size` agent flag, if that
     * flag is not set too, the size of the /dev/shm will be half of the host RAM
     * which is the default behavior of Linux. This field will be ignored for the
     * container which shares /dev/shm from its parent and it will be also ignored
     * for any containers if the `namespaces/ipc` isolator is not enabled. Please
     * note that we only support setting this field when the `ipc_mode` field is
     * set to `PRIVATE` otherwise the container launch will be rejected.
     * 
* * optional uint32 shm_size = 7; */ public int getShmSize() { return shmSize_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getCapabilityInfo()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getBoundingCapabilities()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getEffectiveCapabilities()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, sharePidNamespace_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getSeccomp()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeEnum(6, ipcMode_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, shmSize_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCapabilityInfo()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBoundingCapabilities()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEffectiveCapabilities()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, sharePidNamespace_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSeccomp()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, ipcMode_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, shmSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.LinuxInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.LinuxInfo other = (org.apache.mesos.v1.Protos.LinuxInfo) obj; boolean result = true; result = result && (hasCapabilityInfo() == other.hasCapabilityInfo()); if (hasCapabilityInfo()) { result = result && getCapabilityInfo() .equals(other.getCapabilityInfo()); } result = result && (hasBoundingCapabilities() == other.hasBoundingCapabilities()); if (hasBoundingCapabilities()) { result = result && getBoundingCapabilities() .equals(other.getBoundingCapabilities()); } result = result && (hasEffectiveCapabilities() == other.hasEffectiveCapabilities()); if (hasEffectiveCapabilities()) { result = result && getEffectiveCapabilities() .equals(other.getEffectiveCapabilities()); } result = result && (hasSharePidNamespace() == other.hasSharePidNamespace()); if (hasSharePidNamespace()) { result = result && (getSharePidNamespace() == other.getSharePidNamespace()); } result = result && (hasSeccomp() == other.hasSeccomp()); if (hasSeccomp()) { result = result && getSeccomp() .equals(other.getSeccomp()); } result = result && (hasIpcMode() == other.hasIpcMode()); if (hasIpcMode()) { result = result && ipcMode_ == other.ipcMode_; } result = result && (hasShmSize() == other.hasShmSize()); if (hasShmSize()) { result = result && (getShmSize() == other.getShmSize()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCapabilityInfo()) { hash = (37 * hash) + CAPABILITY_INFO_FIELD_NUMBER; hash = (53 * hash) + getCapabilityInfo().hashCode(); } if (hasBoundingCapabilities()) { hash = (37 * hash) + BOUNDING_CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getBoundingCapabilities().hashCode(); } if (hasEffectiveCapabilities()) { hash = (37 * hash) + EFFECTIVE_CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getEffectiveCapabilities().hashCode(); } if (hasSharePidNamespace()) { hash = (37 * hash) + SHARE_PID_NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSharePidNamespace()); } if (hasSeccomp()) { hash = (37 * hash) + SECCOMP_FIELD_NUMBER; hash = (53 * hash) + getSeccomp().hashCode(); } if (hasIpcMode()) { hash = (37 * hash) + IPC_MODE_FIELD_NUMBER; hash = (53 * hash) + ipcMode_; } if (hasShmSize()) { hash = (37 * hash) + SHM_SIZE_FIELD_NUMBER; hash = (53 * hash) + getShmSize(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.LinuxInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.LinuxInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.LinuxInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.LinuxInfo 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.Protos.LinuxInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.LinuxInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.LinuxInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.LinuxInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.LinuxInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.LinuxInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.LinuxInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.LinuxInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.LinuxInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Encapsulation for Linux specific configuration.
     * E.g, capabilities, limits etc.
     * 
* * Protobuf type {@code mesos.v1.LinuxInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.LinuxInfo) org.apache.mesos.v1.Protos.LinuxInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_LinuxInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_LinuxInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.LinuxInfo.class, org.apache.mesos.v1.Protos.LinuxInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.LinuxInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCapabilityInfoFieldBuilder(); getBoundingCapabilitiesFieldBuilder(); getEffectiveCapabilitiesFieldBuilder(); getSeccompFieldBuilder(); } } public Builder clear() { super.clear(); if (capabilityInfoBuilder_ == null) { capabilityInfo_ = null; } else { capabilityInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (boundingCapabilitiesBuilder_ == null) { boundingCapabilities_ = null; } else { boundingCapabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (effectiveCapabilitiesBuilder_ == null) { effectiveCapabilities_ = null; } else { effectiveCapabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); sharePidNamespace_ = false; bitField0_ = (bitField0_ & ~0x00000008); if (seccompBuilder_ == null) { seccomp_ = null; } else { seccompBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); ipcMode_ = 0; bitField0_ = (bitField0_ & ~0x00000020); shmSize_ = 0; bitField0_ = (bitField0_ & ~0x00000040); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_LinuxInfo_descriptor; } public org.apache.mesos.v1.Protos.LinuxInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.LinuxInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.LinuxInfo build() { org.apache.mesos.v1.Protos.LinuxInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.LinuxInfo buildPartial() { org.apache.mesos.v1.Protos.LinuxInfo result = new org.apache.mesos.v1.Protos.LinuxInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (capabilityInfoBuilder_ == null) { result.capabilityInfo_ = capabilityInfo_; } else { result.capabilityInfo_ = capabilityInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (boundingCapabilitiesBuilder_ == null) { result.boundingCapabilities_ = boundingCapabilities_; } else { result.boundingCapabilities_ = boundingCapabilitiesBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (effectiveCapabilitiesBuilder_ == null) { result.effectiveCapabilities_ = effectiveCapabilities_; } else { result.effectiveCapabilities_ = effectiveCapabilitiesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.sharePidNamespace_ = sharePidNamespace_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (seccompBuilder_ == null) { result.seccomp_ = seccomp_; } else { result.seccomp_ = seccompBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.ipcMode_ = ipcMode_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.shmSize_ = shmSize_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.LinuxInfo) { return mergeFrom((org.apache.mesos.v1.Protos.LinuxInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.LinuxInfo other) { if (other == org.apache.mesos.v1.Protos.LinuxInfo.getDefaultInstance()) return this; if (other.hasCapabilityInfo()) { mergeCapabilityInfo(other.getCapabilityInfo()); } if (other.hasBoundingCapabilities()) { mergeBoundingCapabilities(other.getBoundingCapabilities()); } if (other.hasEffectiveCapabilities()) { mergeEffectiveCapabilities(other.getEffectiveCapabilities()); } if (other.hasSharePidNamespace()) { setSharePidNamespace(other.getSharePidNamespace()); } if (other.hasSeccomp()) { mergeSeccomp(other.getSeccomp()); } if (other.hasIpcMode()) { setIpcMode(other.getIpcMode()); } if (other.hasShmSize()) { setShmSize(other.getShmSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.LinuxInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.LinuxInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.CapabilityInfo capabilityInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder> capabilityInfoBuilder_; /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public boolean hasCapabilityInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.CapabilityInfo getCapabilityInfo() { if (capabilityInfoBuilder_ == null) { return capabilityInfo_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : capabilityInfo_; } else { return capabilityInfoBuilder_.getMessage(); } } /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder setCapabilityInfo(org.apache.mesos.v1.Protos.CapabilityInfo value) { if (capabilityInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capabilityInfo_ = value; onChanged(); } else { capabilityInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder setCapabilityInfo( org.apache.mesos.v1.Protos.CapabilityInfo.Builder builderForValue) { if (capabilityInfoBuilder_ == null) { capabilityInfo_ = builderForValue.build(); onChanged(); } else { capabilityInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeCapabilityInfo(org.apache.mesos.v1.Protos.CapabilityInfo value) { if (capabilityInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && capabilityInfo_ != null && capabilityInfo_ != org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance()) { capabilityInfo_ = org.apache.mesos.v1.Protos.CapabilityInfo.newBuilder(capabilityInfo_).mergeFrom(value).buildPartial(); } else { capabilityInfo_ = value; } onChanged(); } else { capabilityInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder clearCapabilityInfo() { if (capabilityInfoBuilder_ == null) { capabilityInfo_ = null; onChanged(); } else { capabilityInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.CapabilityInfo.Builder getCapabilityInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCapabilityInfoFieldBuilder().getBuilder(); } /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ @java.lang.Deprecated public org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getCapabilityInfoOrBuilder() { if (capabilityInfoBuilder_ != null) { return capabilityInfoBuilder_.getMessageOrBuilder(); } else { return capabilityInfo_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : capabilityInfo_; } } /** *
       * Since 1.4.0, deprecated in favor of `effective_capabilities`.
       * 
* * optional .mesos.v1.CapabilityInfo capability_info = 1 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder> getCapabilityInfoFieldBuilder() { if (capabilityInfoBuilder_ == null) { capabilityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder>( getCapabilityInfo(), getParentForChildren(), isClean()); capabilityInfo_ = null; } return capabilityInfoBuilder_; } private org.apache.mesos.v1.Protos.CapabilityInfo boundingCapabilities_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder> boundingCapabilitiesBuilder_; /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public boolean hasBoundingCapabilities() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public org.apache.mesos.v1.Protos.CapabilityInfo getBoundingCapabilities() { if (boundingCapabilitiesBuilder_ == null) { return boundingCapabilities_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : boundingCapabilities_; } else { return boundingCapabilitiesBuilder_.getMessage(); } } /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public Builder setBoundingCapabilities(org.apache.mesos.v1.Protos.CapabilityInfo value) { if (boundingCapabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } boundingCapabilities_ = value; onChanged(); } else { boundingCapabilitiesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public Builder setBoundingCapabilities( org.apache.mesos.v1.Protos.CapabilityInfo.Builder builderForValue) { if (boundingCapabilitiesBuilder_ == null) { boundingCapabilities_ = builderForValue.build(); onChanged(); } else { boundingCapabilitiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public Builder mergeBoundingCapabilities(org.apache.mesos.v1.Protos.CapabilityInfo value) { if (boundingCapabilitiesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && boundingCapabilities_ != null && boundingCapabilities_ != org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance()) { boundingCapabilities_ = org.apache.mesos.v1.Protos.CapabilityInfo.newBuilder(boundingCapabilities_).mergeFrom(value).buildPartial(); } else { boundingCapabilities_ = value; } onChanged(); } else { boundingCapabilitiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public Builder clearBoundingCapabilities() { if (boundingCapabilitiesBuilder_ == null) { boundingCapabilities_ = null; onChanged(); } else { boundingCapabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public org.apache.mesos.v1.Protos.CapabilityInfo.Builder getBoundingCapabilitiesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBoundingCapabilitiesFieldBuilder().getBuilder(); } /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ public org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getBoundingCapabilitiesOrBuilder() { if (boundingCapabilitiesBuilder_ != null) { return boundingCapabilitiesBuilder_.getMessageOrBuilder(); } else { return boundingCapabilities_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : boundingCapabilities_; } } /** *
       * The set of capabilities that are allowed but not initially
       * granted to tasks.
       * 
* * optional .mesos.v1.CapabilityInfo bounding_capabilities = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder> getBoundingCapabilitiesFieldBuilder() { if (boundingCapabilitiesBuilder_ == null) { boundingCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder>( getBoundingCapabilities(), getParentForChildren(), isClean()); boundingCapabilities_ = null; } return boundingCapabilitiesBuilder_; } private org.apache.mesos.v1.Protos.CapabilityInfo effectiveCapabilities_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder> effectiveCapabilitiesBuilder_; /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public boolean hasEffectiveCapabilities() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public org.apache.mesos.v1.Protos.CapabilityInfo getEffectiveCapabilities() { if (effectiveCapabilitiesBuilder_ == null) { return effectiveCapabilities_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : effectiveCapabilities_; } else { return effectiveCapabilitiesBuilder_.getMessage(); } } /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public Builder setEffectiveCapabilities(org.apache.mesos.v1.Protos.CapabilityInfo value) { if (effectiveCapabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveCapabilities_ = value; onChanged(); } else { effectiveCapabilitiesBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public Builder setEffectiveCapabilities( org.apache.mesos.v1.Protos.CapabilityInfo.Builder builderForValue) { if (effectiveCapabilitiesBuilder_ == null) { effectiveCapabilities_ = builderForValue.build(); onChanged(); } else { effectiveCapabilitiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public Builder mergeEffectiveCapabilities(org.apache.mesos.v1.Protos.CapabilityInfo value) { if (effectiveCapabilitiesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && effectiveCapabilities_ != null && effectiveCapabilities_ != org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance()) { effectiveCapabilities_ = org.apache.mesos.v1.Protos.CapabilityInfo.newBuilder(effectiveCapabilities_).mergeFrom(value).buildPartial(); } else { effectiveCapabilities_ = value; } onChanged(); } else { effectiveCapabilitiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public Builder clearEffectiveCapabilities() { if (effectiveCapabilitiesBuilder_ == null) { effectiveCapabilities_ = null; onChanged(); } else { effectiveCapabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public org.apache.mesos.v1.Protos.CapabilityInfo.Builder getEffectiveCapabilitiesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getEffectiveCapabilitiesFieldBuilder().getBuilder(); } /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ public org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder getEffectiveCapabilitiesOrBuilder() { if (effectiveCapabilitiesBuilder_ != null) { return effectiveCapabilitiesBuilder_.getMessageOrBuilder(); } else { return effectiveCapabilities_ == null ? org.apache.mesos.v1.Protos.CapabilityInfo.getDefaultInstance() : effectiveCapabilities_; } } /** *
       * Represents the set of capabilities that the task will
       * be executed with.
       * 
* * optional .mesos.v1.CapabilityInfo effective_capabilities = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder> getEffectiveCapabilitiesFieldBuilder() { if (effectiveCapabilitiesBuilder_ == null) { effectiveCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CapabilityInfo, org.apache.mesos.v1.Protos.CapabilityInfo.Builder, org.apache.mesos.v1.Protos.CapabilityInfoOrBuilder>( getEffectiveCapabilities(), getParentForChildren(), isClean()); effectiveCapabilities_ = null; } return effectiveCapabilitiesBuilder_; } private boolean sharePidNamespace_ ; /** *
       * If set as 'true', the container shares the pid namespace with
       * its parent. If the container is a top level container, it will
       * share the pid namespace with the agent. If the container is a
       * nested container, it will share the pid namespace with its
       * parent container. This field will be ignored if 'namespaces/pid'
       * isolator is not enabled.
       * 
* * optional bool share_pid_namespace = 4; */ public boolean hasSharePidNamespace() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * If set as 'true', the container shares the pid namespace with
       * its parent. If the container is a top level container, it will
       * share the pid namespace with the agent. If the container is a
       * nested container, it will share the pid namespace with its
       * parent container. This field will be ignored if 'namespaces/pid'
       * isolator is not enabled.
       * 
* * optional bool share_pid_namespace = 4; */ public boolean getSharePidNamespace() { return sharePidNamespace_; } /** *
       * If set as 'true', the container shares the pid namespace with
       * its parent. If the container is a top level container, it will
       * share the pid namespace with the agent. If the container is a
       * nested container, it will share the pid namespace with its
       * parent container. This field will be ignored if 'namespaces/pid'
       * isolator is not enabled.
       * 
* * optional bool share_pid_namespace = 4; */ public Builder setSharePidNamespace(boolean value) { bitField0_ |= 0x00000008; sharePidNamespace_ = value; onChanged(); return this; } /** *
       * If set as 'true', the container shares the pid namespace with
       * its parent. If the container is a top level container, it will
       * share the pid namespace with the agent. If the container is a
       * nested container, it will share the pid namespace with its
       * parent container. This field will be ignored if 'namespaces/pid'
       * isolator is not enabled.
       * 
* * optional bool share_pid_namespace = 4; */ public Builder clearSharePidNamespace() { bitField0_ = (bitField0_ & ~0x00000008); sharePidNamespace_ = false; onChanged(); return this; } private org.apache.mesos.v1.Protos.SeccompInfo seccomp_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.SeccompInfo, org.apache.mesos.v1.Protos.SeccompInfo.Builder, org.apache.mesos.v1.Protos.SeccompInfoOrBuilder> seccompBuilder_; /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public boolean hasSeccomp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public org.apache.mesos.v1.Protos.SeccompInfo getSeccomp() { if (seccompBuilder_ == null) { return seccomp_ == null ? org.apache.mesos.v1.Protos.SeccompInfo.getDefaultInstance() : seccomp_; } else { return seccompBuilder_.getMessage(); } } /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public Builder setSeccomp(org.apache.mesos.v1.Protos.SeccompInfo value) { if (seccompBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seccomp_ = value; onChanged(); } else { seccompBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public Builder setSeccomp( org.apache.mesos.v1.Protos.SeccompInfo.Builder builderForValue) { if (seccompBuilder_ == null) { seccomp_ = builderForValue.build(); onChanged(); } else { seccompBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public Builder mergeSeccomp(org.apache.mesos.v1.Protos.SeccompInfo value) { if (seccompBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && seccomp_ != null && seccomp_ != org.apache.mesos.v1.Protos.SeccompInfo.getDefaultInstance()) { seccomp_ = org.apache.mesos.v1.Protos.SeccompInfo.newBuilder(seccomp_).mergeFrom(value).buildPartial(); } else { seccomp_ = value; } onChanged(); } else { seccompBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public Builder clearSeccomp() { if (seccompBuilder_ == null) { seccomp_ = null; onChanged(); } else { seccompBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public org.apache.mesos.v1.Protos.SeccompInfo.Builder getSeccompBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSeccompFieldBuilder().getBuilder(); } /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ public org.apache.mesos.v1.Protos.SeccompInfoOrBuilder getSeccompOrBuilder() { if (seccompBuilder_ != null) { return seccompBuilder_.getMessageOrBuilder(); } else { return seccomp_ == null ? org.apache.mesos.v1.Protos.SeccompInfo.getDefaultInstance() : seccomp_; } } /** *
       * Represents Seccomp configuration, which is used for syscall filtering.
       * This field is used to override the agent's default Seccomp configuration.
       * 
* * optional .mesos.v1.SeccompInfo seccomp = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.SeccompInfo, org.apache.mesos.v1.Protos.SeccompInfo.Builder, org.apache.mesos.v1.Protos.SeccompInfoOrBuilder> getSeccompFieldBuilder() { if (seccompBuilder_ == null) { seccompBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.SeccompInfo, org.apache.mesos.v1.Protos.SeccompInfo.Builder, org.apache.mesos.v1.Protos.SeccompInfoOrBuilder>( getSeccomp(), getParentForChildren(), isClean()); seccomp_ = null; } return seccompBuilder_; } private int ipcMode_ = 0; /** *
       * There are two special cases that we need to handle for this field:
       * 1. This field is not set: For backward compatibility we will keep the
       *    previous behavior: Top level container will have its own IPC namespace
       *    and nested container will share the IPC namespace from its parent
       *    container. If the container does not have its own rootfs, it will share
       *    agent's /dev/shm, otherwise it will have its own /dev/shm.
       * 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored
       *    in this case. For backward compatibility, in the `filesystem/linux`
       *    isolator we will keep the previous behavior: Any containers will share
       *    IPC namespace from agent, and if the container does not have its own
       *    rootfs, it will also share agent's /dev/shm, otherwise it will have its
       *    own /dev/shm.
       * TODO(qianzhang): Remove the support for the above two cases after the
       * deprecation cycle (started in 1.9). Eventually we want a single isolator
       * (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple
       * /dev/shm from container's rootfs (i.e., whether a container will have its
       * own /dev/shm depends on its `ipc_mode` instead of whether the container
       * has its own rootfs).
       * 
* * optional .mesos.v1.LinuxInfo.IpcMode ipc_mode = 6; */ public boolean hasIpcMode() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * There are two special cases that we need to handle for this field:
       * 1. This field is not set: For backward compatibility we will keep the
       *    previous behavior: Top level container will have its own IPC namespace
       *    and nested container will share the IPC namespace from its parent
       *    container. If the container does not have its own rootfs, it will share
       *    agent's /dev/shm, otherwise it will have its own /dev/shm.
       * 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored
       *    in this case. For backward compatibility, in the `filesystem/linux`
       *    isolator we will keep the previous behavior: Any containers will share
       *    IPC namespace from agent, and if the container does not have its own
       *    rootfs, it will also share agent's /dev/shm, otherwise it will have its
       *    own /dev/shm.
       * TODO(qianzhang): Remove the support for the above two cases after the
       * deprecation cycle (started in 1.9). Eventually we want a single isolator
       * (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple
       * /dev/shm from container's rootfs (i.e., whether a container will have its
       * own /dev/shm depends on its `ipc_mode` instead of whether the container
       * has its own rootfs).
       * 
* * optional .mesos.v1.LinuxInfo.IpcMode ipc_mode = 6; */ public org.apache.mesos.v1.Protos.LinuxInfo.IpcMode getIpcMode() { org.apache.mesos.v1.Protos.LinuxInfo.IpcMode result = org.apache.mesos.v1.Protos.LinuxInfo.IpcMode.valueOf(ipcMode_); return result == null ? org.apache.mesos.v1.Protos.LinuxInfo.IpcMode.UNKNOWN : result; } /** *
       * There are two special cases that we need to handle for this field:
       * 1. This field is not set: For backward compatibility we will keep the
       *    previous behavior: Top level container will have its own IPC namespace
       *    and nested container will share the IPC namespace from its parent
       *    container. If the container does not have its own rootfs, it will share
       *    agent's /dev/shm, otherwise it will have its own /dev/shm.
       * 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored
       *    in this case. For backward compatibility, in the `filesystem/linux`
       *    isolator we will keep the previous behavior: Any containers will share
       *    IPC namespace from agent, and if the container does not have its own
       *    rootfs, it will also share agent's /dev/shm, otherwise it will have its
       *    own /dev/shm.
       * TODO(qianzhang): Remove the support for the above two cases after the
       * deprecation cycle (started in 1.9). Eventually we want a single isolator
       * (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple
       * /dev/shm from container's rootfs (i.e., whether a container will have its
       * own /dev/shm depends on its `ipc_mode` instead of whether the container
       * has its own rootfs).
       * 
* * optional .mesos.v1.LinuxInfo.IpcMode ipc_mode = 6; */ public Builder setIpcMode(org.apache.mesos.v1.Protos.LinuxInfo.IpcMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; ipcMode_ = value.getNumber(); onChanged(); return this; } /** *
       * There are two special cases that we need to handle for this field:
       * 1. This field is not set: For backward compatibility we will keep the
       *    previous behavior: Top level container will have its own IPC namespace
       *    and nested container will share the IPC namespace from its parent
       *    container. If the container does not have its own rootfs, it will share
       *    agent's /dev/shm, otherwise it will have its own /dev/shm.
       * 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored
       *    in this case. For backward compatibility, in the `filesystem/linux`
       *    isolator we will keep the previous behavior: Any containers will share
       *    IPC namespace from agent, and if the container does not have its own
       *    rootfs, it will also share agent's /dev/shm, otherwise it will have its
       *    own /dev/shm.
       * TODO(qianzhang): Remove the support for the above two cases after the
       * deprecation cycle (started in 1.9). Eventually we want a single isolator
       * (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple
       * /dev/shm from container's rootfs (i.e., whether a container will have its
       * own /dev/shm depends on its `ipc_mode` instead of whether the container
       * has its own rootfs).
       * 
* * optional .mesos.v1.LinuxInfo.IpcMode ipc_mode = 6; */ public Builder clearIpcMode() { bitField0_ = (bitField0_ & ~0x00000020); ipcMode_ = 0; onChanged(); return this; } private int shmSize_ ; /** *
       * Size of /dev/shm in MB. If not set, the size of the /dev/shm for container
       * will be value of the `--default_container_shm_size` agent flag, if that
       * flag is not set too, the size of the /dev/shm will be half of the host RAM
       * which is the default behavior of Linux. This field will be ignored for the
       * container which shares /dev/shm from its parent and it will be also ignored
       * for any containers if the `namespaces/ipc` isolator is not enabled. Please
       * note that we only support setting this field when the `ipc_mode` field is
       * set to `PRIVATE` otherwise the container launch will be rejected.
       * 
* * optional uint32 shm_size = 7; */ public boolean hasShmSize() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * Size of /dev/shm in MB. If not set, the size of the /dev/shm for container
       * will be value of the `--default_container_shm_size` agent flag, if that
       * flag is not set too, the size of the /dev/shm will be half of the host RAM
       * which is the default behavior of Linux. This field will be ignored for the
       * container which shares /dev/shm from its parent and it will be also ignored
       * for any containers if the `namespaces/ipc` isolator is not enabled. Please
       * note that we only support setting this field when the `ipc_mode` field is
       * set to `PRIVATE` otherwise the container launch will be rejected.
       * 
* * optional uint32 shm_size = 7; */ public int getShmSize() { return shmSize_; } /** *
       * Size of /dev/shm in MB. If not set, the size of the /dev/shm for container
       * will be value of the `--default_container_shm_size` agent flag, if that
       * flag is not set too, the size of the /dev/shm will be half of the host RAM
       * which is the default behavior of Linux. This field will be ignored for the
       * container which shares /dev/shm from its parent and it will be also ignored
       * for any containers if the `namespaces/ipc` isolator is not enabled. Please
       * note that we only support setting this field when the `ipc_mode` field is
       * set to `PRIVATE` otherwise the container launch will be rejected.
       * 
* * optional uint32 shm_size = 7; */ public Builder setShmSize(int value) { bitField0_ |= 0x00000040; shmSize_ = value; onChanged(); return this; } /** *
       * Size of /dev/shm in MB. If not set, the size of the /dev/shm for container
       * will be value of the `--default_container_shm_size` agent flag, if that
       * flag is not set too, the size of the /dev/shm will be half of the host RAM
       * which is the default behavior of Linux. This field will be ignored for the
       * container which shares /dev/shm from its parent and it will be also ignored
       * for any containers if the `namespaces/ipc` isolator is not enabled. Please
       * note that we only support setting this field when the `ipc_mode` field is
       * set to `PRIVATE` otherwise the container launch will be rejected.
       * 
* * optional uint32 shm_size = 7; */ public Builder clearShmSize() { bitField0_ = (bitField0_ & ~0x00000040); shmSize_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.LinuxInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.LinuxInfo) private static final org.apache.mesos.v1.Protos.LinuxInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.LinuxInfo(); } public static org.apache.mesos.v1.Protos.LinuxInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LinuxInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LinuxInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.LinuxInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RLimitInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.RLimitInfo) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ java.util.List getRlimitsList(); /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ org.apache.mesos.v1.Protos.RLimitInfo.RLimit getRlimits(int index); /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ int getRlimitsCount(); /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ java.util.List getRlimitsOrBuilderList(); /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ org.apache.mesos.v1.Protos.RLimitInfo.RLimitOrBuilder getRlimitsOrBuilder( int index); } /** *
   **
   * Encapsulation for POSIX rlimits, see
   * http://pubs.opengroup.org/onlinepubs/009695399/functions/getrlimit.html.
   * Note that some types might only be defined for Linux.
   * We use a custom prefix to avoid conflict with existing system macros
   * (e.g., `RLIMIT_CPU` or `NOFILE`).
   * 
* * Protobuf type {@code mesos.v1.RLimitInfo} */ public static final class RLimitInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.RLimitInfo) RLimitInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RLimitInfo.newBuilder() to construct. private RLimitInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RLimitInfo() { rlimits_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RLimitInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { rlimits_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rlimits_.add( input.readMessage(org.apache.mesos.v1.Protos.RLimitInfo.RLimit.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { rlimits_ = java.util.Collections.unmodifiableList(rlimits_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.RLimitInfo.class, org.apache.mesos.v1.Protos.RLimitInfo.Builder.class); } public interface RLimitOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.RLimitInfo.RLimit) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.RLimitInfo.RLimit.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.RLimitInfo.RLimit.Type type = 1; */ org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type getType(); /** *
       * Either both are set or both are not set.
       * If both are not set, it represents unlimited.
       * If both are set, we require `soft` <= `hard`.
       * 
* * optional uint64 hard = 2; */ boolean hasHard(); /** *
       * Either both are set or both are not set.
       * If both are not set, it represents unlimited.
       * If both are set, we require `soft` <= `hard`.
       * 
* * optional uint64 hard = 2; */ long getHard(); /** * optional uint64 soft = 3; */ boolean hasSoft(); /** * optional uint64 soft = 3; */ long getSoft(); } /** * Protobuf type {@code mesos.v1.RLimitInfo.RLimit} */ public static final class RLimit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.RLimitInfo.RLimit) RLimitOrBuilder { private static final long serialVersionUID = 0L; // Use RLimit.newBuilder() to construct. private RLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RLimit() { type_ = 0; hard_ = 0L; soft_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RLimit( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type value = org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 16: { bitField0_ |= 0x00000002; hard_ = input.readUInt64(); break; } case 24: { bitField0_ |= 0x00000004; soft_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_RLimit_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_RLimit_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.RLimitInfo.RLimit.class, org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder.class); } /** * Protobuf enum {@code mesos.v1.RLimitInfo.RLimit.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * RLMT_AS = 1; */ RLMT_AS(1), /** * RLMT_CORE = 2; */ RLMT_CORE(2), /** * RLMT_CPU = 3; */ RLMT_CPU(3), /** * RLMT_DATA = 4; */ RLMT_DATA(4), /** * RLMT_FSIZE = 5; */ RLMT_FSIZE(5), /** * RLMT_LOCKS = 6; */ RLMT_LOCKS(6), /** * RLMT_MEMLOCK = 7; */ RLMT_MEMLOCK(7), /** * RLMT_MSGQUEUE = 8; */ RLMT_MSGQUEUE(8), /** * RLMT_NICE = 9; */ RLMT_NICE(9), /** * RLMT_NOFILE = 10; */ RLMT_NOFILE(10), /** * RLMT_NPROC = 11; */ RLMT_NPROC(11), /** * RLMT_RSS = 12; */ RLMT_RSS(12), /** * RLMT_RTPRIO = 13; */ RLMT_RTPRIO(13), /** * RLMT_RTTIME = 14; */ RLMT_RTTIME(14), /** * RLMT_SIGPENDING = 15; */ RLMT_SIGPENDING(15), /** * RLMT_STACK = 16; */ RLMT_STACK(16), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * RLMT_AS = 1; */ public static final int RLMT_AS_VALUE = 1; /** * RLMT_CORE = 2; */ public static final int RLMT_CORE_VALUE = 2; /** * RLMT_CPU = 3; */ public static final int RLMT_CPU_VALUE = 3; /** * RLMT_DATA = 4; */ public static final int RLMT_DATA_VALUE = 4; /** * RLMT_FSIZE = 5; */ public static final int RLMT_FSIZE_VALUE = 5; /** * RLMT_LOCKS = 6; */ public static final int RLMT_LOCKS_VALUE = 6; /** * RLMT_MEMLOCK = 7; */ public static final int RLMT_MEMLOCK_VALUE = 7; /** * RLMT_MSGQUEUE = 8; */ public static final int RLMT_MSGQUEUE_VALUE = 8; /** * RLMT_NICE = 9; */ public static final int RLMT_NICE_VALUE = 9; /** * RLMT_NOFILE = 10; */ public static final int RLMT_NOFILE_VALUE = 10; /** * RLMT_NPROC = 11; */ public static final int RLMT_NPROC_VALUE = 11; /** * RLMT_RSS = 12; */ public static final int RLMT_RSS_VALUE = 12; /** * RLMT_RTPRIO = 13; */ public static final int RLMT_RTPRIO_VALUE = 13; /** * RLMT_RTTIME = 14; */ public static final int RLMT_RTTIME_VALUE = 14; /** * RLMT_SIGPENDING = 15; */ public static final int RLMT_SIGPENDING_VALUE = 15; /** * RLMT_STACK = 16; */ public static final int RLMT_STACK_VALUE = 16; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return RLMT_AS; case 2: return RLMT_CORE; case 3: return RLMT_CPU; case 4: return RLMT_DATA; case 5: return RLMT_FSIZE; case 6: return RLMT_LOCKS; case 7: return RLMT_MEMLOCK; case 8: return RLMT_MSGQUEUE; case 9: return RLMT_NICE; case 10: return RLMT_NOFILE; case 11: return RLMT_NPROC; case 12: return RLMT_RSS; case 13: return RLMT_RTPRIO; case 14: return RLMT_RTTIME; case 15: return RLMT_SIGPENDING; case 16: return RLMT_STACK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.RLimitInfo.RLimit.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.RLimitInfo.RLimit.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .mesos.v1.RLimitInfo.RLimit.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.RLimitInfo.RLimit.Type type = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type getType() { org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type result = org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type.UNKNOWN : result; } public static final int HARD_FIELD_NUMBER = 2; private long hard_; /** *
       * Either both are set or both are not set.
       * If both are not set, it represents unlimited.
       * If both are set, we require `soft` <= `hard`.
       * 
* * optional uint64 hard = 2; */ public boolean hasHard() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * Either both are set or both are not set.
       * If both are not set, it represents unlimited.
       * If both are set, we require `soft` <= `hard`.
       * 
* * optional uint64 hard = 2; */ public long getHard() { return hard_; } public static final int SOFT_FIELD_NUMBER = 3; private long soft_; /** * optional uint64 soft = 3; */ public boolean hasSoft() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 soft = 3; */ public long getSoft() { return soft_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, hard_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, soft_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, hard_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, soft_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.RLimitInfo.RLimit)) { return super.equals(obj); } org.apache.mesos.v1.Protos.RLimitInfo.RLimit other = (org.apache.mesos.v1.Protos.RLimitInfo.RLimit) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && (hasHard() == other.hasHard()); if (hasHard()) { result = result && (getHard() == other.getHard()); } result = result && (hasSoft() == other.hasSoft()); if (hasSoft()) { result = result && (getSoft() == other.getSoft()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasHard()) { hash = (37 * hash) + HARD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHard()); } if (hasSoft()) { hash = (37 * hash) + SOFT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSoft()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit 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.Protos.RLimitInfo.RLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.RLimitInfo.RLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.RLimitInfo.RLimit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.RLimitInfo.RLimit) org.apache.mesos.v1.Protos.RLimitInfo.RLimitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_RLimit_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_RLimit_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.RLimitInfo.RLimit.class, org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder.class); } // Construct using org.apache.mesos.v1.Protos.RLimitInfo.RLimit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); hard_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); soft_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_RLimit_descriptor; } public org.apache.mesos.v1.Protos.RLimitInfo.RLimit getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.RLimitInfo.RLimit.getDefaultInstance(); } public org.apache.mesos.v1.Protos.RLimitInfo.RLimit build() { org.apache.mesos.v1.Protos.RLimitInfo.RLimit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.RLimitInfo.RLimit buildPartial() { org.apache.mesos.v1.Protos.RLimitInfo.RLimit result = new org.apache.mesos.v1.Protos.RLimitInfo.RLimit(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.hard_ = hard_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.soft_ = soft_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.RLimitInfo.RLimit) { return mergeFrom((org.apache.mesos.v1.Protos.RLimitInfo.RLimit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.RLimitInfo.RLimit other) { if (other == org.apache.mesos.v1.Protos.RLimitInfo.RLimit.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasHard()) { setHard(other.getHard()); } if (other.hasSoft()) { setSoft(other.getSoft()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.RLimitInfo.RLimit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.RLimitInfo.RLimit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * optional .mesos.v1.RLimitInfo.RLimit.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.RLimitInfo.RLimit.Type type = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type getType() { org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type result = org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type.UNKNOWN : result; } /** * optional .mesos.v1.RLimitInfo.RLimit.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.RLimitInfo.RLimit.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private long hard_ ; /** *
         * Either both are set or both are not set.
         * If both are not set, it represents unlimited.
         * If both are set, we require `soft` <= `hard`.
         * 
* * optional uint64 hard = 2; */ public boolean hasHard() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Either both are set or both are not set.
         * If both are not set, it represents unlimited.
         * If both are set, we require `soft` <= `hard`.
         * 
* * optional uint64 hard = 2; */ public long getHard() { return hard_; } /** *
         * Either both are set or both are not set.
         * If both are not set, it represents unlimited.
         * If both are set, we require `soft` <= `hard`.
         * 
* * optional uint64 hard = 2; */ public Builder setHard(long value) { bitField0_ |= 0x00000002; hard_ = value; onChanged(); return this; } /** *
         * Either both are set or both are not set.
         * If both are not set, it represents unlimited.
         * If both are set, we require `soft` <= `hard`.
         * 
* * optional uint64 hard = 2; */ public Builder clearHard() { bitField0_ = (bitField0_ & ~0x00000002); hard_ = 0L; onChanged(); return this; } private long soft_ ; /** * optional uint64 soft = 3; */ public boolean hasSoft() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 soft = 3; */ public long getSoft() { return soft_; } /** * optional uint64 soft = 3; */ public Builder setSoft(long value) { bitField0_ |= 0x00000004; soft_ = value; onChanged(); return this; } /** * optional uint64 soft = 3; */ public Builder clearSoft() { bitField0_ = (bitField0_ & ~0x00000004); soft_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.RLimitInfo.RLimit) } // @@protoc_insertion_point(class_scope:mesos.v1.RLimitInfo.RLimit) private static final org.apache.mesos.v1.Protos.RLimitInfo.RLimit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.RLimitInfo.RLimit(); } public static org.apache.mesos.v1.Protos.RLimitInfo.RLimit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RLimit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RLimit(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.RLimitInfo.RLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RLIMITS_FIELD_NUMBER = 1; private java.util.List rlimits_; /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public java.util.List getRlimitsList() { return rlimits_; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public java.util.List getRlimitsOrBuilderList() { return rlimits_; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public int getRlimitsCount() { return rlimits_.size(); } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimit getRlimits(int index) { return rlimits_.get(index); } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimitOrBuilder getRlimitsOrBuilder( int index) { return rlimits_.get(index); } 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 { for (int i = 0; i < rlimits_.size(); i++) { output.writeMessage(1, rlimits_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rlimits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, rlimits_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.RLimitInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.RLimitInfo other = (org.apache.mesos.v1.Protos.RLimitInfo) obj; boolean result = true; result = result && getRlimitsList() .equals(other.getRlimitsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRlimitsCount() > 0) { hash = (37 * hash) + RLIMITS_FIELD_NUMBER; hash = (53 * hash) + getRlimitsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.RLimitInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RLimitInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.RLimitInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RLimitInfo 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.Protos.RLimitInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.RLimitInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.RLimitInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RLimitInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.RLimitInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RLimitInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.RLimitInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.RLimitInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.RLimitInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Encapsulation for POSIX rlimits, see
     * http://pubs.opengroup.org/onlinepubs/009695399/functions/getrlimit.html.
     * Note that some types might only be defined for Linux.
     * We use a custom prefix to avoid conflict with existing system macros
     * (e.g., `RLIMIT_CPU` or `NOFILE`).
     * 
* * Protobuf type {@code mesos.v1.RLimitInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.RLimitInfo) org.apache.mesos.v1.Protos.RLimitInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.RLimitInfo.class, org.apache.mesos.v1.Protos.RLimitInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.RLimitInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRlimitsFieldBuilder(); } } public Builder clear() { super.clear(); if (rlimitsBuilder_ == null) { rlimits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rlimitsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_RLimitInfo_descriptor; } public org.apache.mesos.v1.Protos.RLimitInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.RLimitInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.RLimitInfo build() { org.apache.mesos.v1.Protos.RLimitInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.RLimitInfo buildPartial() { org.apache.mesos.v1.Protos.RLimitInfo result = new org.apache.mesos.v1.Protos.RLimitInfo(this); int from_bitField0_ = bitField0_; if (rlimitsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { rlimits_ = java.util.Collections.unmodifiableList(rlimits_); bitField0_ = (bitField0_ & ~0x00000001); } result.rlimits_ = rlimits_; } else { result.rlimits_ = rlimitsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.RLimitInfo) { return mergeFrom((org.apache.mesos.v1.Protos.RLimitInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.RLimitInfo other) { if (other == org.apache.mesos.v1.Protos.RLimitInfo.getDefaultInstance()) return this; if (rlimitsBuilder_ == null) { if (!other.rlimits_.isEmpty()) { if (rlimits_.isEmpty()) { rlimits_ = other.rlimits_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRlimitsIsMutable(); rlimits_.addAll(other.rlimits_); } onChanged(); } } else { if (!other.rlimits_.isEmpty()) { if (rlimitsBuilder_.isEmpty()) { rlimitsBuilder_.dispose(); rlimitsBuilder_ = null; rlimits_ = other.rlimits_; bitField0_ = (bitField0_ & ~0x00000001); rlimitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRlimitsFieldBuilder() : null; } else { rlimitsBuilder_.addAllMessages(other.rlimits_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.RLimitInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.RLimitInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rlimits_ = java.util.Collections.emptyList(); private void ensureRlimitsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { rlimits_ = new java.util.ArrayList(rlimits_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.RLimitInfo.RLimit, org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder, org.apache.mesos.v1.Protos.RLimitInfo.RLimitOrBuilder> rlimitsBuilder_; /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public java.util.List getRlimitsList() { if (rlimitsBuilder_ == null) { return java.util.Collections.unmodifiableList(rlimits_); } else { return rlimitsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public int getRlimitsCount() { if (rlimitsBuilder_ == null) { return rlimits_.size(); } else { return rlimitsBuilder_.getCount(); } } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimit getRlimits(int index) { if (rlimitsBuilder_ == null) { return rlimits_.get(index); } else { return rlimitsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder setRlimits( int index, org.apache.mesos.v1.Protos.RLimitInfo.RLimit value) { if (rlimitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRlimitsIsMutable(); rlimits_.set(index, value); onChanged(); } else { rlimitsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder setRlimits( int index, org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder builderForValue) { if (rlimitsBuilder_ == null) { ensureRlimitsIsMutable(); rlimits_.set(index, builderForValue.build()); onChanged(); } else { rlimitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder addRlimits(org.apache.mesos.v1.Protos.RLimitInfo.RLimit value) { if (rlimitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRlimitsIsMutable(); rlimits_.add(value); onChanged(); } else { rlimitsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder addRlimits( int index, org.apache.mesos.v1.Protos.RLimitInfo.RLimit value) { if (rlimitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRlimitsIsMutable(); rlimits_.add(index, value); onChanged(); } else { rlimitsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder addRlimits( org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder builderForValue) { if (rlimitsBuilder_ == null) { ensureRlimitsIsMutable(); rlimits_.add(builderForValue.build()); onChanged(); } else { rlimitsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder addRlimits( int index, org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder builderForValue) { if (rlimitsBuilder_ == null) { ensureRlimitsIsMutable(); rlimits_.add(index, builderForValue.build()); onChanged(); } else { rlimitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder addAllRlimits( java.lang.Iterable values) { if (rlimitsBuilder_ == null) { ensureRlimitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rlimits_); onChanged(); } else { rlimitsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder clearRlimits() { if (rlimitsBuilder_ == null) { rlimits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rlimitsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public Builder removeRlimits(int index) { if (rlimitsBuilder_ == null) { ensureRlimitsIsMutable(); rlimits_.remove(index); onChanged(); } else { rlimitsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder getRlimitsBuilder( int index) { return getRlimitsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimitOrBuilder getRlimitsOrBuilder( int index) { if (rlimitsBuilder_ == null) { return rlimits_.get(index); } else { return rlimitsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public java.util.List getRlimitsOrBuilderList() { if (rlimitsBuilder_ != null) { return rlimitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rlimits_); } } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder addRlimitsBuilder() { return getRlimitsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.RLimitInfo.RLimit.getDefaultInstance()); } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder addRlimitsBuilder( int index) { return getRlimitsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.RLimitInfo.RLimit.getDefaultInstance()); } /** * repeated .mesos.v1.RLimitInfo.RLimit rlimits = 1; */ public java.util.List getRlimitsBuilderList() { return getRlimitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.RLimitInfo.RLimit, org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder, org.apache.mesos.v1.Protos.RLimitInfo.RLimitOrBuilder> getRlimitsFieldBuilder() { if (rlimitsBuilder_ == null) { rlimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.RLimitInfo.RLimit, org.apache.mesos.v1.Protos.RLimitInfo.RLimit.Builder, org.apache.mesos.v1.Protos.RLimitInfo.RLimitOrBuilder>( rlimits_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); rlimits_ = null; } return rlimitsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.RLimitInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.RLimitInfo) private static final org.apache.mesos.v1.Protos.RLimitInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.RLimitInfo(); } public static org.apache.mesos.v1.Protos.RLimitInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RLimitInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RLimitInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.RLimitInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TTYInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TTYInfo) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ boolean hasWindowSize(); /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ org.apache.mesos.v1.Protos.TTYInfo.WindowSize getWindowSize(); /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ org.apache.mesos.v1.Protos.TTYInfo.WindowSizeOrBuilder getWindowSizeOrBuilder(); } /** *
   **
   * Describes the information about (pseudo) TTY that can
   * be attached to a process running in a container.
   * 
* * Protobuf type {@code mesos.v1.TTYInfo} */ public static final class TTYInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TTYInfo) TTYInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TTYInfo.newBuilder() to construct. private TTYInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TTYInfo() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TTYInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.TTYInfo.WindowSize.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = windowSize_.toBuilder(); } windowSize_ = input.readMessage(org.apache.mesos.v1.Protos.TTYInfo.WindowSize.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(windowSize_); windowSize_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TTYInfo.class, org.apache.mesos.v1.Protos.TTYInfo.Builder.class); } public interface WindowSizeOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.TTYInfo.WindowSize) com.google.protobuf.MessageOrBuilder { /** * required uint32 rows = 1; */ boolean hasRows(); /** * required uint32 rows = 1; */ int getRows(); /** * required uint32 columns = 2; */ boolean hasColumns(); /** * required uint32 columns = 2; */ int getColumns(); } /** * Protobuf type {@code mesos.v1.TTYInfo.WindowSize} */ public static final class WindowSize extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.TTYInfo.WindowSize) WindowSizeOrBuilder { private static final long serialVersionUID = 0L; // Use WindowSize.newBuilder() to construct. private WindowSize(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WindowSize() { rows_ = 0; columns_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WindowSize( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; rows_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; columns_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_WindowSize_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_WindowSize_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TTYInfo.WindowSize.class, org.apache.mesos.v1.Protos.TTYInfo.WindowSize.Builder.class); } private int bitField0_; public static final int ROWS_FIELD_NUMBER = 1; private int rows_; /** * required uint32 rows = 1; */ public boolean hasRows() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 rows = 1; */ public int getRows() { return rows_; } public static final int COLUMNS_FIELD_NUMBER = 2; private int columns_; /** * required uint32 columns = 2; */ public boolean hasColumns() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 columns = 2; */ public int getColumns() { return columns_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRows()) { memoizedIsInitialized = 0; return false; } if (!hasColumns()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, rows_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, columns_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, rows_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, columns_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TTYInfo.WindowSize)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TTYInfo.WindowSize other = (org.apache.mesos.v1.Protos.TTYInfo.WindowSize) obj; boolean result = true; result = result && (hasRows() == other.hasRows()); if (hasRows()) { result = result && (getRows() == other.getRows()); } result = result && (hasColumns() == other.hasColumns()); if (hasColumns()) { result = result && (getColumns() == other.getColumns()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRows()) { hash = (37 * hash) + ROWS_FIELD_NUMBER; hash = (53 * hash) + getRows(); } if (hasColumns()) { hash = (37 * hash) + COLUMNS_FIELD_NUMBER; hash = (53 * hash) + getColumns(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize 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.Protos.TTYInfo.WindowSize parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TTYInfo.WindowSize prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.TTYInfo.WindowSize} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TTYInfo.WindowSize) org.apache.mesos.v1.Protos.TTYInfo.WindowSizeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_WindowSize_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_WindowSize_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TTYInfo.WindowSize.class, org.apache.mesos.v1.Protos.TTYInfo.WindowSize.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TTYInfo.WindowSize.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); rows_ = 0; bitField0_ = (bitField0_ & ~0x00000001); columns_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_WindowSize_descriptor; } public org.apache.mesos.v1.Protos.TTYInfo.WindowSize getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TTYInfo.WindowSize.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TTYInfo.WindowSize build() { org.apache.mesos.v1.Protos.TTYInfo.WindowSize result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TTYInfo.WindowSize buildPartial() { org.apache.mesos.v1.Protos.TTYInfo.WindowSize result = new org.apache.mesos.v1.Protos.TTYInfo.WindowSize(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rows_ = rows_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.columns_ = columns_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TTYInfo.WindowSize) { return mergeFrom((org.apache.mesos.v1.Protos.TTYInfo.WindowSize)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TTYInfo.WindowSize other) { if (other == org.apache.mesos.v1.Protos.TTYInfo.WindowSize.getDefaultInstance()) return this; if (other.hasRows()) { setRows(other.getRows()); } if (other.hasColumns()) { setColumns(other.getColumns()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasRows()) { return false; } if (!hasColumns()) { 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.Protos.TTYInfo.WindowSize parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TTYInfo.WindowSize) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int rows_ ; /** * required uint32 rows = 1; */ public boolean hasRows() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 rows = 1; */ public int getRows() { return rows_; } /** * required uint32 rows = 1; */ public Builder setRows(int value) { bitField0_ |= 0x00000001; rows_ = value; onChanged(); return this; } /** * required uint32 rows = 1; */ public Builder clearRows() { bitField0_ = (bitField0_ & ~0x00000001); rows_ = 0; onChanged(); return this; } private int columns_ ; /** * required uint32 columns = 2; */ public boolean hasColumns() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 columns = 2; */ public int getColumns() { return columns_; } /** * required uint32 columns = 2; */ public Builder setColumns(int value) { bitField0_ |= 0x00000002; columns_ = value; onChanged(); return this; } /** * required uint32 columns = 2; */ public Builder clearColumns() { bitField0_ = (bitField0_ & ~0x00000002); columns_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TTYInfo.WindowSize) } // @@protoc_insertion_point(class_scope:mesos.v1.TTYInfo.WindowSize) private static final org.apache.mesos.v1.Protos.TTYInfo.WindowSize DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TTYInfo.WindowSize(); } public static org.apache.mesos.v1.Protos.TTYInfo.WindowSize getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WindowSize parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WindowSize(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TTYInfo.WindowSize getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int WINDOW_SIZE_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.TTYInfo.WindowSize windowSize_; /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public boolean hasWindowSize() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public org.apache.mesos.v1.Protos.TTYInfo.WindowSize getWindowSize() { return windowSize_ == null ? org.apache.mesos.v1.Protos.TTYInfo.WindowSize.getDefaultInstance() : windowSize_; } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public org.apache.mesos.v1.Protos.TTYInfo.WindowSizeOrBuilder getWindowSizeOrBuilder() { return windowSize_ == null ? org.apache.mesos.v1.Protos.TTYInfo.WindowSize.getDefaultInstance() : windowSize_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasWindowSize()) { if (!getWindowSize().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getWindowSize()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getWindowSize()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.TTYInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.TTYInfo other = (org.apache.mesos.v1.Protos.TTYInfo) obj; boolean result = true; result = result && (hasWindowSize() == other.hasWindowSize()); if (hasWindowSize()) { result = result && getWindowSize() .equals(other.getWindowSize()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasWindowSize()) { hash = (37 * hash) + WINDOW_SIZE_FIELD_NUMBER; hash = (53 * hash) + getWindowSize().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.TTYInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TTYInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TTYInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TTYInfo 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.Protos.TTYInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.TTYInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.TTYInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TTYInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TTYInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TTYInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.TTYInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.TTYInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.TTYInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes the information about (pseudo) TTY that can
     * be attached to a process running in a container.
     * 
* * Protobuf type {@code mesos.v1.TTYInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.TTYInfo) org.apache.mesos.v1.Protos.TTYInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.TTYInfo.class, org.apache.mesos.v1.Protos.TTYInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.TTYInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWindowSizeFieldBuilder(); } } public Builder clear() { super.clear(); if (windowSizeBuilder_ == null) { windowSize_ = null; } else { windowSizeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_TTYInfo_descriptor; } public org.apache.mesos.v1.Protos.TTYInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.TTYInfo build() { org.apache.mesos.v1.Protos.TTYInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.TTYInfo buildPartial() { org.apache.mesos.v1.Protos.TTYInfo result = new org.apache.mesos.v1.Protos.TTYInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (windowSizeBuilder_ == null) { result.windowSize_ = windowSize_; } else { result.windowSize_ = windowSizeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.TTYInfo) { return mergeFrom((org.apache.mesos.v1.Protos.TTYInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.TTYInfo other) { if (other == org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance()) return this; if (other.hasWindowSize()) { mergeWindowSize(other.getWindowSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasWindowSize()) { if (!getWindowSize().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.Protos.TTYInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.TTYInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.TTYInfo.WindowSize windowSize_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TTYInfo.WindowSize, org.apache.mesos.v1.Protos.TTYInfo.WindowSize.Builder, org.apache.mesos.v1.Protos.TTYInfo.WindowSizeOrBuilder> windowSizeBuilder_; /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public boolean hasWindowSize() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public org.apache.mesos.v1.Protos.TTYInfo.WindowSize getWindowSize() { if (windowSizeBuilder_ == null) { return windowSize_ == null ? org.apache.mesos.v1.Protos.TTYInfo.WindowSize.getDefaultInstance() : windowSize_; } else { return windowSizeBuilder_.getMessage(); } } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public Builder setWindowSize(org.apache.mesos.v1.Protos.TTYInfo.WindowSize value) { if (windowSizeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } windowSize_ = value; onChanged(); } else { windowSizeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public Builder setWindowSize( org.apache.mesos.v1.Protos.TTYInfo.WindowSize.Builder builderForValue) { if (windowSizeBuilder_ == null) { windowSize_ = builderForValue.build(); onChanged(); } else { windowSizeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public Builder mergeWindowSize(org.apache.mesos.v1.Protos.TTYInfo.WindowSize value) { if (windowSizeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && windowSize_ != null && windowSize_ != org.apache.mesos.v1.Protos.TTYInfo.WindowSize.getDefaultInstance()) { windowSize_ = org.apache.mesos.v1.Protos.TTYInfo.WindowSize.newBuilder(windowSize_).mergeFrom(value).buildPartial(); } else { windowSize_ = value; } onChanged(); } else { windowSizeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public Builder clearWindowSize() { if (windowSizeBuilder_ == null) { windowSize_ = null; onChanged(); } else { windowSizeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public org.apache.mesos.v1.Protos.TTYInfo.WindowSize.Builder getWindowSizeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWindowSizeFieldBuilder().getBuilder(); } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ public org.apache.mesos.v1.Protos.TTYInfo.WindowSizeOrBuilder getWindowSizeOrBuilder() { if (windowSizeBuilder_ != null) { return windowSizeBuilder_.getMessageOrBuilder(); } else { return windowSize_ == null ? org.apache.mesos.v1.Protos.TTYInfo.WindowSize.getDefaultInstance() : windowSize_; } } /** * optional .mesos.v1.TTYInfo.WindowSize window_size = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TTYInfo.WindowSize, org.apache.mesos.v1.Protos.TTYInfo.WindowSize.Builder, org.apache.mesos.v1.Protos.TTYInfo.WindowSizeOrBuilder> getWindowSizeFieldBuilder() { if (windowSizeBuilder_ == null) { windowSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TTYInfo.WindowSize, org.apache.mesos.v1.Protos.TTYInfo.WindowSize.Builder, org.apache.mesos.v1.Protos.TTYInfo.WindowSizeOrBuilder>( getWindowSize(), getParentForChildren(), isClean()); windowSize_ = null; } return windowSizeBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.TTYInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.TTYInfo) private static final org.apache.mesos.v1.Protos.TTYInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.TTYInfo(); } public static org.apache.mesos.v1.Protos.TTYInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TTYInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TTYInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.TTYInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ContainerInfo) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ContainerInfo.Type type = 1; */ boolean hasType(); /** * required .mesos.v1.ContainerInfo.Type type = 1; */ org.apache.mesos.v1.Protos.ContainerInfo.Type getType(); /** * repeated .mesos.v1.Volume volumes = 2; */ java.util.List getVolumesList(); /** * repeated .mesos.v1.Volume volumes = 2; */ org.apache.mesos.v1.Protos.Volume getVolumes(int index); /** * repeated .mesos.v1.Volume volumes = 2; */ int getVolumesCount(); /** * repeated .mesos.v1.Volume volumes = 2; */ java.util.List getVolumesOrBuilderList(); /** * repeated .mesos.v1.Volume volumes = 2; */ org.apache.mesos.v1.Protos.VolumeOrBuilder getVolumesOrBuilder( int index); /** * optional string hostname = 4; */ boolean hasHostname(); /** * optional string hostname = 4; */ java.lang.String getHostname(); /** * optional string hostname = 4; */ com.google.protobuf.ByteString getHostnameBytes(); /** *
     * At most one of the following *Info messages should be set to match
     * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
     * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ boolean hasDocker(); /** *
     * At most one of the following *Info messages should be set to match
     * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
     * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo getDocker(); /** *
     * At most one of the following *Info messages should be set to match
     * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
     * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ org.apache.mesos.v1.Protos.ContainerInfo.DockerInfoOrBuilder getDockerOrBuilder(); /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ boolean hasMesos(); /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo getMesos(); /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ org.apache.mesos.v1.Protos.ContainerInfo.MesosInfoOrBuilder getMesosOrBuilder(); /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ java.util.List getNetworkInfosList(); /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ org.apache.mesos.v1.Protos.NetworkInfo getNetworkInfos(int index); /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ int getNetworkInfosCount(); /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ java.util.List getNetworkInfosOrBuilderList(); /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ org.apache.mesos.v1.Protos.NetworkInfoOrBuilder getNetworkInfosOrBuilder( int index); /** *
     * Linux specific information for the container.
     * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ boolean hasLinuxInfo(); /** *
     * Linux specific information for the container.
     * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ org.apache.mesos.v1.Protos.LinuxInfo getLinuxInfo(); /** *
     * Linux specific information for the container.
     * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ org.apache.mesos.v1.Protos.LinuxInfoOrBuilder getLinuxInfoOrBuilder(); /** *
     * (POSIX only) rlimits of the container.
     * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ boolean hasRlimitInfo(); /** *
     * (POSIX only) rlimits of the container.
     * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ org.apache.mesos.v1.Protos.RLimitInfo getRlimitInfo(); /** *
     * (POSIX only) rlimits of the container.
     * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ org.apache.mesos.v1.Protos.RLimitInfoOrBuilder getRlimitInfoOrBuilder(); /** *
     * If specified a tty will be attached to the container entrypoint.
     * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ boolean hasTtyInfo(); /** *
     * If specified a tty will be attached to the container entrypoint.
     * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ org.apache.mesos.v1.Protos.TTYInfo getTtyInfo(); /** *
     * If specified a tty will be attached to the container entrypoint.
     * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ org.apache.mesos.v1.Protos.TTYInfoOrBuilder getTtyInfoOrBuilder(); } /** *
   **
   * Describes a container configuration and allows extensible
   * configurations for different container implementations.
   * NOTE: `ContainerInfo` may be specified, e.g., by a task, even if no
   * container image is provided. In this case neither `MesosInfo` nor
   * `DockerInfo` is set, the required `type` must be `MESOS`. This is to
   * address a case when a task without an image, e.g., a shell script
   * with URIs, wants to use features originally designed for containers,
   * for example custom network isolation via `NetworkInfo`.
   * 
* * Protobuf type {@code mesos.v1.ContainerInfo} */ public static final class ContainerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ContainerInfo) ContainerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerInfo.newBuilder() to construct. private ContainerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerInfo() { type_ = 1; volumes_ = java.util.Collections.emptyList(); hostname_ = ""; networkInfos_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.ContainerInfo.Type value = org.apache.mesos.v1.Protos.ContainerInfo.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { volumes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } volumes_.add( input.readMessage(org.apache.mesos.v1.Protos.Volume.PARSER, extensionRegistry)); break; } case 26: { org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = docker_.toBuilder(); } docker_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(docker_); docker_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; hostname_ = bs; break; } case 42: { org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = mesos_.toBuilder(); } mesos_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mesos_); mesos_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 58: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { networkInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } networkInfos_.add( input.readMessage(org.apache.mesos.v1.Protos.NetworkInfo.PARSER, extensionRegistry)); break; } case 66: { org.apache.mesos.v1.Protos.LinuxInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = linuxInfo_.toBuilder(); } linuxInfo_ = input.readMessage(org.apache.mesos.v1.Protos.LinuxInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(linuxInfo_); linuxInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 74: { org.apache.mesos.v1.Protos.RLimitInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = rlimitInfo_.toBuilder(); } rlimitInfo_ = input.readMessage(org.apache.mesos.v1.Protos.RLimitInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rlimitInfo_); rlimitInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 82: { org.apache.mesos.v1.Protos.TTYInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = ttyInfo_.toBuilder(); } ttyInfo_ = input.readMessage(org.apache.mesos.v1.Protos.TTYInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ttyInfo_); ttyInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { networkInfos_ = java.util.Collections.unmodifiableList(networkInfos_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerInfo.class, org.apache.mesos.v1.Protos.ContainerInfo.Builder.class); } /** *
     * All container implementation types.
     * For each type there should be a field in the ContainerInfo itself
     * with exactly matching name in lowercase.
     * 
* * Protobuf enum {@code mesos.v1.ContainerInfo.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * DOCKER = 1; */ DOCKER(1), /** * MESOS = 2; */ MESOS(2), ; /** * DOCKER = 1; */ public static final int DOCKER_VALUE = 1; /** * MESOS = 2; */ public static final int MESOS_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 1: return DOCKER; case 2: return MESOS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.ContainerInfo.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.ContainerInfo.Type) } public interface DockerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ContainerInfo.DockerInfo) com.google.protobuf.MessageOrBuilder { /** *
       * The docker image that is going to be passed to the registry.
       * 
* * required string image = 1; */ boolean hasImage(); /** *
       * The docker image that is going to be passed to the registry.
       * 
* * required string image = 1; */ java.lang.String getImage(); /** *
       * The docker image that is going to be passed to the registry.
       * 
* * required string image = 1; */ com.google.protobuf.ByteString getImageBytes(); /** * optional .mesos.v1.ContainerInfo.DockerInfo.Network network = 2 [default = HOST]; */ boolean hasNetwork(); /** * optional .mesos.v1.ContainerInfo.DockerInfo.Network network = 2 [default = HOST]; */ org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network getNetwork(); /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ java.util.List getPortMappingsList(); /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping getPortMappings(int index); /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ int getPortMappingsCount(); /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ java.util.List getPortMappingsOrBuilderList(); /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMappingOrBuilder getPortMappingsOrBuilder( int index); /** * optional bool privileged = 4 [default = false]; */ boolean hasPrivileged(); /** * optional bool privileged = 4 [default = false]; */ boolean getPrivileged(); /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ java.util.List getParametersList(); /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ org.apache.mesos.v1.Protos.Parameter getParameters(int index); /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ int getParametersCount(); /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ java.util.List getParametersOrBuilderList(); /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ org.apache.mesos.v1.Protos.ParameterOrBuilder getParametersOrBuilder( int index); /** *
       * With this flag set to true, the docker containerizer will
       * pull the docker image from the registry even if the image
       * is already downloaded on the agent.
       * 
* * optional bool force_pull_image = 6; */ boolean hasForcePullImage(); /** *
       * With this flag set to true, the docker containerizer will
       * pull the docker image from the registry even if the image
       * is already downloaded on the agent.
       * 
* * optional bool force_pull_image = 6; */ boolean getForcePullImage(); /** *
       * The name of volume driver plugin.
       * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated boolean hasVolumeDriver(); /** *
       * The name of volume driver plugin.
       * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated java.lang.String getVolumeDriver(); /** *
       * The name of volume driver plugin.
       * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated com.google.protobuf.ByteString getVolumeDriverBytes(); } /** * Protobuf type {@code mesos.v1.ContainerInfo.DockerInfo} */ public static final class DockerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ContainerInfo.DockerInfo) DockerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use DockerInfo.newBuilder() to construct. private DockerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DockerInfo() { image_ = ""; network_ = 1; portMappings_ = java.util.Collections.emptyList(); privileged_ = false; parameters_ = java.util.Collections.emptyList(); forcePullImage_ = false; volumeDriver_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DockerInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; image_ = bs; break; } case 16: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network value = org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; network_ = rawValue; } break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { portMappings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } portMappings_.add( input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.PARSER, extensionRegistry)); break; } case 32: { bitField0_ |= 0x00000004; privileged_ = input.readBool(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { parameters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } parameters_.add( input.readMessage(org.apache.mesos.v1.Protos.Parameter.PARSER, extensionRegistry)); break; } case 48: { bitField0_ |= 0x00000008; forcePullImage_ = input.readBool(); break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; volumeDriver_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { portMappings_ = java.util.Collections.unmodifiableList(portMappings_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.class, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Builder.class); } /** *
       * Network options.
       * 
* * Protobuf enum {@code mesos.v1.ContainerInfo.DockerInfo.Network} */ public enum Network implements com.google.protobuf.ProtocolMessageEnum { /** * HOST = 1; */ HOST(1), /** * BRIDGE = 2; */ BRIDGE(2), /** * NONE = 3; */ NONE(3), /** * USER = 4; */ USER(4), ; /** * HOST = 1; */ public static final int HOST_VALUE = 1; /** * BRIDGE = 2; */ public static final int BRIDGE_VALUE = 2; /** * NONE = 3; */ public static final int NONE_VALUE = 3; /** * USER = 4; */ public static final int USER_VALUE = 4; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Network valueOf(int value) { return forNumber(value); } public static Network forNumber(int value) { switch (value) { case 1: return HOST; case 2: return BRIDGE; case 3: return NONE; case 4: return USER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Network> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Network findValueByNumber(int number) { return Network.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.getDescriptor().getEnumTypes().get(0); } private static final Network[] VALUES = values(); public static Network valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Network(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.ContainerInfo.DockerInfo.Network) } public interface PortMappingOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ContainerInfo.DockerInfo.PortMapping) com.google.protobuf.MessageOrBuilder { /** * required uint32 host_port = 1; */ boolean hasHostPort(); /** * required uint32 host_port = 1; */ int getHostPort(); /** * required uint32 container_port = 2; */ boolean hasContainerPort(); /** * required uint32 container_port = 2; */ int getContainerPort(); /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ boolean hasProtocol(); /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ java.lang.String getProtocol(); /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ com.google.protobuf.ByteString getProtocolBytes(); } /** * Protobuf type {@code mesos.v1.ContainerInfo.DockerInfo.PortMapping} */ public static final class PortMapping extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ContainerInfo.DockerInfo.PortMapping) PortMappingOrBuilder { private static final long serialVersionUID = 0L; // Use PortMapping.newBuilder() to construct. private PortMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PortMapping() { hostPort_ = 0; containerPort_ = 0; protocol_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PortMapping( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; hostPort_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; containerPort_ = input.readUInt32(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; protocol_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_PortMapping_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_PortMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.class, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder.class); } private int bitField0_; public static final int HOST_PORT_FIELD_NUMBER = 1; private int hostPort_; /** * required uint32 host_port = 1; */ public boolean hasHostPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 host_port = 1; */ public int getHostPort() { return hostPort_; } public static final int CONTAINER_PORT_FIELD_NUMBER = 2; private int containerPort_; /** * required uint32 container_port = 2; */ public boolean hasContainerPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 container_port = 2; */ public int getContainerPort() { return containerPort_; } public static final int PROTOCOL_FIELD_NUMBER = 3; private volatile java.lang.Object protocol_; /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } } /** *
         * Protocol to expose as (ie: tcp, udp).
         * 
* * optional string protocol = 3; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasHostPort()) { memoizedIsInitialized = 0; return false; } if (!hasContainerPort()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, hostPort_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, containerPort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, protocol_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, hostPort_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, containerPort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, protocol_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping other = (org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping) obj; boolean result = true; result = result && (hasHostPort() == other.hasHostPort()); if (hasHostPort()) { result = result && (getHostPort() == other.getHostPort()); } result = result && (hasContainerPort() == other.hasContainerPort()); if (hasContainerPort()) { result = result && (getContainerPort() == other.getContainerPort()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol() .equals(other.getProtocol()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHostPort()) { hash = (37 * hash) + HOST_PORT_FIELD_NUMBER; hash = (53 * hash) + getHostPort(); } if (hasContainerPort()) { hash = (37 * hash) + CONTAINER_PORT_FIELD_NUMBER; hash = (53 * hash) + getContainerPort(); } if (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping 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.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.ContainerInfo.DockerInfo.PortMapping} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ContainerInfo.DockerInfo.PortMapping) org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMappingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_PortMapping_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_PortMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.class, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); hostPort_ = 0; bitField0_ = (bitField0_ & ~0x00000001); containerPort_ = 0; bitField0_ = (bitField0_ & ~0x00000002); protocol_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_PortMapping_descriptor; } public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping build() { org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping buildPartial() { org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping result = new org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.hostPort_ = hostPort_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.containerPort_ = containerPort_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.protocol_ = protocol_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping) { return mergeFrom((org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping other) { if (other == org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.getDefaultInstance()) return this; if (other.hasHostPort()) { setHostPort(other.getHostPort()); } if (other.hasContainerPort()) { setContainerPort(other.getContainerPort()); } if (other.hasProtocol()) { bitField0_ |= 0x00000004; protocol_ = other.protocol_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasHostPort()) { return false; } if (!hasContainerPort()) { 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.Protos.ContainerInfo.DockerInfo.PortMapping parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int hostPort_ ; /** * required uint32 host_port = 1; */ public boolean hasHostPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 host_port = 1; */ public int getHostPort() { return hostPort_; } /** * required uint32 host_port = 1; */ public Builder setHostPort(int value) { bitField0_ |= 0x00000001; hostPort_ = value; onChanged(); return this; } /** * required uint32 host_port = 1; */ public Builder clearHostPort() { bitField0_ = (bitField0_ & ~0x00000001); hostPort_ = 0; onChanged(); return this; } private int containerPort_ ; /** * required uint32 container_port = 2; */ public boolean hasContainerPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 container_port = 2; */ public int getContainerPort() { return containerPort_; } /** * required uint32 container_port = 2; */ public Builder setContainerPort(int value) { bitField0_ |= 0x00000002; containerPort_ = value; onChanged(); return this; } /** * required uint32 container_port = 2; */ public Builder clearContainerPort() { bitField0_ = (bitField0_ & ~0x00000002); containerPort_ = 0; onChanged(); return this; } private java.lang.Object protocol_ = ""; /** *
           * Protocol to expose as (ie: tcp, udp).
           * 
* * optional string protocol = 3; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
           * Protocol to expose as (ie: tcp, udp).
           * 
* * optional string protocol = 3; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * Protocol to expose as (ie: tcp, udp).
           * 
* * optional string protocol = 3; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Protocol to expose as (ie: tcp, udp).
           * 
* * optional string protocol = 3; */ public Builder setProtocol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; protocol_ = value; onChanged(); return this; } /** *
           * Protocol to expose as (ie: tcp, udp).
           * 
* * optional string protocol = 3; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000004); protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** *
           * Protocol to expose as (ie: tcp, udp).
           * 
* * optional string protocol = 3; */ public Builder setProtocolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; protocol_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ContainerInfo.DockerInfo.PortMapping) } // @@protoc_insertion_point(class_scope:mesos.v1.ContainerInfo.DockerInfo.PortMapping) private static final org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping(); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PortMapping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PortMapping(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int IMAGE_FIELD_NUMBER = 1; private volatile java.lang.Object image_; /** *
       * The docker image that is going to be passed to the registry.
       * 
* * required string image = 1; */ public boolean hasImage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The docker image that is going to be passed to the registry.
       * 
* * required string image = 1; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } } /** *
       * The docker image that is going to be passed to the registry.
       * 
* * required string image = 1; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NETWORK_FIELD_NUMBER = 2; private int network_; /** * optional .mesos.v1.ContainerInfo.DockerInfo.Network network = 2 [default = HOST]; */ public boolean hasNetwork() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.ContainerInfo.DockerInfo.Network network = 2 [default = HOST]; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network getNetwork() { org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network result = org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network.valueOf(network_); return result == null ? org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network.HOST : result; } public static final int PORT_MAPPINGS_FIELD_NUMBER = 3; private java.util.List portMappings_; /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public java.util.List getPortMappingsList() { return portMappings_; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public java.util.List getPortMappingsOrBuilderList() { return portMappings_; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public int getPortMappingsCount() { return portMappings_.size(); } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping getPortMappings(int index) { return portMappings_.get(index); } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMappingOrBuilder getPortMappingsOrBuilder( int index) { return portMappings_.get(index); } public static final int PRIVILEGED_FIELD_NUMBER = 4; private boolean privileged_; /** * optional bool privileged = 4 [default = false]; */ public boolean hasPrivileged() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool privileged = 4 [default = false]; */ public boolean getPrivileged() { return privileged_; } public static final int PARAMETERS_FIELD_NUMBER = 5; private java.util.List parameters_; /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public java.util.List getParametersList() { return parameters_; } /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public java.util.List getParametersOrBuilderList() { return parameters_; } /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public int getParametersCount() { return parameters_.size(); } /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public org.apache.mesos.v1.Protos.Parameter getParameters(int index) { return parameters_.get(index); } /** *
       * Allowing arbitrary parameters to be passed to docker CLI.
       * Note that anything passed to this field is not guaranteed
       * to be supported moving forward, as we might move away from
       * the docker CLI.
       * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public org.apache.mesos.v1.Protos.ParameterOrBuilder getParametersOrBuilder( int index) { return parameters_.get(index); } public static final int FORCE_PULL_IMAGE_FIELD_NUMBER = 6; private boolean forcePullImage_; /** *
       * With this flag set to true, the docker containerizer will
       * pull the docker image from the registry even if the image
       * is already downloaded on the agent.
       * 
* * optional bool force_pull_image = 6; */ public boolean hasForcePullImage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * With this flag set to true, the docker containerizer will
       * pull the docker image from the registry even if the image
       * is already downloaded on the agent.
       * 
* * optional bool force_pull_image = 6; */ public boolean getForcePullImage() { return forcePullImage_; } public static final int VOLUME_DRIVER_FIELD_NUMBER = 7; private volatile java.lang.Object volumeDriver_; /** *
       * The name of volume driver plugin.
       * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public boolean hasVolumeDriver() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * The name of volume driver plugin.
       * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public java.lang.String getVolumeDriver() { java.lang.Object ref = volumeDriver_; 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()) { volumeDriver_ = s; } return s; } } /** *
       * The name of volume driver plugin.
       * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getVolumeDriverBytes() { java.lang.Object ref = volumeDriver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); volumeDriver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasImage()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getPortMappingsCount(); i++) { if (!getPortMappings(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getParametersCount(); i++) { if (!getParameters(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, network_); } for (int i = 0; i < portMappings_.size(); i++) { output.writeMessage(3, portMappings_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(4, privileged_); } for (int i = 0; i < parameters_.size(); i++) { output.writeMessage(5, parameters_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(6, forcePullImage_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, volumeDriver_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, network_); } for (int i = 0; i < portMappings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, portMappings_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, privileged_); } for (int i = 0; i < parameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, parameters_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, forcePullImage_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, volumeDriver_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo other = (org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo) obj; boolean result = true; result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage() .equals(other.getImage()); } result = result && (hasNetwork() == other.hasNetwork()); if (hasNetwork()) { result = result && network_ == other.network_; } result = result && getPortMappingsList() .equals(other.getPortMappingsList()); result = result && (hasPrivileged() == other.hasPrivileged()); if (hasPrivileged()) { result = result && (getPrivileged() == other.getPrivileged()); } result = result && getParametersList() .equals(other.getParametersList()); result = result && (hasForcePullImage() == other.hasForcePullImage()); if (hasForcePullImage()) { result = result && (getForcePullImage() == other.getForcePullImage()); } result = result && (hasVolumeDriver() == other.hasVolumeDriver()); if (hasVolumeDriver()) { result = result && getVolumeDriver() .equals(other.getVolumeDriver()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (hasNetwork()) { hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + network_; } if (getPortMappingsCount() > 0) { hash = (37 * hash) + PORT_MAPPINGS_FIELD_NUMBER; hash = (53 * hash) + getPortMappingsList().hashCode(); } if (hasPrivileged()) { hash = (37 * hash) + PRIVILEGED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPrivileged()); } if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); } if (hasForcePullImage()) { hash = (37 * hash) + FORCE_PULL_IMAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForcePullImage()); } if (hasVolumeDriver()) { hash = (37 * hash) + VOLUME_DRIVER_FIELD_NUMBER; hash = (53 * hash) + getVolumeDriver().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo 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.Protos.ContainerInfo.DockerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.ContainerInfo.DockerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ContainerInfo.DockerInfo) org.apache.mesos.v1.Protos.ContainerInfo.DockerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.class, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPortMappingsFieldBuilder(); getParametersFieldBuilder(); } } public Builder clear() { super.clear(); image_ = ""; bitField0_ = (bitField0_ & ~0x00000001); network_ = 1; bitField0_ = (bitField0_ & ~0x00000002); if (portMappingsBuilder_ == null) { portMappings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { portMappingsBuilder_.clear(); } privileged_ = false; bitField0_ = (bitField0_ & ~0x00000008); if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { parametersBuilder_.clear(); } forcePullImage_ = false; bitField0_ = (bitField0_ & ~0x00000020); volumeDriver_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_DockerInfo_descriptor; } public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo build() { org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo buildPartial() { org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo result = new org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.image_ = image_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.network_ = network_; if (portMappingsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { portMappings_ = java.util.Collections.unmodifiableList(portMappings_); bitField0_ = (bitField0_ & ~0x00000004); } result.portMappings_ = portMappings_; } else { result.portMappings_ = portMappingsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.privileged_ = privileged_; if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); bitField0_ = (bitField0_ & ~0x00000010); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.forcePullImage_ = forcePullImage_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.volumeDriver_ = volumeDriver_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo) { return mergeFrom((org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo other) { if (other == org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.getDefaultInstance()) return this; if (other.hasImage()) { bitField0_ |= 0x00000001; image_ = other.image_; onChanged(); } if (other.hasNetwork()) { setNetwork(other.getNetwork()); } if (portMappingsBuilder_ == null) { if (!other.portMappings_.isEmpty()) { if (portMappings_.isEmpty()) { portMappings_ = other.portMappings_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePortMappingsIsMutable(); portMappings_.addAll(other.portMappings_); } onChanged(); } } else { if (!other.portMappings_.isEmpty()) { if (portMappingsBuilder_.isEmpty()) { portMappingsBuilder_.dispose(); portMappingsBuilder_ = null; portMappings_ = other.portMappings_; bitField0_ = (bitField0_ & ~0x00000004); portMappingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortMappingsFieldBuilder() : null; } else { portMappingsBuilder_.addAllMessages(other.portMappings_); } } } if (other.hasPrivileged()) { setPrivileged(other.getPrivileged()); } if (parametersBuilder_ == null) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); } onChanged(); } } else { if (!other.parameters_.isEmpty()) { if (parametersBuilder_.isEmpty()) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000010); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } } } if (other.hasForcePullImage()) { setForcePullImage(other.getForcePullImage()); } if (other.hasVolumeDriver()) { bitField0_ |= 0x00000040; volumeDriver_ = other.volumeDriver_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasImage()) { return false; } for (int i = 0; i < getPortMappingsCount(); i++) { if (!getPortMappings(i).isInitialized()) { return false; } } for (int i = 0; i < getParametersCount(); i++) { if (!getParameters(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.Protos.ContainerInfo.DockerInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object image_ = ""; /** *
         * The docker image that is going to be passed to the registry.
         * 
* * required string image = 1; */ public boolean hasImage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * The docker image that is going to be passed to the registry.
         * 
* * required string image = 1; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * The docker image that is going to be passed to the registry.
         * 
* * required string image = 1; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The docker image that is going to be passed to the registry.
         * 
* * required string image = 1; */ public Builder setImage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; image_ = value; onChanged(); return this; } /** *
         * The docker image that is going to be passed to the registry.
         * 
* * required string image = 1; */ public Builder clearImage() { bitField0_ = (bitField0_ & ~0x00000001); image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** *
         * The docker image that is going to be passed to the registry.
         * 
* * required string image = 1; */ public Builder setImageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; image_ = value; onChanged(); return this; } private int network_ = 1; /** * optional .mesos.v1.ContainerInfo.DockerInfo.Network network = 2 [default = HOST]; */ public boolean hasNetwork() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.ContainerInfo.DockerInfo.Network network = 2 [default = HOST]; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network getNetwork() { org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network result = org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network.valueOf(network_); return result == null ? org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network.HOST : result; } /** * optional .mesos.v1.ContainerInfo.DockerInfo.Network network = 2 [default = HOST]; */ public Builder setNetwork(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Network value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; network_ = value.getNumber(); onChanged(); return this; } /** * optional .mesos.v1.ContainerInfo.DockerInfo.Network network = 2 [default = HOST]; */ public Builder clearNetwork() { bitField0_ = (bitField0_ & ~0x00000002); network_ = 1; onChanged(); return this; } private java.util.List portMappings_ = java.util.Collections.emptyList(); private void ensurePortMappingsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { portMappings_ = new java.util.ArrayList(portMappings_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMappingOrBuilder> portMappingsBuilder_; /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public java.util.List getPortMappingsList() { if (portMappingsBuilder_ == null) { return java.util.Collections.unmodifiableList(portMappings_); } else { return portMappingsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public int getPortMappingsCount() { if (portMappingsBuilder_ == null) { return portMappings_.size(); } else { return portMappingsBuilder_.getCount(); } } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping getPortMappings(int index) { if (portMappingsBuilder_ == null) { return portMappings_.get(index); } else { return portMappingsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder setPortMappings( int index, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping value) { if (portMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortMappingsIsMutable(); portMappings_.set(index, value); onChanged(); } else { portMappingsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder setPortMappings( int index, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder builderForValue) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); portMappings_.set(index, builderForValue.build()); onChanged(); } else { portMappingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder addPortMappings(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping value) { if (portMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortMappingsIsMutable(); portMappings_.add(value); onChanged(); } else { portMappingsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder addPortMappings( int index, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping value) { if (portMappingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortMappingsIsMutable(); portMappings_.add(index, value); onChanged(); } else { portMappingsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder addPortMappings( org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder builderForValue) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); portMappings_.add(builderForValue.build()); onChanged(); } else { portMappingsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder addPortMappings( int index, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder builderForValue) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); portMappings_.add(index, builderForValue.build()); onChanged(); } else { portMappingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder addAllPortMappings( java.lang.Iterable values) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, portMappings_); onChanged(); } else { portMappingsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder clearPortMappings() { if (portMappingsBuilder_ == null) { portMappings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { portMappingsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public Builder removePortMappings(int index) { if (portMappingsBuilder_ == null) { ensurePortMappingsIsMutable(); portMappings_.remove(index); onChanged(); } else { portMappingsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder getPortMappingsBuilder( int index) { return getPortMappingsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMappingOrBuilder getPortMappingsOrBuilder( int index) { if (portMappingsBuilder_ == null) { return portMappings_.get(index); } else { return portMappingsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public java.util.List getPortMappingsOrBuilderList() { if (portMappingsBuilder_ != null) { return portMappingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(portMappings_); } } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder addPortMappingsBuilder() { return getPortMappingsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.getDefaultInstance()); } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder addPortMappingsBuilder( int index) { return getPortMappingsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.getDefaultInstance()); } /** * repeated .mesos.v1.ContainerInfo.DockerInfo.PortMapping port_mappings = 3; */ public java.util.List getPortMappingsBuilderList() { return getPortMappingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMappingOrBuilder> getPortMappingsFieldBuilder() { if (portMappingsBuilder_ == null) { portMappingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMapping.Builder, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.PortMappingOrBuilder>( portMappings_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); portMappings_ = null; } return portMappingsBuilder_; } private boolean privileged_ ; /** * optional bool privileged = 4 [default = false]; */ public boolean hasPrivileged() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool privileged = 4 [default = false]; */ public boolean getPrivileged() { return privileged_; } /** * optional bool privileged = 4 [default = false]; */ public Builder setPrivileged(boolean value) { bitField0_ |= 0x00000008; privileged_ = value; onChanged(); return this; } /** * optional bool privileged = 4 [default = false]; */ public Builder clearPrivileged() { bitField0_ = (bitField0_ & ~0x00000008); privileged_ = false; onChanged(); return this; } private java.util.List parameters_ = java.util.Collections.emptyList(); private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { parameters_ = new java.util.ArrayList(parameters_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder> parametersBuilder_; /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public java.util.List getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { return parametersBuilder_.getMessageList(); } } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public int getParametersCount() { if (parametersBuilder_ == null) { return parameters_.size(); } else { return parametersBuilder_.getCount(); } } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public org.apache.mesos.v1.Protos.Parameter getParameters(int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessage(index); } } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder setParameters( int index, org.apache.mesos.v1.Protos.Parameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.set(index, value); onChanged(); } else { parametersBuilder_.setMessage(index, value); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder setParameters( int index, org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder addParameters(org.apache.mesos.v1.Protos.Parameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(value); onChanged(); } else { parametersBuilder_.addMessage(value); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder addParameters( int index, org.apache.mesos.v1.Protos.Parameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(index, value); onChanged(); } else { parametersBuilder_.addMessage(index, value); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder addParameters( org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder addParameters( int index, org.apache.mesos.v1.Protos.Parameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder addAllParameters( java.lang.Iterable values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { parametersBuilder_.clear(); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.remove(index); onChanged(); } else { parametersBuilder_.remove(index); } return this; } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public org.apache.mesos.v1.Protos.Parameter.Builder getParametersBuilder( int index) { return getParametersFieldBuilder().getBuilder(index); } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public org.apache.mesos.v1.Protos.ParameterOrBuilder getParametersOrBuilder( int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public java.util.List getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(parameters_); } } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public org.apache.mesos.v1.Protos.Parameter.Builder addParametersBuilder() { return getParametersFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Parameter.getDefaultInstance()); } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public org.apache.mesos.v1.Protos.Parameter.Builder addParametersBuilder( int index) { return getParametersFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Parameter.getDefaultInstance()); } /** *
         * Allowing arbitrary parameters to be passed to docker CLI.
         * Note that anything passed to this field is not guaranteed
         * to be supported moving forward, as we might move away from
         * the docker CLI.
         * 
* * repeated .mesos.v1.Parameter parameters = 5; */ public java.util.List getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Parameter, org.apache.mesos.v1.Protos.Parameter.Builder, org.apache.mesos.v1.Protos.ParameterOrBuilder>( parameters_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } private boolean forcePullImage_ ; /** *
         * With this flag set to true, the docker containerizer will
         * pull the docker image from the registry even if the image
         * is already downloaded on the agent.
         * 
* * optional bool force_pull_image = 6; */ public boolean hasForcePullImage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
         * With this flag set to true, the docker containerizer will
         * pull the docker image from the registry even if the image
         * is already downloaded on the agent.
         * 
* * optional bool force_pull_image = 6; */ public boolean getForcePullImage() { return forcePullImage_; } /** *
         * With this flag set to true, the docker containerizer will
         * pull the docker image from the registry even if the image
         * is already downloaded on the agent.
         * 
* * optional bool force_pull_image = 6; */ public Builder setForcePullImage(boolean value) { bitField0_ |= 0x00000020; forcePullImage_ = value; onChanged(); return this; } /** *
         * With this flag set to true, the docker containerizer will
         * pull the docker image from the registry even if the image
         * is already downloaded on the agent.
         * 
* * optional bool force_pull_image = 6; */ public Builder clearForcePullImage() { bitField0_ = (bitField0_ & ~0x00000020); forcePullImage_ = false; onChanged(); return this; } private java.lang.Object volumeDriver_ = ""; /** *
         * The name of volume driver plugin.
         * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public boolean hasVolumeDriver() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
         * The name of volume driver plugin.
         * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public java.lang.String getVolumeDriver() { java.lang.Object ref = volumeDriver_; 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()) { volumeDriver_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * The name of volume driver plugin.
         * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getVolumeDriverBytes() { java.lang.Object ref = volumeDriver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); volumeDriver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The name of volume driver plugin.
         * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public Builder setVolumeDriver( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; volumeDriver_ = value; onChanged(); return this; } /** *
         * The name of volume driver plugin.
         * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public Builder clearVolumeDriver() { bitField0_ = (bitField0_ & ~0x00000040); volumeDriver_ = getDefaultInstance().getVolumeDriver(); onChanged(); return this; } /** *
         * The name of volume driver plugin.
         * 
* * optional string volume_driver = 7 [deprecated = true]; */ @java.lang.Deprecated public Builder setVolumeDriverBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; volumeDriver_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ContainerInfo.DockerInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.ContainerInfo.DockerInfo) private static final org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo(); } public static org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DockerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DockerInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MesosInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ContainerInfo.MesosInfo) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.Image image = 1; */ boolean hasImage(); /** * optional .mesos.v1.Image image = 1; */ org.apache.mesos.v1.Protos.Image getImage(); /** * optional .mesos.v1.Image image = 1; */ org.apache.mesos.v1.Protos.ImageOrBuilder getImageOrBuilder(); } /** * Protobuf type {@code mesos.v1.ContainerInfo.MesosInfo} */ public static final class MesosInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ContainerInfo.MesosInfo) MesosInfoOrBuilder { private static final long serialVersionUID = 0L; // Use MesosInfo.newBuilder() to construct. private MesosInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MesosInfo() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MesosInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Image.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = image_.toBuilder(); } image_ = input.readMessage(org.apache.mesos.v1.Protos.Image.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(image_); image_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_MesosInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_MesosInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.class, org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.Builder.class); } private int bitField0_; public static final int IMAGE_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Image image_; /** * optional .mesos.v1.Image image = 1; */ public boolean hasImage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Image image = 1; */ public org.apache.mesos.v1.Protos.Image getImage() { return image_ == null ? org.apache.mesos.v1.Protos.Image.getDefaultInstance() : image_; } /** * optional .mesos.v1.Image image = 1; */ public org.apache.mesos.v1.Protos.ImageOrBuilder getImageOrBuilder() { return image_ == null ? org.apache.mesos.v1.Protos.Image.getDefaultInstance() : image_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasImage()) { if (!getImage().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getImage()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getImage()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo other = (org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo) obj; boolean result = true; result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage() .equals(other.getImage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo 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.Protos.ContainerInfo.MesosInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.ContainerInfo.MesosInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ContainerInfo.MesosInfo) org.apache.mesos.v1.Protos.ContainerInfo.MesosInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_MesosInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_MesosInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.class, org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getImageFieldBuilder(); } } public Builder clear() { super.clear(); if (imageBuilder_ == null) { image_ = null; } else { imageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_MesosInfo_descriptor; } public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo build() { org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo buildPartial() { org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo result = new org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (imageBuilder_ == null) { result.image_ = image_; } else { result.image_ = imageBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo) { return mergeFrom((org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo other) { if (other == org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.getDefaultInstance()) return this; if (other.hasImage()) { mergeImage(other.getImage()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasImage()) { if (!getImage().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.Protos.ContainerInfo.MesosInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Image image_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image, org.apache.mesos.v1.Protos.Image.Builder, org.apache.mesos.v1.Protos.ImageOrBuilder> imageBuilder_; /** * optional .mesos.v1.Image image = 1; */ public boolean hasImage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.Image image = 1; */ public org.apache.mesos.v1.Protos.Image getImage() { if (imageBuilder_ == null) { return image_ == null ? org.apache.mesos.v1.Protos.Image.getDefaultInstance() : image_; } else { return imageBuilder_.getMessage(); } } /** * optional .mesos.v1.Image image = 1; */ public Builder setImage(org.apache.mesos.v1.Protos.Image value) { if (imageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } image_ = value; onChanged(); } else { imageBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Image image = 1; */ public Builder setImage( org.apache.mesos.v1.Protos.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); } else { imageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Image image = 1; */ public Builder mergeImage(org.apache.mesos.v1.Protos.Image value) { if (imageBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && image_ != null && image_ != org.apache.mesos.v1.Protos.Image.getDefaultInstance()) { image_ = org.apache.mesos.v1.Protos.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } onChanged(); } else { imageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.Image image = 1; */ public Builder clearImage() { if (imageBuilder_ == null) { image_ = null; onChanged(); } else { imageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.Image image = 1; */ public org.apache.mesos.v1.Protos.Image.Builder getImageBuilder() { bitField0_ |= 0x00000001; onChanged(); return getImageFieldBuilder().getBuilder(); } /** * optional .mesos.v1.Image image = 1; */ public org.apache.mesos.v1.Protos.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { return image_ == null ? org.apache.mesos.v1.Protos.Image.getDefaultInstance() : image_; } } /** * optional .mesos.v1.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image, org.apache.mesos.v1.Protos.Image.Builder, org.apache.mesos.v1.Protos.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Image, org.apache.mesos.v1.Protos.Image.Builder, org.apache.mesos.v1.Protos.ImageOrBuilder>( getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ContainerInfo.MesosInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.ContainerInfo.MesosInfo) private static final org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo(); } public static org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MesosInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MesosInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required .mesos.v1.ContainerInfo.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerInfo.Type type = 1; */ public org.apache.mesos.v1.Protos.ContainerInfo.Type getType() { org.apache.mesos.v1.Protos.ContainerInfo.Type result = org.apache.mesos.v1.Protos.ContainerInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.ContainerInfo.Type.DOCKER : result; } public static final int VOLUMES_FIELD_NUMBER = 2; private java.util.List volumes_; /** * repeated .mesos.v1.Volume volumes = 2; */ public java.util.List getVolumesList() { return volumes_; } /** * repeated .mesos.v1.Volume volumes = 2; */ public java.util.List getVolumesOrBuilderList() { return volumes_; } /** * repeated .mesos.v1.Volume volumes = 2; */ public int getVolumesCount() { return volumes_.size(); } /** * repeated .mesos.v1.Volume volumes = 2; */ public org.apache.mesos.v1.Protos.Volume getVolumes(int index) { return volumes_.get(index); } /** * repeated .mesos.v1.Volume volumes = 2; */ public org.apache.mesos.v1.Protos.VolumeOrBuilder getVolumesOrBuilder( int index) { return volumes_.get(index); } public static final int HOSTNAME_FIELD_NUMBER = 4; private volatile java.lang.Object hostname_; /** * optional string hostname = 4; */ public boolean hasHostname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string hostname = 4; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** * optional string hostname = 4; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOCKER_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo docker_; /** *
     * At most one of the following *Info messages should be set to match
     * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
     * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public boolean hasDocker() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * At most one of the following *Info messages should be set to match
     * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
     * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo getDocker() { return docker_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.getDefaultInstance() : docker_; } /** *
     * At most one of the following *Info messages should be set to match
     * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
     * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfoOrBuilder getDockerOrBuilder() { return docker_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.getDefaultInstance() : docker_; } public static final int MESOS_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo mesos_; /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public boolean hasMesos() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo getMesos() { return mesos_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.getDefaultInstance() : mesos_; } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfoOrBuilder getMesosOrBuilder() { return mesos_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.getDefaultInstance() : mesos_; } public static final int NETWORK_INFOS_FIELD_NUMBER = 7; private java.util.List networkInfos_; /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public java.util.List getNetworkInfosList() { return networkInfos_; } /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public java.util.List getNetworkInfosOrBuilderList() { return networkInfos_; } /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public int getNetworkInfosCount() { return networkInfos_.size(); } /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo getNetworkInfos(int index) { return networkInfos_.get(index); } /** *
     * A list of network requests. A framework can request multiple IP addresses
     * for the container.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public org.apache.mesos.v1.Protos.NetworkInfoOrBuilder getNetworkInfosOrBuilder( int index) { return networkInfos_.get(index); } public static final int LINUX_INFO_FIELD_NUMBER = 8; private org.apache.mesos.v1.Protos.LinuxInfo linuxInfo_; /** *
     * Linux specific information for the container.
     * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public boolean hasLinuxInfo() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * Linux specific information for the container.
     * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public org.apache.mesos.v1.Protos.LinuxInfo getLinuxInfo() { return linuxInfo_ == null ? org.apache.mesos.v1.Protos.LinuxInfo.getDefaultInstance() : linuxInfo_; } /** *
     * Linux specific information for the container.
     * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public org.apache.mesos.v1.Protos.LinuxInfoOrBuilder getLinuxInfoOrBuilder() { return linuxInfo_ == null ? org.apache.mesos.v1.Protos.LinuxInfo.getDefaultInstance() : linuxInfo_; } public static final int RLIMIT_INFO_FIELD_NUMBER = 9; private org.apache.mesos.v1.Protos.RLimitInfo rlimitInfo_; /** *
     * (POSIX only) rlimits of the container.
     * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public boolean hasRlimitInfo() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * (POSIX only) rlimits of the container.
     * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public org.apache.mesos.v1.Protos.RLimitInfo getRlimitInfo() { return rlimitInfo_ == null ? org.apache.mesos.v1.Protos.RLimitInfo.getDefaultInstance() : rlimitInfo_; } /** *
     * (POSIX only) rlimits of the container.
     * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public org.apache.mesos.v1.Protos.RLimitInfoOrBuilder getRlimitInfoOrBuilder() { return rlimitInfo_ == null ? org.apache.mesos.v1.Protos.RLimitInfo.getDefaultInstance() : rlimitInfo_; } public static final int TTY_INFO_FIELD_NUMBER = 10; private org.apache.mesos.v1.Protos.TTYInfo ttyInfo_; /** *
     * If specified a tty will be attached to the container entrypoint.
     * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public boolean hasTtyInfo() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * If specified a tty will be attached to the container entrypoint.
     * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public org.apache.mesos.v1.Protos.TTYInfo getTtyInfo() { return ttyInfo_ == null ? org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance() : ttyInfo_; } /** *
     * If specified a tty will be attached to the container entrypoint.
     * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public org.apache.mesos.v1.Protos.TTYInfoOrBuilder getTtyInfoOrBuilder() { return ttyInfo_ == null ? org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance() : ttyInfo_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getVolumesCount(); i++) { if (!getVolumes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDocker()) { if (!getDocker().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasMesos()) { if (!getMesos().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getNetworkInfosCount(); i++) { if (!getNetworkInfos(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasTtyInfo()) { if (!getTtyInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(2, volumes_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getDocker()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hostname_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, getMesos()); } for (int i = 0; i < networkInfos_.size(); i++) { output.writeMessage(7, networkInfos_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(8, getLinuxInfo()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(9, getRlimitInfo()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(10, getTtyInfo()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } for (int i = 0; i < volumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, volumes_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDocker()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hostname_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMesos()); } for (int i = 0; i < networkInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, networkInfos_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getLinuxInfo()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRlimitInfo()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getTtyInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ContainerInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ContainerInfo other = (org.apache.mesos.v1.Protos.ContainerInfo) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && type_ == other.type_; } result = result && getVolumesList() .equals(other.getVolumesList()); result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname() .equals(other.getHostname()); } result = result && (hasDocker() == other.hasDocker()); if (hasDocker()) { result = result && getDocker() .equals(other.getDocker()); } result = result && (hasMesos() == other.hasMesos()); if (hasMesos()) { result = result && getMesos() .equals(other.getMesos()); } result = result && getNetworkInfosList() .equals(other.getNetworkInfosList()); result = result && (hasLinuxInfo() == other.hasLinuxInfo()); if (hasLinuxInfo()) { result = result && getLinuxInfo() .equals(other.getLinuxInfo()); } result = result && (hasRlimitInfo() == other.hasRlimitInfo()); if (hasRlimitInfo()) { result = result && getRlimitInfo() .equals(other.getRlimitInfo()); } result = result && (hasTtyInfo() == other.hasTtyInfo()); if (hasTtyInfo()) { result = result && getTtyInfo() .equals(other.getTtyInfo()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (getVolumesCount() > 0) { hash = (37 * hash) + VOLUMES_FIELD_NUMBER; hash = (53 * hash) + getVolumesList().hashCode(); } if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasDocker()) { hash = (37 * hash) + DOCKER_FIELD_NUMBER; hash = (53 * hash) + getDocker().hashCode(); } if (hasMesos()) { hash = (37 * hash) + MESOS_FIELD_NUMBER; hash = (53 * hash) + getMesos().hashCode(); } if (getNetworkInfosCount() > 0) { hash = (37 * hash) + NETWORK_INFOS_FIELD_NUMBER; hash = (53 * hash) + getNetworkInfosList().hashCode(); } if (hasLinuxInfo()) { hash = (37 * hash) + LINUX_INFO_FIELD_NUMBER; hash = (53 * hash) + getLinuxInfo().hashCode(); } if (hasRlimitInfo()) { hash = (37 * hash) + RLIMIT_INFO_FIELD_NUMBER; hash = (53 * hash) + getRlimitInfo().hashCode(); } if (hasTtyInfo()) { hash = (37 * hash) + TTY_INFO_FIELD_NUMBER; hash = (53 * hash) + getTtyInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ContainerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo 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.Protos.ContainerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ContainerInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Describes a container configuration and allows extensible
     * configurations for different container implementations.
     * NOTE: `ContainerInfo` may be specified, e.g., by a task, even if no
     * container image is provided. In this case neither `MesosInfo` nor
     * `DockerInfo` is set, the required `type` must be `MESOS`. This is to
     * address a case when a task without an image, e.g., a shell script
     * with URIs, wants to use features originally designed for containers,
     * for example custom network isolation via `NetworkInfo`.
     * 
* * Protobuf type {@code mesos.v1.ContainerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ContainerInfo) org.apache.mesos.v1.Protos.ContainerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerInfo.class, org.apache.mesos.v1.Protos.ContainerInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ContainerInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVolumesFieldBuilder(); getDockerFieldBuilder(); getMesosFieldBuilder(); getNetworkInfosFieldBuilder(); getLinuxInfoFieldBuilder(); getRlimitInfoFieldBuilder(); getTtyInfoFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 1; bitField0_ = (bitField0_ & ~0x00000001); if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { volumesBuilder_.clear(); } hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (dockerBuilder_ == null) { docker_ = null; } else { dockerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (mesosBuilder_ == null) { mesos_ = null; } else { mesosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (networkInfosBuilder_ == null) { networkInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { networkInfosBuilder_.clear(); } if (linuxInfoBuilder_ == null) { linuxInfo_ = null; } else { linuxInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (rlimitInfoBuilder_ == null) { rlimitInfo_ = null; } else { rlimitInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (ttyInfoBuilder_ == null) { ttyInfo_ = null; } else { ttyInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerInfo_descriptor; } public org.apache.mesos.v1.Protos.ContainerInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ContainerInfo build() { org.apache.mesos.v1.Protos.ContainerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ContainerInfo buildPartial() { org.apache.mesos.v1.Protos.ContainerInfo result = new org.apache.mesos.v1.Protos.ContainerInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); bitField0_ = (bitField0_ & ~0x00000002); } result.volumes_ = volumes_; } else { result.volumes_ = volumesBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (dockerBuilder_ == null) { result.docker_ = docker_; } else { result.docker_ = dockerBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (mesosBuilder_ == null) { result.mesos_ = mesos_; } else { result.mesos_ = mesosBuilder_.build(); } if (networkInfosBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { networkInfos_ = java.util.Collections.unmodifiableList(networkInfos_); bitField0_ = (bitField0_ & ~0x00000020); } result.networkInfos_ = networkInfos_; } else { result.networkInfos_ = networkInfosBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } if (linuxInfoBuilder_ == null) { result.linuxInfo_ = linuxInfo_; } else { result.linuxInfo_ = linuxInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000020; } if (rlimitInfoBuilder_ == null) { result.rlimitInfo_ = rlimitInfo_; } else { result.rlimitInfo_ = rlimitInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } if (ttyInfoBuilder_ == null) { result.ttyInfo_ = ttyInfo_; } else { result.ttyInfo_ = ttyInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ContainerInfo) { return mergeFrom((org.apache.mesos.v1.Protos.ContainerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ContainerInfo other) { if (other == org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVolumesIsMutable(); volumes_.addAll(other.volumes_); } onChanged(); } } else { if (!other.volumes_.isEmpty()) { if (volumesBuilder_.isEmpty()) { volumesBuilder_.dispose(); volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000002); volumesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumesFieldBuilder() : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } } } if (other.hasHostname()) { bitField0_ |= 0x00000004; hostname_ = other.hostname_; onChanged(); } if (other.hasDocker()) { mergeDocker(other.getDocker()); } if (other.hasMesos()) { mergeMesos(other.getMesos()); } if (networkInfosBuilder_ == null) { if (!other.networkInfos_.isEmpty()) { if (networkInfos_.isEmpty()) { networkInfos_ = other.networkInfos_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureNetworkInfosIsMutable(); networkInfos_.addAll(other.networkInfos_); } onChanged(); } } else { if (!other.networkInfos_.isEmpty()) { if (networkInfosBuilder_.isEmpty()) { networkInfosBuilder_.dispose(); networkInfosBuilder_ = null; networkInfos_ = other.networkInfos_; bitField0_ = (bitField0_ & ~0x00000020); networkInfosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNetworkInfosFieldBuilder() : null; } else { networkInfosBuilder_.addAllMessages(other.networkInfos_); } } } if (other.hasLinuxInfo()) { mergeLinuxInfo(other.getLinuxInfo()); } if (other.hasRlimitInfo()) { mergeRlimitInfo(other.getRlimitInfo()); } if (other.hasTtyInfo()) { mergeTtyInfo(other.getTtyInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } for (int i = 0; i < getVolumesCount(); i++) { if (!getVolumes(i).isInitialized()) { return false; } } if (hasDocker()) { if (!getDocker().isInitialized()) { return false; } } if (hasMesos()) { if (!getMesos().isInitialized()) { return false; } } for (int i = 0; i < getNetworkInfosCount(); i++) { if (!getNetworkInfos(i).isInitialized()) { return false; } } if (hasTtyInfo()) { if (!getTtyInfo().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.Protos.ContainerInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ContainerInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 1; /** * required .mesos.v1.ContainerInfo.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerInfo.Type type = 1; */ public org.apache.mesos.v1.Protos.ContainerInfo.Type getType() { org.apache.mesos.v1.Protos.ContainerInfo.Type result = org.apache.mesos.v1.Protos.ContainerInfo.Type.valueOf(type_); return result == null ? org.apache.mesos.v1.Protos.ContainerInfo.Type.DOCKER : result; } /** * required .mesos.v1.ContainerInfo.Type type = 1; */ public Builder setType(org.apache.mesos.v1.Protos.ContainerInfo.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * required .mesos.v1.ContainerInfo.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; onChanged(); return this; } private java.util.List volumes_ = java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Volume, org.apache.mesos.v1.Protos.Volume.Builder, org.apache.mesos.v1.Protos.VolumeOrBuilder> volumesBuilder_; /** * repeated .mesos.v1.Volume volumes = 2; */ public java.util.List getVolumesList() { if (volumesBuilder_ == null) { return java.util.Collections.unmodifiableList(volumes_); } else { return volumesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Volume volumes = 2; */ public int getVolumesCount() { if (volumesBuilder_ == null) { return volumes_.size(); } else { return volumesBuilder_.getCount(); } } /** * repeated .mesos.v1.Volume volumes = 2; */ public org.apache.mesos.v1.Protos.Volume getVolumes(int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder setVolumes( int index, org.apache.mesos.v1.Protos.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.set(index, value); onChanged(); } else { volumesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder setVolumes( int index, org.apache.mesos.v1.Protos.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder addVolumes(org.apache.mesos.v1.Protos.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(value); onChanged(); } else { volumesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder addVolumes( int index, org.apache.mesos.v1.Protos.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(index, value); onChanged(); } else { volumesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder addVolumes( org.apache.mesos.v1.Protos.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder addVolumes( int index, org.apache.mesos.v1.Protos.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder clearVolumes() { if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { volumesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public Builder removeVolumes(int index) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.remove(index); onChanged(); } else { volumesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Volume volumes = 2; */ public org.apache.mesos.v1.Protos.Volume.Builder getVolumesBuilder( int index) { return getVolumesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Volume volumes = 2; */ public org.apache.mesos.v1.Protos.VolumeOrBuilder getVolumesOrBuilder( int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Volume volumes = 2; */ public java.util.List getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumes_); } } /** * repeated .mesos.v1.Volume volumes = 2; */ public org.apache.mesos.v1.Protos.Volume.Builder addVolumesBuilder() { return getVolumesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Volume.getDefaultInstance()); } /** * repeated .mesos.v1.Volume volumes = 2; */ public org.apache.mesos.v1.Protos.Volume.Builder addVolumesBuilder( int index) { return getVolumesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Volume.getDefaultInstance()); } /** * repeated .mesos.v1.Volume volumes = 2; */ public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Volume, org.apache.mesos.v1.Protos.Volume.Builder, org.apache.mesos.v1.Protos.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Volume, org.apache.mesos.v1.Protos.Volume.Builder, org.apache.mesos.v1.Protos.VolumeOrBuilder>( volumes_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; } private java.lang.Object hostname_ = ""; /** * optional string hostname = 4; */ public boolean hasHostname() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string hostname = 4; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string hostname = 4; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string hostname = 4; */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; hostname_ = value; onChanged(); return this; } /** * optional string hostname = 4; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000004); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** * optional string hostname = 4; */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; hostname_ = value; onChanged(); return this; } private org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo docker_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfoOrBuilder> dockerBuilder_; /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public boolean hasDocker() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo getDocker() { if (dockerBuilder_ == null) { return docker_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.getDefaultInstance() : docker_; } else { return dockerBuilder_.getMessage(); } } /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public Builder setDocker(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo value) { if (dockerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } docker_ = value; onChanged(); } else { dockerBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public Builder setDocker( org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Builder builderForValue) { if (dockerBuilder_ == null) { docker_ = builderForValue.build(); onChanged(); } else { dockerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public Builder mergeDocker(org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo value) { if (dockerBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && docker_ != null && docker_ != org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.getDefaultInstance()) { docker_ = org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.newBuilder(docker_).mergeFrom(value).buildPartial(); } else { docker_ = value; } onChanged(); } else { dockerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public Builder clearDocker() { if (dockerBuilder_ == null) { docker_ = null; onChanged(); } else { dockerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Builder getDockerBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDockerFieldBuilder().getBuilder(); } /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.DockerInfoOrBuilder getDockerOrBuilder() { if (dockerBuilder_ != null) { return dockerBuilder_.getMessageOrBuilder(); } else { return docker_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.getDefaultInstance() : docker_; } } /** *
       * At most one of the following *Info messages should be set to match
       * the type, i.e. the "protobuf union" in ContainerInfo should be valid.
       * 
* * optional .mesos.v1.ContainerInfo.DockerInfo docker = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfoOrBuilder> getDockerFieldBuilder() { if (dockerBuilder_ == null) { dockerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfo.DockerInfoOrBuilder>( getDocker(), getParentForChildren(), isClean()); docker_ = null; } return dockerBuilder_; } private org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo mesos_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo, org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfo.MesosInfoOrBuilder> mesosBuilder_; /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public boolean hasMesos() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo getMesos() { if (mesosBuilder_ == null) { return mesos_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.getDefaultInstance() : mesos_; } else { return mesosBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public Builder setMesos(org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo value) { if (mesosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mesos_ = value; onChanged(); } else { mesosBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public Builder setMesos( org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.Builder builderForValue) { if (mesosBuilder_ == null) { mesos_ = builderForValue.build(); onChanged(); } else { mesosBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public Builder mergeMesos(org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo value) { if (mesosBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && mesos_ != null && mesos_ != org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.getDefaultInstance()) { mesos_ = org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.newBuilder(mesos_).mergeFrom(value).buildPartial(); } else { mesos_ = value; } onChanged(); } else { mesosBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public Builder clearMesos() { if (mesosBuilder_ == null) { mesos_ = null; onChanged(); } else { mesosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.Builder getMesosBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMesosFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ public org.apache.mesos.v1.Protos.ContainerInfo.MesosInfoOrBuilder getMesosOrBuilder() { if (mesosBuilder_ != null) { return mesosBuilder_.getMessageOrBuilder(); } else { return mesos_ == null ? org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.getDefaultInstance() : mesos_; } } /** * optional .mesos.v1.ContainerInfo.MesosInfo mesos = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo, org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfo.MesosInfoOrBuilder> getMesosFieldBuilder() { if (mesosBuilder_ == null) { mesosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo, org.apache.mesos.v1.Protos.ContainerInfo.MesosInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfo.MesosInfoOrBuilder>( getMesos(), getParentForChildren(), isClean()); mesos_ = null; } return mesosBuilder_; } private java.util.List networkInfos_ = java.util.Collections.emptyList(); private void ensureNetworkInfosIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { networkInfos_ = new java.util.ArrayList(networkInfos_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo, org.apache.mesos.v1.Protos.NetworkInfo.Builder, org.apache.mesos.v1.Protos.NetworkInfoOrBuilder> networkInfosBuilder_; /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public java.util.List getNetworkInfosList() { if (networkInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(networkInfos_); } else { return networkInfosBuilder_.getMessageList(); } } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public int getNetworkInfosCount() { if (networkInfosBuilder_ == null) { return networkInfos_.size(); } else { return networkInfosBuilder_.getCount(); } } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo getNetworkInfos(int index) { if (networkInfosBuilder_ == null) { return networkInfos_.get(index); } else { return networkInfosBuilder_.getMessage(index); } } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder setNetworkInfos( int index, org.apache.mesos.v1.Protos.NetworkInfo value) { if (networkInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInfosIsMutable(); networkInfos_.set(index, value); onChanged(); } else { networkInfosBuilder_.setMessage(index, value); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder setNetworkInfos( int index, org.apache.mesos.v1.Protos.NetworkInfo.Builder builderForValue) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); networkInfos_.set(index, builderForValue.build()); onChanged(); } else { networkInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder addNetworkInfos(org.apache.mesos.v1.Protos.NetworkInfo value) { if (networkInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInfosIsMutable(); networkInfos_.add(value); onChanged(); } else { networkInfosBuilder_.addMessage(value); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder addNetworkInfos( int index, org.apache.mesos.v1.Protos.NetworkInfo value) { if (networkInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInfosIsMutable(); networkInfos_.add(index, value); onChanged(); } else { networkInfosBuilder_.addMessage(index, value); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder addNetworkInfos( org.apache.mesos.v1.Protos.NetworkInfo.Builder builderForValue) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); networkInfos_.add(builderForValue.build()); onChanged(); } else { networkInfosBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder addNetworkInfos( int index, org.apache.mesos.v1.Protos.NetworkInfo.Builder builderForValue) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); networkInfos_.add(index, builderForValue.build()); onChanged(); } else { networkInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder addAllNetworkInfos( java.lang.Iterable values) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, networkInfos_); onChanged(); } else { networkInfosBuilder_.addAllMessages(values); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder clearNetworkInfos() { if (networkInfosBuilder_ == null) { networkInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { networkInfosBuilder_.clear(); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public Builder removeNetworkInfos(int index) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); networkInfos_.remove(index); onChanged(); } else { networkInfosBuilder_.remove(index); } return this; } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.Builder getNetworkInfosBuilder( int index) { return getNetworkInfosFieldBuilder().getBuilder(index); } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public org.apache.mesos.v1.Protos.NetworkInfoOrBuilder getNetworkInfosOrBuilder( int index) { if (networkInfosBuilder_ == null) { return networkInfos_.get(index); } else { return networkInfosBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public java.util.List getNetworkInfosOrBuilderList() { if (networkInfosBuilder_ != null) { return networkInfosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(networkInfos_); } } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.Builder addNetworkInfosBuilder() { return getNetworkInfosFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.NetworkInfo.getDefaultInstance()); } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public org.apache.mesos.v1.Protos.NetworkInfo.Builder addNetworkInfosBuilder( int index) { return getNetworkInfosFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.NetworkInfo.getDefaultInstance()); } /** *
       * A list of network requests. A framework can request multiple IP addresses
       * for the container.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 7; */ public java.util.List getNetworkInfosBuilderList() { return getNetworkInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo, org.apache.mesos.v1.Protos.NetworkInfo.Builder, org.apache.mesos.v1.Protos.NetworkInfoOrBuilder> getNetworkInfosFieldBuilder() { if (networkInfosBuilder_ == null) { networkInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo, org.apache.mesos.v1.Protos.NetworkInfo.Builder, org.apache.mesos.v1.Protos.NetworkInfoOrBuilder>( networkInfos_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); networkInfos_ = null; } return networkInfosBuilder_; } private org.apache.mesos.v1.Protos.LinuxInfo linuxInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.LinuxInfo, org.apache.mesos.v1.Protos.LinuxInfo.Builder, org.apache.mesos.v1.Protos.LinuxInfoOrBuilder> linuxInfoBuilder_; /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public boolean hasLinuxInfo() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public org.apache.mesos.v1.Protos.LinuxInfo getLinuxInfo() { if (linuxInfoBuilder_ == null) { return linuxInfo_ == null ? org.apache.mesos.v1.Protos.LinuxInfo.getDefaultInstance() : linuxInfo_; } else { return linuxInfoBuilder_.getMessage(); } } /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public Builder setLinuxInfo(org.apache.mesos.v1.Protos.LinuxInfo value) { if (linuxInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } linuxInfo_ = value; onChanged(); } else { linuxInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public Builder setLinuxInfo( org.apache.mesos.v1.Protos.LinuxInfo.Builder builderForValue) { if (linuxInfoBuilder_ == null) { linuxInfo_ = builderForValue.build(); onChanged(); } else { linuxInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public Builder mergeLinuxInfo(org.apache.mesos.v1.Protos.LinuxInfo value) { if (linuxInfoBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && linuxInfo_ != null && linuxInfo_ != org.apache.mesos.v1.Protos.LinuxInfo.getDefaultInstance()) { linuxInfo_ = org.apache.mesos.v1.Protos.LinuxInfo.newBuilder(linuxInfo_).mergeFrom(value).buildPartial(); } else { linuxInfo_ = value; } onChanged(); } else { linuxInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public Builder clearLinuxInfo() { if (linuxInfoBuilder_ == null) { linuxInfo_ = null; onChanged(); } else { linuxInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public org.apache.mesos.v1.Protos.LinuxInfo.Builder getLinuxInfoBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLinuxInfoFieldBuilder().getBuilder(); } /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ public org.apache.mesos.v1.Protos.LinuxInfoOrBuilder getLinuxInfoOrBuilder() { if (linuxInfoBuilder_ != null) { return linuxInfoBuilder_.getMessageOrBuilder(); } else { return linuxInfo_ == null ? org.apache.mesos.v1.Protos.LinuxInfo.getDefaultInstance() : linuxInfo_; } } /** *
       * Linux specific information for the container.
       * 
* * optional .mesos.v1.LinuxInfo linux_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.LinuxInfo, org.apache.mesos.v1.Protos.LinuxInfo.Builder, org.apache.mesos.v1.Protos.LinuxInfoOrBuilder> getLinuxInfoFieldBuilder() { if (linuxInfoBuilder_ == null) { linuxInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.LinuxInfo, org.apache.mesos.v1.Protos.LinuxInfo.Builder, org.apache.mesos.v1.Protos.LinuxInfoOrBuilder>( getLinuxInfo(), getParentForChildren(), isClean()); linuxInfo_ = null; } return linuxInfoBuilder_; } private org.apache.mesos.v1.Protos.RLimitInfo rlimitInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.RLimitInfo, org.apache.mesos.v1.Protos.RLimitInfo.Builder, org.apache.mesos.v1.Protos.RLimitInfoOrBuilder> rlimitInfoBuilder_; /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public boolean hasRlimitInfo() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public org.apache.mesos.v1.Protos.RLimitInfo getRlimitInfo() { if (rlimitInfoBuilder_ == null) { return rlimitInfo_ == null ? org.apache.mesos.v1.Protos.RLimitInfo.getDefaultInstance() : rlimitInfo_; } else { return rlimitInfoBuilder_.getMessage(); } } /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public Builder setRlimitInfo(org.apache.mesos.v1.Protos.RLimitInfo value) { if (rlimitInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rlimitInfo_ = value; onChanged(); } else { rlimitInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public Builder setRlimitInfo( org.apache.mesos.v1.Protos.RLimitInfo.Builder builderForValue) { if (rlimitInfoBuilder_ == null) { rlimitInfo_ = builderForValue.build(); onChanged(); } else { rlimitInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public Builder mergeRlimitInfo(org.apache.mesos.v1.Protos.RLimitInfo value) { if (rlimitInfoBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && rlimitInfo_ != null && rlimitInfo_ != org.apache.mesos.v1.Protos.RLimitInfo.getDefaultInstance()) { rlimitInfo_ = org.apache.mesos.v1.Protos.RLimitInfo.newBuilder(rlimitInfo_).mergeFrom(value).buildPartial(); } else { rlimitInfo_ = value; } onChanged(); } else { rlimitInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public Builder clearRlimitInfo() { if (rlimitInfoBuilder_ == null) { rlimitInfo_ = null; onChanged(); } else { rlimitInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public org.apache.mesos.v1.Protos.RLimitInfo.Builder getRlimitInfoBuilder() { bitField0_ |= 0x00000080; onChanged(); return getRlimitInfoFieldBuilder().getBuilder(); } /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ public org.apache.mesos.v1.Protos.RLimitInfoOrBuilder getRlimitInfoOrBuilder() { if (rlimitInfoBuilder_ != null) { return rlimitInfoBuilder_.getMessageOrBuilder(); } else { return rlimitInfo_ == null ? org.apache.mesos.v1.Protos.RLimitInfo.getDefaultInstance() : rlimitInfo_; } } /** *
       * (POSIX only) rlimits of the container.
       * 
* * optional .mesos.v1.RLimitInfo rlimit_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.RLimitInfo, org.apache.mesos.v1.Protos.RLimitInfo.Builder, org.apache.mesos.v1.Protos.RLimitInfoOrBuilder> getRlimitInfoFieldBuilder() { if (rlimitInfoBuilder_ == null) { rlimitInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.RLimitInfo, org.apache.mesos.v1.Protos.RLimitInfo.Builder, org.apache.mesos.v1.Protos.RLimitInfoOrBuilder>( getRlimitInfo(), getParentForChildren(), isClean()); rlimitInfo_ = null; } return rlimitInfoBuilder_; } private org.apache.mesos.v1.Protos.TTYInfo ttyInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.TTYInfo, org.apache.mesos.v1.Protos.TTYInfo.Builder, org.apache.mesos.v1.Protos.TTYInfoOrBuilder> ttyInfoBuilder_; /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public boolean hasTtyInfo() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public org.apache.mesos.v1.Protos.TTYInfo getTtyInfo() { if (ttyInfoBuilder_ == null) { return ttyInfo_ == null ? org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance() : ttyInfo_; } else { return ttyInfoBuilder_.getMessage(); } } /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ 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_ |= 0x00000100; return this; } /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public Builder setTtyInfo( org.apache.mesos.v1.Protos.TTYInfo.Builder builderForValue) { if (ttyInfoBuilder_ == null) { ttyInfo_ = builderForValue.build(); onChanged(); } else { ttyInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public Builder mergeTtyInfo(org.apache.mesos.v1.Protos.TTYInfo value) { if (ttyInfoBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && ttyInfo_ != null && 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_ |= 0x00000100; return this; } /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public Builder clearTtyInfo() { if (ttyInfoBuilder_ == null) { ttyInfo_ = null; onChanged(); } else { ttyInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public org.apache.mesos.v1.Protos.TTYInfo.Builder getTtyInfoBuilder() { bitField0_ |= 0x00000100; onChanged(); return getTtyInfoFieldBuilder().getBuilder(); } /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ public org.apache.mesos.v1.Protos.TTYInfoOrBuilder getTtyInfoOrBuilder() { if (ttyInfoBuilder_ != null) { return ttyInfoBuilder_.getMessageOrBuilder(); } else { return ttyInfo_ == null ? org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance() : ttyInfo_; } } /** *
       * If specified a tty will be attached to the container entrypoint.
       * 
* * optional .mesos.v1.TTYInfo tty_info = 10; */ private com.google.protobuf.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ContainerInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.ContainerInfo) private static final org.apache.mesos.v1.Protos.ContainerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ContainerInfo(); } public static org.apache.mesos.v1.Protos.ContainerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ContainerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ContainerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.ContainerStatus) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.ContainerID container_id = 4; */ boolean hasContainerId(); /** * optional .mesos.v1.ContainerID container_id = 4; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * optional .mesos.v1.ContainerID container_id = 4; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ java.util.List getNetworkInfosList(); /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ org.apache.mesos.v1.Protos.NetworkInfo getNetworkInfos(int index); /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ int getNetworkInfosCount(); /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ java.util.List getNetworkInfosOrBuilderList(); /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ org.apache.mesos.v1.Protos.NetworkInfoOrBuilder getNetworkInfosOrBuilder( int index); /** *
     * Information about Linux control group (cgroup).
     * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ boolean hasCgroupInfo(); /** *
     * Information about Linux control group (cgroup).
     * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ org.apache.mesos.v1.Protos.CgroupInfo getCgroupInfo(); /** *
     * Information about Linux control group (cgroup).
     * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ org.apache.mesos.v1.Protos.CgroupInfoOrBuilder getCgroupInfoOrBuilder(); /** *
     * Information about Executor PID.
     * 
* * optional uint32 executor_pid = 3; */ boolean hasExecutorPid(); /** *
     * Information about Executor PID.
     * 
* * optional uint32 executor_pid = 3; */ int getExecutorPid(); } /** *
   **
   * Container related information that is resolved during container
   * setup. The information is sent back to the framework as part of the
   * TaskStatus message.
   * 
* * Protobuf type {@code mesos.v1.ContainerStatus} */ public static final class ContainerStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.ContainerStatus) ContainerStatusOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerStatus.newBuilder() to construct. private ContainerStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerStatus() { networkInfos_ = java.util.Collections.emptyList(); executorPid_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { networkInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } networkInfos_.add( input.readMessage(org.apache.mesos.v1.Protos.NetworkInfo.PARSER, extensionRegistry)); break; } case 18: { org.apache.mesos.v1.Protos.CgroupInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = cgroupInfo_.toBuilder(); } cgroupInfo_ = input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cgroupInfo_); cgroupInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 24: { bitField0_ |= 0x00000004; executorPid_ = input.readUInt32(); break; } case 34: { 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).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { networkInfos_ = java.util.Collections.unmodifiableList(networkInfos_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerStatus.class, org.apache.mesos.v1.Protos.ContainerStatus.Builder.class); } private int bitField0_; public static final int CONTAINER_ID_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * optional .mesos.v1.ContainerID container_id = 4; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_; } /** * optional .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_; } public static final int NETWORK_INFOS_FIELD_NUMBER = 1; private java.util.List networkInfos_; /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public java.util.List getNetworkInfosList() { return networkInfos_; } /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public java.util.List getNetworkInfosOrBuilderList() { return networkInfos_; } /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public int getNetworkInfosCount() { return networkInfos_.size(); } /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public org.apache.mesos.v1.Protos.NetworkInfo getNetworkInfos(int index) { return networkInfos_.get(index); } /** *
     * This field can be reliably used to identify the container IP address.
     * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public org.apache.mesos.v1.Protos.NetworkInfoOrBuilder getNetworkInfosOrBuilder( int index) { return networkInfos_.get(index); } public static final int CGROUP_INFO_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.CgroupInfo cgroupInfo_; /** *
     * Information about Linux control group (cgroup).
     * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public boolean hasCgroupInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * Information about Linux control group (cgroup).
     * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo getCgroupInfo() { return cgroupInfo_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.getDefaultInstance() : cgroupInfo_; } /** *
     * Information about Linux control group (cgroup).
     * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public org.apache.mesos.v1.Protos.CgroupInfoOrBuilder getCgroupInfoOrBuilder() { return cgroupInfo_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.getDefaultInstance() : cgroupInfo_; } public static final int EXECUTOR_PID_FIELD_NUMBER = 3; private int executorPid_; /** *
     * Information about Executor PID.
     * 
* * optional uint32 executor_pid = 3; */ public boolean hasExecutorPid() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Information about Executor PID.
     * 
* * optional uint32 executor_pid = 3; */ public int getExecutorPid() { return executorPid_; } 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; } } for (int i = 0; i < getNetworkInfosCount(); i++) { if (!getNetworkInfos(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < networkInfos_.size(); i++) { output.writeMessage(1, networkInfos_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getCgroupInfo()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, executorPid_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(4, getContainerId()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < networkInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, networkInfos_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCgroupInfo()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, executorPid_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContainerId()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.ContainerStatus)) { return super.equals(obj); } org.apache.mesos.v1.Protos.ContainerStatus other = (org.apache.mesos.v1.Protos.ContainerStatus) obj; boolean result = true; result = result && (hasContainerId() == other.hasContainerId()); if (hasContainerId()) { result = result && getContainerId() .equals(other.getContainerId()); } result = result && getNetworkInfosList() .equals(other.getNetworkInfosList()); result = result && (hasCgroupInfo() == other.hasCgroupInfo()); if (hasCgroupInfo()) { result = result && getCgroupInfo() .equals(other.getCgroupInfo()); } result = result && (hasExecutorPid() == other.hasExecutorPid()); if (hasExecutorPid()) { result = result && (getExecutorPid() == other.getExecutorPid()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode(); } if (getNetworkInfosCount() > 0) { hash = (37 * hash) + NETWORK_INFOS_FIELD_NUMBER; hash = (53 * hash) + getNetworkInfosList().hashCode(); } if (hasCgroupInfo()) { hash = (37 * hash) + CGROUP_INFO_FIELD_NUMBER; hash = (53 * hash) + getCgroupInfo().hashCode(); } if (hasExecutorPid()) { hash = (37 * hash) + EXECUTOR_PID_FIELD_NUMBER; hash = (53 * hash) + getExecutorPid(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.ContainerStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerStatus 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.Protos.ContainerStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.ContainerStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.ContainerStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.ContainerStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.ContainerStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Container related information that is resolved during container
     * setup. The information is sent back to the framework as part of the
     * TaskStatus message.
     * 
* * Protobuf type {@code mesos.v1.ContainerStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.ContainerStatus) org.apache.mesos.v1.Protos.ContainerStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.ContainerStatus.class, org.apache.mesos.v1.Protos.ContainerStatus.Builder.class); } // Construct using org.apache.mesos.v1.Protos.ContainerStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getContainerIdFieldBuilder(); getNetworkInfosFieldBuilder(); getCgroupInfoFieldBuilder(); } } public Builder clear() { super.clear(); if (containerIdBuilder_ == null) { containerId_ = null; } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (networkInfosBuilder_ == null) { networkInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { networkInfosBuilder_.clear(); } if (cgroupInfoBuilder_ == null) { cgroupInfo_ = null; } else { cgroupInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); executorPid_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_ContainerStatus_descriptor; } public org.apache.mesos.v1.Protos.ContainerStatus getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance(); } public org.apache.mesos.v1.Protos.ContainerStatus build() { org.apache.mesos.v1.Protos.ContainerStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.ContainerStatus buildPartial() { org.apache.mesos.v1.Protos.ContainerStatus result = new org.apache.mesos.v1.Protos.ContainerStatus(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 (networkInfosBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { networkInfos_ = java.util.Collections.unmodifiableList(networkInfos_); bitField0_ = (bitField0_ & ~0x00000002); } result.networkInfos_ = networkInfos_; } else { result.networkInfos_ = networkInfosBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (cgroupInfoBuilder_ == null) { result.cgroupInfo_ = cgroupInfo_; } else { result.cgroupInfo_ = cgroupInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.executorPid_ = executorPid_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.ContainerStatus) { return mergeFrom((org.apache.mesos.v1.Protos.ContainerStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.ContainerStatus other) { if (other == org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance()) return this; if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } if (networkInfosBuilder_ == null) { if (!other.networkInfos_.isEmpty()) { if (networkInfos_.isEmpty()) { networkInfos_ = other.networkInfos_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNetworkInfosIsMutable(); networkInfos_.addAll(other.networkInfos_); } onChanged(); } } else { if (!other.networkInfos_.isEmpty()) { if (networkInfosBuilder_.isEmpty()) { networkInfosBuilder_.dispose(); networkInfosBuilder_ = null; networkInfos_ = other.networkInfos_; bitField0_ = (bitField0_ & ~0x00000002); networkInfosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNetworkInfosFieldBuilder() : null; } else { networkInfosBuilder_.addAllMessages(other.networkInfos_); } } } if (other.hasCgroupInfo()) { mergeCgroupInfo(other.getCgroupInfo()); } if (other.hasExecutorPid()) { setExecutorPid(other.getExecutorPid()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasContainerId()) { if (!getContainerId().isInitialized()) { return false; } } for (int i = 0; i < getNetworkInfosCount(); i++) { if (!getNetworkInfos(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.Protos.ContainerStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.ContainerStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.ContainerID containerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder> containerIdBuilder_; /** * optional .mesos.v1.ContainerID container_id = 4; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerID container_id = 4; */ public Builder setContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } containerId_ = value; onChanged(); } else { containerIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.ContainerID container_id = 4; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.ContainerID container_id = 4; */ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && containerId_ != null && containerId_ != org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance()) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.newBuilder(containerId_).mergeFrom(value).buildPartial(); } else { containerId_ = value; } onChanged(); } else { containerIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.ContainerID container_id = 4; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = null; onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_; } } /** * optional .mesos.v1.ContainerID container_id = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder> getContainerIdFieldBuilder() { if (containerIdBuilder_ == null) { containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder>( getContainerId(), getParentForChildren(), isClean()); containerId_ = null; } return containerIdBuilder_; } private java.util.List networkInfos_ = java.util.Collections.emptyList(); private void ensureNetworkInfosIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { networkInfos_ = new java.util.ArrayList(networkInfos_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo, org.apache.mesos.v1.Protos.NetworkInfo.Builder, org.apache.mesos.v1.Protos.NetworkInfoOrBuilder> networkInfosBuilder_; /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public java.util.List getNetworkInfosList() { if (networkInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(networkInfos_); } else { return networkInfosBuilder_.getMessageList(); } } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public int getNetworkInfosCount() { if (networkInfosBuilder_ == null) { return networkInfos_.size(); } else { return networkInfosBuilder_.getCount(); } } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public org.apache.mesos.v1.Protos.NetworkInfo getNetworkInfos(int index) { if (networkInfosBuilder_ == null) { return networkInfos_.get(index); } else { return networkInfosBuilder_.getMessage(index); } } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder setNetworkInfos( int index, org.apache.mesos.v1.Protos.NetworkInfo value) { if (networkInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInfosIsMutable(); networkInfos_.set(index, value); onChanged(); } else { networkInfosBuilder_.setMessage(index, value); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder setNetworkInfos( int index, org.apache.mesos.v1.Protos.NetworkInfo.Builder builderForValue) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); networkInfos_.set(index, builderForValue.build()); onChanged(); } else { networkInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder addNetworkInfos(org.apache.mesos.v1.Protos.NetworkInfo value) { if (networkInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInfosIsMutable(); networkInfos_.add(value); onChanged(); } else { networkInfosBuilder_.addMessage(value); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder addNetworkInfos( int index, org.apache.mesos.v1.Protos.NetworkInfo value) { if (networkInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInfosIsMutable(); networkInfos_.add(index, value); onChanged(); } else { networkInfosBuilder_.addMessage(index, value); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder addNetworkInfos( org.apache.mesos.v1.Protos.NetworkInfo.Builder builderForValue) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); networkInfos_.add(builderForValue.build()); onChanged(); } else { networkInfosBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder addNetworkInfos( int index, org.apache.mesos.v1.Protos.NetworkInfo.Builder builderForValue) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); networkInfos_.add(index, builderForValue.build()); onChanged(); } else { networkInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder addAllNetworkInfos( java.lang.Iterable values) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, networkInfos_); onChanged(); } else { networkInfosBuilder_.addAllMessages(values); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder clearNetworkInfos() { if (networkInfosBuilder_ == null) { networkInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { networkInfosBuilder_.clear(); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public Builder removeNetworkInfos(int index) { if (networkInfosBuilder_ == null) { ensureNetworkInfosIsMutable(); networkInfos_.remove(index); onChanged(); } else { networkInfosBuilder_.remove(index); } return this; } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public org.apache.mesos.v1.Protos.NetworkInfo.Builder getNetworkInfosBuilder( int index) { return getNetworkInfosFieldBuilder().getBuilder(index); } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public org.apache.mesos.v1.Protos.NetworkInfoOrBuilder getNetworkInfosOrBuilder( int index) { if (networkInfosBuilder_ == null) { return networkInfos_.get(index); } else { return networkInfosBuilder_.getMessageOrBuilder(index); } } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public java.util.List getNetworkInfosOrBuilderList() { if (networkInfosBuilder_ != null) { return networkInfosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(networkInfos_); } } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public org.apache.mesos.v1.Protos.NetworkInfo.Builder addNetworkInfosBuilder() { return getNetworkInfosFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.NetworkInfo.getDefaultInstance()); } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public org.apache.mesos.v1.Protos.NetworkInfo.Builder addNetworkInfosBuilder( int index) { return getNetworkInfosFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.NetworkInfo.getDefaultInstance()); } /** *
       * This field can be reliably used to identify the container IP address.
       * 
* * repeated .mesos.v1.NetworkInfo network_infos = 1; */ public java.util.List getNetworkInfosBuilderList() { return getNetworkInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo, org.apache.mesos.v1.Protos.NetworkInfo.Builder, org.apache.mesos.v1.Protos.NetworkInfoOrBuilder> getNetworkInfosFieldBuilder() { if (networkInfosBuilder_ == null) { networkInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.NetworkInfo, org.apache.mesos.v1.Protos.NetworkInfo.Builder, org.apache.mesos.v1.Protos.NetworkInfoOrBuilder>( networkInfos_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); networkInfos_ = null; } return networkInfosBuilder_; } private org.apache.mesos.v1.Protos.CgroupInfo cgroupInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo, org.apache.mesos.v1.Protos.CgroupInfo.Builder, org.apache.mesos.v1.Protos.CgroupInfoOrBuilder> cgroupInfoBuilder_; /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public boolean hasCgroupInfo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo getCgroupInfo() { if (cgroupInfoBuilder_ == null) { return cgroupInfo_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.getDefaultInstance() : cgroupInfo_; } else { return cgroupInfoBuilder_.getMessage(); } } /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public Builder setCgroupInfo(org.apache.mesos.v1.Protos.CgroupInfo value) { if (cgroupInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cgroupInfo_ = value; onChanged(); } else { cgroupInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public Builder setCgroupInfo( org.apache.mesos.v1.Protos.CgroupInfo.Builder builderForValue) { if (cgroupInfoBuilder_ == null) { cgroupInfo_ = builderForValue.build(); onChanged(); } else { cgroupInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public Builder mergeCgroupInfo(org.apache.mesos.v1.Protos.CgroupInfo value) { if (cgroupInfoBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && cgroupInfo_ != null && cgroupInfo_ != org.apache.mesos.v1.Protos.CgroupInfo.getDefaultInstance()) { cgroupInfo_ = org.apache.mesos.v1.Protos.CgroupInfo.newBuilder(cgroupInfo_).mergeFrom(value).buildPartial(); } else { cgroupInfo_ = value; } onChanged(); } else { cgroupInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public Builder clearCgroupInfo() { if (cgroupInfoBuilder_ == null) { cgroupInfo_ = null; onChanged(); } else { cgroupInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Builder getCgroupInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCgroupInfoFieldBuilder().getBuilder(); } /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ public org.apache.mesos.v1.Protos.CgroupInfoOrBuilder getCgroupInfoOrBuilder() { if (cgroupInfoBuilder_ != null) { return cgroupInfoBuilder_.getMessageOrBuilder(); } else { return cgroupInfo_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.getDefaultInstance() : cgroupInfo_; } } /** *
       * Information about Linux control group (cgroup).
       * 
* * optional .mesos.v1.CgroupInfo cgroup_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo, org.apache.mesos.v1.Protos.CgroupInfo.Builder, org.apache.mesos.v1.Protos.CgroupInfoOrBuilder> getCgroupInfoFieldBuilder() { if (cgroupInfoBuilder_ == null) { cgroupInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo, org.apache.mesos.v1.Protos.CgroupInfo.Builder, org.apache.mesos.v1.Protos.CgroupInfoOrBuilder>( getCgroupInfo(), getParentForChildren(), isClean()); cgroupInfo_ = null; } return cgroupInfoBuilder_; } private int executorPid_ ; /** *
       * Information about Executor PID.
       * 
* * optional uint32 executor_pid = 3; */ public boolean hasExecutorPid() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * Information about Executor PID.
       * 
* * optional uint32 executor_pid = 3; */ public int getExecutorPid() { return executorPid_; } /** *
       * Information about Executor PID.
       * 
* * optional uint32 executor_pid = 3; */ public Builder setExecutorPid(int value) { bitField0_ |= 0x00000008; executorPid_ = value; onChanged(); return this; } /** *
       * Information about Executor PID.
       * 
* * optional uint32 executor_pid = 3; */ public Builder clearExecutorPid() { bitField0_ = (bitField0_ & ~0x00000008); executorPid_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.ContainerStatus) } // @@protoc_insertion_point(class_scope:mesos.v1.ContainerStatus) private static final org.apache.mesos.v1.Protos.ContainerStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.ContainerStatus(); } public static org.apache.mesos.v1.Protos.ContainerStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ContainerStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerStatus(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.ContainerStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CgroupInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ boolean hasNetCls(); /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ org.apache.mesos.v1.Protos.CgroupInfo.NetCls getNetCls(); /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ org.apache.mesos.v1.Protos.CgroupInfo.NetClsOrBuilder getNetClsOrBuilder(); } /** *
   **
   * Linux control group (cgroup) information.
   * 
* * Protobuf type {@code mesos.v1.CgroupInfo} */ public static final class CgroupInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo) CgroupInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CgroupInfo.newBuilder() to construct. private CgroupInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CgroupInfo() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CgroupInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.CgroupInfo.NetCls.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = netCls_.toBuilder(); } netCls_ = input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.NetCls.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(netCls_); netCls_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.class, org.apache.mesos.v1.Protos.CgroupInfo.Builder.class); } public interface BlkioOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo.Blkio) com.google.protobuf.MessageOrBuilder { } /** *
     * Configuration of a blkio cgroup subsystem.
     * 
* * Protobuf type {@code mesos.v1.CgroupInfo.Blkio} */ public static final class Blkio extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo.Blkio) BlkioOrBuilder { private static final long serialVersionUID = 0L; // Use Blkio.newBuilder() to construct. private Blkio(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Blkio() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Blkio( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Builder.class); } /** * Protobuf enum {@code mesos.v1.CgroupInfo.Blkio.Operation} */ public enum Operation implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * TOTAL = 1; */ TOTAL(1), /** * READ = 2; */ READ(2), /** * WRITE = 3; */ WRITE(3), /** * SYNC = 4; */ SYNC(4), /** * ASYNC = 5; */ ASYNC(5), /** * DISCARD = 6; */ DISCARD(6), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * TOTAL = 1; */ public static final int TOTAL_VALUE = 1; /** * READ = 2; */ public static final int READ_VALUE = 2; /** * WRITE = 3; */ public static final int WRITE_VALUE = 3; /** * SYNC = 4; */ public static final int SYNC_VALUE = 4; /** * ASYNC = 5; */ public static final int ASYNC_VALUE = 5; /** * DISCARD = 6; */ public static final int DISCARD_VALUE = 6; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Operation valueOf(int value) { return forNumber(value); } public static Operation forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return TOTAL; case 2: return READ; case 3: return WRITE; case 4: return SYNC; case 5: return ASYNC; case 6: return DISCARD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Operation> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Operation findValueByNumber(int number) { return Operation.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.mesos.v1.Protos.CgroupInfo.Blkio.getDescriptor().getEnumTypes().get(0); } private static final Operation[] VALUES = values(); public static Operation valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Operation(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:mesos.v1.CgroupInfo.Blkio.Operation) } public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo.Blkio.Value) com.google.protobuf.MessageOrBuilder { /** *
         * Required.
         * 
* * optional .mesos.v1.CgroupInfo.Blkio.Operation op = 1; */ boolean hasOp(); /** *
         * Required.
         * 
* * optional .mesos.v1.CgroupInfo.Blkio.Operation op = 1; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation getOp(); /** *
         * Required.
         * 
* * optional uint64 value = 2; */ boolean hasValue(); /** *
         * Required.
         * 
* * optional uint64 value = 2; */ long getValue(); } /** *
       * Describes a stat value without the device descriptor part.
       * 
* * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.Value} */ public static final class Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo.Blkio.Value) ValueOrBuilder { private static final long serialVersionUID = 0L; // Use Value.newBuilder() to construct. private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Value() { op_ = 0; value_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Value( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation value = org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; op_ = rawValue; } break; } case 16: { bitField0_ |= 0x00000002; value_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder.class); } private int bitField0_; public static final int OP_FIELD_NUMBER = 1; private int op_; /** *
         * Required.
         * 
* * optional .mesos.v1.CgroupInfo.Blkio.Operation op = 1; */ public boolean hasOp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * Required.
         * 
* * optional .mesos.v1.CgroupInfo.Blkio.Operation op = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation getOp() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation result = org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation.valueOf(op_); return result == null ? org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation.UNKNOWN : result; } public static final int VALUE_FIELD_NUMBER = 2; private long value_; /** *
         * Required.
         * 
* * optional uint64 value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
         * Required.
         * 
* * optional uint64 value = 2; */ public long getValue() { return value_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, op_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, op_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value other = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value) obj; boolean result = true; result = result && (hasOp() == other.hasOp()); if (hasOp()) { result = result && op_ == other.op_; } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && (getValue() == other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOp()) { hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getValue()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value 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.Protos.CgroupInfo.Blkio.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Describes a stat value without the device descriptor part.
         * 
* * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo.Blkio.Value) org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); op_ = 0; bitField0_ = (bitField0_ & ~0x00000001); value_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Value_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value build() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value result = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.op_ = op_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()) return this; if (other.hasOp()) { setOp(other.getOp()); } if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CgroupInfo.Blkio.Value parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int op_ = 0; /** *
           * Required.
           * 
* * optional .mesos.v1.CgroupInfo.Blkio.Operation op = 1; */ public boolean hasOp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
           * Required.
           * 
* * optional .mesos.v1.CgroupInfo.Blkio.Operation op = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation getOp() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation result = org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation.valueOf(op_); return result == null ? org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation.UNKNOWN : result; } /** *
           * Required.
           * 
* * optional .mesos.v1.CgroupInfo.Blkio.Operation op = 1; */ public Builder setOp(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Operation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; op_ = value.getNumber(); onChanged(); return this; } /** *
           * Required.
           * 
* * optional .mesos.v1.CgroupInfo.Blkio.Operation op = 1; */ public Builder clearOp() { bitField0_ = (bitField0_ & ~0x00000001); op_ = 0; onChanged(); return this; } private long value_ ; /** *
           * Required.
           * 
* * optional uint64 value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
           * Required.
           * 
* * optional uint64 value = 2; */ public long getValue() { return value_; } /** *
           * Required.
           * 
* * optional uint64 value = 2; */ public Builder setValue(long value) { bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** *
           * Required.
           * 
* * optional uint64 value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo.Blkio.Value) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo.Blkio.Value) private static final org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value(); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Value(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CFQOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo.Blkio.CFQ) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.CFQ} */ public static final class CFQ extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo.Blkio.CFQ) CFQOrBuilder { private static final long serialVersionUID = 0L; // Use CFQ.newBuilder() to construct. private CFQ(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CFQ() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CFQ( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Builder.class); } public interface StatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo.Blkio.CFQ.Statistics) com.google.protobuf.MessageOrBuilder { /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ boolean hasDevice(); /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ org.apache.mesos.v1.Protos.Device.Number getDevice(); /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ org.apache.mesos.v1.Protos.Device.NumberOrBuilder getDeviceOrBuilder(); /** *
           * blkio.sectors
           * 
* * optional uint64 sectors = 2; */ boolean hasSectors(); /** *
           * blkio.sectors
           * 
* * optional uint64 sectors = 2; */ long getSectors(); /** *
           * blkio.time
           * 
* * optional uint64 time = 3; */ boolean hasTime(); /** *
           * blkio.time
           * 
* * optional uint64 time = 3; */ long getTime(); /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ java.util.List getIoServicedList(); /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiced(int index); /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ int getIoServicedCount(); /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ java.util.List getIoServicedOrBuilderList(); /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServicedOrBuilder( int index); /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ java.util.List getIoServiceBytesList(); /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceBytes(int index); /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ int getIoServiceBytesCount(); /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ java.util.List getIoServiceBytesOrBuilderList(); /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceBytesOrBuilder( int index); /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ java.util.List getIoServiceTimeList(); /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceTime(int index); /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ int getIoServiceTimeCount(); /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ java.util.List getIoServiceTimeOrBuilderList(); /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceTimeOrBuilder( int index); /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ java.util.List getIoWaitTimeList(); /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoWaitTime(int index); /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ int getIoWaitTimeCount(); /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ java.util.List getIoWaitTimeOrBuilderList(); /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoWaitTimeOrBuilder( int index); /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ java.util.List getIoMergedList(); /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoMerged(int index); /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ int getIoMergedCount(); /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ java.util.List getIoMergedOrBuilderList(); /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoMergedOrBuilder( int index); /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ java.util.List getIoQueuedList(); /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoQueued(int index); /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ int getIoQueuedCount(); /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ java.util.List getIoQueuedOrBuilderList(); /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoQueuedOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.CFQ.Statistics} */ public static final class Statistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo.Blkio.CFQ.Statistics) StatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use Statistics.newBuilder() to construct. private Statistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Statistics() { sectors_ = 0L; time_ = 0L; ioServiced_ = java.util.Collections.emptyList(); ioServiceBytes_ = java.util.Collections.emptyList(); ioServiceTime_ = java.util.Collections.emptyList(); ioWaitTime_ = java.util.Collections.emptyList(); ioMerged_ = java.util.Collections.emptyList(); ioQueued_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Statistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Device.Number.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = device_.toBuilder(); } device_ = input.readMessage(org.apache.mesos.v1.Protos.Device.Number.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(device_); device_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; sectors_ = input.readUInt64(); break; } case 24: { bitField0_ |= 0x00000004; time_ = input.readUInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { ioServiced_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } ioServiced_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { ioServiceBytes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } ioServiceBytes_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { ioServiceTime_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } ioServiceTime_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { ioWaitTime_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } ioWaitTime_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.PARSER, extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { ioMerged_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } ioMerged_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.PARSER, extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { ioQueued_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } ioQueued_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { ioServiced_ = java.util.Collections.unmodifiableList(ioServiced_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { ioServiceBytes_ = java.util.Collections.unmodifiableList(ioServiceBytes_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { ioServiceTime_ = java.util.Collections.unmodifiableList(ioServiceTime_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { ioWaitTime_ = java.util.Collections.unmodifiableList(ioWaitTime_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { ioMerged_ = java.util.Collections.unmodifiableList(ioMerged_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { ioQueued_ = java.util.Collections.unmodifiableList(ioQueued_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_Statistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder.class); } private int bitField0_; public static final int DEVICE_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Device.Number device_; /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ public boolean hasDevice() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.Number getDevice() { return device_ == null ? org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance() : device_; } /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.NumberOrBuilder getDeviceOrBuilder() { return device_ == null ? org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance() : device_; } public static final int SECTORS_FIELD_NUMBER = 2; private long sectors_; /** *
           * blkio.sectors
           * 
* * optional uint64 sectors = 2; */ public boolean hasSectors() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
           * blkio.sectors
           * 
* * optional uint64 sectors = 2; */ public long getSectors() { return sectors_; } public static final int TIME_FIELD_NUMBER = 3; private long time_; /** *
           * blkio.time
           * 
* * optional uint64 time = 3; */ public boolean hasTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
           * blkio.time
           * 
* * optional uint64 time = 3; */ public long getTime() { return time_; } public static final int IO_SERVICED_FIELD_NUMBER = 4; private java.util.List ioServiced_; /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public java.util.List getIoServicedList() { return ioServiced_; } /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public java.util.List getIoServicedOrBuilderList() { return ioServiced_; } /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public int getIoServicedCount() { return ioServiced_.size(); } /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiced(int index) { return ioServiced_.get(index); } /** *
           * blkio.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServicedOrBuilder( int index) { return ioServiced_.get(index); } public static final int IO_SERVICE_BYTES_FIELD_NUMBER = 5; private java.util.List ioServiceBytes_; /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public java.util.List getIoServiceBytesList() { return ioServiceBytes_; } /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public java.util.List getIoServiceBytesOrBuilderList() { return ioServiceBytes_; } /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public int getIoServiceBytesCount() { return ioServiceBytes_.size(); } /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceBytes(int index) { return ioServiceBytes_.get(index); } /** *
           * blkio.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceBytesOrBuilder( int index) { return ioServiceBytes_.get(index); } public static final int IO_SERVICE_TIME_FIELD_NUMBER = 6; private java.util.List ioServiceTime_; /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public java.util.List getIoServiceTimeList() { return ioServiceTime_; } /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public java.util.List getIoServiceTimeOrBuilderList() { return ioServiceTime_; } /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public int getIoServiceTimeCount() { return ioServiceTime_.size(); } /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceTime(int index) { return ioServiceTime_.get(index); } /** *
           * blkio.io_service_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceTimeOrBuilder( int index) { return ioServiceTime_.get(index); } public static final int IO_WAIT_TIME_FIELD_NUMBER = 7; private java.util.List ioWaitTime_; /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public java.util.List getIoWaitTimeList() { return ioWaitTime_; } /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public java.util.List getIoWaitTimeOrBuilderList() { return ioWaitTime_; } /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public int getIoWaitTimeCount() { return ioWaitTime_.size(); } /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoWaitTime(int index) { return ioWaitTime_.get(index); } /** *
           * blkio.io_wait_time
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoWaitTimeOrBuilder( int index) { return ioWaitTime_.get(index); } public static final int IO_MERGED_FIELD_NUMBER = 8; private java.util.List ioMerged_; /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public java.util.List getIoMergedList() { return ioMerged_; } /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public java.util.List getIoMergedOrBuilderList() { return ioMerged_; } /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public int getIoMergedCount() { return ioMerged_.size(); } /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoMerged(int index) { return ioMerged_.get(index); } /** *
           * blkio.io_merged
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoMergedOrBuilder( int index) { return ioMerged_.get(index); } public static final int IO_QUEUED_FIELD_NUMBER = 9; private java.util.List ioQueued_; /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public java.util.List getIoQueuedList() { return ioQueued_; } /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public java.util.List getIoQueuedOrBuilderList() { return ioQueued_; } /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public int getIoQueuedCount() { return ioQueued_.size(); } /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoQueued(int index) { return ioQueued_.get(index); } /** *
           * blkio.io_queued
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoQueuedOrBuilder( int index) { return ioQueued_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasDevice()) { if (!getDevice().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getDevice()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, sectors_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, time_); } for (int i = 0; i < ioServiced_.size(); i++) { output.writeMessage(4, ioServiced_.get(i)); } for (int i = 0; i < ioServiceBytes_.size(); i++) { output.writeMessage(5, ioServiceBytes_.get(i)); } for (int i = 0; i < ioServiceTime_.size(); i++) { output.writeMessage(6, ioServiceTime_.get(i)); } for (int i = 0; i < ioWaitTime_.size(); i++) { output.writeMessage(7, ioWaitTime_.get(i)); } for (int i = 0; i < ioMerged_.size(); i++) { output.writeMessage(8, ioMerged_.get(i)); } for (int i = 0; i < ioQueued_.size(); i++) { output.writeMessage(9, ioQueued_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDevice()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, sectors_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, time_); } for (int i = 0; i < ioServiced_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, ioServiced_.get(i)); } for (int i = 0; i < ioServiceBytes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, ioServiceBytes_.get(i)); } for (int i = 0; i < ioServiceTime_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, ioServiceTime_.get(i)); } for (int i = 0; i < ioWaitTime_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, ioWaitTime_.get(i)); } for (int i = 0; i < ioMerged_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, ioMerged_.get(i)); } for (int i = 0; i < ioQueued_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, ioQueued_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics other = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics) obj; boolean result = true; result = result && (hasDevice() == other.hasDevice()); if (hasDevice()) { result = result && getDevice() .equals(other.getDevice()); } result = result && (hasSectors() == other.hasSectors()); if (hasSectors()) { result = result && (getSectors() == other.getSectors()); } result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && (getTime() == other.getTime()); } result = result && getIoServicedList() .equals(other.getIoServicedList()); result = result && getIoServiceBytesList() .equals(other.getIoServiceBytesList()); result = result && getIoServiceTimeList() .equals(other.getIoServiceTimeList()); result = result && getIoWaitTimeList() .equals(other.getIoWaitTimeList()); result = result && getIoMergedList() .equals(other.getIoMergedList()); result = result && getIoQueuedList() .equals(other.getIoQueuedList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDevice()) { hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDevice().hashCode(); } if (hasSectors()) { hash = (37 * hash) + SECTORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSectors()); } if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTime()); } if (getIoServicedCount() > 0) { hash = (37 * hash) + IO_SERVICED_FIELD_NUMBER; hash = (53 * hash) + getIoServicedList().hashCode(); } if (getIoServiceBytesCount() > 0) { hash = (37 * hash) + IO_SERVICE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getIoServiceBytesList().hashCode(); } if (getIoServiceTimeCount() > 0) { hash = (37 * hash) + IO_SERVICE_TIME_FIELD_NUMBER; hash = (53 * hash) + getIoServiceTimeList().hashCode(); } if (getIoWaitTimeCount() > 0) { hash = (37 * hash) + IO_WAIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getIoWaitTimeList().hashCode(); } if (getIoMergedCount() > 0) { hash = (37 * hash) + IO_MERGED_FIELD_NUMBER; hash = (53 * hash) + getIoMergedList().hashCode(); } if (getIoQueuedCount() > 0) { hash = (37 * hash) + IO_QUEUED_FIELD_NUMBER; hash = (53 * hash) + getIoQueuedList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics 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.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.CFQ.Statistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo.Blkio.CFQ.Statistics) org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_Statistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDeviceFieldBuilder(); getIoServicedFieldBuilder(); getIoServiceBytesFieldBuilder(); getIoServiceTimeFieldBuilder(); getIoWaitTimeFieldBuilder(); getIoMergedFieldBuilder(); getIoQueuedFieldBuilder(); } } public Builder clear() { super.clear(); if (deviceBuilder_ == null) { device_ = null; } else { deviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); sectors_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); time_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); if (ioServicedBuilder_ == null) { ioServiced_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { ioServicedBuilder_.clear(); } if (ioServiceBytesBuilder_ == null) { ioServiceBytes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { ioServiceBytesBuilder_.clear(); } if (ioServiceTimeBuilder_ == null) { ioServiceTime_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { ioServiceTimeBuilder_.clear(); } if (ioWaitTimeBuilder_ == null) { ioWaitTime_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { ioWaitTimeBuilder_.clear(); } if (ioMergedBuilder_ == null) { ioMerged_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { ioMergedBuilder_.clear(); } if (ioQueuedBuilder_ == null) { ioQueued_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { ioQueuedBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_Statistics_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics build() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics result = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (deviceBuilder_ == null) { result.device_ = device_; } else { result.device_ = deviceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.sectors_ = sectors_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.time_ = time_; if (ioServicedBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { ioServiced_ = java.util.Collections.unmodifiableList(ioServiced_); bitField0_ = (bitField0_ & ~0x00000008); } result.ioServiced_ = ioServiced_; } else { result.ioServiced_ = ioServicedBuilder_.build(); } if (ioServiceBytesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { ioServiceBytes_ = java.util.Collections.unmodifiableList(ioServiceBytes_); bitField0_ = (bitField0_ & ~0x00000010); } result.ioServiceBytes_ = ioServiceBytes_; } else { result.ioServiceBytes_ = ioServiceBytesBuilder_.build(); } if (ioServiceTimeBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { ioServiceTime_ = java.util.Collections.unmodifiableList(ioServiceTime_); bitField0_ = (bitField0_ & ~0x00000020); } result.ioServiceTime_ = ioServiceTime_; } else { result.ioServiceTime_ = ioServiceTimeBuilder_.build(); } if (ioWaitTimeBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { ioWaitTime_ = java.util.Collections.unmodifiableList(ioWaitTime_); bitField0_ = (bitField0_ & ~0x00000040); } result.ioWaitTime_ = ioWaitTime_; } else { result.ioWaitTime_ = ioWaitTimeBuilder_.build(); } if (ioMergedBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { ioMerged_ = java.util.Collections.unmodifiableList(ioMerged_); bitField0_ = (bitField0_ & ~0x00000080); } result.ioMerged_ = ioMerged_; } else { result.ioMerged_ = ioMergedBuilder_.build(); } if (ioQueuedBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { ioQueued_ = java.util.Collections.unmodifiableList(ioQueued_); bitField0_ = (bitField0_ & ~0x00000100); } result.ioQueued_ = ioQueued_; } else { result.ioQueued_ = ioQueuedBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.getDefaultInstance()) return this; if (other.hasDevice()) { mergeDevice(other.getDevice()); } if (other.hasSectors()) { setSectors(other.getSectors()); } if (other.hasTime()) { setTime(other.getTime()); } if (ioServicedBuilder_ == null) { if (!other.ioServiced_.isEmpty()) { if (ioServiced_.isEmpty()) { ioServiced_ = other.ioServiced_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureIoServicedIsMutable(); ioServiced_.addAll(other.ioServiced_); } onChanged(); } } else { if (!other.ioServiced_.isEmpty()) { if (ioServicedBuilder_.isEmpty()) { ioServicedBuilder_.dispose(); ioServicedBuilder_ = null; ioServiced_ = other.ioServiced_; bitField0_ = (bitField0_ & ~0x00000008); ioServicedBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIoServicedFieldBuilder() : null; } else { ioServicedBuilder_.addAllMessages(other.ioServiced_); } } } if (ioServiceBytesBuilder_ == null) { if (!other.ioServiceBytes_.isEmpty()) { if (ioServiceBytes_.isEmpty()) { ioServiceBytes_ = other.ioServiceBytes_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureIoServiceBytesIsMutable(); ioServiceBytes_.addAll(other.ioServiceBytes_); } onChanged(); } } else { if (!other.ioServiceBytes_.isEmpty()) { if (ioServiceBytesBuilder_.isEmpty()) { ioServiceBytesBuilder_.dispose(); ioServiceBytesBuilder_ = null; ioServiceBytes_ = other.ioServiceBytes_; bitField0_ = (bitField0_ & ~0x00000010); ioServiceBytesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIoServiceBytesFieldBuilder() : null; } else { ioServiceBytesBuilder_.addAllMessages(other.ioServiceBytes_); } } } if (ioServiceTimeBuilder_ == null) { if (!other.ioServiceTime_.isEmpty()) { if (ioServiceTime_.isEmpty()) { ioServiceTime_ = other.ioServiceTime_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureIoServiceTimeIsMutable(); ioServiceTime_.addAll(other.ioServiceTime_); } onChanged(); } } else { if (!other.ioServiceTime_.isEmpty()) { if (ioServiceTimeBuilder_.isEmpty()) { ioServiceTimeBuilder_.dispose(); ioServiceTimeBuilder_ = null; ioServiceTime_ = other.ioServiceTime_; bitField0_ = (bitField0_ & ~0x00000020); ioServiceTimeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIoServiceTimeFieldBuilder() : null; } else { ioServiceTimeBuilder_.addAllMessages(other.ioServiceTime_); } } } if (ioWaitTimeBuilder_ == null) { if (!other.ioWaitTime_.isEmpty()) { if (ioWaitTime_.isEmpty()) { ioWaitTime_ = other.ioWaitTime_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureIoWaitTimeIsMutable(); ioWaitTime_.addAll(other.ioWaitTime_); } onChanged(); } } else { if (!other.ioWaitTime_.isEmpty()) { if (ioWaitTimeBuilder_.isEmpty()) { ioWaitTimeBuilder_.dispose(); ioWaitTimeBuilder_ = null; ioWaitTime_ = other.ioWaitTime_; bitField0_ = (bitField0_ & ~0x00000040); ioWaitTimeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIoWaitTimeFieldBuilder() : null; } else { ioWaitTimeBuilder_.addAllMessages(other.ioWaitTime_); } } } if (ioMergedBuilder_ == null) { if (!other.ioMerged_.isEmpty()) { if (ioMerged_.isEmpty()) { ioMerged_ = other.ioMerged_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureIoMergedIsMutable(); ioMerged_.addAll(other.ioMerged_); } onChanged(); } } else { if (!other.ioMerged_.isEmpty()) { if (ioMergedBuilder_.isEmpty()) { ioMergedBuilder_.dispose(); ioMergedBuilder_ = null; ioMerged_ = other.ioMerged_; bitField0_ = (bitField0_ & ~0x00000080); ioMergedBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIoMergedFieldBuilder() : null; } else { ioMergedBuilder_.addAllMessages(other.ioMerged_); } } } if (ioQueuedBuilder_ == null) { if (!other.ioQueued_.isEmpty()) { if (ioQueued_.isEmpty()) { ioQueued_ = other.ioQueued_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureIoQueuedIsMutable(); ioQueued_.addAll(other.ioQueued_); } onChanged(); } } else { if (!other.ioQueued_.isEmpty()) { if (ioQueuedBuilder_.isEmpty()) { ioQueuedBuilder_.dispose(); ioQueuedBuilder_ = null; ioQueued_ = other.ioQueued_; bitField0_ = (bitField0_ & ~0x00000100); ioQueuedBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIoQueuedFieldBuilder() : null; } else { ioQueuedBuilder_.addAllMessages(other.ioQueued_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasDevice()) { if (!getDevice().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.Protos.CgroupInfo.Blkio.CFQ.Statistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Device.Number device_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Device.Number, org.apache.mesos.v1.Protos.Device.Number.Builder, org.apache.mesos.v1.Protos.Device.NumberOrBuilder> deviceBuilder_; /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public boolean hasDevice() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.Number getDevice() { if (deviceBuilder_ == null) { return device_ == null ? org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance() : device_; } else { return deviceBuilder_.getMessage(); } } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public Builder setDevice(org.apache.mesos.v1.Protos.Device.Number value) { if (deviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } device_ = value; onChanged(); } else { deviceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public Builder setDevice( org.apache.mesos.v1.Protos.Device.Number.Builder builderForValue) { if (deviceBuilder_ == null) { device_ = builderForValue.build(); onChanged(); } else { deviceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public Builder mergeDevice(org.apache.mesos.v1.Protos.Device.Number value) { if (deviceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && device_ != null && device_ != org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance()) { device_ = org.apache.mesos.v1.Protos.Device.Number.newBuilder(device_).mergeFrom(value).buildPartial(); } else { device_ = value; } onChanged(); } else { deviceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public Builder clearDevice() { if (deviceBuilder_ == null) { device_ = null; onChanged(); } else { deviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.Number.Builder getDeviceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDeviceFieldBuilder().getBuilder(); } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.NumberOrBuilder getDeviceOrBuilder() { if (deviceBuilder_ != null) { return deviceBuilder_.getMessageOrBuilder(); } else { return device_ == null ? org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance() : device_; } } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Device.Number, org.apache.mesos.v1.Protos.Device.Number.Builder, org.apache.mesos.v1.Protos.Device.NumberOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Device.Number, org.apache.mesos.v1.Protos.Device.Number.Builder, org.apache.mesos.v1.Protos.Device.NumberOrBuilder>( getDevice(), getParentForChildren(), isClean()); device_ = null; } return deviceBuilder_; } private long sectors_ ; /** *
             * blkio.sectors
             * 
* * optional uint64 sectors = 2; */ public boolean hasSectors() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
             * blkio.sectors
             * 
* * optional uint64 sectors = 2; */ public long getSectors() { return sectors_; } /** *
             * blkio.sectors
             * 
* * optional uint64 sectors = 2; */ public Builder setSectors(long value) { bitField0_ |= 0x00000002; sectors_ = value; onChanged(); return this; } /** *
             * blkio.sectors
             * 
* * optional uint64 sectors = 2; */ public Builder clearSectors() { bitField0_ = (bitField0_ & ~0x00000002); sectors_ = 0L; onChanged(); return this; } private long time_ ; /** *
             * blkio.time
             * 
* * optional uint64 time = 3; */ public boolean hasTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
             * blkio.time
             * 
* * optional uint64 time = 3; */ public long getTime() { return time_; } /** *
             * blkio.time
             * 
* * optional uint64 time = 3; */ public Builder setTime(long value) { bitField0_ |= 0x00000004; time_ = value; onChanged(); return this; } /** *
             * blkio.time
             * 
* * optional uint64 time = 3; */ public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00000004); time_ = 0L; onChanged(); return this; } private java.util.List ioServiced_ = java.util.Collections.emptyList(); private void ensureIoServicedIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { ioServiced_ = new java.util.ArrayList(ioServiced_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> ioServicedBuilder_; /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public java.util.List getIoServicedList() { if (ioServicedBuilder_ == null) { return java.util.Collections.unmodifiableList(ioServiced_); } else { return ioServicedBuilder_.getMessageList(); } } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public int getIoServicedCount() { if (ioServicedBuilder_ == null) { return ioServiced_.size(); } else { return ioServicedBuilder_.getCount(); } } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiced(int index) { if (ioServicedBuilder_ == null) { return ioServiced_.get(index); } else { return ioServicedBuilder_.getMessage(index); } } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder setIoServiced( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServicedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServicedIsMutable(); ioServiced_.set(index, value); onChanged(); } else { ioServicedBuilder_.setMessage(index, value); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder setIoServiced( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); ioServiced_.set(index, builderForValue.build()); onChanged(); } else { ioServicedBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder addIoServiced(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServicedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServicedIsMutable(); ioServiced_.add(value); onChanged(); } else { ioServicedBuilder_.addMessage(value); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder addIoServiced( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServicedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServicedIsMutable(); ioServiced_.add(index, value); onChanged(); } else { ioServicedBuilder_.addMessage(index, value); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder addIoServiced( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); ioServiced_.add(builderForValue.build()); onChanged(); } else { ioServicedBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder addIoServiced( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); ioServiced_.add(index, builderForValue.build()); onChanged(); } else { ioServicedBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder addAllIoServiced( java.lang.Iterable values) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ioServiced_); onChanged(); } else { ioServicedBuilder_.addAllMessages(values); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder clearIoServiced() { if (ioServicedBuilder_ == null) { ioServiced_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { ioServicedBuilder_.clear(); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public Builder removeIoServiced(int index) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); ioServiced_.remove(index); onChanged(); } else { ioServicedBuilder_.remove(index); } return this; } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder getIoServicedBuilder( int index) { return getIoServicedFieldBuilder().getBuilder(index); } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServicedOrBuilder( int index) { if (ioServicedBuilder_ == null) { return ioServiced_.get(index); } else { return ioServicedBuilder_.getMessageOrBuilder(index); } } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public java.util.List getIoServicedOrBuilderList() { if (ioServicedBuilder_ != null) { return ioServicedBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ioServiced_); } } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServicedBuilder() { return getIoServicedFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServicedBuilder( int index) { return getIoServicedFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 4; */ public java.util.List getIoServicedBuilderList() { return getIoServicedFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> getIoServicedFieldBuilder() { if (ioServicedBuilder_ == null) { ioServicedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder>( ioServiced_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); ioServiced_ = null; } return ioServicedBuilder_; } private java.util.List ioServiceBytes_ = java.util.Collections.emptyList(); private void ensureIoServiceBytesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { ioServiceBytes_ = new java.util.ArrayList(ioServiceBytes_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> ioServiceBytesBuilder_; /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public java.util.List getIoServiceBytesList() { if (ioServiceBytesBuilder_ == null) { return java.util.Collections.unmodifiableList(ioServiceBytes_); } else { return ioServiceBytesBuilder_.getMessageList(); } } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public int getIoServiceBytesCount() { if (ioServiceBytesBuilder_ == null) { return ioServiceBytes_.size(); } else { return ioServiceBytesBuilder_.getCount(); } } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceBytes(int index) { if (ioServiceBytesBuilder_ == null) { return ioServiceBytes_.get(index); } else { return ioServiceBytesBuilder_.getMessage(index); } } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder setIoServiceBytes( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceBytesIsMutable(); ioServiceBytes_.set(index, value); onChanged(); } else { ioServiceBytesBuilder_.setMessage(index, value); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder setIoServiceBytes( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); ioServiceBytes_.set(index, builderForValue.build()); onChanged(); } else { ioServiceBytesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder addIoServiceBytes(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceBytesIsMutable(); ioServiceBytes_.add(value); onChanged(); } else { ioServiceBytesBuilder_.addMessage(value); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder addIoServiceBytes( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceBytesIsMutable(); ioServiceBytes_.add(index, value); onChanged(); } else { ioServiceBytesBuilder_.addMessage(index, value); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder addIoServiceBytes( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); ioServiceBytes_.add(builderForValue.build()); onChanged(); } else { ioServiceBytesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder addIoServiceBytes( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); ioServiceBytes_.add(index, builderForValue.build()); onChanged(); } else { ioServiceBytesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder addAllIoServiceBytes( java.lang.Iterable values) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ioServiceBytes_); onChanged(); } else { ioServiceBytesBuilder_.addAllMessages(values); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder clearIoServiceBytes() { if (ioServiceBytesBuilder_ == null) { ioServiceBytes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { ioServiceBytesBuilder_.clear(); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public Builder removeIoServiceBytes(int index) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); ioServiceBytes_.remove(index); onChanged(); } else { ioServiceBytesBuilder_.remove(index); } return this; } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder getIoServiceBytesBuilder( int index) { return getIoServiceBytesFieldBuilder().getBuilder(index); } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceBytesOrBuilder( int index) { if (ioServiceBytesBuilder_ == null) { return ioServiceBytes_.get(index); } else { return ioServiceBytesBuilder_.getMessageOrBuilder(index); } } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public java.util.List getIoServiceBytesOrBuilderList() { if (ioServiceBytesBuilder_ != null) { return ioServiceBytesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ioServiceBytes_); } } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServiceBytesBuilder() { return getIoServiceBytesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServiceBytesBuilder( int index) { return getIoServiceBytesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 5; */ public java.util.List getIoServiceBytesBuilderList() { return getIoServiceBytesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> getIoServiceBytesFieldBuilder() { if (ioServiceBytesBuilder_ == null) { ioServiceBytesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder>( ioServiceBytes_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); ioServiceBytes_ = null; } return ioServiceBytesBuilder_; } private java.util.List ioServiceTime_ = java.util.Collections.emptyList(); private void ensureIoServiceTimeIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { ioServiceTime_ = new java.util.ArrayList(ioServiceTime_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> ioServiceTimeBuilder_; /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public java.util.List getIoServiceTimeList() { if (ioServiceTimeBuilder_ == null) { return java.util.Collections.unmodifiableList(ioServiceTime_); } else { return ioServiceTimeBuilder_.getMessageList(); } } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public int getIoServiceTimeCount() { if (ioServiceTimeBuilder_ == null) { return ioServiceTime_.size(); } else { return ioServiceTimeBuilder_.getCount(); } } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceTime(int index) { if (ioServiceTimeBuilder_ == null) { return ioServiceTime_.get(index); } else { return ioServiceTimeBuilder_.getMessage(index); } } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder setIoServiceTime( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceTimeIsMutable(); ioServiceTime_.set(index, value); onChanged(); } else { ioServiceTimeBuilder_.setMessage(index, value); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder setIoServiceTime( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceTimeBuilder_ == null) { ensureIoServiceTimeIsMutable(); ioServiceTime_.set(index, builderForValue.build()); onChanged(); } else { ioServiceTimeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder addIoServiceTime(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceTimeIsMutable(); ioServiceTime_.add(value); onChanged(); } else { ioServiceTimeBuilder_.addMessage(value); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder addIoServiceTime( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceTimeIsMutable(); ioServiceTime_.add(index, value); onChanged(); } else { ioServiceTimeBuilder_.addMessage(index, value); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder addIoServiceTime( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceTimeBuilder_ == null) { ensureIoServiceTimeIsMutable(); ioServiceTime_.add(builderForValue.build()); onChanged(); } else { ioServiceTimeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder addIoServiceTime( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceTimeBuilder_ == null) { ensureIoServiceTimeIsMutable(); ioServiceTime_.add(index, builderForValue.build()); onChanged(); } else { ioServiceTimeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder addAllIoServiceTime( java.lang.Iterable values) { if (ioServiceTimeBuilder_ == null) { ensureIoServiceTimeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ioServiceTime_); onChanged(); } else { ioServiceTimeBuilder_.addAllMessages(values); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder clearIoServiceTime() { if (ioServiceTimeBuilder_ == null) { ioServiceTime_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { ioServiceTimeBuilder_.clear(); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public Builder removeIoServiceTime(int index) { if (ioServiceTimeBuilder_ == null) { ensureIoServiceTimeIsMutable(); ioServiceTime_.remove(index); onChanged(); } else { ioServiceTimeBuilder_.remove(index); } return this; } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder getIoServiceTimeBuilder( int index) { return getIoServiceTimeFieldBuilder().getBuilder(index); } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceTimeOrBuilder( int index) { if (ioServiceTimeBuilder_ == null) { return ioServiceTime_.get(index); } else { return ioServiceTimeBuilder_.getMessageOrBuilder(index); } } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public java.util.List getIoServiceTimeOrBuilderList() { if (ioServiceTimeBuilder_ != null) { return ioServiceTimeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ioServiceTime_); } } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServiceTimeBuilder() { return getIoServiceTimeFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServiceTimeBuilder( int index) { return getIoServiceTimeFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_service_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_time = 6; */ public java.util.List getIoServiceTimeBuilderList() { return getIoServiceTimeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> getIoServiceTimeFieldBuilder() { if (ioServiceTimeBuilder_ == null) { ioServiceTimeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder>( ioServiceTime_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); ioServiceTime_ = null; } return ioServiceTimeBuilder_; } private java.util.List ioWaitTime_ = java.util.Collections.emptyList(); private void ensureIoWaitTimeIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { ioWaitTime_ = new java.util.ArrayList(ioWaitTime_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> ioWaitTimeBuilder_; /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public java.util.List getIoWaitTimeList() { if (ioWaitTimeBuilder_ == null) { return java.util.Collections.unmodifiableList(ioWaitTime_); } else { return ioWaitTimeBuilder_.getMessageList(); } } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public int getIoWaitTimeCount() { if (ioWaitTimeBuilder_ == null) { return ioWaitTime_.size(); } else { return ioWaitTimeBuilder_.getCount(); } } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoWaitTime(int index) { if (ioWaitTimeBuilder_ == null) { return ioWaitTime_.get(index); } else { return ioWaitTimeBuilder_.getMessage(index); } } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder setIoWaitTime( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioWaitTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoWaitTimeIsMutable(); ioWaitTime_.set(index, value); onChanged(); } else { ioWaitTimeBuilder_.setMessage(index, value); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder setIoWaitTime( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioWaitTimeBuilder_ == null) { ensureIoWaitTimeIsMutable(); ioWaitTime_.set(index, builderForValue.build()); onChanged(); } else { ioWaitTimeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder addIoWaitTime(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioWaitTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoWaitTimeIsMutable(); ioWaitTime_.add(value); onChanged(); } else { ioWaitTimeBuilder_.addMessage(value); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder addIoWaitTime( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioWaitTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoWaitTimeIsMutable(); ioWaitTime_.add(index, value); onChanged(); } else { ioWaitTimeBuilder_.addMessage(index, value); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder addIoWaitTime( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioWaitTimeBuilder_ == null) { ensureIoWaitTimeIsMutable(); ioWaitTime_.add(builderForValue.build()); onChanged(); } else { ioWaitTimeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder addIoWaitTime( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioWaitTimeBuilder_ == null) { ensureIoWaitTimeIsMutable(); ioWaitTime_.add(index, builderForValue.build()); onChanged(); } else { ioWaitTimeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder addAllIoWaitTime( java.lang.Iterable values) { if (ioWaitTimeBuilder_ == null) { ensureIoWaitTimeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ioWaitTime_); onChanged(); } else { ioWaitTimeBuilder_.addAllMessages(values); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder clearIoWaitTime() { if (ioWaitTimeBuilder_ == null) { ioWaitTime_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { ioWaitTimeBuilder_.clear(); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public Builder removeIoWaitTime(int index) { if (ioWaitTimeBuilder_ == null) { ensureIoWaitTimeIsMutable(); ioWaitTime_.remove(index); onChanged(); } else { ioWaitTimeBuilder_.remove(index); } return this; } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder getIoWaitTimeBuilder( int index) { return getIoWaitTimeFieldBuilder().getBuilder(index); } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoWaitTimeOrBuilder( int index) { if (ioWaitTimeBuilder_ == null) { return ioWaitTime_.get(index); } else { return ioWaitTimeBuilder_.getMessageOrBuilder(index); } } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public java.util.List getIoWaitTimeOrBuilderList() { if (ioWaitTimeBuilder_ != null) { return ioWaitTimeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ioWaitTime_); } } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoWaitTimeBuilder() { return getIoWaitTimeFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoWaitTimeBuilder( int index) { return getIoWaitTimeFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_wait_time
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_wait_time = 7; */ public java.util.List getIoWaitTimeBuilderList() { return getIoWaitTimeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> getIoWaitTimeFieldBuilder() { if (ioWaitTimeBuilder_ == null) { ioWaitTimeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder>( ioWaitTime_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); ioWaitTime_ = null; } return ioWaitTimeBuilder_; } private java.util.List ioMerged_ = java.util.Collections.emptyList(); private void ensureIoMergedIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { ioMerged_ = new java.util.ArrayList(ioMerged_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> ioMergedBuilder_; /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public java.util.List getIoMergedList() { if (ioMergedBuilder_ == null) { return java.util.Collections.unmodifiableList(ioMerged_); } else { return ioMergedBuilder_.getMessageList(); } } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public int getIoMergedCount() { if (ioMergedBuilder_ == null) { return ioMerged_.size(); } else { return ioMergedBuilder_.getCount(); } } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoMerged(int index) { if (ioMergedBuilder_ == null) { return ioMerged_.get(index); } else { return ioMergedBuilder_.getMessage(index); } } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder setIoMerged( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioMergedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoMergedIsMutable(); ioMerged_.set(index, value); onChanged(); } else { ioMergedBuilder_.setMessage(index, value); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder setIoMerged( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioMergedBuilder_ == null) { ensureIoMergedIsMutable(); ioMerged_.set(index, builderForValue.build()); onChanged(); } else { ioMergedBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder addIoMerged(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioMergedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoMergedIsMutable(); ioMerged_.add(value); onChanged(); } else { ioMergedBuilder_.addMessage(value); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder addIoMerged( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioMergedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoMergedIsMutable(); ioMerged_.add(index, value); onChanged(); } else { ioMergedBuilder_.addMessage(index, value); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder addIoMerged( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioMergedBuilder_ == null) { ensureIoMergedIsMutable(); ioMerged_.add(builderForValue.build()); onChanged(); } else { ioMergedBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder addIoMerged( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioMergedBuilder_ == null) { ensureIoMergedIsMutable(); ioMerged_.add(index, builderForValue.build()); onChanged(); } else { ioMergedBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder addAllIoMerged( java.lang.Iterable values) { if (ioMergedBuilder_ == null) { ensureIoMergedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ioMerged_); onChanged(); } else { ioMergedBuilder_.addAllMessages(values); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder clearIoMerged() { if (ioMergedBuilder_ == null) { ioMerged_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { ioMergedBuilder_.clear(); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public Builder removeIoMerged(int index) { if (ioMergedBuilder_ == null) { ensureIoMergedIsMutable(); ioMerged_.remove(index); onChanged(); } else { ioMergedBuilder_.remove(index); } return this; } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder getIoMergedBuilder( int index) { return getIoMergedFieldBuilder().getBuilder(index); } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoMergedOrBuilder( int index) { if (ioMergedBuilder_ == null) { return ioMerged_.get(index); } else { return ioMergedBuilder_.getMessageOrBuilder(index); } } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public java.util.List getIoMergedOrBuilderList() { if (ioMergedBuilder_ != null) { return ioMergedBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ioMerged_); } } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoMergedBuilder() { return getIoMergedFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoMergedBuilder( int index) { return getIoMergedFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_merged
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_merged = 8; */ public java.util.List getIoMergedBuilderList() { return getIoMergedFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> getIoMergedFieldBuilder() { if (ioMergedBuilder_ == null) { ioMergedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder>( ioMerged_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); ioMerged_ = null; } return ioMergedBuilder_; } private java.util.List ioQueued_ = java.util.Collections.emptyList(); private void ensureIoQueuedIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { ioQueued_ = new java.util.ArrayList(ioQueued_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> ioQueuedBuilder_; /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public java.util.List getIoQueuedList() { if (ioQueuedBuilder_ == null) { return java.util.Collections.unmodifiableList(ioQueued_); } else { return ioQueuedBuilder_.getMessageList(); } } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public int getIoQueuedCount() { if (ioQueuedBuilder_ == null) { return ioQueued_.size(); } else { return ioQueuedBuilder_.getCount(); } } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoQueued(int index) { if (ioQueuedBuilder_ == null) { return ioQueued_.get(index); } else { return ioQueuedBuilder_.getMessage(index); } } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder setIoQueued( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioQueuedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoQueuedIsMutable(); ioQueued_.set(index, value); onChanged(); } else { ioQueuedBuilder_.setMessage(index, value); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder setIoQueued( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioQueuedBuilder_ == null) { ensureIoQueuedIsMutable(); ioQueued_.set(index, builderForValue.build()); onChanged(); } else { ioQueuedBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder addIoQueued(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioQueuedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoQueuedIsMutable(); ioQueued_.add(value); onChanged(); } else { ioQueuedBuilder_.addMessage(value); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder addIoQueued( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioQueuedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoQueuedIsMutable(); ioQueued_.add(index, value); onChanged(); } else { ioQueuedBuilder_.addMessage(index, value); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder addIoQueued( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioQueuedBuilder_ == null) { ensureIoQueuedIsMutable(); ioQueued_.add(builderForValue.build()); onChanged(); } else { ioQueuedBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder addIoQueued( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioQueuedBuilder_ == null) { ensureIoQueuedIsMutable(); ioQueued_.add(index, builderForValue.build()); onChanged(); } else { ioQueuedBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder addAllIoQueued( java.lang.Iterable values) { if (ioQueuedBuilder_ == null) { ensureIoQueuedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ioQueued_); onChanged(); } else { ioQueuedBuilder_.addAllMessages(values); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder clearIoQueued() { if (ioQueuedBuilder_ == null) { ioQueued_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { ioQueuedBuilder_.clear(); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public Builder removeIoQueued(int index) { if (ioQueuedBuilder_ == null) { ensureIoQueuedIsMutable(); ioQueued_.remove(index); onChanged(); } else { ioQueuedBuilder_.remove(index); } return this; } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder getIoQueuedBuilder( int index) { return getIoQueuedFieldBuilder().getBuilder(index); } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoQueuedOrBuilder( int index) { if (ioQueuedBuilder_ == null) { return ioQueued_.get(index); } else { return ioQueuedBuilder_.getMessageOrBuilder(index); } } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public java.util.List getIoQueuedOrBuilderList() { if (ioQueuedBuilder_ != null) { return ioQueuedBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ioQueued_); } } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoQueuedBuilder() { return getIoQueuedFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoQueuedBuilder( int index) { return getIoQueuedFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.io_queued
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_queued = 9; */ public java.util.List getIoQueuedBuilderList() { return getIoQueuedFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> getIoQueuedFieldBuilder() { if (ioQueuedBuilder_ == null) { ioQueuedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder>( ioQueued_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); ioQueued_ = null; } return ioQueuedBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo.Blkio.CFQ.Statistics) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo.Blkio.CFQ.Statistics) private static final org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics(); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Statistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Statistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } 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 { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ other = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ 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.Protos.CgroupInfo.Blkio.CFQ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.CFQ} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo.Blkio.CFQ) org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_CFQ_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ build() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ result = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CgroupInfo.Blkio.CFQ parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo.Blkio.CFQ) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo.Blkio.CFQ) private static final org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ(); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CFQ parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CFQ(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ThrottlingOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo.Blkio.Throttling) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.Throttling} */ public static final class Throttling extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo.Blkio.Throttling) ThrottlingOrBuilder { private static final long serialVersionUID = 0L; // Use Throttling.newBuilder() to construct. private Throttling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Throttling() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Throttling( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Builder.class); } public interface StatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo.Blkio.Throttling.Statistics) com.google.protobuf.MessageOrBuilder { /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ boolean hasDevice(); /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ org.apache.mesos.v1.Protos.Device.Number getDevice(); /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ org.apache.mesos.v1.Protos.Device.NumberOrBuilder getDeviceOrBuilder(); /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ java.util.List getIoServicedList(); /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiced(int index); /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ int getIoServicedCount(); /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ java.util.List getIoServicedOrBuilderList(); /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServicedOrBuilder( int index); /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ java.util.List getIoServiceBytesList(); /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceBytes(int index); /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ int getIoServiceBytesCount(); /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ java.util.List getIoServiceBytesOrBuilderList(); /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceBytesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.Throttling.Statistics} */ public static final class Statistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo.Blkio.Throttling.Statistics) StatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use Statistics.newBuilder() to construct. private Statistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Statistics() { ioServiced_ = java.util.Collections.emptyList(); ioServiceBytes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Statistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.Device.Number.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = device_.toBuilder(); } device_ = input.readMessage(org.apache.mesos.v1.Protos.Device.Number.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(device_); device_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ioServiced_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ioServiced_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ioServiceBytes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } ioServiceBytes_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ioServiced_ = java.util.Collections.unmodifiableList(ioServiced_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ioServiceBytes_ = java.util.Collections.unmodifiableList(ioServiceBytes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_Statistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder.class); } private int bitField0_; public static final int DEVICE_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.Device.Number device_; /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ public boolean hasDevice() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.Number getDevice() { return device_ == null ? org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance() : device_; } /** *
           * Stats are grouped by block devices. If `device` is not
           * set, it represents `Total`.
           * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.NumberOrBuilder getDeviceOrBuilder() { return device_ == null ? org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance() : device_; } public static final int IO_SERVICED_FIELD_NUMBER = 2; private java.util.List ioServiced_; /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public java.util.List getIoServicedList() { return ioServiced_; } /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public java.util.List getIoServicedOrBuilderList() { return ioServiced_; } /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public int getIoServicedCount() { return ioServiced_.size(); } /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiced(int index) { return ioServiced_.get(index); } /** *
           * blkio.throttle.io_serviced
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServicedOrBuilder( int index) { return ioServiced_.get(index); } public static final int IO_SERVICE_BYTES_FIELD_NUMBER = 3; private java.util.List ioServiceBytes_; /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public java.util.List getIoServiceBytesList() { return ioServiceBytes_; } /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public java.util.List getIoServiceBytesOrBuilderList() { return ioServiceBytes_; } /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public int getIoServiceBytesCount() { return ioServiceBytes_.size(); } /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceBytes(int index) { return ioServiceBytes_.get(index); } /** *
           * blkio.throttle.io_service_bytes
           * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceBytesOrBuilder( int index) { return ioServiceBytes_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasDevice()) { if (!getDevice().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getDevice()); } for (int i = 0; i < ioServiced_.size(); i++) { output.writeMessage(2, ioServiced_.get(i)); } for (int i = 0; i < ioServiceBytes_.size(); i++) { output.writeMessage(3, ioServiceBytes_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDevice()); } for (int i = 0; i < ioServiced_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, ioServiced_.get(i)); } for (int i = 0; i < ioServiceBytes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, ioServiceBytes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics other = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics) obj; boolean result = true; result = result && (hasDevice() == other.hasDevice()); if (hasDevice()) { result = result && getDevice() .equals(other.getDevice()); } result = result && getIoServicedList() .equals(other.getIoServicedList()); result = result && getIoServiceBytesList() .equals(other.getIoServiceBytesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDevice()) { hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDevice().hashCode(); } if (getIoServicedCount() > 0) { hash = (37 * hash) + IO_SERVICED_FIELD_NUMBER; hash = (53 * hash) + getIoServicedList().hashCode(); } if (getIoServiceBytesCount() > 0) { hash = (37 * hash) + IO_SERVICE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getIoServiceBytesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics 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.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.Throttling.Statistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo.Blkio.Throttling.Statistics) org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.StatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_Statistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDeviceFieldBuilder(); getIoServicedFieldBuilder(); getIoServiceBytesFieldBuilder(); } } public Builder clear() { super.clear(); if (deviceBuilder_ == null) { device_ = null; } else { deviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (ioServicedBuilder_ == null) { ioServiced_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { ioServicedBuilder_.clear(); } if (ioServiceBytesBuilder_ == null) { ioServiceBytes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { ioServiceBytesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_Statistics_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics build() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics result = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (deviceBuilder_ == null) { result.device_ = device_; } else { result.device_ = deviceBuilder_.build(); } if (ioServicedBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { ioServiced_ = java.util.Collections.unmodifiableList(ioServiced_); bitField0_ = (bitField0_ & ~0x00000002); } result.ioServiced_ = ioServiced_; } else { result.ioServiced_ = ioServicedBuilder_.build(); } if (ioServiceBytesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { ioServiceBytes_ = java.util.Collections.unmodifiableList(ioServiceBytes_); bitField0_ = (bitField0_ & ~0x00000004); } result.ioServiceBytes_ = ioServiceBytes_; } else { result.ioServiceBytes_ = ioServiceBytesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.getDefaultInstance()) return this; if (other.hasDevice()) { mergeDevice(other.getDevice()); } if (ioServicedBuilder_ == null) { if (!other.ioServiced_.isEmpty()) { if (ioServiced_.isEmpty()) { ioServiced_ = other.ioServiced_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIoServicedIsMutable(); ioServiced_.addAll(other.ioServiced_); } onChanged(); } } else { if (!other.ioServiced_.isEmpty()) { if (ioServicedBuilder_.isEmpty()) { ioServicedBuilder_.dispose(); ioServicedBuilder_ = null; ioServiced_ = other.ioServiced_; bitField0_ = (bitField0_ & ~0x00000002); ioServicedBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIoServicedFieldBuilder() : null; } else { ioServicedBuilder_.addAllMessages(other.ioServiced_); } } } if (ioServiceBytesBuilder_ == null) { if (!other.ioServiceBytes_.isEmpty()) { if (ioServiceBytes_.isEmpty()) { ioServiceBytes_ = other.ioServiceBytes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureIoServiceBytesIsMutable(); ioServiceBytes_.addAll(other.ioServiceBytes_); } onChanged(); } } else { if (!other.ioServiceBytes_.isEmpty()) { if (ioServiceBytesBuilder_.isEmpty()) { ioServiceBytesBuilder_.dispose(); ioServiceBytesBuilder_ = null; ioServiceBytes_ = other.ioServiceBytes_; bitField0_ = (bitField0_ & ~0x00000004); ioServiceBytesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIoServiceBytesFieldBuilder() : null; } else { ioServiceBytesBuilder_.addAllMessages(other.ioServiceBytes_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (hasDevice()) { if (!getDevice().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.Protos.CgroupInfo.Blkio.Throttling.Statistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.Device.Number device_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Device.Number, org.apache.mesos.v1.Protos.Device.Number.Builder, org.apache.mesos.v1.Protos.Device.NumberOrBuilder> deviceBuilder_; /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public boolean hasDevice() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.Number getDevice() { if (deviceBuilder_ == null) { return device_ == null ? org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance() : device_; } else { return deviceBuilder_.getMessage(); } } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public Builder setDevice(org.apache.mesos.v1.Protos.Device.Number value) { if (deviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } device_ = value; onChanged(); } else { deviceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public Builder setDevice( org.apache.mesos.v1.Protos.Device.Number.Builder builderForValue) { if (deviceBuilder_ == null) { device_ = builderForValue.build(); onChanged(); } else { deviceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public Builder mergeDevice(org.apache.mesos.v1.Protos.Device.Number value) { if (deviceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && device_ != null && device_ != org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance()) { device_ = org.apache.mesos.v1.Protos.Device.Number.newBuilder(device_).mergeFrom(value).buildPartial(); } else { device_ = value; } onChanged(); } else { deviceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public Builder clearDevice() { if (deviceBuilder_ == null) { device_ = null; onChanged(); } else { deviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.Number.Builder getDeviceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDeviceFieldBuilder().getBuilder(); } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ public org.apache.mesos.v1.Protos.Device.NumberOrBuilder getDeviceOrBuilder() { if (deviceBuilder_ != null) { return deviceBuilder_.getMessageOrBuilder(); } else { return device_ == null ? org.apache.mesos.v1.Protos.Device.Number.getDefaultInstance() : device_; } } /** *
             * Stats are grouped by block devices. If `device` is not
             * set, it represents `Total`.
             * 
* * optional .mesos.v1.Device.Number device = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Device.Number, org.apache.mesos.v1.Protos.Device.Number.Builder, org.apache.mesos.v1.Protos.Device.NumberOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.Device.Number, org.apache.mesos.v1.Protos.Device.Number.Builder, org.apache.mesos.v1.Protos.Device.NumberOrBuilder>( getDevice(), getParentForChildren(), isClean()); device_ = null; } return deviceBuilder_; } private java.util.List ioServiced_ = java.util.Collections.emptyList(); private void ensureIoServicedIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ioServiced_ = new java.util.ArrayList(ioServiced_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> ioServicedBuilder_; /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public java.util.List getIoServicedList() { if (ioServicedBuilder_ == null) { return java.util.Collections.unmodifiableList(ioServiced_); } else { return ioServicedBuilder_.getMessageList(); } } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public int getIoServicedCount() { if (ioServicedBuilder_ == null) { return ioServiced_.size(); } else { return ioServicedBuilder_.getCount(); } } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiced(int index) { if (ioServicedBuilder_ == null) { return ioServiced_.get(index); } else { return ioServicedBuilder_.getMessage(index); } } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder setIoServiced( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServicedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServicedIsMutable(); ioServiced_.set(index, value); onChanged(); } else { ioServicedBuilder_.setMessage(index, value); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder setIoServiced( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); ioServiced_.set(index, builderForValue.build()); onChanged(); } else { ioServicedBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder addIoServiced(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServicedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServicedIsMutable(); ioServiced_.add(value); onChanged(); } else { ioServicedBuilder_.addMessage(value); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder addIoServiced( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServicedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServicedIsMutable(); ioServiced_.add(index, value); onChanged(); } else { ioServicedBuilder_.addMessage(index, value); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder addIoServiced( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); ioServiced_.add(builderForValue.build()); onChanged(); } else { ioServicedBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder addIoServiced( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); ioServiced_.add(index, builderForValue.build()); onChanged(); } else { ioServicedBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder addAllIoServiced( java.lang.Iterable values) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ioServiced_); onChanged(); } else { ioServicedBuilder_.addAllMessages(values); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder clearIoServiced() { if (ioServicedBuilder_ == null) { ioServiced_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { ioServicedBuilder_.clear(); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public Builder removeIoServiced(int index) { if (ioServicedBuilder_ == null) { ensureIoServicedIsMutable(); ioServiced_.remove(index); onChanged(); } else { ioServicedBuilder_.remove(index); } return this; } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder getIoServicedBuilder( int index) { return getIoServicedFieldBuilder().getBuilder(index); } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServicedOrBuilder( int index) { if (ioServicedBuilder_ == null) { return ioServiced_.get(index); } else { return ioServicedBuilder_.getMessageOrBuilder(index); } } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public java.util.List getIoServicedOrBuilderList() { if (ioServicedBuilder_ != null) { return ioServicedBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ioServiced_); } } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServicedBuilder() { return getIoServicedFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServicedBuilder( int index) { return getIoServicedFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.throttle.io_serviced
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_serviced = 2; */ public java.util.List getIoServicedBuilderList() { return getIoServicedFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> getIoServicedFieldBuilder() { if (ioServicedBuilder_ == null) { ioServicedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder>( ioServiced_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); ioServiced_ = null; } return ioServicedBuilder_; } private java.util.List ioServiceBytes_ = java.util.Collections.emptyList(); private void ensureIoServiceBytesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { ioServiceBytes_ = new java.util.ArrayList(ioServiceBytes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> ioServiceBytesBuilder_; /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public java.util.List getIoServiceBytesList() { if (ioServiceBytesBuilder_ == null) { return java.util.Collections.unmodifiableList(ioServiceBytes_); } else { return ioServiceBytesBuilder_.getMessageList(); } } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public int getIoServiceBytesCount() { if (ioServiceBytesBuilder_ == null) { return ioServiceBytes_.size(); } else { return ioServiceBytesBuilder_.getCount(); } } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value getIoServiceBytes(int index) { if (ioServiceBytesBuilder_ == null) { return ioServiceBytes_.get(index); } else { return ioServiceBytesBuilder_.getMessage(index); } } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder setIoServiceBytes( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceBytesIsMutable(); ioServiceBytes_.set(index, value); onChanged(); } else { ioServiceBytesBuilder_.setMessage(index, value); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder setIoServiceBytes( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); ioServiceBytes_.set(index, builderForValue.build()); onChanged(); } else { ioServiceBytesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder addIoServiceBytes(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceBytesIsMutable(); ioServiceBytes_.add(value); onChanged(); } else { ioServiceBytesBuilder_.addMessage(value); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder addIoServiceBytes( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value value) { if (ioServiceBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIoServiceBytesIsMutable(); ioServiceBytes_.add(index, value); onChanged(); } else { ioServiceBytesBuilder_.addMessage(index, value); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder addIoServiceBytes( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); ioServiceBytes_.add(builderForValue.build()); onChanged(); } else { ioServiceBytesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder addIoServiceBytes( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder builderForValue) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); ioServiceBytes_.add(index, builderForValue.build()); onChanged(); } else { ioServiceBytesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder addAllIoServiceBytes( java.lang.Iterable values) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ioServiceBytes_); onChanged(); } else { ioServiceBytesBuilder_.addAllMessages(values); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder clearIoServiceBytes() { if (ioServiceBytesBuilder_ == null) { ioServiceBytes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { ioServiceBytesBuilder_.clear(); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public Builder removeIoServiceBytes(int index) { if (ioServiceBytesBuilder_ == null) { ensureIoServiceBytesIsMutable(); ioServiceBytes_.remove(index); onChanged(); } else { ioServiceBytesBuilder_.remove(index); } return this; } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder getIoServiceBytesBuilder( int index) { return getIoServiceBytesFieldBuilder().getBuilder(index); } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder getIoServiceBytesOrBuilder( int index) { if (ioServiceBytesBuilder_ == null) { return ioServiceBytes_.get(index); } else { return ioServiceBytesBuilder_.getMessageOrBuilder(index); } } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public java.util.List getIoServiceBytesOrBuilderList() { if (ioServiceBytesBuilder_ != null) { return ioServiceBytesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ioServiceBytes_); } } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServiceBytesBuilder() { return getIoServiceBytesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder addIoServiceBytesBuilder( int index) { return getIoServiceBytesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.getDefaultInstance()); } /** *
             * blkio.throttle.io_service_bytes
             * 
* * repeated .mesos.v1.CgroupInfo.Blkio.Value io_service_bytes = 3; */ public java.util.List getIoServiceBytesBuilderList() { return getIoServiceBytesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder> getIoServiceBytesFieldBuilder() { if (ioServiceBytesBuilder_ == null) { ioServiceBytesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Value.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ValueOrBuilder>( ioServiceBytes_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); ioServiceBytes_ = null; } return ioServiceBytesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo.Blkio.Throttling.Statistics) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo.Blkio.Throttling.Statistics) private static final org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics(); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Statistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Statistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } 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 { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling other = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling 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.Protos.CgroupInfo.Blkio.Throttling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.Throttling} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo.Blkio.Throttling) org.apache.mesos.v1.Protos.CgroupInfo.Blkio.ThrottlingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Throttling_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling build() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling result = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CgroupInfo.Blkio.Throttling parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo.Blkio.Throttling) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo.Blkio.Throttling) private static final org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling(); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Throttling parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Throttling(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo.Blkio.Statistics) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ java.util.List getCfqList(); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getCfq(int index); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ int getCfqCount(); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ java.util.List getCfqOrBuilderList(); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder getCfqOrBuilder( int index); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ java.util.List getCfqRecursiveList(); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getCfqRecursive(int index); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ int getCfqRecursiveCount(); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ java.util.List getCfqRecursiveOrBuilderList(); /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder getCfqRecursiveOrBuilder( int index); /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ java.util.List getThrottlingList(); /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics getThrottling(int index); /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ int getThrottlingCount(); /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ java.util.List getThrottlingOrBuilderList(); /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.StatisticsOrBuilder getThrottlingOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.Statistics} */ public static final class Statistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo.Blkio.Statistics) StatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use Statistics.newBuilder() to construct. private Statistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Statistics() { cfq_ = java.util.Collections.emptyList(); cfqRecursive_ = java.util.Collections.emptyList(); throttling_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Statistics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { cfq_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } cfq_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { cfqRecursive_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } cfqRecursive_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { throttling_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } throttling_.add( input.readMessage(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { cfq_ = java.util.Collections.unmodifiableList(cfq_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { cfqRecursive_ = java.util.Collections.unmodifiableList(cfqRecursive_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { throttling_ = java.util.Collections.unmodifiableList(throttling_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Statistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.Builder.class); } public static final int CFQ_FIELD_NUMBER = 1; private java.util.List cfq_; /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public java.util.List getCfqList() { return cfq_; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public java.util.List getCfqOrBuilderList() { return cfq_; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public int getCfqCount() { return cfq_.size(); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getCfq(int index) { return cfq_.get(index); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder getCfqOrBuilder( int index) { return cfq_.get(index); } public static final int CFQ_RECURSIVE_FIELD_NUMBER = 2; private java.util.List cfqRecursive_; /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public java.util.List getCfqRecursiveList() { return cfqRecursive_; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public java.util.List getCfqRecursiveOrBuilderList() { return cfqRecursive_; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public int getCfqRecursiveCount() { return cfqRecursive_.size(); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getCfqRecursive(int index) { return cfqRecursive_.get(index); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder getCfqRecursiveOrBuilder( int index) { return cfqRecursive_.get(index); } public static final int THROTTLING_FIELD_NUMBER = 3; private java.util.List throttling_; /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public java.util.List getThrottlingList() { return throttling_; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public java.util.List getThrottlingOrBuilderList() { return throttling_; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public int getThrottlingCount() { return throttling_.size(); } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics getThrottling(int index) { return throttling_.get(index); } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.StatisticsOrBuilder getThrottlingOrBuilder( int index) { return throttling_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getCfqCount(); i++) { if (!getCfq(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCfqRecursiveCount(); i++) { if (!getCfqRecursive(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getThrottlingCount(); i++) { if (!getThrottling(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < cfq_.size(); i++) { output.writeMessage(1, cfq_.get(i)); } for (int i = 0; i < cfqRecursive_.size(); i++) { output.writeMessage(2, cfqRecursive_.get(i)); } for (int i = 0; i < throttling_.size(); i++) { output.writeMessage(3, throttling_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < cfq_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, cfq_.get(i)); } for (int i = 0; i < cfqRecursive_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, cfqRecursive_.get(i)); } for (int i = 0; i < throttling_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, throttling_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics other = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics) obj; boolean result = true; result = result && getCfqList() .equals(other.getCfqList()); result = result && getCfqRecursiveList() .equals(other.getCfqRecursiveList()); result = result && getThrottlingList() .equals(other.getThrottlingList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCfqCount() > 0) { hash = (37 * hash) + CFQ_FIELD_NUMBER; hash = (53 * hash) + getCfqList().hashCode(); } if (getCfqRecursiveCount() > 0) { hash = (37 * hash) + CFQ_RECURSIVE_FIELD_NUMBER; hash = (53 * hash) + getCfqRecursiveList().hashCode(); } if (getThrottlingCount() > 0) { hash = (37 * hash) + THROTTLING_FIELD_NUMBER; hash = (53 * hash) + getThrottlingList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics 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.Protos.CgroupInfo.Blkio.Statistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.CgroupInfo.Blkio.Statistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo.Blkio.Statistics) org.apache.mesos.v1.Protos.CgroupInfo.Blkio.StatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Statistics_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCfqFieldBuilder(); getCfqRecursiveFieldBuilder(); getThrottlingFieldBuilder(); } } public Builder clear() { super.clear(); if (cfqBuilder_ == null) { cfq_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { cfqBuilder_.clear(); } if (cfqRecursiveBuilder_ == null) { cfqRecursive_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { cfqRecursiveBuilder_.clear(); } if (throttlingBuilder_ == null) { throttling_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { throttlingBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_Statistics_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics build() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics result = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics(this); int from_bitField0_ = bitField0_; if (cfqBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { cfq_ = java.util.Collections.unmodifiableList(cfq_); bitField0_ = (bitField0_ & ~0x00000001); } result.cfq_ = cfq_; } else { result.cfq_ = cfqBuilder_.build(); } if (cfqRecursiveBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { cfqRecursive_ = java.util.Collections.unmodifiableList(cfqRecursive_); bitField0_ = (bitField0_ & ~0x00000002); } result.cfqRecursive_ = cfqRecursive_; } else { result.cfqRecursive_ = cfqRecursiveBuilder_.build(); } if (throttlingBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { throttling_ = java.util.Collections.unmodifiableList(throttling_); bitField0_ = (bitField0_ & ~0x00000004); } result.throttling_ = throttling_; } else { result.throttling_ = throttlingBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics.getDefaultInstance()) return this; if (cfqBuilder_ == null) { if (!other.cfq_.isEmpty()) { if (cfq_.isEmpty()) { cfq_ = other.cfq_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCfqIsMutable(); cfq_.addAll(other.cfq_); } onChanged(); } } else { if (!other.cfq_.isEmpty()) { if (cfqBuilder_.isEmpty()) { cfqBuilder_.dispose(); cfqBuilder_ = null; cfq_ = other.cfq_; bitField0_ = (bitField0_ & ~0x00000001); cfqBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCfqFieldBuilder() : null; } else { cfqBuilder_.addAllMessages(other.cfq_); } } } if (cfqRecursiveBuilder_ == null) { if (!other.cfqRecursive_.isEmpty()) { if (cfqRecursive_.isEmpty()) { cfqRecursive_ = other.cfqRecursive_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCfqRecursiveIsMutable(); cfqRecursive_.addAll(other.cfqRecursive_); } onChanged(); } } else { if (!other.cfqRecursive_.isEmpty()) { if (cfqRecursiveBuilder_.isEmpty()) { cfqRecursiveBuilder_.dispose(); cfqRecursiveBuilder_ = null; cfqRecursive_ = other.cfqRecursive_; bitField0_ = (bitField0_ & ~0x00000002); cfqRecursiveBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCfqRecursiveFieldBuilder() : null; } else { cfqRecursiveBuilder_.addAllMessages(other.cfqRecursive_); } } } if (throttlingBuilder_ == null) { if (!other.throttling_.isEmpty()) { if (throttling_.isEmpty()) { throttling_ = other.throttling_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureThrottlingIsMutable(); throttling_.addAll(other.throttling_); } onChanged(); } } else { if (!other.throttling_.isEmpty()) { if (throttlingBuilder_.isEmpty()) { throttlingBuilder_.dispose(); throttlingBuilder_ = null; throttling_ = other.throttling_; bitField0_ = (bitField0_ & ~0x00000004); throttlingBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getThrottlingFieldBuilder() : null; } else { throttlingBuilder_.addAllMessages(other.throttling_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getCfqCount(); i++) { if (!getCfq(i).isInitialized()) { return false; } } for (int i = 0; i < getCfqRecursiveCount(); i++) { if (!getCfqRecursive(i).isInitialized()) { return false; } } for (int i = 0; i < getThrottlingCount(); i++) { if (!getThrottling(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.Protos.CgroupInfo.Blkio.Statistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List cfq_ = java.util.Collections.emptyList(); private void ensureCfqIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { cfq_ = new java.util.ArrayList(cfq_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder> cfqBuilder_; /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public java.util.List getCfqList() { if (cfqBuilder_ == null) { return java.util.Collections.unmodifiableList(cfq_); } else { return cfqBuilder_.getMessageList(); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public int getCfqCount() { if (cfqBuilder_ == null) { return cfq_.size(); } else { return cfqBuilder_.getCount(); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getCfq(int index) { if (cfqBuilder_ == null) { return cfq_.get(index); } else { return cfqBuilder_.getMessage(index); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder setCfq( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics value) { if (cfqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfqIsMutable(); cfq_.set(index, value); onChanged(); } else { cfqBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder setCfq( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder builderForValue) { if (cfqBuilder_ == null) { ensureCfqIsMutable(); cfq_.set(index, builderForValue.build()); onChanged(); } else { cfqBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder addCfq(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics value) { if (cfqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfqIsMutable(); cfq_.add(value); onChanged(); } else { cfqBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder addCfq( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics value) { if (cfqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfqIsMutable(); cfq_.add(index, value); onChanged(); } else { cfqBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder addCfq( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder builderForValue) { if (cfqBuilder_ == null) { ensureCfqIsMutable(); cfq_.add(builderForValue.build()); onChanged(); } else { cfqBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder addCfq( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder builderForValue) { if (cfqBuilder_ == null) { ensureCfqIsMutable(); cfq_.add(index, builderForValue.build()); onChanged(); } else { cfqBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder addAllCfq( java.lang.Iterable values) { if (cfqBuilder_ == null) { ensureCfqIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, cfq_); onChanged(); } else { cfqBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder clearCfq() { if (cfqBuilder_ == null) { cfq_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { cfqBuilder_.clear(); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public Builder removeCfq(int index) { if (cfqBuilder_ == null) { ensureCfqIsMutable(); cfq_.remove(index); onChanged(); } else { cfqBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder getCfqBuilder( int index) { return getCfqFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder getCfqOrBuilder( int index) { if (cfqBuilder_ == null) { return cfq_.get(index); } else { return cfqBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public java.util.List getCfqOrBuilderList() { if (cfqBuilder_ != null) { return cfqBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cfq_); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder addCfqBuilder() { return getCfqFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.getDefaultInstance()); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder addCfqBuilder( int index) { return getCfqFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.getDefaultInstance()); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq = 1; */ public java.util.List getCfqBuilderList() { return getCfqFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder> getCfqFieldBuilder() { if (cfqBuilder_ == null) { cfqBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder>( cfq_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); cfq_ = null; } return cfqBuilder_; } private java.util.List cfqRecursive_ = java.util.Collections.emptyList(); private void ensureCfqRecursiveIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { cfqRecursive_ = new java.util.ArrayList(cfqRecursive_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder> cfqRecursiveBuilder_; /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public java.util.List getCfqRecursiveList() { if (cfqRecursiveBuilder_ == null) { return java.util.Collections.unmodifiableList(cfqRecursive_); } else { return cfqRecursiveBuilder_.getMessageList(); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public int getCfqRecursiveCount() { if (cfqRecursiveBuilder_ == null) { return cfqRecursive_.size(); } else { return cfqRecursiveBuilder_.getCount(); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics getCfqRecursive(int index) { if (cfqRecursiveBuilder_ == null) { return cfqRecursive_.get(index); } else { return cfqRecursiveBuilder_.getMessage(index); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder setCfqRecursive( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics value) { if (cfqRecursiveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfqRecursiveIsMutable(); cfqRecursive_.set(index, value); onChanged(); } else { cfqRecursiveBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder setCfqRecursive( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder builderForValue) { if (cfqRecursiveBuilder_ == null) { ensureCfqRecursiveIsMutable(); cfqRecursive_.set(index, builderForValue.build()); onChanged(); } else { cfqRecursiveBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder addCfqRecursive(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics value) { if (cfqRecursiveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfqRecursiveIsMutable(); cfqRecursive_.add(value); onChanged(); } else { cfqRecursiveBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder addCfqRecursive( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics value) { if (cfqRecursiveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfqRecursiveIsMutable(); cfqRecursive_.add(index, value); onChanged(); } else { cfqRecursiveBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder addCfqRecursive( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder builderForValue) { if (cfqRecursiveBuilder_ == null) { ensureCfqRecursiveIsMutable(); cfqRecursive_.add(builderForValue.build()); onChanged(); } else { cfqRecursiveBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder addCfqRecursive( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder builderForValue) { if (cfqRecursiveBuilder_ == null) { ensureCfqRecursiveIsMutable(); cfqRecursive_.add(index, builderForValue.build()); onChanged(); } else { cfqRecursiveBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder addAllCfqRecursive( java.lang.Iterable values) { if (cfqRecursiveBuilder_ == null) { ensureCfqRecursiveIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, cfqRecursive_); onChanged(); } else { cfqRecursiveBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder clearCfqRecursive() { if (cfqRecursiveBuilder_ == null) { cfqRecursive_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { cfqRecursiveBuilder_.clear(); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public Builder removeCfqRecursive(int index) { if (cfqRecursiveBuilder_ == null) { ensureCfqRecursiveIsMutable(); cfqRecursive_.remove(index); onChanged(); } else { cfqRecursiveBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder getCfqRecursiveBuilder( int index) { return getCfqRecursiveFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder getCfqRecursiveOrBuilder( int index) { if (cfqRecursiveBuilder_ == null) { return cfqRecursive_.get(index); } else { return cfqRecursiveBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public java.util.List getCfqRecursiveOrBuilderList() { if (cfqRecursiveBuilder_ != null) { return cfqRecursiveBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cfqRecursive_); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder addCfqRecursiveBuilder() { return getCfqRecursiveFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.getDefaultInstance()); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder addCfqRecursiveBuilder( int index) { return getCfqRecursiveFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.getDefaultInstance()); } /** * repeated .mesos.v1.CgroupInfo.Blkio.CFQ.Statistics cfq_recursive = 2; */ public java.util.List getCfqRecursiveBuilderList() { return getCfqRecursiveFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder> getCfqRecursiveFieldBuilder() { if (cfqRecursiveBuilder_ == null) { cfqRecursiveBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.CFQ.StatisticsOrBuilder>( cfqRecursive_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); cfqRecursive_ = null; } return cfqRecursiveBuilder_; } private java.util.List throttling_ = java.util.Collections.emptyList(); private void ensureThrottlingIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { throttling_ = new java.util.ArrayList(throttling_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.StatisticsOrBuilder> throttlingBuilder_; /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public java.util.List getThrottlingList() { if (throttlingBuilder_ == null) { return java.util.Collections.unmodifiableList(throttling_); } else { return throttlingBuilder_.getMessageList(); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public int getThrottlingCount() { if (throttlingBuilder_ == null) { return throttling_.size(); } else { return throttlingBuilder_.getCount(); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics getThrottling(int index) { if (throttlingBuilder_ == null) { return throttling_.get(index); } else { return throttlingBuilder_.getMessage(index); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder setThrottling( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics value) { if (throttlingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureThrottlingIsMutable(); throttling_.set(index, value); onChanged(); } else { throttlingBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder setThrottling( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder builderForValue) { if (throttlingBuilder_ == null) { ensureThrottlingIsMutable(); throttling_.set(index, builderForValue.build()); onChanged(); } else { throttlingBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder addThrottling(org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics value) { if (throttlingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureThrottlingIsMutable(); throttling_.add(value); onChanged(); } else { throttlingBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder addThrottling( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics value) { if (throttlingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureThrottlingIsMutable(); throttling_.add(index, value); onChanged(); } else { throttlingBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder addThrottling( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder builderForValue) { if (throttlingBuilder_ == null) { ensureThrottlingIsMutable(); throttling_.add(builderForValue.build()); onChanged(); } else { throttlingBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder addThrottling( int index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder builderForValue) { if (throttlingBuilder_ == null) { ensureThrottlingIsMutable(); throttling_.add(index, builderForValue.build()); onChanged(); } else { throttlingBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder addAllThrottling( java.lang.Iterable values) { if (throttlingBuilder_ == null) { ensureThrottlingIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, throttling_); onChanged(); } else { throttlingBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder clearThrottling() { if (throttlingBuilder_ == null) { throttling_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { throttlingBuilder_.clear(); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public Builder removeThrottling(int index) { if (throttlingBuilder_ == null) { ensureThrottlingIsMutable(); throttling_.remove(index); onChanged(); } else { throttlingBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder getThrottlingBuilder( int index) { return getThrottlingFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.StatisticsOrBuilder getThrottlingOrBuilder( int index) { if (throttlingBuilder_ == null) { return throttling_.get(index); } else { return throttlingBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public java.util.List getThrottlingOrBuilderList() { if (throttlingBuilder_ != null) { return throttlingBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(throttling_); } } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder addThrottlingBuilder() { return getThrottlingFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.getDefaultInstance()); } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder addThrottlingBuilder( int index) { return getThrottlingFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.getDefaultInstance()); } /** * repeated .mesos.v1.CgroupInfo.Blkio.Throttling.Statistics throttling = 3; */ public java.util.List getThrottlingBuilderList() { return getThrottlingFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.StatisticsOrBuilder> getThrottlingFieldBuilder() { if (throttlingBuilder_ == null) { throttlingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.Statistics.Builder, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Throttling.StatisticsOrBuilder>( throttling_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); throttling_ = null; } return throttlingBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo.Blkio.Statistics) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo.Blkio.Statistics) private static final org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics(); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Statistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Statistics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Statistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } 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 { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo.Blkio other = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio 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.Protos.CgroupInfo.Blkio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo.Blkio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Configuration of a blkio cgroup subsystem.
       * 
* * Protobuf type {@code mesos.v1.CgroupInfo.Blkio} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo.Blkio) org.apache.mesos.v1.Protos.CgroupInfo.BlkioOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.Blkio.class, org.apache.mesos.v1.Protos.CgroupInfo.Blkio.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.Blkio.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_Blkio_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.Blkio.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio build() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo.Blkio result = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo.Blkio) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo.Blkio)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo.Blkio other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.Blkio.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CgroupInfo.Blkio parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo.Blkio) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo.Blkio) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo.Blkio) private static final org.apache.mesos.v1.Protos.CgroupInfo.Blkio DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo.Blkio(); } public static org.apache.mesos.v1.Protos.CgroupInfo.Blkio getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Blkio parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Blkio(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo.Blkio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NetClsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.CgroupInfo.NetCls) com.google.protobuf.MessageOrBuilder { /** *
       * The 32-bit classid consists of two parts, a 16 bit major handle
       * and a 16-bit minor handle. The major and minor handle are
       * represented using the format 0xAAAABBBB, where 0xAAAA is the
       * 16-bit major handle and 0xBBBB is the 16-bit minor handle.
       * 
* * optional uint32 classid = 1; */ boolean hasClassid(); /** *
       * The 32-bit classid consists of two parts, a 16 bit major handle
       * and a 16-bit minor handle. The major and minor handle are
       * represented using the format 0xAAAABBBB, where 0xAAAA is the
       * 16-bit major handle and 0xBBBB is the 16-bit minor handle.
       * 
* * optional uint32 classid = 1; */ int getClassid(); } /** *
     * Configuration of a net_cls cgroup subsystem.
     * 
* * Protobuf type {@code mesos.v1.CgroupInfo.NetCls} */ public static final class NetCls extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.CgroupInfo.NetCls) NetClsOrBuilder { private static final long serialVersionUID = 0L; // Use NetCls.newBuilder() to construct. private NetCls(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NetCls() { classid_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NetCls( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; classid_ = 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).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_NetCls_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_NetCls_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.NetCls.class, org.apache.mesos.v1.Protos.CgroupInfo.NetCls.Builder.class); } private int bitField0_; public static final int CLASSID_FIELD_NUMBER = 1; private int classid_; /** *
       * The 32-bit classid consists of two parts, a 16 bit major handle
       * and a 16-bit minor handle. The major and minor handle are
       * represented using the format 0xAAAABBBB, where 0xAAAA is the
       * 16-bit major handle and 0xBBBB is the 16-bit minor handle.
       * 
* * optional uint32 classid = 1; */ public boolean hasClassid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * The 32-bit classid consists of two parts, a 16 bit major handle
       * and a 16-bit minor handle. The major and minor handle are
       * represented using the format 0xAAAABBBB, where 0xAAAA is the
       * 16-bit major handle and 0xBBBB is the 16-bit minor handle.
       * 
* * optional uint32 classid = 1; */ public int getClassid() { return classid_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, classid_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, classid_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo.NetCls)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo.NetCls other = (org.apache.mesos.v1.Protos.CgroupInfo.NetCls) obj; boolean result = true; result = result && (hasClassid() == other.hasClassid()); if (hasClassid()) { result = result && (getClassid() == other.getClassid()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasClassid()) { hash = (37 * hash) + CLASSID_FIELD_NUMBER; hash = (53 * hash) + getClassid(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls 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.Protos.CgroupInfo.NetCls parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo.NetCls prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Configuration of a net_cls cgroup subsystem.
       * 
* * Protobuf type {@code mesos.v1.CgroupInfo.NetCls} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo.NetCls) org.apache.mesos.v1.Protos.CgroupInfo.NetClsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_NetCls_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_NetCls_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.NetCls.class, org.apache.mesos.v1.Protos.CgroupInfo.NetCls.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.NetCls.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); classid_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_NetCls_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo.NetCls getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.NetCls.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo.NetCls build() { org.apache.mesos.v1.Protos.CgroupInfo.NetCls result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo.NetCls buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo.NetCls result = new org.apache.mesos.v1.Protos.CgroupInfo.NetCls(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.classid_ = classid_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo.NetCls) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo.NetCls)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo.NetCls other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.NetCls.getDefaultInstance()) return this; if (other.hasClassid()) { setClassid(other.getClassid()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CgroupInfo.NetCls parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo.NetCls) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int classid_ ; /** *
         * The 32-bit classid consists of two parts, a 16 bit major handle
         * and a 16-bit minor handle. The major and minor handle are
         * represented using the format 0xAAAABBBB, where 0xAAAA is the
         * 16-bit major handle and 0xBBBB is the 16-bit minor handle.
         * 
* * optional uint32 classid = 1; */ public boolean hasClassid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
         * The 32-bit classid consists of two parts, a 16 bit major handle
         * and a 16-bit minor handle. The major and minor handle are
         * represented using the format 0xAAAABBBB, where 0xAAAA is the
         * 16-bit major handle and 0xBBBB is the 16-bit minor handle.
         * 
* * optional uint32 classid = 1; */ public int getClassid() { return classid_; } /** *
         * The 32-bit classid consists of two parts, a 16 bit major handle
         * and a 16-bit minor handle. The major and minor handle are
         * represented using the format 0xAAAABBBB, where 0xAAAA is the
         * 16-bit major handle and 0xBBBB is the 16-bit minor handle.
         * 
* * optional uint32 classid = 1; */ public Builder setClassid(int value) { bitField0_ |= 0x00000001; classid_ = value; onChanged(); return this; } /** *
         * The 32-bit classid consists of two parts, a 16 bit major handle
         * and a 16-bit minor handle. The major and minor handle are
         * represented using the format 0xAAAABBBB, where 0xAAAA is the
         * 16-bit major handle and 0xBBBB is the 16-bit minor handle.
         * 
* * optional uint32 classid = 1; */ public Builder clearClassid() { bitField0_ = (bitField0_ & ~0x00000001); classid_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo.NetCls) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo.NetCls) private static final org.apache.mesos.v1.Protos.CgroupInfo.NetCls DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo.NetCls(); } public static org.apache.mesos.v1.Protos.CgroupInfo.NetCls getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NetCls parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NetCls(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo.NetCls getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NET_CLS_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.CgroupInfo.NetCls netCls_; /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public boolean hasNetCls() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.NetCls getNetCls() { return netCls_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.NetCls.getDefaultInstance() : netCls_; } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.NetClsOrBuilder getNetClsOrBuilder() { return netCls_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.NetCls.getDefaultInstance() : netCls_; } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getNetCls()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNetCls()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.CgroupInfo)) { return super.equals(obj); } org.apache.mesos.v1.Protos.CgroupInfo other = (org.apache.mesos.v1.Protos.CgroupInfo) obj; boolean result = true; result = result && (hasNetCls() == other.hasNetCls()); if (hasNetCls()) { result = result && getNetCls() .equals(other.getNetCls()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNetCls()) { hash = (37 * hash) + NET_CLS_FIELD_NUMBER; hash = (53 * hash) + getNetCls().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.CgroupInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo 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.Protos.CgroupInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.CgroupInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.CgroupInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.CgroupInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.CgroupInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Linux control group (cgroup) information.
     * 
* * Protobuf type {@code mesos.v1.CgroupInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.CgroupInfo) org.apache.mesos.v1.Protos.CgroupInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.CgroupInfo.class, org.apache.mesos.v1.Protos.CgroupInfo.Builder.class); } // Construct using org.apache.mesos.v1.Protos.CgroupInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNetClsFieldBuilder(); } } public Builder clear() { super.clear(); if (netClsBuilder_ == null) { netCls_ = null; } else { netClsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_CgroupInfo_descriptor; } public org.apache.mesos.v1.Protos.CgroupInfo getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.CgroupInfo.getDefaultInstance(); } public org.apache.mesos.v1.Protos.CgroupInfo build() { org.apache.mesos.v1.Protos.CgroupInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.CgroupInfo buildPartial() { org.apache.mesos.v1.Protos.CgroupInfo result = new org.apache.mesos.v1.Protos.CgroupInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (netClsBuilder_ == null) { result.netCls_ = netCls_; } else { result.netCls_ = netClsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.CgroupInfo) { return mergeFrom((org.apache.mesos.v1.Protos.CgroupInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.CgroupInfo other) { if (other == org.apache.mesos.v1.Protos.CgroupInfo.getDefaultInstance()) return this; if (other.hasNetCls()) { mergeNetCls(other.getNetCls()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.Protos.CgroupInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.CgroupInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.CgroupInfo.NetCls netCls_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.NetCls, org.apache.mesos.v1.Protos.CgroupInfo.NetCls.Builder, org.apache.mesos.v1.Protos.CgroupInfo.NetClsOrBuilder> netClsBuilder_; /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public boolean hasNetCls() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.NetCls getNetCls() { if (netClsBuilder_ == null) { return netCls_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.NetCls.getDefaultInstance() : netCls_; } else { return netClsBuilder_.getMessage(); } } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public Builder setNetCls(org.apache.mesos.v1.Protos.CgroupInfo.NetCls value) { if (netClsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } netCls_ = value; onChanged(); } else { netClsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public Builder setNetCls( org.apache.mesos.v1.Protos.CgroupInfo.NetCls.Builder builderForValue) { if (netClsBuilder_ == null) { netCls_ = builderForValue.build(); onChanged(); } else { netClsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public Builder mergeNetCls(org.apache.mesos.v1.Protos.CgroupInfo.NetCls value) { if (netClsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && netCls_ != null && netCls_ != org.apache.mesos.v1.Protos.CgroupInfo.NetCls.getDefaultInstance()) { netCls_ = org.apache.mesos.v1.Protos.CgroupInfo.NetCls.newBuilder(netCls_).mergeFrom(value).buildPartial(); } else { netCls_ = value; } onChanged(); } else { netClsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public Builder clearNetCls() { if (netClsBuilder_ == null) { netCls_ = null; onChanged(); } else { netClsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.NetCls.Builder getNetClsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNetClsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ public org.apache.mesos.v1.Protos.CgroupInfo.NetClsOrBuilder getNetClsOrBuilder() { if (netClsBuilder_ != null) { return netClsBuilder_.getMessageOrBuilder(); } else { return netCls_ == null ? org.apache.mesos.v1.Protos.CgroupInfo.NetCls.getDefaultInstance() : netCls_; } } /** * optional .mesos.v1.CgroupInfo.NetCls net_cls = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.NetCls, org.apache.mesos.v1.Protos.CgroupInfo.NetCls.Builder, org.apache.mesos.v1.Protos.CgroupInfo.NetClsOrBuilder> getNetClsFieldBuilder() { if (netClsBuilder_ == null) { netClsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.mesos.v1.Protos.CgroupInfo.NetCls, org.apache.mesos.v1.Protos.CgroupInfo.NetCls.Builder, org.apache.mesos.v1.Protos.CgroupInfo.NetClsOrBuilder>( getNetCls(), getParentForChildren(), isClean()); netCls_ = null; } return netClsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.CgroupInfo) } // @@protoc_insertion_point(class_scope:mesos.v1.CgroupInfo) private static final org.apache.mesos.v1.Protos.CgroupInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.CgroupInfo(); } public static org.apache.mesos.v1.Protos.CgroupInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CgroupInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CgroupInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.CgroupInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LabelsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Labels) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Label labels = 1; */ java.util.List getLabelsList(); /** * repeated .mesos.v1.Label labels = 1; */ org.apache.mesos.v1.Protos.Label getLabels(int index); /** * repeated .mesos.v1.Label labels = 1; */ int getLabelsCount(); /** * repeated .mesos.v1.Label labels = 1; */ java.util.List getLabelsOrBuilderList(); /** * repeated .mesos.v1.Label labels = 1; */ org.apache.mesos.v1.Protos.LabelOrBuilder getLabelsOrBuilder( int index); } /** *
   **
   * Collection of labels. Labels should not contain duplicate key-value
   * pairs.
   * 
* * Protobuf type {@code mesos.v1.Labels} */ public static final class Labels extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Labels) LabelsOrBuilder { private static final long serialVersionUID = 0L; // Use Labels.newBuilder() to construct. private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Labels() { labels_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Labels( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { labels_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } labels_.add( input.readMessage(org.apache.mesos.v1.Protos.Label.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { labels_ = java.util.Collections.unmodifiableList(labels_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Labels_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Labels_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Labels.class, org.apache.mesos.v1.Protos.Labels.Builder.class); } public static final int LABELS_FIELD_NUMBER = 1; private java.util.List labels_; /** * repeated .mesos.v1.Label labels = 1; */ public java.util.List getLabelsList() { return labels_; } /** * repeated .mesos.v1.Label labels = 1; */ public java.util.List getLabelsOrBuilderList() { return labels_; } /** * repeated .mesos.v1.Label labels = 1; */ public int getLabelsCount() { return labels_.size(); } /** * repeated .mesos.v1.Label labels = 1; */ public org.apache.mesos.v1.Protos.Label getLabels(int index) { return labels_.get(index); } /** * repeated .mesos.v1.Label labels = 1; */ public org.apache.mesos.v1.Protos.LabelOrBuilder getLabelsOrBuilder( int index) { return labels_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getLabelsCount(); i++) { if (!getLabels(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < labels_.size(); i++) { output.writeMessage(1, labels_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < labels_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, labels_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Labels)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Labels other = (org.apache.mesos.v1.Protos.Labels) obj; boolean result = true; result = result && getLabelsList() .equals(other.getLabelsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getLabelsCount() > 0) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabelsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Labels parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Labels parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Labels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Labels 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.Protos.Labels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Labels parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Labels parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Labels parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Labels parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Labels parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Labels parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Labels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Labels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Collection of labels. Labels should not contain duplicate key-value
     * pairs.
     * 
* * Protobuf type {@code mesos.v1.Labels} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Labels) org.apache.mesos.v1.Protos.LabelsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Labels_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Labels_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Labels.class, org.apache.mesos.v1.Protos.Labels.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Labels.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLabelsFieldBuilder(); } } public Builder clear() { super.clear(); if (labelsBuilder_ == null) { labels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { labelsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Labels_descriptor; } public org.apache.mesos.v1.Protos.Labels getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Labels.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Labels build() { org.apache.mesos.v1.Protos.Labels result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Labels buildPartial() { org.apache.mesos.v1.Protos.Labels result = new org.apache.mesos.v1.Protos.Labels(this); int from_bitField0_ = bitField0_; if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { labels_ = java.util.Collections.unmodifiableList(labels_); bitField0_ = (bitField0_ & ~0x00000001); } result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Labels) { return mergeFrom((org.apache.mesos.v1.Protos.Labels)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Labels other) { if (other == org.apache.mesos.v1.Protos.Labels.getDefaultInstance()) return this; if (labelsBuilder_ == null) { if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } } else { if (!other.labels_.isEmpty()) { if (labelsBuilder_.isEmpty()) { labelsBuilder_.dispose(); labelsBuilder_ = null; labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000001); labelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelsFieldBuilder() : null; } else { labelsBuilder_.addAllMessages(other.labels_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getLabelsCount(); i++) { if (!getLabels(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.Protos.Labels parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Labels) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List labels_ = java.util.Collections.emptyList(); private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { labels_ = new java.util.ArrayList(labels_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Label, org.apache.mesos.v1.Protos.Label.Builder, org.apache.mesos.v1.Protos.LabelOrBuilder> labelsBuilder_; /** * repeated .mesos.v1.Label labels = 1; */ public java.util.List getLabelsList() { if (labelsBuilder_ == null) { return java.util.Collections.unmodifiableList(labels_); } else { return labelsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Label labels = 1; */ public int getLabelsCount() { if (labelsBuilder_ == null) { return labels_.size(); } else { return labelsBuilder_.getCount(); } } /** * repeated .mesos.v1.Label labels = 1; */ public org.apache.mesos.v1.Protos.Label getLabels(int index) { if (labelsBuilder_ == null) { return labels_.get(index); } else { return labelsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Label labels = 1; */ public Builder setLabels( int index, org.apache.mesos.v1.Protos.Label value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); } else { labelsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public Builder setLabels( int index, org.apache.mesos.v1.Protos.Label.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.set(index, builderForValue.build()); onChanged(); } else { labelsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public Builder addLabels(org.apache.mesos.v1.Protos.Label value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(value); onChanged(); } else { labelsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public Builder addLabels( int index, org.apache.mesos.v1.Protos.Label value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(index, value); onChanged(); } else { labelsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public Builder addLabels( org.apache.mesos.v1.Protos.Label.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(builderForValue.build()); onChanged(); } else { labelsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public Builder addLabels( int index, org.apache.mesos.v1.Protos.Label.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(index, builderForValue.build()); onChanged(); } else { labelsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public Builder addAllLabels( java.lang.Iterable values) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, labels_); onChanged(); } else { labelsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { labelsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public Builder removeLabels(int index) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.remove(index); onChanged(); } else { labelsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Label labels = 1; */ public org.apache.mesos.v1.Protos.Label.Builder getLabelsBuilder( int index) { return getLabelsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Label labels = 1; */ public org.apache.mesos.v1.Protos.LabelOrBuilder getLabelsOrBuilder( int index) { if (labelsBuilder_ == null) { return labels_.get(index); } else { return labelsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Label labels = 1; */ public java.util.List getLabelsOrBuilderList() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(labels_); } } /** * repeated .mesos.v1.Label labels = 1; */ public org.apache.mesos.v1.Protos.Label.Builder addLabelsBuilder() { return getLabelsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Label.getDefaultInstance()); } /** * repeated .mesos.v1.Label labels = 1; */ public org.apache.mesos.v1.Protos.Label.Builder addLabelsBuilder( int index) { return getLabelsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Label.getDefaultInstance()); } /** * repeated .mesos.v1.Label labels = 1; */ public java.util.List getLabelsBuilderList() { return getLabelsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Label, org.apache.mesos.v1.Protos.Label.Builder, org.apache.mesos.v1.Protos.LabelOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.mesos.v1.Protos.Label, org.apache.mesos.v1.Protos.Label.Builder, org.apache.mesos.v1.Protos.LabelOrBuilder>( labels_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Labels) } // @@protoc_insertion_point(class_scope:mesos.v1.Labels) private static final org.apache.mesos.v1.Protos.Labels DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Labels(); } public static org.apache.mesos.v1.Protos.Labels getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Labels parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Labels(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.mesos.v1.Protos.Labels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LabelOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.Label) com.google.protobuf.MessageOrBuilder { /** * required string key = 1; */ boolean hasKey(); /** * required string key = 1; */ java.lang.String getKey(); /** * required string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * optional string value = 2; */ boolean hasValue(); /** * optional string value = 2; */ java.lang.String getValue(); /** * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** *
   **
   * Key, value pair used to store free form user-data.
   * 
* * Protobuf type {@code mesos.v1.Label} */ public static final class Label extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mesos.v1.Label) LabelOrBuilder { private static final long serialVersionUID = 0L; // Use Label.newBuilder() to construct. private Label(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Label() { key_ = ""; value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Label( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; value_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Label_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Label_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Label.class, org.apache.mesos.v1.Protos.Label.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * required string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * required string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.mesos.v1.Protos.Label)) { return super.equals(obj); } org.apache.mesos.v1.Protos.Label other = (org.apache.mesos.v1.Protos.Label) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.mesos.v1.Protos.Label parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Label parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Label parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Label 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.Protos.Label parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.Protos.Label parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.Protos.Label parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Label parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Label parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Label parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.mesos.v1.Protos.Label parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.mesos.v1.Protos.Label parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.Protos.Label prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Key, value pair used to store free form user-data.
     * 
* * Protobuf type {@code mesos.v1.Label} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.Label) org.apache.mesos.v1.Protos.LabelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Label_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Label_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.Protos.Label.class, org.apache.mesos.v1.Protos.Label.Builder.class); } // Construct using org.apache.mesos.v1.Protos.Label.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.Protos.internal_static_mesos_v1_Label_descriptor; } public org.apache.mesos.v1.Protos.Label getDefaultInstanceForType() { return org.apache.mesos.v1.Protos.Label.getDefaultInstance(); } public org.apache.mesos.v1.Protos.Label build() { org.apache.mesos.v1.Protos.Label result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.Protos.Label buildPartial() { org.apache.mesos.v1.Protos.Label result = new org.apache.mesos.v1.Protos.Label(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.Protos.Label) { return mergeFrom((org.apache.mesos.v1.Protos.Label)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.Protos.Label other) { if (other == org.apache.mesos.v1.Protos.Label.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasKey()) { 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.Protos.Label parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.Protos.Label) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * required string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string key = 1; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * required string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * required string key = 1; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * optional string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mesos.v1.Label) } // @@protoc_insertion_point(class_scope:mesos.v1.Label) private static final org.apache.mesos.v1.Protos.Label DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.mesos.v1.Protos.Label(); } public static org.apache.mesos.v1.Protos.Label getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser




© 2015 - 2025 Weber Informatics LLC | Privacy Policy