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

org.apache.mesos.v1.maintenance.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/maintenance/maintenance.proto

package org.apache.mesos.v1.maintenance;

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

    /**
     * repeated .mesos.v1.MachineID machine_ids = 1;
     *
     * 
     * Machines affected by this maintenance window.
     * 
*/ java.util.List getMachineIdsList(); /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ org.apache.mesos.v1.Protos.MachineID getMachineIds(int index); /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ int getMachineIdsCount(); /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ java.util.List getMachineIdsOrBuilderList(); /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ org.apache.mesos.v1.Protos.MachineIDOrBuilder getMachineIdsOrBuilder( int index); /** * required .mesos.v1.Unavailability unavailability = 2; * *
     * Interval during which this set of machines is expected to be down.
     * 
*/ boolean hasUnavailability(); /** * required .mesos.v1.Unavailability unavailability = 2; * *
     * Interval during which this set of machines is expected to be down.
     * 
*/ org.apache.mesos.v1.Protos.Unavailability getUnavailability(); /** * required .mesos.v1.Unavailability unavailability = 2; * *
     * Interval during which this set of machines is expected to be down.
     * 
*/ org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder(); } /** * Protobuf type {@code mesos.v1.maintenance.Window} * *
   **
   * A set of machines scheduled to go into maintenance
   * in the same `unavailability`.
   * 
*/ public static final class Window extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.maintenance.Window) WindowOrBuilder { // Use Window.newBuilder() to construct. private Window(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Window(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Window defaultInstance; public static Window getDefaultInstance() { return defaultInstance; } public Window getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Window( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { machineIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } machineIds_.add(input.readMessage(org.apache.mesos.v1.Protos.MachineID.PARSER, extensionRegistry)); break; } case 18: { org.apache.mesos.v1.Protos.Unavailability.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = unavailability_.toBuilder(); } unavailability_ = input.readMessage(org.apache.mesos.v1.Protos.Unavailability.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unavailability_); unavailability_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { machineIds_ = java.util.Collections.unmodifiableList(machineIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Window_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Window_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.maintenance.Protos.Window.class, org.apache.mesos.v1.maintenance.Protos.Window.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Window parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Window(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int MACHINE_IDS_FIELD_NUMBER = 1; private java.util.List machineIds_; /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ public java.util.List getMachineIdsList() { return machineIds_; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ public java.util.List getMachineIdsOrBuilderList() { return machineIds_; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ public int getMachineIdsCount() { return machineIds_.size(); } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ public org.apache.mesos.v1.Protos.MachineID getMachineIds(int index) { return machineIds_.get(index); } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
     * Machines affected by this maintenance window.
     * 
*/ public org.apache.mesos.v1.Protos.MachineIDOrBuilder getMachineIdsOrBuilder( int index) { return machineIds_.get(index); } public static final int UNAVAILABILITY_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.Unavailability unavailability_; /** * required .mesos.v1.Unavailability unavailability = 2; * *
     * Interval during which this set of machines is expected to be down.
     * 
*/ public boolean hasUnavailability() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.Unavailability unavailability = 2; * *
     * Interval during which this set of machines is expected to be down.
     * 
*/ public org.apache.mesos.v1.Protos.Unavailability getUnavailability() { return unavailability_; } /** * required .mesos.v1.Unavailability unavailability = 2; * *
     * Interval during which this set of machines is expected to be down.
     * 
*/ public org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder() { return unavailability_; } private void initFields() { machineIds_ = java.util.Collections.emptyList(); unavailability_ = org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasUnavailability()) { memoizedIsInitialized = 0; return false; } if (!getUnavailability().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < machineIds_.size(); i++) { output.writeMessage(1, machineIds_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(2, unavailability_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < machineIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, machineIds_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, unavailability_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.maintenance.Protos.Window parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.maintenance.Protos.Window 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.maintenance.Protos.Window parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.maintenance.Protos.Window parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.Window parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.Window parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.Window parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.Window parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.Window parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.Window parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.maintenance.Protos.Window prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.maintenance.Window} * *
     **
     * A set of machines scheduled to go into maintenance
     * in the same `unavailability`.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.maintenance.Window) org.apache.mesos.v1.maintenance.Protos.WindowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Window_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Window_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.maintenance.Protos.Window.class, org.apache.mesos.v1.maintenance.Protos.Window.Builder.class); } // Construct using org.apache.mesos.v1.maintenance.Protos.Window.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMachineIdsFieldBuilder(); getUnavailabilityFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (machineIdsBuilder_ == null) { machineIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { machineIdsBuilder_.clear(); } if (unavailabilityBuilder_ == null) { unavailability_ = org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance(); } else { unavailabilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Window_descriptor; } public org.apache.mesos.v1.maintenance.Protos.Window getDefaultInstanceForType() { return org.apache.mesos.v1.maintenance.Protos.Window.getDefaultInstance(); } public org.apache.mesos.v1.maintenance.Protos.Window build() { org.apache.mesos.v1.maintenance.Protos.Window result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.maintenance.Protos.Window buildPartial() { org.apache.mesos.v1.maintenance.Protos.Window result = new org.apache.mesos.v1.maintenance.Protos.Window(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (machineIdsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { machineIds_ = java.util.Collections.unmodifiableList(machineIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.machineIds_ = machineIds_; } else { result.machineIds_ = machineIdsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (unavailabilityBuilder_ == null) { result.unavailability_ = unavailability_; } else { result.unavailability_ = unavailabilityBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.maintenance.Protos.Window) { return mergeFrom((org.apache.mesos.v1.maintenance.Protos.Window)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.maintenance.Protos.Window other) { if (other == org.apache.mesos.v1.maintenance.Protos.Window.getDefaultInstance()) return this; if (machineIdsBuilder_ == null) { if (!other.machineIds_.isEmpty()) { if (machineIds_.isEmpty()) { machineIds_ = other.machineIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMachineIdsIsMutable(); machineIds_.addAll(other.machineIds_); } onChanged(); } } else { if (!other.machineIds_.isEmpty()) { if (machineIdsBuilder_.isEmpty()) { machineIdsBuilder_.dispose(); machineIdsBuilder_ = null; machineIds_ = other.machineIds_; bitField0_ = (bitField0_ & ~0x00000001); machineIdsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMachineIdsFieldBuilder() : null; } else { machineIdsBuilder_.addAllMessages(other.machineIds_); } } } if (other.hasUnavailability()) { mergeUnavailability(other.getUnavailability()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUnavailability()) { return false; } 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.maintenance.Protos.Window parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.maintenance.Protos.Window) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List machineIds_ = java.util.Collections.emptyList(); private void ensureMachineIdsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { machineIds_ = new java.util.ArrayList(machineIds_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder> machineIdsBuilder_; /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public java.util.List getMachineIdsList() { if (machineIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(machineIds_); } else { return machineIdsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public int getMachineIdsCount() { if (machineIdsBuilder_ == null) { return machineIds_.size(); } else { return machineIdsBuilder_.getCount(); } } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public org.apache.mesos.v1.Protos.MachineID getMachineIds(int index) { if (machineIdsBuilder_ == null) { return machineIds_.get(index); } else { return machineIdsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder setMachineIds( int index, org.apache.mesos.v1.Protos.MachineID value) { if (machineIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMachineIdsIsMutable(); machineIds_.set(index, value); onChanged(); } else { machineIdsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder setMachineIds( int index, org.apache.mesos.v1.Protos.MachineID.Builder builderForValue) { if (machineIdsBuilder_ == null) { ensureMachineIdsIsMutable(); machineIds_.set(index, builderForValue.build()); onChanged(); } else { machineIdsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder addMachineIds(org.apache.mesos.v1.Protos.MachineID value) { if (machineIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMachineIdsIsMutable(); machineIds_.add(value); onChanged(); } else { machineIdsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder addMachineIds( int index, org.apache.mesos.v1.Protos.MachineID value) { if (machineIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMachineIdsIsMutable(); machineIds_.add(index, value); onChanged(); } else { machineIdsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder addMachineIds( org.apache.mesos.v1.Protos.MachineID.Builder builderForValue) { if (machineIdsBuilder_ == null) { ensureMachineIdsIsMutable(); machineIds_.add(builderForValue.build()); onChanged(); } else { machineIdsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder addMachineIds( int index, org.apache.mesos.v1.Protos.MachineID.Builder builderForValue) { if (machineIdsBuilder_ == null) { ensureMachineIdsIsMutable(); machineIds_.add(index, builderForValue.build()); onChanged(); } else { machineIdsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder addAllMachineIds( java.lang.Iterable values) { if (machineIdsBuilder_ == null) { ensureMachineIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, machineIds_); onChanged(); } else { machineIdsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder clearMachineIds() { if (machineIdsBuilder_ == null) { machineIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { machineIdsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public Builder removeMachineIds(int index) { if (machineIdsBuilder_ == null) { ensureMachineIdsIsMutable(); machineIds_.remove(index); onChanged(); } else { machineIdsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public org.apache.mesos.v1.Protos.MachineID.Builder getMachineIdsBuilder( int index) { return getMachineIdsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public org.apache.mesos.v1.Protos.MachineIDOrBuilder getMachineIdsOrBuilder( int index) { if (machineIdsBuilder_ == null) { return machineIds_.get(index); } else { return machineIdsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public java.util.List getMachineIdsOrBuilderList() { if (machineIdsBuilder_ != null) { return machineIdsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(machineIds_); } } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public org.apache.mesos.v1.Protos.MachineID.Builder addMachineIdsBuilder() { return getMachineIdsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.MachineID.getDefaultInstance()); } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public org.apache.mesos.v1.Protos.MachineID.Builder addMachineIdsBuilder( int index) { return getMachineIdsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.MachineID.getDefaultInstance()); } /** * repeated .mesos.v1.MachineID machine_ids = 1; * *
       * Machines affected by this maintenance window.
       * 
*/ public java.util.List getMachineIdsBuilderList() { return getMachineIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder> getMachineIdsFieldBuilder() { if (machineIdsBuilder_ == null) { machineIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder>( machineIds_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); machineIds_ = null; } return machineIdsBuilder_; } private org.apache.mesos.v1.Protos.Unavailability unavailability_ = org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.Unavailability, org.apache.mesos.v1.Protos.Unavailability.Builder, org.apache.mesos.v1.Protos.UnavailabilityOrBuilder> unavailabilityBuilder_; /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ public boolean hasUnavailability() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ public org.apache.mesos.v1.Protos.Unavailability getUnavailability() { if (unavailabilityBuilder_ == null) { return unavailability_; } else { return unavailabilityBuilder_.getMessage(); } } /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ 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_ |= 0x00000002; return this; } /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ public Builder setUnavailability( org.apache.mesos.v1.Protos.Unavailability.Builder builderForValue) { if (unavailabilityBuilder_ == null) { unavailability_ = builderForValue.build(); onChanged(); } else { unavailabilityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ public Builder mergeUnavailability(org.apache.mesos.v1.Protos.Unavailability value) { if (unavailabilityBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && 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_ |= 0x00000002; return this; } /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ public Builder clearUnavailability() { if (unavailabilityBuilder_ == null) { unavailability_ = org.apache.mesos.v1.Protos.Unavailability.getDefaultInstance(); onChanged(); } else { unavailabilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ public org.apache.mesos.v1.Protos.Unavailability.Builder getUnavailabilityBuilder() { bitField0_ |= 0x00000002; onChanged(); return getUnavailabilityFieldBuilder().getBuilder(); } /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ public org.apache.mesos.v1.Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder() { if (unavailabilityBuilder_ != null) { return unavailabilityBuilder_.getMessageOrBuilder(); } else { return unavailability_; } } /** * required .mesos.v1.Unavailability unavailability = 2; * *
       * Interval during which this set of machines is expected to be down.
       * 
*/ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.maintenance.Window) } static { defaultInstance = new Window(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.maintenance.Window) } public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.maintenance.Schedule) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.maintenance.Window windows = 1; */ java.util.List getWindowsList(); /** * repeated .mesos.v1.maintenance.Window windows = 1; */ org.apache.mesos.v1.maintenance.Protos.Window getWindows(int index); /** * repeated .mesos.v1.maintenance.Window windows = 1; */ int getWindowsCount(); /** * repeated .mesos.v1.maintenance.Window windows = 1; */ java.util.List getWindowsOrBuilderList(); /** * repeated .mesos.v1.maintenance.Window windows = 1; */ org.apache.mesos.v1.maintenance.Protos.WindowOrBuilder getWindowsOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.maintenance.Schedule} * *
   **
   * A list of maintenance windows.
   * For example, this may represent a rolling restart of agents.
   * 
*/ public static final class Schedule extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.maintenance.Schedule) ScheduleOrBuilder { // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Schedule(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Schedule defaultInstance; public static Schedule getDefaultInstance() { return defaultInstance; } public Schedule getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { windows_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } windows_.add(input.readMessage(org.apache.mesos.v1.maintenance.Protos.Window.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { windows_ = java.util.Collections.unmodifiableList(windows_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Schedule_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.maintenance.Protos.Schedule.class, org.apache.mesos.v1.maintenance.Protos.Schedule.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Schedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Schedule(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int WINDOWS_FIELD_NUMBER = 1; private java.util.List windows_; /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public java.util.List getWindowsList() { return windows_; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public java.util.List getWindowsOrBuilderList() { return windows_; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public int getWindowsCount() { return windows_.size(); } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public org.apache.mesos.v1.maintenance.Protos.Window getWindows(int index) { return windows_.get(index); } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public org.apache.mesos.v1.maintenance.Protos.WindowOrBuilder getWindowsOrBuilder( int index) { return windows_.get(index); } private void initFields() { windows_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getWindowsCount(); i++) { if (!getWindows(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < windows_.size(); i++) { output.writeMessage(1, windows_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < windows_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, windows_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.maintenance.Protos.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.maintenance.Protos.Schedule 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.maintenance.Protos.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.maintenance.Protos.Schedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.Schedule parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.Schedule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.Schedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.Schedule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.Schedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.maintenance.Protos.Schedule prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.maintenance.Schedule} * *
     **
     * A list of maintenance windows.
     * For example, this may represent a rolling restart of agents.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.maintenance.Schedule) org.apache.mesos.v1.maintenance.Protos.ScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Schedule_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.maintenance.Protos.Schedule.class, org.apache.mesos.v1.maintenance.Protos.Schedule.Builder.class); } // Construct using org.apache.mesos.v1.maintenance.Protos.Schedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getWindowsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (windowsBuilder_ == null) { windows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { windowsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_Schedule_descriptor; } public org.apache.mesos.v1.maintenance.Protos.Schedule getDefaultInstanceForType() { return org.apache.mesos.v1.maintenance.Protos.Schedule.getDefaultInstance(); } public org.apache.mesos.v1.maintenance.Protos.Schedule build() { org.apache.mesos.v1.maintenance.Protos.Schedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.maintenance.Protos.Schedule buildPartial() { org.apache.mesos.v1.maintenance.Protos.Schedule result = new org.apache.mesos.v1.maintenance.Protos.Schedule(this); int from_bitField0_ = bitField0_; if (windowsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { windows_ = java.util.Collections.unmodifiableList(windows_); bitField0_ = (bitField0_ & ~0x00000001); } result.windows_ = windows_; } else { result.windows_ = windowsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.maintenance.Protos.Schedule) { return mergeFrom((org.apache.mesos.v1.maintenance.Protos.Schedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.maintenance.Protos.Schedule other) { if (other == org.apache.mesos.v1.maintenance.Protos.Schedule.getDefaultInstance()) return this; if (windowsBuilder_ == null) { if (!other.windows_.isEmpty()) { if (windows_.isEmpty()) { windows_ = other.windows_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWindowsIsMutable(); windows_.addAll(other.windows_); } onChanged(); } } else { if (!other.windows_.isEmpty()) { if (windowsBuilder_.isEmpty()) { windowsBuilder_.dispose(); windowsBuilder_ = null; windows_ = other.windows_; bitField0_ = (bitField0_ & ~0x00000001); windowsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getWindowsFieldBuilder() : null; } else { windowsBuilder_.addAllMessages(other.windows_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getWindowsCount(); i++) { if (!getWindows(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.maintenance.Protos.Schedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.maintenance.Protos.Schedule) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List windows_ = java.util.Collections.emptyList(); private void ensureWindowsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { windows_ = new java.util.ArrayList(windows_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.maintenance.Protos.Window, org.apache.mesos.v1.maintenance.Protos.Window.Builder, org.apache.mesos.v1.maintenance.Protos.WindowOrBuilder> windowsBuilder_; /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public java.util.List getWindowsList() { if (windowsBuilder_ == null) { return java.util.Collections.unmodifiableList(windows_); } else { return windowsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public int getWindowsCount() { if (windowsBuilder_ == null) { return windows_.size(); } else { return windowsBuilder_.getCount(); } } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public org.apache.mesos.v1.maintenance.Protos.Window getWindows(int index) { if (windowsBuilder_ == null) { return windows_.get(index); } else { return windowsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder setWindows( int index, org.apache.mesos.v1.maintenance.Protos.Window value) { if (windowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWindowsIsMutable(); windows_.set(index, value); onChanged(); } else { windowsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder setWindows( int index, org.apache.mesos.v1.maintenance.Protos.Window.Builder builderForValue) { if (windowsBuilder_ == null) { ensureWindowsIsMutable(); windows_.set(index, builderForValue.build()); onChanged(); } else { windowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder addWindows(org.apache.mesos.v1.maintenance.Protos.Window value) { if (windowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWindowsIsMutable(); windows_.add(value); onChanged(); } else { windowsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder addWindows( int index, org.apache.mesos.v1.maintenance.Protos.Window value) { if (windowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWindowsIsMutable(); windows_.add(index, value); onChanged(); } else { windowsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder addWindows( org.apache.mesos.v1.maintenance.Protos.Window.Builder builderForValue) { if (windowsBuilder_ == null) { ensureWindowsIsMutable(); windows_.add(builderForValue.build()); onChanged(); } else { windowsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder addWindows( int index, org.apache.mesos.v1.maintenance.Protos.Window.Builder builderForValue) { if (windowsBuilder_ == null) { ensureWindowsIsMutable(); windows_.add(index, builderForValue.build()); onChanged(); } else { windowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder addAllWindows( java.lang.Iterable values) { if (windowsBuilder_ == null) { ensureWindowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, windows_); onChanged(); } else { windowsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder clearWindows() { if (windowsBuilder_ == null) { windows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { windowsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public Builder removeWindows(int index) { if (windowsBuilder_ == null) { ensureWindowsIsMutable(); windows_.remove(index); onChanged(); } else { windowsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public org.apache.mesos.v1.maintenance.Protos.Window.Builder getWindowsBuilder( int index) { return getWindowsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public org.apache.mesos.v1.maintenance.Protos.WindowOrBuilder getWindowsOrBuilder( int index) { if (windowsBuilder_ == null) { return windows_.get(index); } else { return windowsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public java.util.List getWindowsOrBuilderList() { if (windowsBuilder_ != null) { return windowsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(windows_); } } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public org.apache.mesos.v1.maintenance.Protos.Window.Builder addWindowsBuilder() { return getWindowsFieldBuilder().addBuilder( org.apache.mesos.v1.maintenance.Protos.Window.getDefaultInstance()); } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public org.apache.mesos.v1.maintenance.Protos.Window.Builder addWindowsBuilder( int index) { return getWindowsFieldBuilder().addBuilder( index, org.apache.mesos.v1.maintenance.Protos.Window.getDefaultInstance()); } /** * repeated .mesos.v1.maintenance.Window windows = 1; */ public java.util.List getWindowsBuilderList() { return getWindowsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.maintenance.Protos.Window, org.apache.mesos.v1.maintenance.Protos.Window.Builder, org.apache.mesos.v1.maintenance.Protos.WindowOrBuilder> getWindowsFieldBuilder() { if (windowsBuilder_ == null) { windowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.maintenance.Protos.Window, org.apache.mesos.v1.maintenance.Protos.Window.Builder, org.apache.mesos.v1.maintenance.Protos.WindowOrBuilder>( windows_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); windows_ = null; } return windowsBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.maintenance.Schedule) } static { defaultInstance = new Schedule(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.maintenance.Schedule) } public interface ClusterStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.maintenance.ClusterStatus) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ java.util.List getDrainingMachinesList(); /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine getDrainingMachines(int index); /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ int getDrainingMachinesCount(); /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ java.util.List getDrainingMachinesOrBuilderList(); /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachineOrBuilder getDrainingMachinesOrBuilder( int index); /** * repeated .mesos.v1.MachineID down_machines = 2; */ java.util.List getDownMachinesList(); /** * repeated .mesos.v1.MachineID down_machines = 2; */ org.apache.mesos.v1.Protos.MachineID getDownMachines(int index); /** * repeated .mesos.v1.MachineID down_machines = 2; */ int getDownMachinesCount(); /** * repeated .mesos.v1.MachineID down_machines = 2; */ java.util.List getDownMachinesOrBuilderList(); /** * repeated .mesos.v1.MachineID down_machines = 2; */ org.apache.mesos.v1.Protos.MachineIDOrBuilder getDownMachinesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.maintenance.ClusterStatus} * *
   **
   * Represents the maintenance status of each machine in the cluster.
   * The lists correspond to the `MachineInfo.Mode` enumeration.
   * 
*/ public static final class ClusterStatus extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.maintenance.ClusterStatus) ClusterStatusOrBuilder { // Use ClusterStatus.newBuilder() to construct. private ClusterStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ClusterStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ClusterStatus defaultInstance; public static ClusterStatus getDefaultInstance() { return defaultInstance; } public ClusterStatus getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClusterStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { drainingMachines_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } drainingMachines_.add(input.readMessage(org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { downMachines_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } downMachines_.add(input.readMessage(org.apache.mesos.v1.Protos.MachineID.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { drainingMachines_ = java.util.Collections.unmodifiableList(drainingMachines_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { downMachines_ = java.util.Collections.unmodifiableList(downMachines_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.maintenance.Protos.ClusterStatus.class, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ClusterStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterStatus(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface DrainingMachineOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.maintenance.ClusterStatus.DrainingMachine) 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(); /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ java.util.List getStatusesList(); /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ org.apache.mesos.v1.allocator.Protos.InverseOfferStatus getStatuses(int index); /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ int getStatusesCount(); /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ java.util.List getStatusesOrBuilderList(); /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ org.apache.mesos.v1.allocator.Protos.InverseOfferStatusOrBuilder getStatusesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.maintenance.ClusterStatus.DrainingMachine} */ public static final class DrainingMachine extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.maintenance.ClusterStatus.DrainingMachine) DrainingMachineOrBuilder { // Use DrainingMachine.newBuilder() to construct. private DrainingMachine(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DrainingMachine(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DrainingMachine defaultInstance; public static DrainingMachine getDefaultInstance() { return defaultInstance; } public DrainingMachine getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DrainingMachine( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.v1.Protos.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 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { statuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } statuses_.add(input.readMessage(org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 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.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.class, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DrainingMachine parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DrainingMachine(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } 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_; } /** * required .mesos.v1.MachineID id = 1; */ public org.apache.mesos.v1.Protos.MachineIDOrBuilder getIdOrBuilder() { return id_; } public static final int STATUSES_FIELD_NUMBER = 2; private java.util.List statuses_; /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ public java.util.List getStatusesList() { return statuses_; } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ public java.util.List getStatusesOrBuilderList() { return statuses_; } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ public int getStatusesCount() { return statuses_.size(); } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ public org.apache.mesos.v1.allocator.Protos.InverseOfferStatus getStatuses(int index) { return statuses_.get(index); } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
       * A list of the most recent responses to inverse offers from frameworks
       * running on this draining machine.
       * 
*/ public org.apache.mesos.v1.allocator.Protos.InverseOfferStatusOrBuilder getStatusesOrBuilder( int index) { return statuses_.get(index); } private void initFields() { id_ = org.apache.mesos.v1.Protos.MachineID.getDefaultInstance(); statuses_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasId()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getStatusesCount(); i++) { if (!getStatuses(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, id_); } for (int i = 0; i < statuses_.size(); i++) { output.writeMessage(2, statuses_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, id_); } for (int i = 0; i < statuses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, statuses_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine 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.maintenance.Protos.ClusterStatus.DrainingMachine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.maintenance.ClusterStatus.DrainingMachine} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.maintenance.ClusterStatus.DrainingMachine) org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.class, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder.class); } // Construct using org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getIdFieldBuilder(); getStatusesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = org.apache.mesos.v1.Protos.MachineID.getDefaultInstance(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (statusesBuilder_ == null) { statuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { statusesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_descriptor; } public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine getDefaultInstanceForType() { return org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.getDefaultInstance(); } public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine build() { org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine buildPartial() { org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine result = new org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine(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 (statusesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { statuses_ = java.util.Collections.unmodifiableList(statuses_); bitField0_ = (bitField0_ & ~0x00000002); } result.statuses_ = statuses_; } else { result.statuses_ = statusesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine) { return mergeFrom((org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine other) { if (other == org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (statusesBuilder_ == null) { if (!other.statuses_.isEmpty()) { if (statuses_.isEmpty()) { statuses_ = other.statuses_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStatusesIsMutable(); statuses_.addAll(other.statuses_); } onChanged(); } } else { if (!other.statuses_.isEmpty()) { if (statusesBuilder_.isEmpty()) { statusesBuilder_.dispose(); statusesBuilder_ = null; statuses_ = other.statuses_; bitField0_ = (bitField0_ & ~0x00000002); statusesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getStatusesFieldBuilder() : null; } else { statusesBuilder_.addAllMessages(other.statuses_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } for (int i = 0; i < getStatusesCount(); i++) { if (!getStatuses(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.maintenance.Protos.ClusterStatus.DrainingMachine parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.MachineID id_ = org.apache.mesos.v1.Protos.MachineID.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.MachineID.getDefaultInstance(); 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_; } } /** * required .mesos.v1.MachineID id = 1; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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 java.util.List statuses_ = java.util.Collections.emptyList(); private void ensureStatusesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { statuses_ = new java.util.ArrayList(statuses_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.allocator.Protos.InverseOfferStatus, org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder, org.apache.mesos.v1.allocator.Protos.InverseOfferStatusOrBuilder> statusesBuilder_; /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public java.util.List getStatusesList() { if (statusesBuilder_ == null) { return java.util.Collections.unmodifiableList(statuses_); } else { return statusesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public int getStatusesCount() { if (statusesBuilder_ == null) { return statuses_.size(); } else { return statusesBuilder_.getCount(); } } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public org.apache.mesos.v1.allocator.Protos.InverseOfferStatus getStatuses(int index) { if (statusesBuilder_ == null) { return statuses_.get(index); } else { return statusesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public Builder setStatuses( int index, org.apache.mesos.v1.allocator.Protos.InverseOfferStatus 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.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public Builder setStatuses( int index, org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.set(index, builderForValue.build()); onChanged(); } else { statusesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public Builder addStatuses(org.apache.mesos.v1.allocator.Protos.InverseOfferStatus value) { if (statusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusesIsMutable(); statuses_.add(value); onChanged(); } else { statusesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public Builder addStatuses( int index, org.apache.mesos.v1.allocator.Protos.InverseOfferStatus 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.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public Builder addStatuses( org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.add(builderForValue.build()); onChanged(); } else { statusesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public Builder addStatuses( int index, org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder builderForValue) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.add(index, builderForValue.build()); onChanged(); } else { statusesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ 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.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public Builder clearStatuses() { if (statusesBuilder_ == null) { statuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { statusesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public Builder removeStatuses(int index) { if (statusesBuilder_ == null) { ensureStatusesIsMutable(); statuses_.remove(index); onChanged(); } else { statusesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder getStatusesBuilder( int index) { return getStatusesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public org.apache.mesos.v1.allocator.Protos.InverseOfferStatusOrBuilder getStatusesOrBuilder( int index) { if (statusesBuilder_ == null) { return statuses_.get(index); } else { return statusesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public java.util.List getStatusesOrBuilderList() { if (statusesBuilder_ != null) { return statusesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(statuses_); } } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder addStatusesBuilder() { return getStatusesFieldBuilder().addBuilder( org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.getDefaultInstance()); } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder addStatusesBuilder( int index) { return getStatusesFieldBuilder().addBuilder( index, org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.getDefaultInstance()); } /** * repeated .mesos.v1.allocator.InverseOfferStatus statuses = 2; * *
         * A list of the most recent responses to inverse offers from frameworks
         * running on this draining machine.
         * 
*/ public java.util.List getStatusesBuilderList() { return getStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.allocator.Protos.InverseOfferStatus, org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder, org.apache.mesos.v1.allocator.Protos.InverseOfferStatusOrBuilder> getStatusesFieldBuilder() { if (statusesBuilder_ == null) { statusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.allocator.Protos.InverseOfferStatus, org.apache.mesos.v1.allocator.Protos.InverseOfferStatus.Builder, org.apache.mesos.v1.allocator.Protos.InverseOfferStatusOrBuilder>( statuses_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); statuses_ = null; } return statusesBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.maintenance.ClusterStatus.DrainingMachine) } static { defaultInstance = new DrainingMachine(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.maintenance.ClusterStatus.DrainingMachine) } public static final int DRAINING_MACHINES_FIELD_NUMBER = 1; private java.util.List drainingMachines_; /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public java.util.List getDrainingMachinesList() { return drainingMachines_; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public java.util.List getDrainingMachinesOrBuilderList() { return drainingMachines_; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public int getDrainingMachinesCount() { return drainingMachines_.size(); } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine getDrainingMachines(int index) { return drainingMachines_.get(index); } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachineOrBuilder getDrainingMachinesOrBuilder( int index) { return drainingMachines_.get(index); } public static final int DOWN_MACHINES_FIELD_NUMBER = 2; private java.util.List downMachines_; /** * repeated .mesos.v1.MachineID down_machines = 2; */ public java.util.List getDownMachinesList() { return downMachines_; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public java.util.List getDownMachinesOrBuilderList() { return downMachines_; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public int getDownMachinesCount() { return downMachines_.size(); } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public org.apache.mesos.v1.Protos.MachineID getDownMachines(int index) { return downMachines_.get(index); } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public org.apache.mesos.v1.Protos.MachineIDOrBuilder getDownMachinesOrBuilder( int index) { return downMachines_.get(index); } private void initFields() { drainingMachines_ = java.util.Collections.emptyList(); downMachines_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getDrainingMachinesCount(); i++) { if (!getDrainingMachines(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < drainingMachines_.size(); i++) { output.writeMessage(1, drainingMachines_.get(i)); } for (int i = 0; i < downMachines_.size(); i++) { output.writeMessage(2, downMachines_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < drainingMachines_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, drainingMachines_.get(i)); } for (int i = 0; i < downMachines_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, downMachines_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus 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.maintenance.Protos.ClusterStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.maintenance.Protos.ClusterStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.maintenance.Protos.ClusterStatus prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.maintenance.ClusterStatus} * *
     **
     * Represents the maintenance status of each machine in the cluster.
     * The lists correspond to the `MachineInfo.Mode` enumeration.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.maintenance.ClusterStatus) org.apache.mesos.v1.maintenance.Protos.ClusterStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.maintenance.Protos.ClusterStatus.class, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.Builder.class); } // Construct using org.apache.mesos.v1.maintenance.Protos.ClusterStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDrainingMachinesFieldBuilder(); getDownMachinesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (drainingMachinesBuilder_ == null) { drainingMachines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { drainingMachinesBuilder_.clear(); } if (downMachinesBuilder_ == null) { downMachines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { downMachinesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.maintenance.Protos.internal_static_mesos_v1_maintenance_ClusterStatus_descriptor; } public org.apache.mesos.v1.maintenance.Protos.ClusterStatus getDefaultInstanceForType() { return org.apache.mesos.v1.maintenance.Protos.ClusterStatus.getDefaultInstance(); } public org.apache.mesos.v1.maintenance.Protos.ClusterStatus build() { org.apache.mesos.v1.maintenance.Protos.ClusterStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.maintenance.Protos.ClusterStatus buildPartial() { org.apache.mesos.v1.maintenance.Protos.ClusterStatus result = new org.apache.mesos.v1.maintenance.Protos.ClusterStatus(this); int from_bitField0_ = bitField0_; if (drainingMachinesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { drainingMachines_ = java.util.Collections.unmodifiableList(drainingMachines_); bitField0_ = (bitField0_ & ~0x00000001); } result.drainingMachines_ = drainingMachines_; } else { result.drainingMachines_ = drainingMachinesBuilder_.build(); } if (downMachinesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { downMachines_ = java.util.Collections.unmodifiableList(downMachines_); bitField0_ = (bitField0_ & ~0x00000002); } result.downMachines_ = downMachines_; } else { result.downMachines_ = downMachinesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.maintenance.Protos.ClusterStatus) { return mergeFrom((org.apache.mesos.v1.maintenance.Protos.ClusterStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.maintenance.Protos.ClusterStatus other) { if (other == org.apache.mesos.v1.maintenance.Protos.ClusterStatus.getDefaultInstance()) return this; if (drainingMachinesBuilder_ == null) { if (!other.drainingMachines_.isEmpty()) { if (drainingMachines_.isEmpty()) { drainingMachines_ = other.drainingMachines_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDrainingMachinesIsMutable(); drainingMachines_.addAll(other.drainingMachines_); } onChanged(); } } else { if (!other.drainingMachines_.isEmpty()) { if (drainingMachinesBuilder_.isEmpty()) { drainingMachinesBuilder_.dispose(); drainingMachinesBuilder_ = null; drainingMachines_ = other.drainingMachines_; bitField0_ = (bitField0_ & ~0x00000001); drainingMachinesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDrainingMachinesFieldBuilder() : null; } else { drainingMachinesBuilder_.addAllMessages(other.drainingMachines_); } } } if (downMachinesBuilder_ == null) { if (!other.downMachines_.isEmpty()) { if (downMachines_.isEmpty()) { downMachines_ = other.downMachines_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDownMachinesIsMutable(); downMachines_.addAll(other.downMachines_); } onChanged(); } } else { if (!other.downMachines_.isEmpty()) { if (downMachinesBuilder_.isEmpty()) { downMachinesBuilder_.dispose(); downMachinesBuilder_ = null; downMachines_ = other.downMachines_; bitField0_ = (bitField0_ & ~0x00000002); downMachinesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDownMachinesFieldBuilder() : null; } else { downMachinesBuilder_.addAllMessages(other.downMachines_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getDrainingMachinesCount(); i++) { if (!getDrainingMachines(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.maintenance.Protos.ClusterStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.maintenance.Protos.ClusterStatus) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List drainingMachines_ = java.util.Collections.emptyList(); private void ensureDrainingMachinesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { drainingMachines_ = new java.util.ArrayList(drainingMachines_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachineOrBuilder> drainingMachinesBuilder_; /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public java.util.List getDrainingMachinesList() { if (drainingMachinesBuilder_ == null) { return java.util.Collections.unmodifiableList(drainingMachines_); } else { return drainingMachinesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public int getDrainingMachinesCount() { if (drainingMachinesBuilder_ == null) { return drainingMachines_.size(); } else { return drainingMachinesBuilder_.getCount(); } } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine getDrainingMachines(int index) { if (drainingMachinesBuilder_ == null) { return drainingMachines_.get(index); } else { return drainingMachinesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder setDrainingMachines( int index, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine value) { if (drainingMachinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDrainingMachinesIsMutable(); drainingMachines_.set(index, value); onChanged(); } else { drainingMachinesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder setDrainingMachines( int index, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder builderForValue) { if (drainingMachinesBuilder_ == null) { ensureDrainingMachinesIsMutable(); drainingMachines_.set(index, builderForValue.build()); onChanged(); } else { drainingMachinesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder addDrainingMachines(org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine value) { if (drainingMachinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDrainingMachinesIsMutable(); drainingMachines_.add(value); onChanged(); } else { drainingMachinesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder addDrainingMachines( int index, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine value) { if (drainingMachinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDrainingMachinesIsMutable(); drainingMachines_.add(index, value); onChanged(); } else { drainingMachinesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder addDrainingMachines( org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder builderForValue) { if (drainingMachinesBuilder_ == null) { ensureDrainingMachinesIsMutable(); drainingMachines_.add(builderForValue.build()); onChanged(); } else { drainingMachinesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder addDrainingMachines( int index, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder builderForValue) { if (drainingMachinesBuilder_ == null) { ensureDrainingMachinesIsMutable(); drainingMachines_.add(index, builderForValue.build()); onChanged(); } else { drainingMachinesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder addAllDrainingMachines( java.lang.Iterable values) { if (drainingMachinesBuilder_ == null) { ensureDrainingMachinesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, drainingMachines_); onChanged(); } else { drainingMachinesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder clearDrainingMachines() { if (drainingMachinesBuilder_ == null) { drainingMachines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { drainingMachinesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public Builder removeDrainingMachines(int index) { if (drainingMachinesBuilder_ == null) { ensureDrainingMachinesIsMutable(); drainingMachines_.remove(index); onChanged(); } else { drainingMachinesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder getDrainingMachinesBuilder( int index) { return getDrainingMachinesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachineOrBuilder getDrainingMachinesOrBuilder( int index) { if (drainingMachinesBuilder_ == null) { return drainingMachines_.get(index); } else { return drainingMachinesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public java.util.List getDrainingMachinesOrBuilderList() { if (drainingMachinesBuilder_ != null) { return drainingMachinesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(drainingMachines_); } } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder addDrainingMachinesBuilder() { return getDrainingMachinesFieldBuilder().addBuilder( org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.getDefaultInstance()); } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder addDrainingMachinesBuilder( int index) { return getDrainingMachinesFieldBuilder().addBuilder( index, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.getDefaultInstance()); } /** * repeated .mesos.v1.maintenance.ClusterStatus.DrainingMachine draining_machines = 1; */ public java.util.List getDrainingMachinesBuilderList() { return getDrainingMachinesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachineOrBuilder> getDrainingMachinesFieldBuilder() { if (drainingMachinesBuilder_ == null) { drainingMachinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachine.Builder, org.apache.mesos.v1.maintenance.Protos.ClusterStatus.DrainingMachineOrBuilder>( drainingMachines_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); drainingMachines_ = null; } return drainingMachinesBuilder_; } private java.util.List downMachines_ = java.util.Collections.emptyList(); private void ensureDownMachinesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { downMachines_ = new java.util.ArrayList(downMachines_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder> downMachinesBuilder_; /** * repeated .mesos.v1.MachineID down_machines = 2; */ public java.util.List getDownMachinesList() { if (downMachinesBuilder_ == null) { return java.util.Collections.unmodifiableList(downMachines_); } else { return downMachinesBuilder_.getMessageList(); } } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public int getDownMachinesCount() { if (downMachinesBuilder_ == null) { return downMachines_.size(); } else { return downMachinesBuilder_.getCount(); } } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public org.apache.mesos.v1.Protos.MachineID getDownMachines(int index) { if (downMachinesBuilder_ == null) { return downMachines_.get(index); } else { return downMachinesBuilder_.getMessage(index); } } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder setDownMachines( int index, org.apache.mesos.v1.Protos.MachineID value) { if (downMachinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownMachinesIsMutable(); downMachines_.set(index, value); onChanged(); } else { downMachinesBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder setDownMachines( int index, org.apache.mesos.v1.Protos.MachineID.Builder builderForValue) { if (downMachinesBuilder_ == null) { ensureDownMachinesIsMutable(); downMachines_.set(index, builderForValue.build()); onChanged(); } else { downMachinesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder addDownMachines(org.apache.mesos.v1.Protos.MachineID value) { if (downMachinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownMachinesIsMutable(); downMachines_.add(value); onChanged(); } else { downMachinesBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder addDownMachines( int index, org.apache.mesos.v1.Protos.MachineID value) { if (downMachinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownMachinesIsMutable(); downMachines_.add(index, value); onChanged(); } else { downMachinesBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder addDownMachines( org.apache.mesos.v1.Protos.MachineID.Builder builderForValue) { if (downMachinesBuilder_ == null) { ensureDownMachinesIsMutable(); downMachines_.add(builderForValue.build()); onChanged(); } else { downMachinesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder addDownMachines( int index, org.apache.mesos.v1.Protos.MachineID.Builder builderForValue) { if (downMachinesBuilder_ == null) { ensureDownMachinesIsMutable(); downMachines_.add(index, builderForValue.build()); onChanged(); } else { downMachinesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder addAllDownMachines( java.lang.Iterable values) { if (downMachinesBuilder_ == null) { ensureDownMachinesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, downMachines_); onChanged(); } else { downMachinesBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder clearDownMachines() { if (downMachinesBuilder_ == null) { downMachines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { downMachinesBuilder_.clear(); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public Builder removeDownMachines(int index) { if (downMachinesBuilder_ == null) { ensureDownMachinesIsMutable(); downMachines_.remove(index); onChanged(); } else { downMachinesBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public org.apache.mesos.v1.Protos.MachineID.Builder getDownMachinesBuilder( int index) { return getDownMachinesFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public org.apache.mesos.v1.Protos.MachineIDOrBuilder getDownMachinesOrBuilder( int index) { if (downMachinesBuilder_ == null) { return downMachines_.get(index); } else { return downMachinesBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public java.util.List getDownMachinesOrBuilderList() { if (downMachinesBuilder_ != null) { return downMachinesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(downMachines_); } } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public org.apache.mesos.v1.Protos.MachineID.Builder addDownMachinesBuilder() { return getDownMachinesFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.MachineID.getDefaultInstance()); } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public org.apache.mesos.v1.Protos.MachineID.Builder addDownMachinesBuilder( int index) { return getDownMachinesFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.MachineID.getDefaultInstance()); } /** * repeated .mesos.v1.MachineID down_machines = 2; */ public java.util.List getDownMachinesBuilderList() { return getDownMachinesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder> getDownMachinesFieldBuilder() { if (downMachinesBuilder_ == null) { downMachinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.MachineID, org.apache.mesos.v1.Protos.MachineID.Builder, org.apache.mesos.v1.Protos.MachineIDOrBuilder>( downMachines_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); downMachines_ = null; } return downMachinesBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.maintenance.ClusterStatus) } static { defaultInstance = new ClusterStatus(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.maintenance.ClusterStatus) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_maintenance_Window_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_maintenance_Window_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_maintenance_Schedule_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_maintenance_Schedule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_maintenance_ClusterStatus_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_maintenance_ClusterStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n&mesos/v1/maintenance/maintenance.proto" + "\022\024mesos.v1.maintenance\032\024mesos/v1/mesos.p" + "roto\032\"mesos/v1/allocator/allocator.proto" + "\"d\n\006Window\022(\n\013machine_ids\030\001 \003(\0132\023.mesos." + "v1.MachineID\0220\n\016unavailability\030\002 \002(\0132\030.m" + "esos.v1.Unavailability\"9\n\010Schedule\022-\n\007wi" + "ndows\030\001 \003(\0132\034.mesos.v1.maintenance.Windo" + "w\"\371\001\n\rClusterStatus\022N\n\021draining_machines" + "\030\001 \003(\01323.mesos.v1.maintenance.ClusterSta" + "tus.DrainingMachine\022*\n\rdown_machines\030\002 \003", "(\0132\023.mesos.v1.MachineID\032l\n\017DrainingMachi" + "ne\022\037\n\002id\030\001 \002(\0132\023.mesos.v1.MachineID\0228\n\010s" + "tatuses\030\002 \003(\0132&.mesos.v1.allocator.Inver" + "seOfferStatusB)\n\037org.apache.mesos.v1.mai" + "ntenanceB\006Protos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.apache.mesos.v1.Protos.getDescriptor(), org.apache.mesos.v1.allocator.Protos.getDescriptor(), }, assigner); internal_static_mesos_v1_maintenance_Window_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_mesos_v1_maintenance_Window_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_maintenance_Window_descriptor, new java.lang.String[] { "MachineIds", "Unavailability", }); internal_static_mesos_v1_maintenance_Schedule_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_mesos_v1_maintenance_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_maintenance_Schedule_descriptor, new java.lang.String[] { "Windows", }); internal_static_mesos_v1_maintenance_ClusterStatus_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_mesos_v1_maintenance_ClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_maintenance_ClusterStatus_descriptor, new java.lang.String[] { "DrainingMachines", "DownMachines", }); internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_descriptor = internal_static_mesos_v1_maintenance_ClusterStatus_descriptor.getNestedTypes().get(0); internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_maintenance_ClusterStatus_DrainingMachine_descriptor, new java.lang.String[] { "Id", "Statuses", }); org.apache.mesos.v1.Protos.getDescriptor(); org.apache.mesos.v1.allocator.Protos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy