org.apache.mesos.v1.scheduler.Protos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mesos Show documentation
Show all versions of mesos Show documentation
The Apache Mesos Java API jar.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mesos/v1/scheduler/scheduler.proto
package org.apache.mesos.v1.scheduler;
public final class Protos {
private Protos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event)
com.google.protobuf.MessageOrBuilder {
/**
* optional .mesos.v1.scheduler.Event.Type type = 1;
*
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*/
boolean hasType();
/**
* optional .mesos.v1.scheduler.Event.Type type = 1;
*
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*/
org.apache.mesos.v1.scheduler.Protos.Event.Type getType();
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
boolean hasSubscribed();
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed getSubscribed();
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
org.apache.mesos.v1.scheduler.Protos.Event.SubscribedOrBuilder getSubscribedOrBuilder();
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
boolean hasOffers();
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
org.apache.mesos.v1.scheduler.Protos.Event.Offers getOffers();
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
org.apache.mesos.v1.scheduler.Protos.Event.OffersOrBuilder getOffersOrBuilder();
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
boolean hasInverseOffers();
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers getInverseOffers();
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffersOrBuilder getInverseOffersOrBuilder();
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
boolean hasRescind();
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
org.apache.mesos.v1.scheduler.Protos.Event.Rescind getRescind();
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
org.apache.mesos.v1.scheduler.Protos.Event.RescindOrBuilder getRescindOrBuilder();
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
boolean hasRescindInverseOffer();
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer getRescindInverseOffer();
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOfferOrBuilder getRescindInverseOfferOrBuilder();
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
boolean hasUpdate();
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
org.apache.mesos.v1.scheduler.Protos.Event.Update getUpdate();
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
org.apache.mesos.v1.scheduler.Protos.Event.UpdateOrBuilder getUpdateOrBuilder();
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
boolean hasMessage();
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
org.apache.mesos.v1.scheduler.Protos.Event.Message getMessage();
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
org.apache.mesos.v1.scheduler.Protos.Event.MessageOrBuilder getMessageOrBuilder();
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
boolean hasFailure();
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
org.apache.mesos.v1.scheduler.Protos.Event.Failure getFailure();
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
org.apache.mesos.v1.scheduler.Protos.Event.FailureOrBuilder getFailureOrBuilder();
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
boolean hasError();
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
org.apache.mesos.v1.scheduler.Protos.Event.Error getError();
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
org.apache.mesos.v1.scheduler.Protos.Event.ErrorOrBuilder getErrorOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event}
*
*
**
* Scheduler event API.
* An event is described using the standard protocol buffer "union"
* trick, see:
* https://developers.google.com/protocol-buffers/docs/techniques#union.
*
*/
public static final class Event extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event)
EventOrBuilder {
// Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Event(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Event defaultInstance;
public static Event getDefaultInstance() {
return defaultInstance;
}
public Event getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Event(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
org.apache.mesos.v1.scheduler.Protos.Event.Type value = org.apache.mesos.v1.scheduler.Protos.Event.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
case 18: {
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = subscribed_.toBuilder();
}
subscribed_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(subscribed_);
subscribed_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.apache.mesos.v1.scheduler.Protos.Event.Offers.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = offers_.toBuilder();
}
offers_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.Offers.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(offers_);
offers_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.apache.mesos.v1.scheduler.Protos.Event.Rescind.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = rescind_.toBuilder();
}
rescind_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.Rescind.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rescind_);
rescind_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 42: {
org.apache.mesos.v1.scheduler.Protos.Event.Update.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = update_.toBuilder();
}
update_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.Update.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(update_);
update_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 50: {
org.apache.mesos.v1.scheduler.Protos.Event.Message.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = message_.toBuilder();
}
message_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.Message.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(message_);
message_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 58: {
org.apache.mesos.v1.scheduler.Protos.Event.Failure.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = failure_.toBuilder();
}
failure_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.Failure.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(failure_);
failure_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 66: {
org.apache.mesos.v1.scheduler.Protos.Event.Error.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.Error.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 74: {
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = inverseOffers_.toBuilder();
}
inverseOffers_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(inverseOffers_);
inverseOffers_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 82: {
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = rescindInverseOffer_.toBuilder();
}
rescindInverseOffer_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rescindInverseOffer_);
rescindInverseOffer_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.class, org.apache.mesos.v1.scheduler.Protos.Event.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Event parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Event(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code mesos.v1.scheduler.Event.Type}
*
*
* Possible event types, followed by message definitions if
* applicable.
*
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*
*
* This must be the first enum value in this list, to
* ensure that if 'type' is not set, the default value
* is UNKNOWN. This enables enum values to be added
* in a backwards-compatible way. See: MESOS-4997.
*
*/
UNKNOWN(0, 0),
/**
* SUBSCRIBED = 1;
*
*
* See 'Subscribed' below.
*
*/
SUBSCRIBED(1, 1),
/**
* OFFERS = 2;
*
*
* See 'Offers' below.
*
*/
OFFERS(2, 2),
/**
* INVERSE_OFFERS = 9;
*
*
* See 'InverseOffers' below.
*
*/
INVERSE_OFFERS(3, 9),
/**
* RESCIND = 3;
*
*
* See 'Rescind' below.
*
*/
RESCIND(4, 3),
/**
* RESCIND_INVERSE_OFFER = 10;
*
*
* See 'RescindInverseOffer' below.
*
*/
RESCIND_INVERSE_OFFER(5, 10),
/**
* UPDATE = 4;
*
*
* See 'Update' below.
*
*/
UPDATE(6, 4),
/**
* MESSAGE = 5;
*
*
* See 'Message' below.
*
*/
MESSAGE(7, 5),
/**
* FAILURE = 6;
*
*
* See 'Failure' below.
*
*/
FAILURE(8, 6),
/**
* ERROR = 7;
*
*
* See 'Error' below.
*
*/
ERROR(9, 7),
/**
* HEARTBEAT = 8;
*
*
* Periodic message sent by the Mesos master according to
* 'Subscribed.heartbeat_interval_seconds'. If the scheduler does
* not receive any events (including heartbeats) for an extended
* period of time (e.g., 5 x heartbeat_interval_seconds), there is
* likely a network partition. In such a case the scheduler should
* close the existing subscription connection and resubscribe
* using a backoff strategy.
*
*/
HEARTBEAT(10, 8),
;
/**
* UNKNOWN = 0;
*
*
* This must be the first enum value in this list, to
* ensure that if 'type' is not set, the default value
* is UNKNOWN. This enables enum values to be added
* in a backwards-compatible way. See: MESOS-4997.
*
*/
public static final int UNKNOWN_VALUE = 0;
/**
* SUBSCRIBED = 1;
*
*
* See 'Subscribed' below.
*
*/
public static final int SUBSCRIBED_VALUE = 1;
/**
* OFFERS = 2;
*
*
* See 'Offers' below.
*
*/
public static final int OFFERS_VALUE = 2;
/**
* INVERSE_OFFERS = 9;
*
*
* See 'InverseOffers' below.
*
*/
public static final int INVERSE_OFFERS_VALUE = 9;
/**
* RESCIND = 3;
*
*
* See 'Rescind' below.
*
*/
public static final int RESCIND_VALUE = 3;
/**
* RESCIND_INVERSE_OFFER = 10;
*
*
* See 'RescindInverseOffer' below.
*
*/
public static final int RESCIND_INVERSE_OFFER_VALUE = 10;
/**
* UPDATE = 4;
*
*
* See 'Update' below.
*
*/
public static final int UPDATE_VALUE = 4;
/**
* MESSAGE = 5;
*
*
* See 'Message' below.
*
*/
public static final int MESSAGE_VALUE = 5;
/**
* FAILURE = 6;
*
*
* See 'Failure' below.
*
*/
public static final int FAILURE_VALUE = 6;
/**
* ERROR = 7;
*
*
* See 'Error' below.
*
*/
public static final int ERROR_VALUE = 7;
/**
* HEARTBEAT = 8;
*
*
* Periodic message sent by the Mesos master according to
* 'Subscribed.heartbeat_interval_seconds'. If the scheduler does
* not receive any events (including heartbeats) for an extended
* period of time (e.g., 5 x heartbeat_interval_seconds), there is
* likely a network partition. In such a case the scheduler should
* close the existing subscription connection and resubscribe
* using a backoff strategy.
*
*/
public static final int HEARTBEAT_VALUE = 8;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return SUBSCRIBED;
case 2: return OFFERS;
case 9: return INVERSE_OFFERS;
case 3: return RESCIND;
case 10: return RESCIND_INVERSE_OFFER;
case 4: return UPDATE;
case 5: return MESSAGE;
case 6: return FAILURE;
case 7: return ERROR;
case 8: return HEARTBEAT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.Event.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mesos.v1.scheduler.Event.Type)
}
public interface SubscribedOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.Subscribed)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
boolean hasFrameworkId();
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
org.apache.mesos.v1.Protos.FrameworkID getFrameworkId();
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder();
/**
* optional double heartbeat_interval_seconds = 2;
*
*
* This value will be set if the master is sending heartbeats. See
* the comment above on 'HEARTBEAT' for more details.
*
*/
boolean hasHeartbeatIntervalSeconds();
/**
* optional double heartbeat_interval_seconds = 2;
*
*
* This value will be set if the master is sending heartbeats. See
* the comment above on 'HEARTBEAT' for more details.
*
*/
double getHeartbeatIntervalSeconds();
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
boolean hasMasterInfo();
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
org.apache.mesos.v1.Protos.MasterInfo getMasterInfo();
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
org.apache.mesos.v1.Protos.MasterInfoOrBuilder getMasterInfoOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Subscribed}
*
*
* First event received when the scheduler subscribes.
*
*/
public static final class Subscribed extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.Subscribed)
SubscribedOrBuilder {
// Use Subscribed.newBuilder() to construct.
private Subscribed(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Subscribed(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Subscribed defaultInstance;
public static Subscribed getDefaultInstance() {
return defaultInstance;
}
public Subscribed getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Subscribed(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.FrameworkID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = frameworkId_.toBuilder();
}
frameworkId_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(frameworkId_);
frameworkId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 17: {
bitField0_ |= 0x00000002;
heartbeatIntervalSeconds_ = input.readDouble();
break;
}
case 26: {
org.apache.mesos.v1.Protos.MasterInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = masterInfo_.toBuilder();
}
masterInfo_ = input.readMessage(org.apache.mesos.v1.Protos.MasterInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(masterInfo_);
masterInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Subscribed_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Subscribed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.class, org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Subscribed parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Subscribed(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int FRAMEWORK_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.FrameworkID frameworkId_;
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public boolean hasFrameworkId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() {
return frameworkId_;
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() {
return frameworkId_;
}
public static final int HEARTBEAT_INTERVAL_SECONDS_FIELD_NUMBER = 2;
private double heartbeatIntervalSeconds_;
/**
* optional double heartbeat_interval_seconds = 2;
*
*
* This value will be set if the master is sending heartbeats. See
* the comment above on 'HEARTBEAT' for more details.
*
*/
public boolean hasHeartbeatIntervalSeconds() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double heartbeat_interval_seconds = 2;
*
*
* This value will be set if the master is sending heartbeats. See
* the comment above on 'HEARTBEAT' for more details.
*
*/
public double getHeartbeatIntervalSeconds() {
return heartbeatIntervalSeconds_;
}
public static final int MASTER_INFO_FIELD_NUMBER = 3;
private org.apache.mesos.v1.Protos.MasterInfo masterInfo_;
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public boolean hasMasterInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public org.apache.mesos.v1.Protos.MasterInfo getMasterInfo() {
return masterInfo_;
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public org.apache.mesos.v1.Protos.MasterInfoOrBuilder getMasterInfoOrBuilder() {
return masterInfo_;
}
private void initFields() {
frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance();
heartbeatIntervalSeconds_ = 0D;
masterInfo_ = org.apache.mesos.v1.Protos.MasterInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasFrameworkId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getFrameworkId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasMasterInfo()) {
if (!getMasterInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, frameworkId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, heartbeatIntervalSeconds_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, masterInfo_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, frameworkId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, heartbeatIntervalSeconds_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, masterInfo_);
}
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.scheduler.Protos.Event.Subscribed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Subscribed parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Event.Subscribed prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Subscribed}
*
*
* First event received when the scheduler subscribes.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.Subscribed)
org.apache.mesos.v1.scheduler.Protos.Event.SubscribedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Subscribed_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Subscribed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.class, org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getFrameworkIdFieldBuilder();
getMasterInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (frameworkIdBuilder_ == null) {
frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance();
} else {
frameworkIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
heartbeatIntervalSeconds_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
if (masterInfoBuilder_ == null) {
masterInfo_ = org.apache.mesos.v1.Protos.MasterInfo.getDefaultInstance();
} else {
masterInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Subscribed_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Subscribed getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.Subscribed build() {
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Subscribed buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed result = new org.apache.mesos.v1.scheduler.Protos.Event.Subscribed(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (frameworkIdBuilder_ == null) {
result.frameworkId_ = frameworkId_;
} else {
result.frameworkId_ = frameworkIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.heartbeatIntervalSeconds_ = heartbeatIntervalSeconds_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (masterInfoBuilder_ == null) {
result.masterInfo_ = masterInfo_;
} else {
result.masterInfo_ = masterInfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.Subscribed) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.Subscribed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.Subscribed other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.getDefaultInstance()) return this;
if (other.hasFrameworkId()) {
mergeFrameworkId(other.getFrameworkId());
}
if (other.hasHeartbeatIntervalSeconds()) {
setHeartbeatIntervalSeconds(other.getHeartbeatIntervalSeconds());
}
if (other.hasMasterInfo()) {
mergeMasterInfo(other.getMasterInfo());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasFrameworkId()) {
return false;
}
if (!getFrameworkId().isInitialized()) {
return false;
}
if (hasMasterInfo()) {
if (!getMasterInfo().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.scheduler.Protos.Event.Subscribed parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.Subscribed) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.FrameworkID frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_;
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public boolean hasFrameworkId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() {
if (frameworkIdBuilder_ == null) {
return frameworkId_;
} else {
return frameworkIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public Builder setFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) {
if (frameworkIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
frameworkId_ = value;
onChanged();
} else {
frameworkIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public Builder setFrameworkId(
org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) {
if (frameworkIdBuilder_ == null) {
frameworkId_ = builderForValue.build();
onChanged();
} else {
frameworkIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) {
if (frameworkIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
frameworkId_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) {
frameworkId_ =
org.apache.mesos.v1.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial();
} else {
frameworkId_ = value;
}
onChanged();
} else {
frameworkIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public Builder clearFrameworkId() {
if (frameworkIdBuilder_ == null) {
frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance();
onChanged();
} else {
frameworkIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getFrameworkIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() {
if (frameworkIdBuilder_ != null) {
return frameworkIdBuilder_.getMessageOrBuilder();
} else {
return frameworkId_;
}
}
/**
* required .mesos.v1.FrameworkID framework_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>
getFrameworkIdFieldBuilder() {
if (frameworkIdBuilder_ == null) {
frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>(
getFrameworkId(),
getParentForChildren(),
isClean());
frameworkId_ = null;
}
return frameworkIdBuilder_;
}
private double heartbeatIntervalSeconds_ ;
/**
* optional double heartbeat_interval_seconds = 2;
*
*
* This value will be set if the master is sending heartbeats. See
* the comment above on 'HEARTBEAT' for more details.
*
*/
public boolean hasHeartbeatIntervalSeconds() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double heartbeat_interval_seconds = 2;
*
*
* This value will be set if the master is sending heartbeats. See
* the comment above on 'HEARTBEAT' for more details.
*
*/
public double getHeartbeatIntervalSeconds() {
return heartbeatIntervalSeconds_;
}
/**
* optional double heartbeat_interval_seconds = 2;
*
*
* This value will be set if the master is sending heartbeats. See
* the comment above on 'HEARTBEAT' for more details.
*
*/
public Builder setHeartbeatIntervalSeconds(double value) {
bitField0_ |= 0x00000002;
heartbeatIntervalSeconds_ = value;
onChanged();
return this;
}
/**
* optional double heartbeat_interval_seconds = 2;
*
*
* This value will be set if the master is sending heartbeats. See
* the comment above on 'HEARTBEAT' for more details.
*
*/
public Builder clearHeartbeatIntervalSeconds() {
bitField0_ = (bitField0_ & ~0x00000002);
heartbeatIntervalSeconds_ = 0D;
onChanged();
return this;
}
private org.apache.mesos.v1.Protos.MasterInfo masterInfo_ = org.apache.mesos.v1.Protos.MasterInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.MasterInfo, org.apache.mesos.v1.Protos.MasterInfo.Builder, org.apache.mesos.v1.Protos.MasterInfoOrBuilder> masterInfoBuilder_;
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public boolean hasMasterInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public org.apache.mesos.v1.Protos.MasterInfo getMasterInfo() {
if (masterInfoBuilder_ == null) {
return masterInfo_;
} else {
return masterInfoBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public Builder setMasterInfo(org.apache.mesos.v1.Protos.MasterInfo value) {
if (masterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
masterInfo_ = value;
onChanged();
} else {
masterInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public Builder setMasterInfo(
org.apache.mesos.v1.Protos.MasterInfo.Builder builderForValue) {
if (masterInfoBuilder_ == null) {
masterInfo_ = builderForValue.build();
onChanged();
} else {
masterInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public Builder mergeMasterInfo(org.apache.mesos.v1.Protos.MasterInfo value) {
if (masterInfoBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
masterInfo_ != org.apache.mesos.v1.Protos.MasterInfo.getDefaultInstance()) {
masterInfo_ =
org.apache.mesos.v1.Protos.MasterInfo.newBuilder(masterInfo_).mergeFrom(value).buildPartial();
} else {
masterInfo_ = value;
}
onChanged();
} else {
masterInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public Builder clearMasterInfo() {
if (masterInfoBuilder_ == null) {
masterInfo_ = org.apache.mesos.v1.Protos.MasterInfo.getDefaultInstance();
onChanged();
} else {
masterInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public org.apache.mesos.v1.Protos.MasterInfo.Builder getMasterInfoBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMasterInfoFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
public org.apache.mesos.v1.Protos.MasterInfoOrBuilder getMasterInfoOrBuilder() {
if (masterInfoBuilder_ != null) {
return masterInfoBuilder_.getMessageOrBuilder();
} else {
return masterInfo_;
}
}
/**
* optional .mesos.v1.MasterInfo master_info = 3;
*
*
* Since Mesos 1.1.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.MasterInfo, org.apache.mesos.v1.Protos.MasterInfo.Builder, org.apache.mesos.v1.Protos.MasterInfoOrBuilder>
getMasterInfoFieldBuilder() {
if (masterInfoBuilder_ == null) {
masterInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.MasterInfo, org.apache.mesos.v1.Protos.MasterInfo.Builder, org.apache.mesos.v1.Protos.MasterInfoOrBuilder>(
getMasterInfo(),
getParentForChildren(),
isClean());
masterInfo_ = null;
}
return masterInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.Subscribed)
}
static {
defaultInstance = new Subscribed(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.Subscribed)
}
public interface OffersOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.Offers)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.Offer offers = 1;
*/
java.util.List
getOffersList();
/**
* repeated .mesos.v1.Offer offers = 1;
*/
org.apache.mesos.v1.Protos.Offer getOffers(int index);
/**
* repeated .mesos.v1.Offer offers = 1;
*/
int getOffersCount();
/**
* repeated .mesos.v1.Offer offers = 1;
*/
java.util.List extends org.apache.mesos.v1.Protos.OfferOrBuilder>
getOffersOrBuilderList();
/**
* repeated .mesos.v1.Offer offers = 1;
*/
org.apache.mesos.v1.Protos.OfferOrBuilder getOffersOrBuilder(
int index);
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Offers}
*
*
* Received whenever there are new resources that are offered to the
* scheduler. Each offer corresponds to a set of resources on an
* agent. Until the scheduler accepts or declines an offer the
* resources are considered allocated to the scheduler.
*
*/
public static final class Offers extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.Offers)
OffersOrBuilder {
// Use Offers.newBuilder() to construct.
private Offers(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Offers(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Offers defaultInstance;
public static Offers getDefaultInstance() {
return defaultInstance;
}
public Offers getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Offers(
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)) {
offers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
offers_.add(input.readMessage(org.apache.mesos.v1.Protos.Offer.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)) {
offers_ = java.util.Collections.unmodifiableList(offers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Offers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Offers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Offers.class, org.apache.mesos.v1.scheduler.Protos.Event.Offers.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Offers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Offers(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int OFFERS_FIELD_NUMBER = 1;
private java.util.List offers_;
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public java.util.List getOffersList() {
return offers_;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferOrBuilder>
getOffersOrBuilderList() {
return offers_;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public int getOffersCount() {
return offers_.size();
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public org.apache.mesos.v1.Protos.Offer getOffers(int index) {
return offers_.get(index);
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public org.apache.mesos.v1.Protos.OfferOrBuilder getOffersOrBuilder(
int index) {
return offers_.get(index);
}
private void initFields() {
offers_ = 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 < getOffersCount(); i++) {
if (!getOffers(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 < offers_.size(); i++) {
output.writeMessage(1, offers_.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 < offers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, offers_.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.scheduler.Protos.Event.Offers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Offers 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.scheduler.Protos.Event.Offers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Offers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Offers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Offers 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.scheduler.Protos.Event.Offers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Offers 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.scheduler.Protos.Event.Offers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Offers 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.scheduler.Protos.Event.Offers 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.scheduler.Event.Offers}
*
*
* Received whenever there are new resources that are offered to the
* scheduler. Each offer corresponds to a set of resources on an
* agent. Until the scheduler accepts or declines an offer the
* resources are considered allocated to the scheduler.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.Offers)
org.apache.mesos.v1.scheduler.Protos.Event.OffersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Offers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Offers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Offers.class, org.apache.mesos.v1.scheduler.Protos.Event.Offers.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.Offers.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getOffersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (offersBuilder_ == null) {
offers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
offersBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Offers_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Offers getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.Offers.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.Offers build() {
org.apache.mesos.v1.scheduler.Protos.Event.Offers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Offers buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.Offers result = new org.apache.mesos.v1.scheduler.Protos.Event.Offers(this);
int from_bitField0_ = bitField0_;
if (offersBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
offers_ = java.util.Collections.unmodifiableList(offers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.offers_ = offers_;
} else {
result.offers_ = offersBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.Offers) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.Offers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.Offers other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.Offers.getDefaultInstance()) return this;
if (offersBuilder_ == null) {
if (!other.offers_.isEmpty()) {
if (offers_.isEmpty()) {
offers_ = other.offers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOffersIsMutable();
offers_.addAll(other.offers_);
}
onChanged();
}
} else {
if (!other.offers_.isEmpty()) {
if (offersBuilder_.isEmpty()) {
offersBuilder_.dispose();
offersBuilder_ = null;
offers_ = other.offers_;
bitField0_ = (bitField0_ & ~0x00000001);
offersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getOffersFieldBuilder() : null;
} else {
offersBuilder_.addAllMessages(other.offers_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getOffersCount(); i++) {
if (!getOffers(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.scheduler.Protos.Event.Offers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.Offers) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List offers_ =
java.util.Collections.emptyList();
private void ensureOffersIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
offers_ = new java.util.ArrayList(offers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Offer, org.apache.mesos.v1.Protos.Offer.Builder, org.apache.mesos.v1.Protos.OfferOrBuilder> offersBuilder_;
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public java.util.List getOffersList() {
if (offersBuilder_ == null) {
return java.util.Collections.unmodifiableList(offers_);
} else {
return offersBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public int getOffersCount() {
if (offersBuilder_ == null) {
return offers_.size();
} else {
return offersBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public org.apache.mesos.v1.Protos.Offer getOffers(int index) {
if (offersBuilder_ == null) {
return offers_.get(index);
} else {
return offersBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder setOffers(
int index, org.apache.mesos.v1.Protos.Offer value) {
if (offersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOffersIsMutable();
offers_.set(index, value);
onChanged();
} else {
offersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder setOffers(
int index, org.apache.mesos.v1.Protos.Offer.Builder builderForValue) {
if (offersBuilder_ == null) {
ensureOffersIsMutable();
offers_.set(index, builderForValue.build());
onChanged();
} else {
offersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder addOffers(org.apache.mesos.v1.Protos.Offer value) {
if (offersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOffersIsMutable();
offers_.add(value);
onChanged();
} else {
offersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder addOffers(
int index, org.apache.mesos.v1.Protos.Offer value) {
if (offersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOffersIsMutable();
offers_.add(index, value);
onChanged();
} else {
offersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder addOffers(
org.apache.mesos.v1.Protos.Offer.Builder builderForValue) {
if (offersBuilder_ == null) {
ensureOffersIsMutable();
offers_.add(builderForValue.build());
onChanged();
} else {
offersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder addOffers(
int index, org.apache.mesos.v1.Protos.Offer.Builder builderForValue) {
if (offersBuilder_ == null) {
ensureOffersIsMutable();
offers_.add(index, builderForValue.build());
onChanged();
} else {
offersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder addAllOffers(
java.lang.Iterable extends org.apache.mesos.v1.Protos.Offer> values) {
if (offersBuilder_ == null) {
ensureOffersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, offers_);
onChanged();
} else {
offersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder clearOffers() {
if (offersBuilder_ == null) {
offers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
offersBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public Builder removeOffers(int index) {
if (offersBuilder_ == null) {
ensureOffersIsMutable();
offers_.remove(index);
onChanged();
} else {
offersBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public org.apache.mesos.v1.Protos.Offer.Builder getOffersBuilder(
int index) {
return getOffersFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public org.apache.mesos.v1.Protos.OfferOrBuilder getOffersOrBuilder(
int index) {
if (offersBuilder_ == null) {
return offers_.get(index); } else {
return offersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferOrBuilder>
getOffersOrBuilderList() {
if (offersBuilder_ != null) {
return offersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(offers_);
}
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public org.apache.mesos.v1.Protos.Offer.Builder addOffersBuilder() {
return getOffersFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.Offer.getDefaultInstance());
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public org.apache.mesos.v1.Protos.Offer.Builder addOffersBuilder(
int index) {
return getOffersFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.Offer.getDefaultInstance());
}
/**
* repeated .mesos.v1.Offer offers = 1;
*/
public java.util.List
getOffersBuilderList() {
return getOffersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Offer, org.apache.mesos.v1.Protos.Offer.Builder, org.apache.mesos.v1.Protos.OfferOrBuilder>
getOffersFieldBuilder() {
if (offersBuilder_ == null) {
offersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Offer, org.apache.mesos.v1.Protos.Offer.Builder, org.apache.mesos.v1.Protos.OfferOrBuilder>(
offers_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
offers_ = null;
}
return offersBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.Offers)
}
static {
defaultInstance = new Offers(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.Offers)
}
public interface InverseOffersOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.InverseOffers)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
java.util.List
getInverseOffersList();
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
org.apache.mesos.v1.Protos.InverseOffer getInverseOffers(int index);
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
int getInverseOffersCount();
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
java.util.List extends org.apache.mesos.v1.Protos.InverseOfferOrBuilder>
getInverseOffersOrBuilderList();
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
org.apache.mesos.v1.Protos.InverseOfferOrBuilder getInverseOffersOrBuilder(
int index);
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.InverseOffers}
*
*
* Received whenever there are resources requested back from the
* scheduler. Each inverse offer specifies the agent, and
* optionally specific resources. Accepting or Declining an inverse
* offer informs the allocator of the scheduler's ability to release
* the specified resources without violating an SLA. If no resources
* are specified then all resources on the agent are requested to be
* released.
*
*/
public static final class InverseOffers extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.InverseOffers)
InverseOffersOrBuilder {
// Use InverseOffers.newBuilder() to construct.
private InverseOffers(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private InverseOffers(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final InverseOffers defaultInstance;
public static InverseOffers getDefaultInstance() {
return defaultInstance;
}
public InverseOffers getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InverseOffers(
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)) {
inverseOffers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
inverseOffers_.add(input.readMessage(org.apache.mesos.v1.Protos.InverseOffer.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)) {
inverseOffers_ = java.util.Collections.unmodifiableList(inverseOffers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_InverseOffers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_InverseOffers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.class, org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public InverseOffers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InverseOffers(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int INVERSE_OFFERS_FIELD_NUMBER = 1;
private java.util.List inverseOffers_;
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public java.util.List getInverseOffersList() {
return inverseOffers_;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.InverseOfferOrBuilder>
getInverseOffersOrBuilderList() {
return inverseOffers_;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public int getInverseOffersCount() {
return inverseOffers_.size();
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public org.apache.mesos.v1.Protos.InverseOffer getInverseOffers(int index) {
return inverseOffers_.get(index);
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public org.apache.mesos.v1.Protos.InverseOfferOrBuilder getInverseOffersOrBuilder(
int index) {
return inverseOffers_.get(index);
}
private void initFields() {
inverseOffers_ = 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 < getInverseOffersCount(); i++) {
if (!getInverseOffers(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 < inverseOffers_.size(); i++) {
output.writeMessage(1, inverseOffers_.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 < inverseOffers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, inverseOffers_.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.scheduler.Protos.Event.InverseOffers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers 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.scheduler.Protos.Event.InverseOffers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers 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.scheduler.Protos.Event.InverseOffers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers 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.scheduler.Protos.Event.InverseOffers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers 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.scheduler.Protos.Event.InverseOffers 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.scheduler.Event.InverseOffers}
*
*
* Received whenever there are resources requested back from the
* scheduler. Each inverse offer specifies the agent, and
* optionally specific resources. Accepting or Declining an inverse
* offer informs the allocator of the scheduler's ability to release
* the specified resources without violating an SLA. If no resources
* are specified then all resources on the agent are requested to be
* released.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.InverseOffers)
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_InverseOffers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_InverseOffers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.class, org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getInverseOffersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (inverseOffersBuilder_ == null) {
inverseOffers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
inverseOffersBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_InverseOffers_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers build() {
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers result = new org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers(this);
int from_bitField0_ = bitField0_;
if (inverseOffersBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
inverseOffers_ = java.util.Collections.unmodifiableList(inverseOffers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.inverseOffers_ = inverseOffers_;
} else {
result.inverseOffers_ = inverseOffersBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.getDefaultInstance()) return this;
if (inverseOffersBuilder_ == null) {
if (!other.inverseOffers_.isEmpty()) {
if (inverseOffers_.isEmpty()) {
inverseOffers_ = other.inverseOffers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInverseOffersIsMutable();
inverseOffers_.addAll(other.inverseOffers_);
}
onChanged();
}
} else {
if (!other.inverseOffers_.isEmpty()) {
if (inverseOffersBuilder_.isEmpty()) {
inverseOffersBuilder_.dispose();
inverseOffersBuilder_ = null;
inverseOffers_ = other.inverseOffers_;
bitField0_ = (bitField0_ & ~0x00000001);
inverseOffersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getInverseOffersFieldBuilder() : null;
} else {
inverseOffersBuilder_.addAllMessages(other.inverseOffers_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getInverseOffersCount(); i++) {
if (!getInverseOffers(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.scheduler.Protos.Event.InverseOffers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List inverseOffers_ =
java.util.Collections.emptyList();
private void ensureInverseOffersIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
inverseOffers_ = new java.util.ArrayList(inverseOffers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.InverseOffer, org.apache.mesos.v1.Protos.InverseOffer.Builder, org.apache.mesos.v1.Protos.InverseOfferOrBuilder> inverseOffersBuilder_;
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public java.util.List getInverseOffersList() {
if (inverseOffersBuilder_ == null) {
return java.util.Collections.unmodifiableList(inverseOffers_);
} else {
return inverseOffersBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public int getInverseOffersCount() {
if (inverseOffersBuilder_ == null) {
return inverseOffers_.size();
} else {
return inverseOffersBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public org.apache.mesos.v1.Protos.InverseOffer getInverseOffers(int index) {
if (inverseOffersBuilder_ == null) {
return inverseOffers_.get(index);
} else {
return inverseOffersBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder setInverseOffers(
int index, org.apache.mesos.v1.Protos.InverseOffer value) {
if (inverseOffersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOffersIsMutable();
inverseOffers_.set(index, value);
onChanged();
} else {
inverseOffersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder setInverseOffers(
int index, org.apache.mesos.v1.Protos.InverseOffer.Builder builderForValue) {
if (inverseOffersBuilder_ == null) {
ensureInverseOffersIsMutable();
inverseOffers_.set(index, builderForValue.build());
onChanged();
} else {
inverseOffersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder addInverseOffers(org.apache.mesos.v1.Protos.InverseOffer value) {
if (inverseOffersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOffersIsMutable();
inverseOffers_.add(value);
onChanged();
} else {
inverseOffersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder addInverseOffers(
int index, org.apache.mesos.v1.Protos.InverseOffer value) {
if (inverseOffersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOffersIsMutable();
inverseOffers_.add(index, value);
onChanged();
} else {
inverseOffersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder addInverseOffers(
org.apache.mesos.v1.Protos.InverseOffer.Builder builderForValue) {
if (inverseOffersBuilder_ == null) {
ensureInverseOffersIsMutable();
inverseOffers_.add(builderForValue.build());
onChanged();
} else {
inverseOffersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder addInverseOffers(
int index, org.apache.mesos.v1.Protos.InverseOffer.Builder builderForValue) {
if (inverseOffersBuilder_ == null) {
ensureInverseOffersIsMutable();
inverseOffers_.add(index, builderForValue.build());
onChanged();
} else {
inverseOffersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder addAllInverseOffers(
java.lang.Iterable extends org.apache.mesos.v1.Protos.InverseOffer> values) {
if (inverseOffersBuilder_ == null) {
ensureInverseOffersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inverseOffers_);
onChanged();
} else {
inverseOffersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder clearInverseOffers() {
if (inverseOffersBuilder_ == null) {
inverseOffers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
inverseOffersBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public Builder removeInverseOffers(int index) {
if (inverseOffersBuilder_ == null) {
ensureInverseOffersIsMutable();
inverseOffers_.remove(index);
onChanged();
} else {
inverseOffersBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public org.apache.mesos.v1.Protos.InverseOffer.Builder getInverseOffersBuilder(
int index) {
return getInverseOffersFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public org.apache.mesos.v1.Protos.InverseOfferOrBuilder getInverseOffersOrBuilder(
int index) {
if (inverseOffersBuilder_ == null) {
return inverseOffers_.get(index); } else {
return inverseOffersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.InverseOfferOrBuilder>
getInverseOffersOrBuilderList() {
if (inverseOffersBuilder_ != null) {
return inverseOffersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inverseOffers_);
}
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public org.apache.mesos.v1.Protos.InverseOffer.Builder addInverseOffersBuilder() {
return getInverseOffersFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.InverseOffer.getDefaultInstance());
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public org.apache.mesos.v1.Protos.InverseOffer.Builder addInverseOffersBuilder(
int index) {
return getInverseOffersFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.InverseOffer.getDefaultInstance());
}
/**
* repeated .mesos.v1.InverseOffer inverse_offers = 1;
*/
public java.util.List
getInverseOffersBuilderList() {
return getInverseOffersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.InverseOffer, org.apache.mesos.v1.Protos.InverseOffer.Builder, org.apache.mesos.v1.Protos.InverseOfferOrBuilder>
getInverseOffersFieldBuilder() {
if (inverseOffersBuilder_ == null) {
inverseOffersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.InverseOffer, org.apache.mesos.v1.Protos.InverseOffer.Builder, org.apache.mesos.v1.Protos.InverseOfferOrBuilder>(
inverseOffers_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
inverseOffers_ = null;
}
return inverseOffersBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.InverseOffers)
}
static {
defaultInstance = new InverseOffers(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.InverseOffers)
}
public interface RescindOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.Rescind)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
boolean hasOfferId();
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
org.apache.mesos.v1.Protos.OfferID getOfferId();
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Rescind}
*
*
* Received when a particular offer is no longer valid (e.g., the
* agent corresponding to the offer has been removed) and hence
* needs to be rescinded. Any future calls ('Accept' / 'Decline') made
* by the scheduler regarding this offer will be invalid.
*
*/
public static final class Rescind extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.Rescind)
RescindOrBuilder {
// Use Rescind.newBuilder() to construct.
private Rescind(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Rescind(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Rescind defaultInstance;
public static Rescind getDefaultInstance() {
return defaultInstance;
}
public Rescind getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Rescind(
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.OfferID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = offerId_.toBuilder();
}
offerId_ = input.readMessage(org.apache.mesos.v1.Protos.OfferID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(offerId_);
offerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Rescind_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Rescind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Rescind.class, org.apache.mesos.v1.scheduler.Protos.Event.Rescind.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Rescind parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Rescind(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int OFFER_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.OfferID offerId_;
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public boolean hasOfferId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getOfferId() {
return offerId_;
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdOrBuilder() {
return offerId_;
}
private void initFields() {
offerId_ = org.apache.mesos.v1.Protos.OfferID.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasOfferId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getOfferId().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, offerId_);
}
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, offerId_);
}
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.scheduler.Protos.Event.Rescind parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Rescind 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.scheduler.Protos.Event.Rescind parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Rescind parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Rescind parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Rescind 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.scheduler.Protos.Event.Rescind parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Rescind 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.scheduler.Protos.Event.Rescind parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Rescind 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.scheduler.Protos.Event.Rescind 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.scheduler.Event.Rescind}
*
*
* Received when a particular offer is no longer valid (e.g., the
* agent corresponding to the offer has been removed) and hence
* needs to be rescinded. Any future calls ('Accept' / 'Decline') made
* by the scheduler regarding this offer will be invalid.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.Rescind)
org.apache.mesos.v1.scheduler.Protos.Event.RescindOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Rescind_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Rescind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Rescind.class, org.apache.mesos.v1.scheduler.Protos.Event.Rescind.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.Rescind.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getOfferIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (offerIdBuilder_ == null) {
offerId_ = org.apache.mesos.v1.Protos.OfferID.getDefaultInstance();
} else {
offerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Rescind_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Rescind getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.Rescind.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.Rescind build() {
org.apache.mesos.v1.scheduler.Protos.Event.Rescind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Rescind buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.Rescind result = new org.apache.mesos.v1.scheduler.Protos.Event.Rescind(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (offerIdBuilder_ == null) {
result.offerId_ = offerId_;
} else {
result.offerId_ = offerIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.Rescind) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.Rescind)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.Rescind other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.Rescind.getDefaultInstance()) return this;
if (other.hasOfferId()) {
mergeOfferId(other.getOfferId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasOfferId()) {
return false;
}
if (!getOfferId().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.scheduler.Protos.Event.Rescind parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.Rescind) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.OfferID offerId_ = org.apache.mesos.v1.Protos.OfferID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> offerIdBuilder_;
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public boolean hasOfferId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getOfferId() {
if (offerIdBuilder_ == null) {
return offerId_;
} else {
return offerIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public Builder setOfferId(org.apache.mesos.v1.Protos.OfferID value) {
if (offerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
offerId_ = value;
onChanged();
} else {
offerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public Builder setOfferId(
org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (offerIdBuilder_ == null) {
offerId_ = builderForValue.build();
onChanged();
} else {
offerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public Builder mergeOfferId(org.apache.mesos.v1.Protos.OfferID value) {
if (offerIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
offerId_ != org.apache.mesos.v1.Protos.OfferID.getDefaultInstance()) {
offerId_ =
org.apache.mesos.v1.Protos.OfferID.newBuilder(offerId_).mergeFrom(value).buildPartial();
} else {
offerId_ = value;
}
onChanged();
} else {
offerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public Builder clearOfferId() {
if (offerIdBuilder_ == null) {
offerId_ = org.apache.mesos.v1.Protos.OfferID.getDefaultInstance();
onChanged();
} else {
offerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder getOfferIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOfferIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdOrBuilder() {
if (offerIdBuilder_ != null) {
return offerIdBuilder_.getMessageOrBuilder();
} else {
return offerId_;
}
}
/**
* required .mesos.v1.OfferID offer_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdFieldBuilder() {
if (offerIdBuilder_ == null) {
offerIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>(
getOfferId(),
getParentForChildren(),
isClean());
offerId_ = null;
}
return offerIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.Rescind)
}
static {
defaultInstance = new Rescind(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.Rescind)
}
public interface RescindInverseOfferOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.RescindInverseOffer)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
boolean hasInverseOfferId();
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
org.apache.mesos.v1.Protos.OfferID getInverseOfferId();
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.RescindInverseOffer}
*
*
* Received when a particular inverse offer is no longer valid
* (e.g., the agent corresponding to the offer has been removed)
* and hence needs to be rescinded. Any future calls ('Accept' /
* 'Decline') made by the scheduler regarding this inverse offer
* will be invalid.
*
*/
public static final class RescindInverseOffer extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.RescindInverseOffer)
RescindInverseOfferOrBuilder {
// Use RescindInverseOffer.newBuilder() to construct.
private RescindInverseOffer(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RescindInverseOffer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RescindInverseOffer defaultInstance;
public static RescindInverseOffer getDefaultInstance() {
return defaultInstance;
}
public RescindInverseOffer getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RescindInverseOffer(
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.OfferID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = inverseOfferId_.toBuilder();
}
inverseOfferId_ = input.readMessage(org.apache.mesos.v1.Protos.OfferID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(inverseOfferId_);
inverseOfferId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.class, org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RescindInverseOffer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RescindInverseOffer(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INVERSE_OFFER_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.OfferID inverseOfferId_;
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public boolean hasInverseOfferId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getInverseOfferId() {
return inverseOfferId_;
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdOrBuilder() {
return inverseOfferId_;
}
private void initFields() {
inverseOfferId_ = org.apache.mesos.v1.Protos.OfferID.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasInverseOfferId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getInverseOfferId().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, inverseOfferId_);
}
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, inverseOfferId_);
}
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.scheduler.Protos.Event.RescindInverseOffer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer 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.scheduler.Protos.Event.RescindInverseOffer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer 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.scheduler.Protos.Event.RescindInverseOffer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer 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.scheduler.Protos.Event.RescindInverseOffer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer 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.scheduler.Protos.Event.RescindInverseOffer 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.scheduler.Event.RescindInverseOffer}
*
*
* Received when a particular inverse offer is no longer valid
* (e.g., the agent corresponding to the offer has been removed)
* and hence needs to be rescinded. Any future calls ('Accept' /
* 'Decline') made by the scheduler regarding this inverse offer
* will be invalid.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.RescindInverseOffer)
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOfferOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.class, org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getInverseOfferIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (inverseOfferIdBuilder_ == null) {
inverseOfferId_ = org.apache.mesos.v1.Protos.OfferID.getDefaultInstance();
} else {
inverseOfferIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer build() {
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer result = new org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (inverseOfferIdBuilder_ == null) {
result.inverseOfferId_ = inverseOfferId_;
} else {
result.inverseOfferId_ = inverseOfferIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.getDefaultInstance()) return this;
if (other.hasInverseOfferId()) {
mergeInverseOfferId(other.getInverseOfferId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasInverseOfferId()) {
return false;
}
if (!getInverseOfferId().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.scheduler.Protos.Event.RescindInverseOffer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.OfferID inverseOfferId_ = org.apache.mesos.v1.Protos.OfferID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> inverseOfferIdBuilder_;
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public boolean hasInverseOfferId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getInverseOfferId() {
if (inverseOfferIdBuilder_ == null) {
return inverseOfferId_;
} else {
return inverseOfferIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public Builder setInverseOfferId(org.apache.mesos.v1.Protos.OfferID value) {
if (inverseOfferIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inverseOfferId_ = value;
onChanged();
} else {
inverseOfferIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public Builder setInverseOfferId(
org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (inverseOfferIdBuilder_ == null) {
inverseOfferId_ = builderForValue.build();
onChanged();
} else {
inverseOfferIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public Builder mergeInverseOfferId(org.apache.mesos.v1.Protos.OfferID value) {
if (inverseOfferIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
inverseOfferId_ != org.apache.mesos.v1.Protos.OfferID.getDefaultInstance()) {
inverseOfferId_ =
org.apache.mesos.v1.Protos.OfferID.newBuilder(inverseOfferId_).mergeFrom(value).buildPartial();
} else {
inverseOfferId_ = value;
}
onChanged();
} else {
inverseOfferIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public Builder clearInverseOfferId() {
if (inverseOfferIdBuilder_ == null) {
inverseOfferId_ = org.apache.mesos.v1.Protos.OfferID.getDefaultInstance();
onChanged();
} else {
inverseOfferIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder getInverseOfferIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getInverseOfferIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdOrBuilder() {
if (inverseOfferIdBuilder_ != null) {
return inverseOfferIdBuilder_.getMessageOrBuilder();
} else {
return inverseOfferId_;
}
}
/**
* required .mesos.v1.OfferID inverse_offer_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdFieldBuilder() {
if (inverseOfferIdBuilder_ == null) {
inverseOfferIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>(
getInverseOfferId(),
getParentForChildren(),
isClean());
inverseOfferId_ = null;
}
return inverseOfferIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.RescindInverseOffer)
}
static {
defaultInstance = new RescindInverseOffer(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.RescindInverseOffer)
}
public interface UpdateOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.Update)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.TaskStatus status = 1;
*/
boolean hasStatus();
/**
* required .mesos.v1.TaskStatus status = 1;
*/
org.apache.mesos.v1.Protos.TaskStatus getStatus();
/**
* required .mesos.v1.TaskStatus status = 1;
*/
org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Update}
*
*
* Received whenever there is a status update that is generated by
* the executor or agent or master. Status updates should be used by
* executors to reliably communicate the status of the tasks that
* they manage. It is crucial that a terminal update (see TaskState
* in v1/mesos.proto) is sent by the executor as soon as the task
* terminates, in order for Mesos to release the resources allocated
* to the task. It is also the responsibility of the scheduler to
* explicitly acknowledge the receipt of a status update. See
* 'Acknowledge' in the 'Call' section below for the semantics.
* A task status update may be used for guaranteed delivery of some
* task-related information, e.g., task's health update. Such
* information may be shadowed by subsequent task status updates, that
* do not preserve fields of the previously sent message.
*
*/
public static final class Update extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.Update)
UpdateOrBuilder {
// Use Update.newBuilder() to construct.
private Update(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Update(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Update defaultInstance;
public static Update getDefaultInstance() {
return defaultInstance;
}
public Update getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Update(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.TaskStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(org.apache.mesos.v1.Protos.TaskStatus.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Update_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Update_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Update.class, org.apache.mesos.v1.scheduler.Protos.Event.Update.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Update parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Update(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.TaskStatus status_;
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatus getStatus() {
return status_;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusOrBuilder() {
return status_;
}
private void initFields() {
status_ = org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasStatus()) {
memoizedIsInitialized = 0;
return false;
}
if (!getStatus().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, status_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, status_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Update parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Event.Update prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Update}
*
*
* Received whenever there is a status update that is generated by
* the executor or agent or master. Status updates should be used by
* executors to reliably communicate the status of the tasks that
* they manage. It is crucial that a terminal update (see TaskState
* in v1/mesos.proto) is sent by the executor as soon as the task
* terminates, in order for Mesos to release the resources allocated
* to the task. It is also the responsibility of the scheduler to
* explicitly acknowledge the receipt of a status update. See
* 'Acknowledge' in the 'Call' section below for the semantics.
* A task status update may be used for guaranteed delivery of some
* task-related information, e.g., task's health update. Such
* information may be shadowed by subsequent task status updates, that
* do not preserve fields of the previously sent message.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.Update)
org.apache.mesos.v1.scheduler.Protos.Event.UpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Update_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Update_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Update.class, org.apache.mesos.v1.scheduler.Protos.Event.Update.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.Update.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (statusBuilder_ == null) {
status_ = org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance();
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Update_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Update getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.Update.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.Update build() {
org.apache.mesos.v1.scheduler.Protos.Event.Update result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Update buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.Update result = new org.apache.mesos.v1.scheduler.Protos.Event.Update(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.Update) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.Update)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.Update other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.Update.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasStatus()) {
return false;
}
if (!getStatus().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Event.Update parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.Update) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.TaskStatus status_ = org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder> statusBuilder_;
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatus getStatus() {
if (statusBuilder_ == null) {
return status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public Builder setStatus(org.apache.mesos.v1.Protos.TaskStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public Builder setStatus(
org.apache.mesos.v1.Protos.TaskStatus.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public Builder mergeStatus(org.apache.mesos.v1.Protos.TaskStatus value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
status_ != org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance()) {
status_ =
org.apache.mesos.v1.Protos.TaskStatus.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance();
onChanged();
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatus.Builder getStatusBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_;
}
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.Update)
}
static {
defaultInstance = new Update(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.Update)
}
public interface MessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.Message)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
boolean hasAgentId();
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
org.apache.mesos.v1.Protos.AgentID getAgentId();
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder();
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
boolean hasExecutorId();
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
org.apache.mesos.v1.Protos.ExecutorID getExecutorId();
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder();
/**
* required bytes data = 3;
*/
boolean hasData();
/**
* required bytes data = 3;
*/
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Message}
*
*
* Received when a custom message generated by the executor is
* forwarded by the master. Note that this message is not
* interpreted by Mesos and is only forwarded (without reliability
* guarantees) to the scheduler. It is up to the executor to retry
* if the message is dropped for any reason.
*
*/
public static final class Message extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.Message)
MessageOrBuilder {
// Use Message.newBuilder() to construct.
private Message(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Message defaultInstance;
public static Message getDefaultInstance() {
return defaultInstance;
}
public Message getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Message(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = agentId_.toBuilder();
}
agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentId_);
agentId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = executorId_.toBuilder();
}
executorId_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executorId_);
executorId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
bitField0_ |= 0x00000004;
data_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Message.class, org.apache.mesos.v1.scheduler.Protos.Event.Message.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Message parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Message(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int AGENT_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.AgentID agentId_;
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
return agentId_;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
return agentId_;
}
public static final int EXECUTOR_ID_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.ExecutorID executorId_;
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
return executorId_;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
return executorId_;
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
* required bytes data = 3;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
private void initFields() {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
data_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasAgentId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasExecutorId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
if (!getAgentId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getExecutorId().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, agentId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, executorId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, data_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, agentId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, executorId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Message parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Event.Message prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Message}
*
*
* Received when a custom message generated by the executor is
* forwarded by the master. Note that this message is not
* interpreted by Mesos and is only forwarded (without reliability
* guarantees) to the scheduler. It is up to the executor to retry
* if the message is dropped for any reason.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.Message)
org.apache.mesos.v1.scheduler.Protos.Event.MessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Message.class, org.apache.mesos.v1.scheduler.Protos.Event.Message.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.Message.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAgentIdFieldBuilder();
getExecutorIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (executorIdBuilder_ == null) {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Message_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Message getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.Message.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.Message build() {
org.apache.mesos.v1.scheduler.Protos.Event.Message result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Message buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.Message result = new org.apache.mesos.v1.scheduler.Protos.Event.Message(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (agentIdBuilder_ == null) {
result.agentId_ = agentId_;
} else {
result.agentId_ = agentIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (executorIdBuilder_ == null) {
result.executorId_ = executorId_;
} else {
result.executorId_ = executorIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.Message) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.Message)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.Message other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.Message.getDefaultInstance()) return this;
if (other.hasAgentId()) {
mergeAgentId(other.getAgentId());
}
if (other.hasExecutorId()) {
mergeExecutorId(other.getExecutorId());
}
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasAgentId()) {
return false;
}
if (!hasExecutorId()) {
return false;
}
if (!hasData()) {
return false;
}
if (!getAgentId().isInitialized()) {
return false;
}
if (!getExecutorId().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.scheduler.Protos.Event.Message parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.Message) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.AgentID agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_;
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
if (agentIdBuilder_ == null) {
return agentId_;
} else {
return agentIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentId_ = value;
onChanged();
} else {
agentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder setAgentId(
org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) {
if (agentIdBuilder_ == null) {
agentId_ = builderForValue.build();
onChanged();
} else {
agentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) {
agentId_ =
org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial();
} else {
agentId_ = value;
}
onChanged();
} else {
agentIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder clearAgentId() {
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
onChanged();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAgentIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
if (agentIdBuilder_ != null) {
return agentIdBuilder_.getMessageOrBuilder();
} else {
return agentId_;
}
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>
getAgentIdFieldBuilder() {
if (agentIdBuilder_ == null) {
agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>(
getAgentId(),
getParentForChildren(),
isClean());
agentId_ = null;
}
return agentIdBuilder_;
}
private org.apache.mesos.v1.Protos.ExecutorID executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_;
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
if (executorIdBuilder_ == null) {
return executorId_;
} else {
return executorIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public Builder setExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executorId_ = value;
onChanged();
} else {
executorIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public Builder setExecutorId(
org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) {
if (executorIdBuilder_ == null) {
executorId_ = builderForValue.build();
onChanged();
} else {
executorIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) {
executorId_ =
org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial();
} else {
executorId_ = value;
}
onChanged();
} else {
executorIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public Builder clearExecutorId() {
if (executorIdBuilder_ == null) {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
onChanged();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getExecutorIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
if (executorIdBuilder_ != null) {
return executorIdBuilder_.getMessageOrBuilder();
} else {
return executorId_;
}
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>
getExecutorIdFieldBuilder() {
if (executorIdBuilder_ == null) {
executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>(
getExecutorId(),
getParentForChildren(),
isClean());
executorId_ = null;
}
return executorIdBuilder_;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes data = 3;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* required bytes data = 3;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
data_ = value;
onChanged();
return this;
}
/**
* required bytes data = 3;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000004);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.Message)
}
static {
defaultInstance = new Message(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.Message)
}
public interface FailureOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.Failure)
com.google.protobuf.MessageOrBuilder {
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
boolean hasAgentId();
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
org.apache.mesos.v1.Protos.AgentID getAgentId();
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder();
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
boolean hasExecutorId();
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
org.apache.mesos.v1.Protos.ExecutorID getExecutorId();
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder();
/**
* optional int32 status = 3;
*
*
* On Posix, `status` corresponds to termination information in the
* `stat_loc` area returned from a `waitpid` call. On Windows, `status`
* is obtained via calling the `GetExitCodeProcess()` function. For
* messages coming from Posix agents, schedulers need to apply
* `WEXITSTATUS` family macros or equivalent transformations to obtain
* exit codes.
* TODO(alexr): Consider unifying Windows and Posix behavior by returning
* exit code here, see MESOS-7241.
*
*/
boolean hasStatus();
/**
* optional int32 status = 3;
*
*
* On Posix, `status` corresponds to termination information in the
* `stat_loc` area returned from a `waitpid` call. On Windows, `status`
* is obtained via calling the `GetExitCodeProcess()` function. For
* messages coming from Posix agents, schedulers need to apply
* `WEXITSTATUS` family macros or equivalent transformations to obtain
* exit codes.
* TODO(alexr): Consider unifying Windows and Posix behavior by returning
* exit code here, see MESOS-7241.
*
*/
int getStatus();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Failure}
*
*
* Received when an agent is removed from the cluster (e.g., failed
* health checks) or when an executor is terminated. Note that, this
* event coincides with receipt of terminal UPDATE events for any
* active tasks belonging to the agent or executor and receipt of
* 'Rescind' events for any outstanding offers belonging to the
* agent. Note that there is no guaranteed order between the
* 'Failure', 'Update' and 'Rescind' events when an agent or executor
* is removed.
* TODO(vinod): Consider splitting the lost agent and terminated
* executor into separate events and ensure it's reliably generated.
*
*/
public static final class Failure extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.Failure)
FailureOrBuilder {
// Use Failure.newBuilder() to construct.
private Failure(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Failure(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Failure defaultInstance;
public static Failure getDefaultInstance() {
return defaultInstance;
}
public Failure getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Failure(
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.AgentID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = agentId_.toBuilder();
}
agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentId_);
agentId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = executorId_.toBuilder();
}
executorId_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executorId_);
executorId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
status_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Failure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Failure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Failure.class, org.apache.mesos.v1.scheduler.Protos.Event.Failure.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Failure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Failure(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int AGENT_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.AgentID agentId_;
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
return agentId_;
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
return agentId_;
}
public static final int EXECUTOR_ID_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.ExecutorID executorId_;
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
return executorId_;
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
return executorId_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private int status_;
/**
* optional int32 status = 3;
*
*
* On Posix, `status` corresponds to termination information in the
* `stat_loc` area returned from a `waitpid` call. On Windows, `status`
* is obtained via calling the `GetExitCodeProcess()` function. For
* messages coming from Posix agents, schedulers need to apply
* `WEXITSTATUS` family macros or equivalent transformations to obtain
* exit codes.
* TODO(alexr): Consider unifying Windows and Posix behavior by returning
* exit code here, see MESOS-7241.
*
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 status = 3;
*
*
* On Posix, `status` corresponds to termination information in the
* `stat_loc` area returned from a `waitpid` call. On Windows, `status`
* is obtained via calling the `GetExitCodeProcess()` function. For
* messages coming from Posix agents, schedulers need to apply
* `WEXITSTATUS` family macros or equivalent transformations to obtain
* exit codes.
* TODO(alexr): Consider unifying Windows and Posix behavior by returning
* exit code here, see MESOS-7241.
*
*/
public int getStatus() {
return status_;
}
private void initFields() {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
status_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasAgentId()) {
if (!getAgentId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasExecutorId()) {
if (!getExecutorId().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, agentId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, executorId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, status_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, agentId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, executorId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, status_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Failure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Failure 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.scheduler.Protos.Event.Failure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Failure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Failure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Failure 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.scheduler.Protos.Event.Failure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Failure 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.scheduler.Protos.Event.Failure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Failure 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.scheduler.Protos.Event.Failure 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.scheduler.Event.Failure}
*
*
* Received when an agent is removed from the cluster (e.g., failed
* health checks) or when an executor is terminated. Note that, this
* event coincides with receipt of terminal UPDATE events for any
* active tasks belonging to the agent or executor and receipt of
* 'Rescind' events for any outstanding offers belonging to the
* agent. Note that there is no guaranteed order between the
* 'Failure', 'Update' and 'Rescind' events when an agent or executor
* is removed.
* TODO(vinod): Consider splitting the lost agent and terminated
* executor into separate events and ensure it's reliably generated.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.Failure)
org.apache.mesos.v1.scheduler.Protos.Event.FailureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Failure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Failure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Failure.class, org.apache.mesos.v1.scheduler.Protos.Event.Failure.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.Failure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAgentIdFieldBuilder();
getExecutorIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (executorIdBuilder_ == null) {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Failure_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Failure getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.Failure.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.Failure build() {
org.apache.mesos.v1.scheduler.Protos.Event.Failure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Failure buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.Failure result = new org.apache.mesos.v1.scheduler.Protos.Event.Failure(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (agentIdBuilder_ == null) {
result.agentId_ = agentId_;
} else {
result.agentId_ = agentIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (executorIdBuilder_ == null) {
result.executorId_ = executorId_;
} else {
result.executorId_ = executorIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.status_ = status_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.Failure) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.Failure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.Failure other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.Failure.getDefaultInstance()) return this;
if (other.hasAgentId()) {
mergeAgentId(other.getAgentId());
}
if (other.hasExecutorId()) {
mergeExecutorId(other.getExecutorId());
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasAgentId()) {
if (!getAgentId().isInitialized()) {
return false;
}
}
if (hasExecutorId()) {
if (!getExecutorId().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.scheduler.Protos.Event.Failure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.Failure) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.AgentID agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_;
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
if (agentIdBuilder_ == null) {
return agentId_;
} else {
return agentIdBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentId_ = value;
onChanged();
} else {
agentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public Builder setAgentId(
org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) {
if (agentIdBuilder_ == null) {
agentId_ = builderForValue.build();
onChanged();
} else {
agentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) {
agentId_ =
org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial();
} else {
agentId_ = value;
}
onChanged();
} else {
agentIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public Builder clearAgentId() {
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
onChanged();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAgentIdFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
if (agentIdBuilder_ != null) {
return agentIdBuilder_.getMessageOrBuilder();
} else {
return agentId_;
}
}
/**
* optional .mesos.v1.AgentID agent_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>
getAgentIdFieldBuilder() {
if (agentIdBuilder_ == null) {
agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>(
getAgentId(),
getParentForChildren(),
isClean());
agentId_ = null;
}
return agentIdBuilder_;
}
private org.apache.mesos.v1.Protos.ExecutorID executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_;
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
if (executorIdBuilder_ == null) {
return executorId_;
} else {
return executorIdBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public Builder setExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executorId_ = value;
onChanged();
} else {
executorIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public Builder setExecutorId(
org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) {
if (executorIdBuilder_ == null) {
executorId_ = builderForValue.build();
onChanged();
} else {
executorIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) {
executorId_ =
org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial();
} else {
executorId_ = value;
}
onChanged();
} else {
executorIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public Builder clearExecutorId() {
if (executorIdBuilder_ == null) {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
onChanged();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getExecutorIdFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
if (executorIdBuilder_ != null) {
return executorIdBuilder_.getMessageOrBuilder();
} else {
return executorId_;
}
}
/**
* optional .mesos.v1.ExecutorID executor_id = 2;
*
*
* If this was just a failure of an executor on an agent then
* 'executor_id' will be set and possibly 'status' (if we were
* able to determine the exit status).
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>
getExecutorIdFieldBuilder() {
if (executorIdBuilder_ == null) {
executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>(
getExecutorId(),
getParentForChildren(),
isClean());
executorId_ = null;
}
return executorIdBuilder_;
}
private int status_ ;
/**
* optional int32 status = 3;
*
*
* On Posix, `status` corresponds to termination information in the
* `stat_loc` area returned from a `waitpid` call. On Windows, `status`
* is obtained via calling the `GetExitCodeProcess()` function. For
* messages coming from Posix agents, schedulers need to apply
* `WEXITSTATUS` family macros or equivalent transformations to obtain
* exit codes.
* TODO(alexr): Consider unifying Windows and Posix behavior by returning
* exit code here, see MESOS-7241.
*
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 status = 3;
*
*
* On Posix, `status` corresponds to termination information in the
* `stat_loc` area returned from a `waitpid` call. On Windows, `status`
* is obtained via calling the `GetExitCodeProcess()` function. For
* messages coming from Posix agents, schedulers need to apply
* `WEXITSTATUS` family macros or equivalent transformations to obtain
* exit codes.
* TODO(alexr): Consider unifying Windows and Posix behavior by returning
* exit code here, see MESOS-7241.
*
*/
public int getStatus() {
return status_;
}
/**
* optional int32 status = 3;
*
*
* On Posix, `status` corresponds to termination information in the
* `stat_loc` area returned from a `waitpid` call. On Windows, `status`
* is obtained via calling the `GetExitCodeProcess()` function. For
* messages coming from Posix agents, schedulers need to apply
* `WEXITSTATUS` family macros or equivalent transformations to obtain
* exit codes.
* TODO(alexr): Consider unifying Windows and Posix behavior by returning
* exit code here, see MESOS-7241.
*
*/
public Builder setStatus(int value) {
bitField0_ |= 0x00000004;
status_ = value;
onChanged();
return this;
}
/**
* optional int32 status = 3;
*
*
* On Posix, `status` corresponds to termination information in the
* `stat_loc` area returned from a `waitpid` call. On Windows, `status`
* is obtained via calling the `GetExitCodeProcess()` function. For
* messages coming from Posix agents, schedulers need to apply
* `WEXITSTATUS` family macros or equivalent transformations to obtain
* exit codes.
* TODO(alexr): Consider unifying Windows and Posix behavior by returning
* exit code here, see MESOS-7241.
*
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.Failure)
}
static {
defaultInstance = new Failure(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.Failure)
}
public interface ErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Event.Error)
com.google.protobuf.MessageOrBuilder {
/**
* required string message = 1;
*/
boolean hasMessage();
/**
* required string message = 1;
*/
java.lang.String getMessage();
/**
* required string message = 1;
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Error}
*
*
* Received when there is an unrecoverable error in the scheduler (e.g.,
* scheduler failed over, rate limiting, authorization errors etc.). The
* scheduler should abort on receiving this event.
*
*/
public static final class Error extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Event.Error)
ErrorOrBuilder {
// Use Error.newBuilder() to construct.
private Error(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Error(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Error defaultInstance;
public static Error getDefaultInstance() {
return defaultInstance;
}
public Error getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Error(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
message_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Error.class, org.apache.mesos.v1.scheduler.Protos.Event.Error.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Error parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Error(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int MESSAGE_FIELD_NUMBER = 1;
private java.lang.Object message_;
/**
* required string message = 1;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string message = 1;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
* required string message = 1;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
message_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasMessage()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getMessageBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getMessageBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event.Error parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Event.Error prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event.Error}
*
*
* Received when there is an unrecoverable error in the scheduler (e.g.,
* scheduler failed over, rate limiting, authorization errors etc.). The
* scheduler should abort on receiving this event.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event.Error)
org.apache.mesos.v1.scheduler.Protos.Event.ErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.Error.class, org.apache.mesos.v1.scheduler.Protos.Event.Error.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.Error.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
message_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_Error_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Error getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.Error.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event.Error build() {
org.apache.mesos.v1.scheduler.Protos.Event.Error result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event.Error buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event.Error result = new org.apache.mesos.v1.scheduler.Protos.Event.Error(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event.Error) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event.Error)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event.Error other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.Error.getDefaultInstance()) return this;
if (other.hasMessage()) {
bitField0_ |= 0x00000001;
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMessage()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Event.Error parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event.Error) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object message_ = "";
/**
* required string message = 1;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string message = 1;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string message = 1;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string message = 1;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
message_ = value;
onChanged();
return this;
}
/**
* required string message = 1;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000001);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* required string message = 1;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
message_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event.Error)
}
static {
defaultInstance = new Error(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event.Error)
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private org.apache.mesos.v1.scheduler.Protos.Event.Type type_;
/**
* optional .mesos.v1.scheduler.Event.Type type = 1;
*
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.scheduler.Event.Type type = 1;
*
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Type getType() {
return type_;
}
public static final int SUBSCRIBED_FIELD_NUMBER = 2;
private org.apache.mesos.v1.scheduler.Protos.Event.Subscribed subscribed_;
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public boolean hasSubscribed() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Subscribed getSubscribed() {
return subscribed_;
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.SubscribedOrBuilder getSubscribedOrBuilder() {
return subscribed_;
}
public static final int OFFERS_FIELD_NUMBER = 3;
private org.apache.mesos.v1.scheduler.Protos.Event.Offers offers_;
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public boolean hasOffers() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Offers getOffers() {
return offers_;
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.OffersOrBuilder getOffersOrBuilder() {
return offers_;
}
public static final int INVERSE_OFFERS_FIELD_NUMBER = 9;
private org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers inverseOffers_;
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public boolean hasInverseOffers() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers getInverseOffers() {
return inverseOffers_;
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.InverseOffersOrBuilder getInverseOffersOrBuilder() {
return inverseOffers_;
}
public static final int RESCIND_FIELD_NUMBER = 4;
private org.apache.mesos.v1.scheduler.Protos.Event.Rescind rescind_;
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public boolean hasRescind() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Rescind getRescind() {
return rescind_;
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.RescindOrBuilder getRescindOrBuilder() {
return rescind_;
}
public static final int RESCIND_INVERSE_OFFER_FIELD_NUMBER = 10;
private org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer rescindInverseOffer_;
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public boolean hasRescindInverseOffer() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer getRescindInverseOffer() {
return rescindInverseOffer_;
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOfferOrBuilder getRescindInverseOfferOrBuilder() {
return rescindInverseOffer_;
}
public static final int UPDATE_FIELD_NUMBER = 5;
private org.apache.mesos.v1.scheduler.Protos.Event.Update update_;
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public boolean hasUpdate() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Update getUpdate() {
return update_;
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.UpdateOrBuilder getUpdateOrBuilder() {
return update_;
}
public static final int MESSAGE_FIELD_NUMBER = 6;
private org.apache.mesos.v1.scheduler.Protos.Event.Message message_;
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Message getMessage() {
return message_;
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.MessageOrBuilder getMessageOrBuilder() {
return message_;
}
public static final int FAILURE_FIELD_NUMBER = 7;
private org.apache.mesos.v1.scheduler.Protos.Event.Failure failure_;
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public boolean hasFailure() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Failure getFailure() {
return failure_;
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.FailureOrBuilder getFailureOrBuilder() {
return failure_;
}
public static final int ERROR_FIELD_NUMBER = 8;
private org.apache.mesos.v1.scheduler.Protos.Event.Error error_;
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Error getError() {
return error_;
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.ErrorOrBuilder getErrorOrBuilder() {
return error_;
}
private void initFields() {
type_ = org.apache.mesos.v1.scheduler.Protos.Event.Type.UNKNOWN;
subscribed_ = org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.getDefaultInstance();
offers_ = org.apache.mesos.v1.scheduler.Protos.Event.Offers.getDefaultInstance();
inverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.getDefaultInstance();
rescind_ = org.apache.mesos.v1.scheduler.Protos.Event.Rescind.getDefaultInstance();
rescindInverseOffer_ = org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.getDefaultInstance();
update_ = org.apache.mesos.v1.scheduler.Protos.Event.Update.getDefaultInstance();
message_ = org.apache.mesos.v1.scheduler.Protos.Event.Message.getDefaultInstance();
failure_ = org.apache.mesos.v1.scheduler.Protos.Event.Failure.getDefaultInstance();
error_ = org.apache.mesos.v1.scheduler.Protos.Event.Error.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasSubscribed()) {
if (!getSubscribed().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasOffers()) {
if (!getOffers().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasInverseOffers()) {
if (!getInverseOffers().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasRescind()) {
if (!getRescind().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasRescindInverseOffer()) {
if (!getRescindInverseOffer().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasUpdate()) {
if (!getUpdate().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasMessage()) {
if (!getMessage().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasFailure()) {
if (!getFailure().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasError()) {
if (!getError().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, subscribed_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, offers_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(4, rescind_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(5, update_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(6, message_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(7, failure_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeMessage(8, error_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(9, inverseOffers_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(10, rescindInverseOffer_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, subscribed_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, offers_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, rescind_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, update_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, message_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, failure_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, error_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, inverseOffers_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, rescindInverseOffer_);
}
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.scheduler.Protos.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Event parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Event prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Event}
*
*
**
* Scheduler event API.
* An event is described using the standard protocol buffer "union"
* trick, see:
* https://developers.google.com/protocol-buffers/docs/techniques#union.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Event)
org.apache.mesos.v1.scheduler.Protos.EventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Event.class, org.apache.mesos.v1.scheduler.Protos.Event.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Event.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getSubscribedFieldBuilder();
getOffersFieldBuilder();
getInverseOffersFieldBuilder();
getRescindFieldBuilder();
getRescindInverseOfferFieldBuilder();
getUpdateFieldBuilder();
getMessageFieldBuilder();
getFailureFieldBuilder();
getErrorFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = org.apache.mesos.v1.scheduler.Protos.Event.Type.UNKNOWN;
bitField0_ = (bitField0_ & ~0x00000001);
if (subscribedBuilder_ == null) {
subscribed_ = org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.getDefaultInstance();
} else {
subscribedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (offersBuilder_ == null) {
offers_ = org.apache.mesos.v1.scheduler.Protos.Event.Offers.getDefaultInstance();
} else {
offersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (inverseOffersBuilder_ == null) {
inverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.getDefaultInstance();
} else {
inverseOffersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (rescindBuilder_ == null) {
rescind_ = org.apache.mesos.v1.scheduler.Protos.Event.Rescind.getDefaultInstance();
} else {
rescindBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (rescindInverseOfferBuilder_ == null) {
rescindInverseOffer_ = org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.getDefaultInstance();
} else {
rescindInverseOfferBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (updateBuilder_ == null) {
update_ = org.apache.mesos.v1.scheduler.Protos.Event.Update.getDefaultInstance();
} else {
updateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (messageBuilder_ == null) {
message_ = org.apache.mesos.v1.scheduler.Protos.Event.Message.getDefaultInstance();
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (failureBuilder_ == null) {
failure_ = org.apache.mesos.v1.scheduler.Protos.Event.Failure.getDefaultInstance();
} else {
failureBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (errorBuilder_ == null) {
error_ = org.apache.mesos.v1.scheduler.Protos.Event.Error.getDefaultInstance();
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Event_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Event getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Event.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Event build() {
org.apache.mesos.v1.scheduler.Protos.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Event buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Event result = new org.apache.mesos.v1.scheduler.Protos.Event(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (subscribedBuilder_ == null) {
result.subscribed_ = subscribed_;
} else {
result.subscribed_ = subscribedBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (offersBuilder_ == null) {
result.offers_ = offers_;
} else {
result.offers_ = offersBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (inverseOffersBuilder_ == null) {
result.inverseOffers_ = inverseOffers_;
} else {
result.inverseOffers_ = inverseOffersBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (rescindBuilder_ == null) {
result.rescind_ = rescind_;
} else {
result.rescind_ = rescindBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (rescindInverseOfferBuilder_ == null) {
result.rescindInverseOffer_ = rescindInverseOffer_;
} else {
result.rescindInverseOffer_ = rescindInverseOfferBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (updateBuilder_ == null) {
result.update_ = update_;
} else {
result.update_ = updateBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (messageBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = messageBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
if (failureBuilder_ == null) {
result.failure_ = failure_;
} else {
result.failure_ = failureBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Event) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Event)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Event other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Event.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasSubscribed()) {
mergeSubscribed(other.getSubscribed());
}
if (other.hasOffers()) {
mergeOffers(other.getOffers());
}
if (other.hasInverseOffers()) {
mergeInverseOffers(other.getInverseOffers());
}
if (other.hasRescind()) {
mergeRescind(other.getRescind());
}
if (other.hasRescindInverseOffer()) {
mergeRescindInverseOffer(other.getRescindInverseOffer());
}
if (other.hasUpdate()) {
mergeUpdate(other.getUpdate());
}
if (other.hasMessage()) {
mergeMessage(other.getMessage());
}
if (other.hasFailure()) {
mergeFailure(other.getFailure());
}
if (other.hasError()) {
mergeError(other.getError());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasSubscribed()) {
if (!getSubscribed().isInitialized()) {
return false;
}
}
if (hasOffers()) {
if (!getOffers().isInitialized()) {
return false;
}
}
if (hasInverseOffers()) {
if (!getInverseOffers().isInitialized()) {
return false;
}
}
if (hasRescind()) {
if (!getRescind().isInitialized()) {
return false;
}
}
if (hasRescindInverseOffer()) {
if (!getRescindInverseOffer().isInitialized()) {
return false;
}
}
if (hasUpdate()) {
if (!getUpdate().isInitialized()) {
return false;
}
}
if (hasMessage()) {
if (!getMessage().isInitialized()) {
return false;
}
}
if (hasFailure()) {
if (!getFailure().isInitialized()) {
return false;
}
}
if (hasError()) {
if (!getError().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Event parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Event) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.scheduler.Protos.Event.Type type_ = org.apache.mesos.v1.scheduler.Protos.Event.Type.UNKNOWN;
/**
* optional .mesos.v1.scheduler.Event.Type type = 1;
*
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.scheduler.Event.Type type = 1;
*
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Type getType() {
return type_;
}
/**
* optional .mesos.v1.scheduler.Event.Type type = 1;
*
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*/
public Builder setType(org.apache.mesos.v1.scheduler.Protos.Event.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Type type = 1;
*
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = org.apache.mesos.v1.scheduler.Protos.Event.Type.UNKNOWN;
onChanged();
return this;
}
private org.apache.mesos.v1.scheduler.Protos.Event.Subscribed subscribed_ = org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed, org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.Builder, org.apache.mesos.v1.scheduler.Protos.Event.SubscribedOrBuilder> subscribedBuilder_;
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public boolean hasSubscribed() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Subscribed getSubscribed() {
if (subscribedBuilder_ == null) {
return subscribed_;
} else {
return subscribedBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public Builder setSubscribed(org.apache.mesos.v1.scheduler.Protos.Event.Subscribed value) {
if (subscribedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribed_ = value;
onChanged();
} else {
subscribedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public Builder setSubscribed(
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.Builder builderForValue) {
if (subscribedBuilder_ == null) {
subscribed_ = builderForValue.build();
onChanged();
} else {
subscribedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public Builder mergeSubscribed(org.apache.mesos.v1.scheduler.Protos.Event.Subscribed value) {
if (subscribedBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
subscribed_ != org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.getDefaultInstance()) {
subscribed_ =
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.newBuilder(subscribed_).mergeFrom(value).buildPartial();
} else {
subscribed_ = value;
}
onChanged();
} else {
subscribedBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public Builder clearSubscribed() {
if (subscribedBuilder_ == null) {
subscribed_ = org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.getDefaultInstance();
onChanged();
} else {
subscribedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.Builder getSubscribedBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSubscribedFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.SubscribedOrBuilder getSubscribedOrBuilder() {
if (subscribedBuilder_ != null) {
return subscribedBuilder_.getMessageOrBuilder();
} else {
return subscribed_;
}
}
/**
* optional .mesos.v1.scheduler.Event.Subscribed subscribed = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed, org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.Builder, org.apache.mesos.v1.scheduler.Protos.Event.SubscribedOrBuilder>
getSubscribedFieldBuilder() {
if (subscribedBuilder_ == null) {
subscribedBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Subscribed, org.apache.mesos.v1.scheduler.Protos.Event.Subscribed.Builder, org.apache.mesos.v1.scheduler.Protos.Event.SubscribedOrBuilder>(
getSubscribed(),
getParentForChildren(),
isClean());
subscribed_ = null;
}
return subscribedBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Event.Offers offers_ = org.apache.mesos.v1.scheduler.Protos.Event.Offers.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Offers, org.apache.mesos.v1.scheduler.Protos.Event.Offers.Builder, org.apache.mesos.v1.scheduler.Protos.Event.OffersOrBuilder> offersBuilder_;
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public boolean hasOffers() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Offers getOffers() {
if (offersBuilder_ == null) {
return offers_;
} else {
return offersBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public Builder setOffers(org.apache.mesos.v1.scheduler.Protos.Event.Offers value) {
if (offersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
offers_ = value;
onChanged();
} else {
offersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public Builder setOffers(
org.apache.mesos.v1.scheduler.Protos.Event.Offers.Builder builderForValue) {
if (offersBuilder_ == null) {
offers_ = builderForValue.build();
onChanged();
} else {
offersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public Builder mergeOffers(org.apache.mesos.v1.scheduler.Protos.Event.Offers value) {
if (offersBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
offers_ != org.apache.mesos.v1.scheduler.Protos.Event.Offers.getDefaultInstance()) {
offers_ =
org.apache.mesos.v1.scheduler.Protos.Event.Offers.newBuilder(offers_).mergeFrom(value).buildPartial();
} else {
offers_ = value;
}
onChanged();
} else {
offersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public Builder clearOffers() {
if (offersBuilder_ == null) {
offers_ = org.apache.mesos.v1.scheduler.Protos.Event.Offers.getDefaultInstance();
onChanged();
} else {
offersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Offers.Builder getOffersBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getOffersFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.OffersOrBuilder getOffersOrBuilder() {
if (offersBuilder_ != null) {
return offersBuilder_.getMessageOrBuilder();
} else {
return offers_;
}
}
/**
* optional .mesos.v1.scheduler.Event.Offers offers = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Offers, org.apache.mesos.v1.scheduler.Protos.Event.Offers.Builder, org.apache.mesos.v1.scheduler.Protos.Event.OffersOrBuilder>
getOffersFieldBuilder() {
if (offersBuilder_ == null) {
offersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Offers, org.apache.mesos.v1.scheduler.Protos.Event.Offers.Builder, org.apache.mesos.v1.scheduler.Protos.Event.OffersOrBuilder>(
getOffers(),
getParentForChildren(),
isClean());
offers_ = null;
}
return offersBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers inverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers, org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Event.InverseOffersOrBuilder> inverseOffersBuilder_;
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public boolean hasInverseOffers() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers getInverseOffers() {
if (inverseOffersBuilder_ == null) {
return inverseOffers_;
} else {
return inverseOffersBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public Builder setInverseOffers(org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers value) {
if (inverseOffersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inverseOffers_ = value;
onChanged();
} else {
inverseOffersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public Builder setInverseOffers(
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.Builder builderForValue) {
if (inverseOffersBuilder_ == null) {
inverseOffers_ = builderForValue.build();
onChanged();
} else {
inverseOffersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public Builder mergeInverseOffers(org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers value) {
if (inverseOffersBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
inverseOffers_ != org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.getDefaultInstance()) {
inverseOffers_ =
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.newBuilder(inverseOffers_).mergeFrom(value).buildPartial();
} else {
inverseOffers_ = value;
}
onChanged();
} else {
inverseOffersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public Builder clearInverseOffers() {
if (inverseOffersBuilder_ == null) {
inverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.getDefaultInstance();
onChanged();
} else {
inverseOffersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.Builder getInverseOffersBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getInverseOffersFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.InverseOffersOrBuilder getInverseOffersOrBuilder() {
if (inverseOffersBuilder_ != null) {
return inverseOffersBuilder_.getMessageOrBuilder();
} else {
return inverseOffers_;
}
}
/**
* optional .mesos.v1.scheduler.Event.InverseOffers inverse_offers = 9;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers, org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Event.InverseOffersOrBuilder>
getInverseOffersFieldBuilder() {
if (inverseOffersBuilder_ == null) {
inverseOffersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers, org.apache.mesos.v1.scheduler.Protos.Event.InverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Event.InverseOffersOrBuilder>(
getInverseOffers(),
getParentForChildren(),
isClean());
inverseOffers_ = null;
}
return inverseOffersBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Event.Rescind rescind_ = org.apache.mesos.v1.scheduler.Protos.Event.Rescind.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Rescind, org.apache.mesos.v1.scheduler.Protos.Event.Rescind.Builder, org.apache.mesos.v1.scheduler.Protos.Event.RescindOrBuilder> rescindBuilder_;
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public boolean hasRescind() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Rescind getRescind() {
if (rescindBuilder_ == null) {
return rescind_;
} else {
return rescindBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public Builder setRescind(org.apache.mesos.v1.scheduler.Protos.Event.Rescind value) {
if (rescindBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rescind_ = value;
onChanged();
} else {
rescindBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public Builder setRescind(
org.apache.mesos.v1.scheduler.Protos.Event.Rescind.Builder builderForValue) {
if (rescindBuilder_ == null) {
rescind_ = builderForValue.build();
onChanged();
} else {
rescindBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public Builder mergeRescind(org.apache.mesos.v1.scheduler.Protos.Event.Rescind value) {
if (rescindBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
rescind_ != org.apache.mesos.v1.scheduler.Protos.Event.Rescind.getDefaultInstance()) {
rescind_ =
org.apache.mesos.v1.scheduler.Protos.Event.Rescind.newBuilder(rescind_).mergeFrom(value).buildPartial();
} else {
rescind_ = value;
}
onChanged();
} else {
rescindBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public Builder clearRescind() {
if (rescindBuilder_ == null) {
rescind_ = org.apache.mesos.v1.scheduler.Protos.Event.Rescind.getDefaultInstance();
onChanged();
} else {
rescindBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Rescind.Builder getRescindBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getRescindFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.RescindOrBuilder getRescindOrBuilder() {
if (rescindBuilder_ != null) {
return rescindBuilder_.getMessageOrBuilder();
} else {
return rescind_;
}
}
/**
* optional .mesos.v1.scheduler.Event.Rescind rescind = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Rescind, org.apache.mesos.v1.scheduler.Protos.Event.Rescind.Builder, org.apache.mesos.v1.scheduler.Protos.Event.RescindOrBuilder>
getRescindFieldBuilder() {
if (rescindBuilder_ == null) {
rescindBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Rescind, org.apache.mesos.v1.scheduler.Protos.Event.Rescind.Builder, org.apache.mesos.v1.scheduler.Protos.Event.RescindOrBuilder>(
getRescind(),
getParentForChildren(),
isClean());
rescind_ = null;
}
return rescindBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer rescindInverseOffer_ = org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer, org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.Builder, org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOfferOrBuilder> rescindInverseOfferBuilder_;
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public boolean hasRescindInverseOffer() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer getRescindInverseOffer() {
if (rescindInverseOfferBuilder_ == null) {
return rescindInverseOffer_;
} else {
return rescindInverseOfferBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public Builder setRescindInverseOffer(org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer value) {
if (rescindInverseOfferBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rescindInverseOffer_ = value;
onChanged();
} else {
rescindInverseOfferBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public Builder setRescindInverseOffer(
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.Builder builderForValue) {
if (rescindInverseOfferBuilder_ == null) {
rescindInverseOffer_ = builderForValue.build();
onChanged();
} else {
rescindInverseOfferBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public Builder mergeRescindInverseOffer(org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer value) {
if (rescindInverseOfferBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
rescindInverseOffer_ != org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.getDefaultInstance()) {
rescindInverseOffer_ =
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.newBuilder(rescindInverseOffer_).mergeFrom(value).buildPartial();
} else {
rescindInverseOffer_ = value;
}
onChanged();
} else {
rescindInverseOfferBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public Builder clearRescindInverseOffer() {
if (rescindInverseOfferBuilder_ == null) {
rescindInverseOffer_ = org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.getDefaultInstance();
onChanged();
} else {
rescindInverseOfferBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.Builder getRescindInverseOfferBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getRescindInverseOfferFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOfferOrBuilder getRescindInverseOfferOrBuilder() {
if (rescindInverseOfferBuilder_ != null) {
return rescindInverseOfferBuilder_.getMessageOrBuilder();
} else {
return rescindInverseOffer_;
}
}
/**
* optional .mesos.v1.scheduler.Event.RescindInverseOffer rescind_inverse_offer = 10;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer, org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.Builder, org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOfferOrBuilder>
getRescindInverseOfferFieldBuilder() {
if (rescindInverseOfferBuilder_ == null) {
rescindInverseOfferBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer, org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOffer.Builder, org.apache.mesos.v1.scheduler.Protos.Event.RescindInverseOfferOrBuilder>(
getRescindInverseOffer(),
getParentForChildren(),
isClean());
rescindInverseOffer_ = null;
}
return rescindInverseOfferBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Event.Update update_ = org.apache.mesos.v1.scheduler.Protos.Event.Update.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Update, org.apache.mesos.v1.scheduler.Protos.Event.Update.Builder, org.apache.mesos.v1.scheduler.Protos.Event.UpdateOrBuilder> updateBuilder_;
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public boolean hasUpdate() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Update getUpdate() {
if (updateBuilder_ == null) {
return update_;
} else {
return updateBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public Builder setUpdate(org.apache.mesos.v1.scheduler.Protos.Event.Update value) {
if (updateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
update_ = value;
onChanged();
} else {
updateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public Builder setUpdate(
org.apache.mesos.v1.scheduler.Protos.Event.Update.Builder builderForValue) {
if (updateBuilder_ == null) {
update_ = builderForValue.build();
onChanged();
} else {
updateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public Builder mergeUpdate(org.apache.mesos.v1.scheduler.Protos.Event.Update value) {
if (updateBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
update_ != org.apache.mesos.v1.scheduler.Protos.Event.Update.getDefaultInstance()) {
update_ =
org.apache.mesos.v1.scheduler.Protos.Event.Update.newBuilder(update_).mergeFrom(value).buildPartial();
} else {
update_ = value;
}
onChanged();
} else {
updateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public Builder clearUpdate() {
if (updateBuilder_ == null) {
update_ = org.apache.mesos.v1.scheduler.Protos.Event.Update.getDefaultInstance();
onChanged();
} else {
updateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Update.Builder getUpdateBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getUpdateFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.UpdateOrBuilder getUpdateOrBuilder() {
if (updateBuilder_ != null) {
return updateBuilder_.getMessageOrBuilder();
} else {
return update_;
}
}
/**
* optional .mesos.v1.scheduler.Event.Update update = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Update, org.apache.mesos.v1.scheduler.Protos.Event.Update.Builder, org.apache.mesos.v1.scheduler.Protos.Event.UpdateOrBuilder>
getUpdateFieldBuilder() {
if (updateBuilder_ == null) {
updateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Update, org.apache.mesos.v1.scheduler.Protos.Event.Update.Builder, org.apache.mesos.v1.scheduler.Protos.Event.UpdateOrBuilder>(
getUpdate(),
getParentForChildren(),
isClean());
update_ = null;
}
return updateBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Event.Message message_ = org.apache.mesos.v1.scheduler.Protos.Event.Message.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Message, org.apache.mesos.v1.scheduler.Protos.Event.Message.Builder, org.apache.mesos.v1.scheduler.Protos.Event.MessageOrBuilder> messageBuilder_;
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Message getMessage() {
if (messageBuilder_ == null) {
return message_;
} else {
return messageBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public Builder setMessage(org.apache.mesos.v1.scheduler.Protos.Event.Message value) {
if (messageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
messageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public Builder setMessage(
org.apache.mesos.v1.scheduler.Protos.Event.Message.Builder builderForValue) {
if (messageBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
messageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public Builder mergeMessage(org.apache.mesos.v1.scheduler.Protos.Event.Message value) {
if (messageBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
message_ != org.apache.mesos.v1.scheduler.Protos.Event.Message.getDefaultInstance()) {
message_ =
org.apache.mesos.v1.scheduler.Protos.Event.Message.newBuilder(message_).mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
messageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public Builder clearMessage() {
if (messageBuilder_ == null) {
message_ = org.apache.mesos.v1.scheduler.Protos.Event.Message.getDefaultInstance();
onChanged();
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Message.Builder getMessageBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getMessageFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.MessageOrBuilder getMessageOrBuilder() {
if (messageBuilder_ != null) {
return messageBuilder_.getMessageOrBuilder();
} else {
return message_;
}
}
/**
* optional .mesos.v1.scheduler.Event.Message message = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Message, org.apache.mesos.v1.scheduler.Protos.Event.Message.Builder, org.apache.mesos.v1.scheduler.Protos.Event.MessageOrBuilder>
getMessageFieldBuilder() {
if (messageBuilder_ == null) {
messageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Message, org.apache.mesos.v1.scheduler.Protos.Event.Message.Builder, org.apache.mesos.v1.scheduler.Protos.Event.MessageOrBuilder>(
getMessage(),
getParentForChildren(),
isClean());
message_ = null;
}
return messageBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Event.Failure failure_ = org.apache.mesos.v1.scheduler.Protos.Event.Failure.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Failure, org.apache.mesos.v1.scheduler.Protos.Event.Failure.Builder, org.apache.mesos.v1.scheduler.Protos.Event.FailureOrBuilder> failureBuilder_;
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public boolean hasFailure() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Failure getFailure() {
if (failureBuilder_ == null) {
return failure_;
} else {
return failureBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public Builder setFailure(org.apache.mesos.v1.scheduler.Protos.Event.Failure value) {
if (failureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
failure_ = value;
onChanged();
} else {
failureBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public Builder setFailure(
org.apache.mesos.v1.scheduler.Protos.Event.Failure.Builder builderForValue) {
if (failureBuilder_ == null) {
failure_ = builderForValue.build();
onChanged();
} else {
failureBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public Builder mergeFailure(org.apache.mesos.v1.scheduler.Protos.Event.Failure value) {
if (failureBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
failure_ != org.apache.mesos.v1.scheduler.Protos.Event.Failure.getDefaultInstance()) {
failure_ =
org.apache.mesos.v1.scheduler.Protos.Event.Failure.newBuilder(failure_).mergeFrom(value).buildPartial();
} else {
failure_ = value;
}
onChanged();
} else {
failureBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public Builder clearFailure() {
if (failureBuilder_ == null) {
failure_ = org.apache.mesos.v1.scheduler.Protos.Event.Failure.getDefaultInstance();
onChanged();
} else {
failureBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Failure.Builder getFailureBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getFailureFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.FailureOrBuilder getFailureOrBuilder() {
if (failureBuilder_ != null) {
return failureBuilder_.getMessageOrBuilder();
} else {
return failure_;
}
}
/**
* optional .mesos.v1.scheduler.Event.Failure failure = 7;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Failure, org.apache.mesos.v1.scheduler.Protos.Event.Failure.Builder, org.apache.mesos.v1.scheduler.Protos.Event.FailureOrBuilder>
getFailureFieldBuilder() {
if (failureBuilder_ == null) {
failureBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Failure, org.apache.mesos.v1.scheduler.Protos.Event.Failure.Builder, org.apache.mesos.v1.scheduler.Protos.Event.FailureOrBuilder>(
getFailure(),
getParentForChildren(),
isClean());
failure_ = null;
}
return failureBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Event.Error error_ = org.apache.mesos.v1.scheduler.Protos.Event.Error.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Error, org.apache.mesos.v1.scheduler.Protos.Event.Error.Builder, org.apache.mesos.v1.scheduler.Protos.Event.ErrorOrBuilder> errorBuilder_;
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Error getError() {
if (errorBuilder_ == null) {
return error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public Builder setError(org.apache.mesos.v1.scheduler.Protos.Event.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public Builder setError(
org.apache.mesos.v1.scheduler.Protos.Event.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public Builder mergeError(org.apache.mesos.v1.scheduler.Protos.Event.Error value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
error_ != org.apache.mesos.v1.scheduler.Protos.Event.Error.getDefaultInstance()) {
error_ =
org.apache.mesos.v1.scheduler.Protos.Event.Error.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = org.apache.mesos.v1.scheduler.Protos.Event.Error.getDefaultInstance();
onChanged();
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.Error.Builder getErrorBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Event.ErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_;
}
}
/**
* optional .mesos.v1.scheduler.Event.Error error = 8;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Error, org.apache.mesos.v1.scheduler.Protos.Event.Error.Builder, org.apache.mesos.v1.scheduler.Protos.Event.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Event.Error, org.apache.mesos.v1.scheduler.Protos.Event.Error.Builder, org.apache.mesos.v1.scheduler.Protos.Event.ErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Event)
}
static {
defaultInstance = new Event(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Event)
}
public interface CallOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call)
com.google.protobuf.MessageOrBuilder {
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
boolean hasFrameworkId();
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
org.apache.mesos.v1.Protos.FrameworkID getFrameworkId();
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Type type = 2;
*
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* See comments on `Event::Type` above on the reasoning behind this field being optional.
*
*/
boolean hasType();
/**
* optional .mesos.v1.scheduler.Call.Type type = 2;
*
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* See comments on `Event::Type` above on the reasoning behind this field being optional.
*
*/
org.apache.mesos.v1.scheduler.Protos.Call.Type getType();
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
boolean hasSubscribe();
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe getSubscribe();
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
org.apache.mesos.v1.scheduler.Protos.Call.SubscribeOrBuilder getSubscribeOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
boolean hasAccept();
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Accept getAccept();
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
org.apache.mesos.v1.scheduler.Protos.Call.AcceptOrBuilder getAcceptOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
boolean hasDecline();
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Decline getDecline();
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
org.apache.mesos.v1.scheduler.Protos.Call.DeclineOrBuilder getDeclineOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
boolean hasAcceptInverseOffers();
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers getAcceptInverseOffers();
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffersOrBuilder getAcceptInverseOffersOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
boolean hasDeclineInverseOffers();
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers getDeclineInverseOffers();
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffersOrBuilder getDeclineInverseOffersOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
boolean hasRevive();
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Revive getRevive();
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
org.apache.mesos.v1.scheduler.Protos.Call.ReviveOrBuilder getReviveOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
boolean hasKill();
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Kill getKill();
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
org.apache.mesos.v1.scheduler.Protos.Call.KillOrBuilder getKillOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
boolean hasShutdown();
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown getShutdown();
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
org.apache.mesos.v1.scheduler.Protos.Call.ShutdownOrBuilder getShutdownOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
boolean hasAcknowledge();
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge getAcknowledge();
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
org.apache.mesos.v1.scheduler.Protos.Call.AcknowledgeOrBuilder getAcknowledgeOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
boolean hasReconcile();
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile getReconcile();
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
org.apache.mesos.v1.scheduler.Protos.Call.ReconcileOrBuilder getReconcileOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
boolean hasMessage();
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Message getMessage();
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
org.apache.mesos.v1.scheduler.Protos.Call.MessageOrBuilder getMessageOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
boolean hasRequest();
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Request getRequest();
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
org.apache.mesos.v1.scheduler.Protos.Call.RequestOrBuilder getRequestOrBuilder();
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
boolean hasSuppress();
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Suppress getSuppress();
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
org.apache.mesos.v1.scheduler.Protos.Call.SuppressOrBuilder getSuppressOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call}
*
*
**
* Scheduler call API.
* Like Event, a Call is described using the standard protocol buffer
* "union" trick (see above).
*
*/
public static final class Call extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call)
CallOrBuilder {
// Use Call.newBuilder() to construct.
private Call(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Call(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Call defaultInstance;
public static Call getDefaultInstance() {
return defaultInstance;
}
public Call getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Call(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.FrameworkID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = frameworkId_.toBuilder();
}
frameworkId_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(frameworkId_);
frameworkId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
int rawValue = input.readEnum();
org.apache.mesos.v1.scheduler.Protos.Call.Type value = org.apache.mesos.v1.scheduler.Protos.Call.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
type_ = value;
}
break;
}
case 26: {
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = subscribe_.toBuilder();
}
subscribe_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(subscribe_);
subscribe_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.apache.mesos.v1.scheduler.Protos.Call.Accept.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = accept_.toBuilder();
}
accept_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Accept.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accept_);
accept_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.apache.mesos.v1.scheduler.Protos.Call.Decline.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = decline_.toBuilder();
}
decline_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Decline.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(decline_);
decline_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
org.apache.mesos.v1.scheduler.Protos.Call.Kill.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = kill_.toBuilder();
}
kill_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Kill.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(kill_);
kill_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 58: {
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = shutdown_.toBuilder();
}
shutdown_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shutdown_);
shutdown_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 66: {
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
subBuilder = acknowledge_.toBuilder();
}
acknowledge_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(acknowledge_);
acknowledge_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 74: {
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Builder subBuilder = null;
if (((bitField0_ & 0x00000800) == 0x00000800)) {
subBuilder = reconcile_.toBuilder();
}
reconcile_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reconcile_);
reconcile_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000800;
break;
}
case 82: {
org.apache.mesos.v1.scheduler.Protos.Call.Message.Builder subBuilder = null;
if (((bitField0_ & 0x00001000) == 0x00001000)) {
subBuilder = message_.toBuilder();
}
message_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Message.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(message_);
message_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00001000;
break;
}
case 90: {
org.apache.mesos.v1.scheduler.Protos.Call.Request.Builder subBuilder = null;
if (((bitField0_ & 0x00002000) == 0x00002000)) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Request.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00002000;
break;
}
case 106: {
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = acceptInverseOffers_.toBuilder();
}
acceptInverseOffers_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(acceptInverseOffers_);
acceptInverseOffers_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 114: {
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = declineInverseOffers_.toBuilder();
}
declineInverseOffers_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(declineInverseOffers_);
declineInverseOffers_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 122: {
org.apache.mesos.v1.scheduler.Protos.Call.Revive.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = revive_.toBuilder();
}
revive_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Revive.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(revive_);
revive_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 130: {
org.apache.mesos.v1.scheduler.Protos.Call.Suppress.Builder subBuilder = null;
if (((bitField0_ & 0x00004000) == 0x00004000)) {
subBuilder = suppress_.toBuilder();
}
suppress_ = input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Suppress.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(suppress_);
suppress_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00004000;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.class, org.apache.mesos.v1.scheduler.Protos.Call.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Call parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Call(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code mesos.v1.scheduler.Call.Type}
*
*
* Possible call types, followed by message definitions if
* applicable.
*
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*
*
* See comments above on `Event::Type` for more details on this enum value.
*
*/
UNKNOWN(0, 0),
/**
* SUBSCRIBE = 1;
*
*
* See 'Subscribe' below.
*
*/
SUBSCRIBE(1, 1),
/**
* TEARDOWN = 2;
*
*
* Shuts down all tasks/executors and removes framework.
*
*/
TEARDOWN(2, 2),
/**
* ACCEPT = 3;
*
*
* See 'Accept' below.
*
*/
ACCEPT(3, 3),
/**
* DECLINE = 4;
*
*
* See 'Decline' below.
*
*/
DECLINE(4, 4),
/**
* ACCEPT_INVERSE_OFFERS = 13;
*
*
* See 'AcceptInverseOffers' below.
*
*/
ACCEPT_INVERSE_OFFERS(5, 13),
/**
* DECLINE_INVERSE_OFFERS = 14;
*
*
* See 'DeclineInverseOffers' below.
*
*/
DECLINE_INVERSE_OFFERS(6, 14),
/**
* REVIVE = 5;
*
*
* Removes any previous filters set via ACCEPT or DECLINE.
*
*/
REVIVE(7, 5),
/**
* KILL = 6;
*
*
* See 'Kill' below.
*
*/
KILL(8, 6),
/**
* SHUTDOWN = 7;
*
*
* See 'Shutdown' below.
*
*/
SHUTDOWN(9, 7),
/**
* ACKNOWLEDGE = 8;
*
*
* See 'Acknowledge' below.
*
*/
ACKNOWLEDGE(10, 8),
/**
* RECONCILE = 9;
*
*
* See 'Reconcile' below.
*
*/
RECONCILE(11, 9),
/**
* MESSAGE = 10;
*
*
* See 'Message' below.
*
*/
MESSAGE(12, 10),
/**
* REQUEST = 11;
*
*
* See 'Request' below.
*
*/
REQUEST(13, 11),
/**
* SUPPRESS = 12;
*
*
* Inform master to stop sending offers to the framework.
*
*/
SUPPRESS(14, 12),
;
/**
* UNKNOWN = 0;
*
*
* See comments above on `Event::Type` for more details on this enum value.
*
*/
public static final int UNKNOWN_VALUE = 0;
/**
* SUBSCRIBE = 1;
*
*
* See 'Subscribe' below.
*
*/
public static final int SUBSCRIBE_VALUE = 1;
/**
* TEARDOWN = 2;
*
*
* Shuts down all tasks/executors and removes framework.
*
*/
public static final int TEARDOWN_VALUE = 2;
/**
* ACCEPT = 3;
*
*
* See 'Accept' below.
*
*/
public static final int ACCEPT_VALUE = 3;
/**
* DECLINE = 4;
*
*
* See 'Decline' below.
*
*/
public static final int DECLINE_VALUE = 4;
/**
* ACCEPT_INVERSE_OFFERS = 13;
*
*
* See 'AcceptInverseOffers' below.
*
*/
public static final int ACCEPT_INVERSE_OFFERS_VALUE = 13;
/**
* DECLINE_INVERSE_OFFERS = 14;
*
*
* See 'DeclineInverseOffers' below.
*
*/
public static final int DECLINE_INVERSE_OFFERS_VALUE = 14;
/**
* REVIVE = 5;
*
*
* Removes any previous filters set via ACCEPT or DECLINE.
*
*/
public static final int REVIVE_VALUE = 5;
/**
* KILL = 6;
*
*
* See 'Kill' below.
*
*/
public static final int KILL_VALUE = 6;
/**
* SHUTDOWN = 7;
*
*
* See 'Shutdown' below.
*
*/
public static final int SHUTDOWN_VALUE = 7;
/**
* ACKNOWLEDGE = 8;
*
*
* See 'Acknowledge' below.
*
*/
public static final int ACKNOWLEDGE_VALUE = 8;
/**
* RECONCILE = 9;
*
*
* See 'Reconcile' below.
*
*/
public static final int RECONCILE_VALUE = 9;
/**
* MESSAGE = 10;
*
*
* See 'Message' below.
*
*/
public static final int MESSAGE_VALUE = 10;
/**
* REQUEST = 11;
*
*
* See 'Request' below.
*
*/
public static final int REQUEST_VALUE = 11;
/**
* SUPPRESS = 12;
*
*
* Inform master to stop sending offers to the framework.
*
*/
public static final int SUPPRESS_VALUE = 12;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return SUBSCRIBE;
case 2: return TEARDOWN;
case 3: return ACCEPT;
case 4: return DECLINE;
case 13: return ACCEPT_INVERSE_OFFERS;
case 14: return DECLINE_INVERSE_OFFERS;
case 5: return REVIVE;
case 6: return KILL;
case 7: return SHUTDOWN;
case 8: return ACKNOWLEDGE;
case 9: return RECONCILE;
case 10: return MESSAGE;
case 11: return REQUEST;
case 12: return SUPPRESS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.Call.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mesos.v1.scheduler.Call.Type)
}
public interface SubscribeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Subscribe)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
boolean hasFrameworkInfo();
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo();
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Subscribe}
*
*
* Subscribes the scheduler with the master to receive events. A
* scheduler must send other calls only after it has received the
* SUBCRIBED event.
*
*/
public static final class Subscribe extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Subscribe)
SubscribeOrBuilder {
// Use Subscribe.newBuilder() to construct.
private Subscribe(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Subscribe(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Subscribe defaultInstance;
public static Subscribe getDefaultInstance() {
return defaultInstance;
}
public Subscribe getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Subscribe(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.FrameworkInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = frameworkInfo_.toBuilder();
}
frameworkInfo_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(frameworkInfo_);
frameworkInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Subscribe_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Subscribe_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.class, org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Subscribe parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Subscribe(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int FRAMEWORK_INFO_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.FrameworkInfo frameworkInfo_;
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public boolean hasFrameworkInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo() {
return frameworkInfo_;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder() {
return frameworkInfo_;
}
private void initFields() {
frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasFrameworkInfo()) {
memoizedIsInitialized = 0;
return false;
}
if (!getFrameworkInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, frameworkInfo_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, frameworkInfo_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Call.Subscribe prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Subscribe}
*
*
* Subscribes the scheduler with the master to receive events. A
* scheduler must send other calls only after it has received the
* SUBCRIBED event.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Subscribe)
org.apache.mesos.v1.scheduler.Protos.Call.SubscribeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Subscribe_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Subscribe_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.class, org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getFrameworkInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (frameworkInfoBuilder_ == null) {
frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance();
} else {
frameworkInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Subscribe_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Subscribe getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Subscribe build() {
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Subscribe buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe result = new org.apache.mesos.v1.scheduler.Protos.Call.Subscribe(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (frameworkInfoBuilder_ == null) {
result.frameworkInfo_ = frameworkInfo_;
} else {
result.frameworkInfo_ = frameworkInfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Subscribe) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Subscribe)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Subscribe other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.getDefaultInstance()) return this;
if (other.hasFrameworkInfo()) {
mergeFrameworkInfo(other.getFrameworkInfo());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasFrameworkInfo()) {
return false;
}
if (!getFrameworkInfo().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Subscribe) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.FrameworkInfo frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkInfo, org.apache.mesos.v1.Protos.FrameworkInfo.Builder, org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder> frameworkInfoBuilder_;
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public boolean hasFrameworkInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo() {
if (frameworkInfoBuilder_ == null) {
return frameworkInfo_;
} else {
return frameworkInfoBuilder_.getMessage();
}
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public Builder setFrameworkInfo(org.apache.mesos.v1.Protos.FrameworkInfo value) {
if (frameworkInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
frameworkInfo_ = value;
onChanged();
} else {
frameworkInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public Builder setFrameworkInfo(
org.apache.mesos.v1.Protos.FrameworkInfo.Builder builderForValue) {
if (frameworkInfoBuilder_ == null) {
frameworkInfo_ = builderForValue.build();
onChanged();
} else {
frameworkInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public Builder mergeFrameworkInfo(org.apache.mesos.v1.Protos.FrameworkInfo value) {
if (frameworkInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
frameworkInfo_ != org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance()) {
frameworkInfo_ =
org.apache.mesos.v1.Protos.FrameworkInfo.newBuilder(frameworkInfo_).mergeFrom(value).buildPartial();
} else {
frameworkInfo_ = value;
}
onChanged();
} else {
frameworkInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public Builder clearFrameworkInfo() {
if (frameworkInfoBuilder_ == null) {
frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance();
onChanged();
} else {
frameworkInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public org.apache.mesos.v1.Protos.FrameworkInfo.Builder getFrameworkInfoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getFrameworkInfoFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
public org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder() {
if (frameworkInfoBuilder_ != null) {
return frameworkInfoBuilder_.getMessageOrBuilder();
} else {
return frameworkInfo_;
}
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 1;
*
*
* See the comments below on 'framework_id' on the semantics for
* 'framework_info.id'.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkInfo, org.apache.mesos.v1.Protos.FrameworkInfo.Builder, org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder>
getFrameworkInfoFieldBuilder() {
if (frameworkInfoBuilder_ == null) {
frameworkInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkInfo, org.apache.mesos.v1.Protos.FrameworkInfo.Builder, org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder>(
getFrameworkInfo(),
getParentForChildren(),
isClean());
frameworkInfo_ = null;
}
return frameworkInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Subscribe)
}
static {
defaultInstance = new Subscribe(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Subscribe)
}
public interface AcceptOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Accept)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
java.util.List
getOfferIdsList();
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
org.apache.mesos.v1.Protos.OfferID getOfferIds(int index);
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
int getOfferIdsCount();
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdsOrBuilderList();
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdsOrBuilder(
int index);
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
java.util.List
getOperationsList();
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
org.apache.mesos.v1.Protos.Offer.Operation getOperations(int index);
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
int getOperationsCount();
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
java.util.List extends org.apache.mesos.v1.Protos.Offer.OperationOrBuilder>
getOperationsOrBuilderList();
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
org.apache.mesos.v1.Protos.Offer.OperationOrBuilder getOperationsOrBuilder(
int index);
/**
* optional .mesos.v1.Filters filters = 3;
*/
boolean hasFilters();
/**
* optional .mesos.v1.Filters filters = 3;
*/
org.apache.mesos.v1.Protos.Filters getFilters();
/**
* optional .mesos.v1.Filters filters = 3;
*/
org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Accept}
*
*
* Accepts an offer, performing the specified operations
* in a sequential manner.
* E.g. Launch a task with a newly reserved persistent volume:
* Accept {
* offer_ids: [ ... ]
* operations: [
* { type: RESERVE,
* reserve: { resources: [ disk(role):2 ] } }
* { type: CREATE,
* create: { volumes: [ disk(role):1+persistence ] } }
* { type: LAUNCH,
* launch: { task_infos ... disk(role):1;disk(role):1+persistence } }
* ]
* }
* Note that any of the offer’s resources not used in the 'Accept'
* call (e.g., to launch a task) are considered unused and might be
* reoffered to other frameworks. In other words, the same OfferID
* cannot be used in more than one 'Accept' call.
*
*/
public static final class Accept extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Accept)
AcceptOrBuilder {
// Use Accept.newBuilder() to construct.
private Accept(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Accept(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Accept defaultInstance;
public static Accept getDefaultInstance() {
return defaultInstance;
}
public Accept getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Accept(
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)) {
offerIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
offerIds_.add(input.readMessage(org.apache.mesos.v1.Protos.OfferID.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
operations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
operations_.add(input.readMessage(org.apache.mesos.v1.Protos.Offer.Operation.PARSER, extensionRegistry));
break;
}
case 26: {
org.apache.mesos.v1.Protos.Filters.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = filters_.toBuilder();
}
filters_ = input.readMessage(org.apache.mesos.v1.Protos.Filters.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filters_);
filters_ = 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)) {
offerIds_ = java.util.Collections.unmodifiableList(offerIds_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Accept_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Accept_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Accept.class, org.apache.mesos.v1.scheduler.Protos.Call.Accept.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Accept parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Accept(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int OFFER_IDS_FIELD_NUMBER = 1;
private java.util.List offerIds_;
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List getOfferIdsList() {
return offerIds_;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdsOrBuilderList() {
return offerIds_;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public int getOfferIdsCount() {
return offerIds_.size();
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getOfferIds(int index) {
return offerIds_.get(index);
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdsOrBuilder(
int index) {
return offerIds_.get(index);
}
public static final int OPERATIONS_FIELD_NUMBER = 2;
private java.util.List operations_;
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public java.util.List getOperationsList() {
return operations_;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public java.util.List extends org.apache.mesos.v1.Protos.Offer.OperationOrBuilder>
getOperationsOrBuilderList() {
return operations_;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public int getOperationsCount() {
return operations_.size();
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public org.apache.mesos.v1.Protos.Offer.Operation getOperations(int index) {
return operations_.get(index);
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public org.apache.mesos.v1.Protos.Offer.OperationOrBuilder getOperationsOrBuilder(
int index) {
return operations_.get(index);
}
public static final int FILTERS_FIELD_NUMBER = 3;
private org.apache.mesos.v1.Protos.Filters filters_;
/**
* optional .mesos.v1.Filters filters = 3;
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public org.apache.mesos.v1.Protos.Filters getFilters() {
return filters_;
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder() {
return filters_;
}
private void initFields() {
offerIds_ = java.util.Collections.emptyList();
operations_ = java.util.Collections.emptyList();
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
}
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 < getOfferIdsCount(); i++) {
if (!getOfferIds(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getOperationsCount(); i++) {
if (!getOperations(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 < offerIds_.size(); i++) {
output.writeMessage(1, offerIds_.get(i));
}
for (int i = 0; i < operations_.size(); i++) {
output.writeMessage(2, operations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(3, filters_);
}
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 < offerIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, offerIds_.get(i));
}
for (int i = 0; i < operations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, operations_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, filters_);
}
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.scheduler.Protos.Call.Accept parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Accept 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.scheduler.Protos.Call.Accept parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Accept parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Accept parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Accept 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.scheduler.Protos.Call.Accept parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Accept 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.scheduler.Protos.Call.Accept parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Accept 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.scheduler.Protos.Call.Accept 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.scheduler.Call.Accept}
*
*
* Accepts an offer, performing the specified operations
* in a sequential manner.
* E.g. Launch a task with a newly reserved persistent volume:
* Accept {
* offer_ids: [ ... ]
* operations: [
* { type: RESERVE,
* reserve: { resources: [ disk(role):2 ] } }
* { type: CREATE,
* create: { volumes: [ disk(role):1+persistence ] } }
* { type: LAUNCH,
* launch: { task_infos ... disk(role):1;disk(role):1+persistence } }
* ]
* }
* Note that any of the offer’s resources not used in the 'Accept'
* call (e.g., to launch a task) are considered unused and might be
* reoffered to other frameworks. In other words, the same OfferID
* cannot be used in more than one 'Accept' call.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Accept)
org.apache.mesos.v1.scheduler.Protos.Call.AcceptOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Accept_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Accept_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Accept.class, org.apache.mesos.v1.scheduler.Protos.Call.Accept.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Accept.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getOfferIdsFieldBuilder();
getOperationsFieldBuilder();
getFiltersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (offerIdsBuilder_ == null) {
offerIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
offerIdsBuilder_.clear();
}
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
operationsBuilder_.clear();
}
if (filtersBuilder_ == null) {
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
} else {
filtersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Accept_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Accept getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Accept.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Accept build() {
org.apache.mesos.v1.scheduler.Protos.Call.Accept result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Accept buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Accept result = new org.apache.mesos.v1.scheduler.Protos.Call.Accept(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (offerIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
offerIds_ = java.util.Collections.unmodifiableList(offerIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.offerIds_ = offerIds_;
} else {
result.offerIds_ = offerIdsBuilder_.build();
}
if (operationsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.operations_ = operations_;
} else {
result.operations_ = operationsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000001;
}
if (filtersBuilder_ == null) {
result.filters_ = filters_;
} else {
result.filters_ = filtersBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Accept) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Accept)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Accept other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Accept.getDefaultInstance()) return this;
if (offerIdsBuilder_ == null) {
if (!other.offerIds_.isEmpty()) {
if (offerIds_.isEmpty()) {
offerIds_ = other.offerIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOfferIdsIsMutable();
offerIds_.addAll(other.offerIds_);
}
onChanged();
}
} else {
if (!other.offerIds_.isEmpty()) {
if (offerIdsBuilder_.isEmpty()) {
offerIdsBuilder_.dispose();
offerIdsBuilder_ = null;
offerIds_ = other.offerIds_;
bitField0_ = (bitField0_ & ~0x00000001);
offerIdsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getOfferIdsFieldBuilder() : null;
} else {
offerIdsBuilder_.addAllMessages(other.offerIds_);
}
}
}
if (operationsBuilder_ == null) {
if (!other.operations_.isEmpty()) {
if (operations_.isEmpty()) {
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureOperationsIsMutable();
operations_.addAll(other.operations_);
}
onChanged();
}
} else {
if (!other.operations_.isEmpty()) {
if (operationsBuilder_.isEmpty()) {
operationsBuilder_.dispose();
operationsBuilder_ = null;
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000002);
operationsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getOperationsFieldBuilder() : null;
} else {
operationsBuilder_.addAllMessages(other.operations_);
}
}
}
if (other.hasFilters()) {
mergeFilters(other.getFilters());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getOfferIdsCount(); i++) {
if (!getOfferIds(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getOperationsCount(); i++) {
if (!getOperations(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.scheduler.Protos.Call.Accept parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Accept) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List offerIds_ =
java.util.Collections.emptyList();
private void ensureOfferIdsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
offerIds_ = new java.util.ArrayList(offerIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> offerIdsBuilder_;
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List getOfferIdsList() {
if (offerIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(offerIds_);
} else {
return offerIdsBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public int getOfferIdsCount() {
if (offerIdsBuilder_ == null) {
return offerIds_.size();
} else {
return offerIdsBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getOfferIds(int index) {
if (offerIdsBuilder_ == null) {
return offerIds_.get(index);
} else {
return offerIdsBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder setOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID value) {
if (offerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOfferIdsIsMutable();
offerIds_.set(index, value);
onChanged();
} else {
offerIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder setOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
offerIds_.set(index, builderForValue.build());
onChanged();
} else {
offerIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addOfferIds(org.apache.mesos.v1.Protos.OfferID value) {
if (offerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOfferIdsIsMutable();
offerIds_.add(value);
onChanged();
} else {
offerIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID value) {
if (offerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOfferIdsIsMutable();
offerIds_.add(index, value);
onChanged();
} else {
offerIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addOfferIds(
org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
offerIds_.add(builderForValue.build());
onChanged();
} else {
offerIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
offerIds_.add(index, builderForValue.build());
onChanged();
} else {
offerIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addAllOfferIds(
java.lang.Iterable extends org.apache.mesos.v1.Protos.OfferID> values) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, offerIds_);
onChanged();
} else {
offerIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder clearOfferIds() {
if (offerIdsBuilder_ == null) {
offerIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
offerIdsBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder removeOfferIds(int index) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
offerIds_.remove(index);
onChanged();
} else {
offerIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder getOfferIdsBuilder(
int index) {
return getOfferIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdsOrBuilder(
int index) {
if (offerIdsBuilder_ == null) {
return offerIds_.get(index); } else {
return offerIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdsOrBuilderList() {
if (offerIdsBuilder_ != null) {
return offerIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(offerIds_);
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder addOfferIdsBuilder() {
return getOfferIdsFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.OfferID.getDefaultInstance());
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder addOfferIdsBuilder(
int index) {
return getOfferIdsFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.OfferID.getDefaultInstance());
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List
getOfferIdsBuilderList() {
return getOfferIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdsFieldBuilder() {
if (offerIdsBuilder_ == null) {
offerIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>(
offerIds_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
offerIds_ = null;
}
return offerIdsBuilder_;
}
private java.util.List operations_ =
java.util.Collections.emptyList();
private void ensureOperationsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
operations_ = new java.util.ArrayList(operations_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Offer.Operation, org.apache.mesos.v1.Protos.Offer.Operation.Builder, org.apache.mesos.v1.Protos.Offer.OperationOrBuilder> operationsBuilder_;
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public java.util.List getOperationsList() {
if (operationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(operations_);
} else {
return operationsBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public int getOperationsCount() {
if (operationsBuilder_ == null) {
return operations_.size();
} else {
return operationsBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public org.apache.mesos.v1.Protos.Offer.Operation getOperations(int index) {
if (operationsBuilder_ == null) {
return operations_.get(index);
} else {
return operationsBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder setOperations(
int index, org.apache.mesos.v1.Protos.Offer.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.set(index, value);
onChanged();
} else {
operationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder setOperations(
int index, org.apache.mesos.v1.Protos.Offer.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.set(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder addOperations(org.apache.mesos.v1.Protos.Offer.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(value);
onChanged();
} else {
operationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder addOperations(
int index, org.apache.mesos.v1.Protos.Offer.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(index, value);
onChanged();
} else {
operationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder addOperations(
org.apache.mesos.v1.Protos.Offer.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder addOperations(
int index, org.apache.mesos.v1.Protos.Offer.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder addAllOperations(
java.lang.Iterable extends org.apache.mesos.v1.Protos.Offer.Operation> values) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, operations_);
onChanged();
} else {
operationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder clearOperations() {
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
operationsBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public Builder removeOperations(int index) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.remove(index);
onChanged();
} else {
operationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public org.apache.mesos.v1.Protos.Offer.Operation.Builder getOperationsBuilder(
int index) {
return getOperationsFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public org.apache.mesos.v1.Protos.Offer.OperationOrBuilder getOperationsOrBuilder(
int index) {
if (operationsBuilder_ == null) {
return operations_.get(index); } else {
return operationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public java.util.List extends org.apache.mesos.v1.Protos.Offer.OperationOrBuilder>
getOperationsOrBuilderList() {
if (operationsBuilder_ != null) {
return operationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(operations_);
}
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public org.apache.mesos.v1.Protos.Offer.Operation.Builder addOperationsBuilder() {
return getOperationsFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance());
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public org.apache.mesos.v1.Protos.Offer.Operation.Builder addOperationsBuilder(
int index) {
return getOperationsFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.Offer.Operation.getDefaultInstance());
}
/**
* repeated .mesos.v1.Offer.Operation operations = 2;
*/
public java.util.List
getOperationsBuilderList() {
return getOperationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Offer.Operation, org.apache.mesos.v1.Protos.Offer.Operation.Builder, org.apache.mesos.v1.Protos.Offer.OperationOrBuilder>
getOperationsFieldBuilder() {
if (operationsBuilder_ == null) {
operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Offer.Operation, org.apache.mesos.v1.Protos.Offer.Operation.Builder, org.apache.mesos.v1.Protos.Offer.OperationOrBuilder>(
operations_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
operations_ = null;
}
return operationsBuilder_;
}
private org.apache.mesos.v1.Protos.Filters filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder> filtersBuilder_;
/**
* optional .mesos.v1.Filters filters = 3;
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public org.apache.mesos.v1.Protos.Filters getFilters() {
if (filtersBuilder_ == null) {
return filters_;
} else {
return filtersBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public Builder setFilters(org.apache.mesos.v1.Protos.Filters value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filters_ = value;
onChanged();
} else {
filtersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public Builder setFilters(
org.apache.mesos.v1.Protos.Filters.Builder builderForValue) {
if (filtersBuilder_ == null) {
filters_ = builderForValue.build();
onChanged();
} else {
filtersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public Builder mergeFilters(org.apache.mesos.v1.Protos.Filters value) {
if (filtersBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
filters_ != org.apache.mesos.v1.Protos.Filters.getDefaultInstance()) {
filters_ =
org.apache.mesos.v1.Protos.Filters.newBuilder(filters_).mergeFrom(value).buildPartial();
} else {
filters_ = value;
}
onChanged();
} else {
filtersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public Builder clearFilters() {
if (filtersBuilder_ == null) {
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
onChanged();
} else {
filtersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public org.apache.mesos.v1.Protos.Filters.Builder getFiltersBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getFiltersFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
public org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder() {
if (filtersBuilder_ != null) {
return filtersBuilder_.getMessageOrBuilder();
} else {
return filters_;
}
}
/**
* optional .mesos.v1.Filters filters = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder>
getFiltersFieldBuilder() {
if (filtersBuilder_ == null) {
filtersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder>(
getFilters(),
getParentForChildren(),
isClean());
filters_ = null;
}
return filtersBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Accept)
}
static {
defaultInstance = new Accept(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Accept)
}
public interface DeclineOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Decline)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
java.util.List
getOfferIdsList();
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
org.apache.mesos.v1.Protos.OfferID getOfferIds(int index);
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
int getOfferIdsCount();
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdsOrBuilderList();
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdsOrBuilder(
int index);
/**
* optional .mesos.v1.Filters filters = 2;
*/
boolean hasFilters();
/**
* optional .mesos.v1.Filters filters = 2;
*/
org.apache.mesos.v1.Protos.Filters getFilters();
/**
* optional .mesos.v1.Filters filters = 2;
*/
org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Decline}
*
*
* Declines an offer, signaling the master to potentially reoffer
* the resources to a different framework. Note that this is same
* as sending an Accept call with no operations. See comments on
* top of 'Accept' for semantics.
*
*/
public static final class Decline extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Decline)
DeclineOrBuilder {
// Use Decline.newBuilder() to construct.
private Decline(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Decline(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Decline defaultInstance;
public static Decline getDefaultInstance() {
return defaultInstance;
}
public Decline getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Decline(
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)) {
offerIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
offerIds_.add(input.readMessage(org.apache.mesos.v1.Protos.OfferID.PARSER, extensionRegistry));
break;
}
case 18: {
org.apache.mesos.v1.Protos.Filters.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = filters_.toBuilder();
}
filters_ = input.readMessage(org.apache.mesos.v1.Protos.Filters.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filters_);
filters_ = 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)) {
offerIds_ = java.util.Collections.unmodifiableList(offerIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Decline_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Decline_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Decline.class, org.apache.mesos.v1.scheduler.Protos.Call.Decline.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Decline parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Decline(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int OFFER_IDS_FIELD_NUMBER = 1;
private java.util.List offerIds_;
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List getOfferIdsList() {
return offerIds_;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdsOrBuilderList() {
return offerIds_;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public int getOfferIdsCount() {
return offerIds_.size();
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getOfferIds(int index) {
return offerIds_.get(index);
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdsOrBuilder(
int index) {
return offerIds_.get(index);
}
public static final int FILTERS_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.Filters filters_;
/**
* optional .mesos.v1.Filters filters = 2;
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters getFilters() {
return filters_;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder() {
return filters_;
}
private void initFields() {
offerIds_ = java.util.Collections.emptyList();
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
}
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 < getOfferIdsCount(); i++) {
if (!getOfferIds(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 < offerIds_.size(); i++) {
output.writeMessage(1, offerIds_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, filters_);
}
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 < offerIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, offerIds_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, filters_);
}
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.scheduler.Protos.Call.Decline parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Decline 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.scheduler.Protos.Call.Decline parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Decline parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Decline parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Decline 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.scheduler.Protos.Call.Decline parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Decline 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.scheduler.Protos.Call.Decline parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Decline 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.scheduler.Protos.Call.Decline 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.scheduler.Call.Decline}
*
*
* Declines an offer, signaling the master to potentially reoffer
* the resources to a different framework. Note that this is same
* as sending an Accept call with no operations. See comments on
* top of 'Accept' for semantics.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Decline)
org.apache.mesos.v1.scheduler.Protos.Call.DeclineOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Decline_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Decline_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Decline.class, org.apache.mesos.v1.scheduler.Protos.Call.Decline.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Decline.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getOfferIdsFieldBuilder();
getFiltersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (offerIdsBuilder_ == null) {
offerIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
offerIdsBuilder_.clear();
}
if (filtersBuilder_ == null) {
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
} else {
filtersBuilder_.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.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Decline_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Decline getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Decline.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Decline build() {
org.apache.mesos.v1.scheduler.Protos.Call.Decline result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Decline buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Decline result = new org.apache.mesos.v1.scheduler.Protos.Call.Decline(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (offerIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
offerIds_ = java.util.Collections.unmodifiableList(offerIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.offerIds_ = offerIds_;
} else {
result.offerIds_ = offerIdsBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
if (filtersBuilder_ == null) {
result.filters_ = filters_;
} else {
result.filters_ = filtersBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Decline) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Decline)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Decline other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Decline.getDefaultInstance()) return this;
if (offerIdsBuilder_ == null) {
if (!other.offerIds_.isEmpty()) {
if (offerIds_.isEmpty()) {
offerIds_ = other.offerIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOfferIdsIsMutable();
offerIds_.addAll(other.offerIds_);
}
onChanged();
}
} else {
if (!other.offerIds_.isEmpty()) {
if (offerIdsBuilder_.isEmpty()) {
offerIdsBuilder_.dispose();
offerIdsBuilder_ = null;
offerIds_ = other.offerIds_;
bitField0_ = (bitField0_ & ~0x00000001);
offerIdsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getOfferIdsFieldBuilder() : null;
} else {
offerIdsBuilder_.addAllMessages(other.offerIds_);
}
}
}
if (other.hasFilters()) {
mergeFilters(other.getFilters());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getOfferIdsCount(); i++) {
if (!getOfferIds(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.scheduler.Protos.Call.Decline parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Decline) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List offerIds_ =
java.util.Collections.emptyList();
private void ensureOfferIdsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
offerIds_ = new java.util.ArrayList(offerIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> offerIdsBuilder_;
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List getOfferIdsList() {
if (offerIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(offerIds_);
} else {
return offerIdsBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public int getOfferIdsCount() {
if (offerIdsBuilder_ == null) {
return offerIds_.size();
} else {
return offerIdsBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getOfferIds(int index) {
if (offerIdsBuilder_ == null) {
return offerIds_.get(index);
} else {
return offerIdsBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder setOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID value) {
if (offerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOfferIdsIsMutable();
offerIds_.set(index, value);
onChanged();
} else {
offerIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder setOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
offerIds_.set(index, builderForValue.build());
onChanged();
} else {
offerIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addOfferIds(org.apache.mesos.v1.Protos.OfferID value) {
if (offerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOfferIdsIsMutable();
offerIds_.add(value);
onChanged();
} else {
offerIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID value) {
if (offerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOfferIdsIsMutable();
offerIds_.add(index, value);
onChanged();
} else {
offerIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addOfferIds(
org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
offerIds_.add(builderForValue.build());
onChanged();
} else {
offerIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
offerIds_.add(index, builderForValue.build());
onChanged();
} else {
offerIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder addAllOfferIds(
java.lang.Iterable extends org.apache.mesos.v1.Protos.OfferID> values) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, offerIds_);
onChanged();
} else {
offerIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder clearOfferIds() {
if (offerIdsBuilder_ == null) {
offerIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
offerIdsBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public Builder removeOfferIds(int index) {
if (offerIdsBuilder_ == null) {
ensureOfferIdsIsMutable();
offerIds_.remove(index);
onChanged();
} else {
offerIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder getOfferIdsBuilder(
int index) {
return getOfferIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getOfferIdsOrBuilder(
int index) {
if (offerIdsBuilder_ == null) {
return offerIds_.get(index); } else {
return offerIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdsOrBuilderList() {
if (offerIdsBuilder_ != null) {
return offerIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(offerIds_);
}
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder addOfferIdsBuilder() {
return getOfferIdsFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.OfferID.getDefaultInstance());
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder addOfferIdsBuilder(
int index) {
return getOfferIdsFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.OfferID.getDefaultInstance());
}
/**
* repeated .mesos.v1.OfferID offer_ids = 1;
*/
public java.util.List
getOfferIdsBuilderList() {
return getOfferIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getOfferIdsFieldBuilder() {
if (offerIdsBuilder_ == null) {
offerIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>(
offerIds_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
offerIds_ = null;
}
return offerIdsBuilder_;
}
private org.apache.mesos.v1.Protos.Filters filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder> filtersBuilder_;
/**
* optional .mesos.v1.Filters filters = 2;
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters getFilters() {
if (filtersBuilder_ == null) {
return filters_;
} else {
return filtersBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder setFilters(org.apache.mesos.v1.Protos.Filters value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filters_ = value;
onChanged();
} else {
filtersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder setFilters(
org.apache.mesos.v1.Protos.Filters.Builder builderForValue) {
if (filtersBuilder_ == null) {
filters_ = builderForValue.build();
onChanged();
} else {
filtersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder mergeFilters(org.apache.mesos.v1.Protos.Filters value) {
if (filtersBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
filters_ != org.apache.mesos.v1.Protos.Filters.getDefaultInstance()) {
filters_ =
org.apache.mesos.v1.Protos.Filters.newBuilder(filters_).mergeFrom(value).buildPartial();
} else {
filters_ = value;
}
onChanged();
} else {
filtersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder clearFilters() {
if (filtersBuilder_ == null) {
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
onChanged();
} else {
filtersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters.Builder getFiltersBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFiltersFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder() {
if (filtersBuilder_ != null) {
return filtersBuilder_.getMessageOrBuilder();
} else {
return filters_;
}
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder>
getFiltersFieldBuilder() {
if (filtersBuilder_ == null) {
filtersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder>(
getFilters(),
getParentForChildren(),
isClean());
filters_ = null;
}
return filtersBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Decline)
}
static {
defaultInstance = new Decline(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Decline)
}
public interface AcceptInverseOffersOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.AcceptInverseOffers)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
java.util.List
getInverseOfferIdsList();
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
org.apache.mesos.v1.Protos.OfferID getInverseOfferIds(int index);
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
int getInverseOfferIdsCount();
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdsOrBuilderList();
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdsOrBuilder(
int index);
/**
* optional .mesos.v1.Filters filters = 2;
*/
boolean hasFilters();
/**
* optional .mesos.v1.Filters filters = 2;
*/
org.apache.mesos.v1.Protos.Filters getFilters();
/**
* optional .mesos.v1.Filters filters = 2;
*/
org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.AcceptInverseOffers}
*
*
* Accepts an inverse offer. Inverse offers should only be accepted
* if the resources in the offer can be safely evacuated before the
* provided unavailability.
*
*/
public static final class AcceptInverseOffers extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.AcceptInverseOffers)
AcceptInverseOffersOrBuilder {
// Use AcceptInverseOffers.newBuilder() to construct.
private AcceptInverseOffers(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AcceptInverseOffers(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AcceptInverseOffers defaultInstance;
public static AcceptInverseOffers getDefaultInstance() {
return defaultInstance;
}
public AcceptInverseOffers getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AcceptInverseOffers(
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)) {
inverseOfferIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
inverseOfferIds_.add(input.readMessage(org.apache.mesos.v1.Protos.OfferID.PARSER, extensionRegistry));
break;
}
case 18: {
org.apache.mesos.v1.Protos.Filters.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = filters_.toBuilder();
}
filters_ = input.readMessage(org.apache.mesos.v1.Protos.Filters.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filters_);
filters_ = 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)) {
inverseOfferIds_ = java.util.Collections.unmodifiableList(inverseOfferIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.class, org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public AcceptInverseOffers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AcceptInverseOffers(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INVERSE_OFFER_IDS_FIELD_NUMBER = 1;
private java.util.List inverseOfferIds_;
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List getInverseOfferIdsList() {
return inverseOfferIds_;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdsOrBuilderList() {
return inverseOfferIds_;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public int getInverseOfferIdsCount() {
return inverseOfferIds_.size();
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getInverseOfferIds(int index) {
return inverseOfferIds_.get(index);
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdsOrBuilder(
int index) {
return inverseOfferIds_.get(index);
}
public static final int FILTERS_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.Filters filters_;
/**
* optional .mesos.v1.Filters filters = 2;
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters getFilters() {
return filters_;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder() {
return filters_;
}
private void initFields() {
inverseOfferIds_ = java.util.Collections.emptyList();
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
}
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 < getInverseOfferIdsCount(); i++) {
if (!getInverseOfferIds(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 < inverseOfferIds_.size(); i++) {
output.writeMessage(1, inverseOfferIds_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, filters_);
}
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 < inverseOfferIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, inverseOfferIds_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, filters_);
}
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.scheduler.Protos.Call.AcceptInverseOffers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers 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.scheduler.Protos.Call.AcceptInverseOffers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers 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.scheduler.Protos.Call.AcceptInverseOffers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers 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.scheduler.Protos.Call.AcceptInverseOffers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers 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.scheduler.Protos.Call.AcceptInverseOffers 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.scheduler.Call.AcceptInverseOffers}
*
*
* Accepts an inverse offer. Inverse offers should only be accepted
* if the resources in the offer can be safely evacuated before the
* provided unavailability.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.AcceptInverseOffers)
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.class, org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getInverseOfferIdsFieldBuilder();
getFiltersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (inverseOfferIdsBuilder_ == null) {
inverseOfferIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
inverseOfferIdsBuilder_.clear();
}
if (filtersBuilder_ == null) {
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
} else {
filtersBuilder_.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.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers build() {
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers result = new org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (inverseOfferIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
inverseOfferIds_ = java.util.Collections.unmodifiableList(inverseOfferIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.inverseOfferIds_ = inverseOfferIds_;
} else {
result.inverseOfferIds_ = inverseOfferIdsBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
if (filtersBuilder_ == null) {
result.filters_ = filters_;
} else {
result.filters_ = filtersBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.getDefaultInstance()) return this;
if (inverseOfferIdsBuilder_ == null) {
if (!other.inverseOfferIds_.isEmpty()) {
if (inverseOfferIds_.isEmpty()) {
inverseOfferIds_ = other.inverseOfferIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.addAll(other.inverseOfferIds_);
}
onChanged();
}
} else {
if (!other.inverseOfferIds_.isEmpty()) {
if (inverseOfferIdsBuilder_.isEmpty()) {
inverseOfferIdsBuilder_.dispose();
inverseOfferIdsBuilder_ = null;
inverseOfferIds_ = other.inverseOfferIds_;
bitField0_ = (bitField0_ & ~0x00000001);
inverseOfferIdsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getInverseOfferIdsFieldBuilder() : null;
} else {
inverseOfferIdsBuilder_.addAllMessages(other.inverseOfferIds_);
}
}
}
if (other.hasFilters()) {
mergeFilters(other.getFilters());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getInverseOfferIdsCount(); i++) {
if (!getInverseOfferIds(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.scheduler.Protos.Call.AcceptInverseOffers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List inverseOfferIds_ =
java.util.Collections.emptyList();
private void ensureInverseOfferIdsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
inverseOfferIds_ = new java.util.ArrayList(inverseOfferIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> inverseOfferIdsBuilder_;
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List getInverseOfferIdsList() {
if (inverseOfferIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(inverseOfferIds_);
} else {
return inverseOfferIdsBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public int getInverseOfferIdsCount() {
if (inverseOfferIdsBuilder_ == null) {
return inverseOfferIds_.size();
} else {
return inverseOfferIdsBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getInverseOfferIds(int index) {
if (inverseOfferIdsBuilder_ == null) {
return inverseOfferIds_.get(index);
} else {
return inverseOfferIdsBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder setInverseOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID value) {
if (inverseOfferIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.set(index, value);
onChanged();
} else {
inverseOfferIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder setInverseOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.set(index, builderForValue.build());
onChanged();
} else {
inverseOfferIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addInverseOfferIds(org.apache.mesos.v1.Protos.OfferID value) {
if (inverseOfferIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.add(value);
onChanged();
} else {
inverseOfferIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addInverseOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID value) {
if (inverseOfferIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.add(index, value);
onChanged();
} else {
inverseOfferIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addInverseOfferIds(
org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.add(builderForValue.build());
onChanged();
} else {
inverseOfferIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addInverseOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.add(index, builderForValue.build());
onChanged();
} else {
inverseOfferIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addAllInverseOfferIds(
java.lang.Iterable extends org.apache.mesos.v1.Protos.OfferID> values) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inverseOfferIds_);
onChanged();
} else {
inverseOfferIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder clearInverseOfferIds() {
if (inverseOfferIdsBuilder_ == null) {
inverseOfferIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
inverseOfferIdsBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder removeInverseOfferIds(int index) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.remove(index);
onChanged();
} else {
inverseOfferIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder getInverseOfferIdsBuilder(
int index) {
return getInverseOfferIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdsOrBuilder(
int index) {
if (inverseOfferIdsBuilder_ == null) {
return inverseOfferIds_.get(index); } else {
return inverseOfferIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdsOrBuilderList() {
if (inverseOfferIdsBuilder_ != null) {
return inverseOfferIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inverseOfferIds_);
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder addInverseOfferIdsBuilder() {
return getInverseOfferIdsFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.OfferID.getDefaultInstance());
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder addInverseOfferIdsBuilder(
int index) {
return getInverseOfferIdsFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.OfferID.getDefaultInstance());
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List
getInverseOfferIdsBuilderList() {
return getInverseOfferIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdsFieldBuilder() {
if (inverseOfferIdsBuilder_ == null) {
inverseOfferIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>(
inverseOfferIds_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
inverseOfferIds_ = null;
}
return inverseOfferIdsBuilder_;
}
private org.apache.mesos.v1.Protos.Filters filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder> filtersBuilder_;
/**
* optional .mesos.v1.Filters filters = 2;
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters getFilters() {
if (filtersBuilder_ == null) {
return filters_;
} else {
return filtersBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder setFilters(org.apache.mesos.v1.Protos.Filters value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filters_ = value;
onChanged();
} else {
filtersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder setFilters(
org.apache.mesos.v1.Protos.Filters.Builder builderForValue) {
if (filtersBuilder_ == null) {
filters_ = builderForValue.build();
onChanged();
} else {
filtersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder mergeFilters(org.apache.mesos.v1.Protos.Filters value) {
if (filtersBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
filters_ != org.apache.mesos.v1.Protos.Filters.getDefaultInstance()) {
filters_ =
org.apache.mesos.v1.Protos.Filters.newBuilder(filters_).mergeFrom(value).buildPartial();
} else {
filters_ = value;
}
onChanged();
} else {
filtersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder clearFilters() {
if (filtersBuilder_ == null) {
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
onChanged();
} else {
filtersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters.Builder getFiltersBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFiltersFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder() {
if (filtersBuilder_ != null) {
return filtersBuilder_.getMessageOrBuilder();
} else {
return filters_;
}
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder>
getFiltersFieldBuilder() {
if (filtersBuilder_ == null) {
filtersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder>(
getFilters(),
getParentForChildren(),
isClean());
filters_ = null;
}
return filtersBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.AcceptInverseOffers)
}
static {
defaultInstance = new AcceptInverseOffers(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.AcceptInverseOffers)
}
public interface DeclineInverseOffersOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.DeclineInverseOffers)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
java.util.List
getInverseOfferIdsList();
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
org.apache.mesos.v1.Protos.OfferID getInverseOfferIds(int index);
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
int getInverseOfferIdsCount();
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdsOrBuilderList();
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdsOrBuilder(
int index);
/**
* optional .mesos.v1.Filters filters = 2;
*/
boolean hasFilters();
/**
* optional .mesos.v1.Filters filters = 2;
*/
org.apache.mesos.v1.Protos.Filters getFilters();
/**
* optional .mesos.v1.Filters filters = 2;
*/
org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.DeclineInverseOffers}
*
*
* Declines an inverse offer. Inverse offers should be declined if
* the resources in the offer might not be safely evacuated before
* the provided unavailability.
*
*/
public static final class DeclineInverseOffers extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.DeclineInverseOffers)
DeclineInverseOffersOrBuilder {
// Use DeclineInverseOffers.newBuilder() to construct.
private DeclineInverseOffers(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DeclineInverseOffers(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DeclineInverseOffers defaultInstance;
public static DeclineInverseOffers getDefaultInstance() {
return defaultInstance;
}
public DeclineInverseOffers getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeclineInverseOffers(
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)) {
inverseOfferIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
inverseOfferIds_.add(input.readMessage(org.apache.mesos.v1.Protos.OfferID.PARSER, extensionRegistry));
break;
}
case 18: {
org.apache.mesos.v1.Protos.Filters.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = filters_.toBuilder();
}
filters_ = input.readMessage(org.apache.mesos.v1.Protos.Filters.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filters_);
filters_ = 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)) {
inverseOfferIds_ = java.util.Collections.unmodifiableList(inverseOfferIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.class, org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DeclineInverseOffers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeclineInverseOffers(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INVERSE_OFFER_IDS_FIELD_NUMBER = 1;
private java.util.List inverseOfferIds_;
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List getInverseOfferIdsList() {
return inverseOfferIds_;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdsOrBuilderList() {
return inverseOfferIds_;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public int getInverseOfferIdsCount() {
return inverseOfferIds_.size();
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getInverseOfferIds(int index) {
return inverseOfferIds_.get(index);
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdsOrBuilder(
int index) {
return inverseOfferIds_.get(index);
}
public static final int FILTERS_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.Filters filters_;
/**
* optional .mesos.v1.Filters filters = 2;
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters getFilters() {
return filters_;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder() {
return filters_;
}
private void initFields() {
inverseOfferIds_ = java.util.Collections.emptyList();
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
}
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 < getInverseOfferIdsCount(); i++) {
if (!getInverseOfferIds(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 < inverseOfferIds_.size(); i++) {
output.writeMessage(1, inverseOfferIds_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, filters_);
}
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 < inverseOfferIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, inverseOfferIds_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, filters_);
}
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.scheduler.Protos.Call.DeclineInverseOffers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers 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.scheduler.Protos.Call.DeclineInverseOffers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers 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.scheduler.Protos.Call.DeclineInverseOffers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers 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.scheduler.Protos.Call.DeclineInverseOffers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers 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.scheduler.Protos.Call.DeclineInverseOffers 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.scheduler.Call.DeclineInverseOffers}
*
*
* Declines an inverse offer. Inverse offers should be declined if
* the resources in the offer might not be safely evacuated before
* the provided unavailability.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.DeclineInverseOffers)
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.class, org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getInverseOfferIdsFieldBuilder();
getFiltersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (inverseOfferIdsBuilder_ == null) {
inverseOfferIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
inverseOfferIdsBuilder_.clear();
}
if (filtersBuilder_ == null) {
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
} else {
filtersBuilder_.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.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers build() {
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers result = new org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (inverseOfferIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
inverseOfferIds_ = java.util.Collections.unmodifiableList(inverseOfferIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.inverseOfferIds_ = inverseOfferIds_;
} else {
result.inverseOfferIds_ = inverseOfferIdsBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
if (filtersBuilder_ == null) {
result.filters_ = filters_;
} else {
result.filters_ = filtersBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.getDefaultInstance()) return this;
if (inverseOfferIdsBuilder_ == null) {
if (!other.inverseOfferIds_.isEmpty()) {
if (inverseOfferIds_.isEmpty()) {
inverseOfferIds_ = other.inverseOfferIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.addAll(other.inverseOfferIds_);
}
onChanged();
}
} else {
if (!other.inverseOfferIds_.isEmpty()) {
if (inverseOfferIdsBuilder_.isEmpty()) {
inverseOfferIdsBuilder_.dispose();
inverseOfferIdsBuilder_ = null;
inverseOfferIds_ = other.inverseOfferIds_;
bitField0_ = (bitField0_ & ~0x00000001);
inverseOfferIdsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getInverseOfferIdsFieldBuilder() : null;
} else {
inverseOfferIdsBuilder_.addAllMessages(other.inverseOfferIds_);
}
}
}
if (other.hasFilters()) {
mergeFilters(other.getFilters());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getInverseOfferIdsCount(); i++) {
if (!getInverseOfferIds(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.scheduler.Protos.Call.DeclineInverseOffers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List inverseOfferIds_ =
java.util.Collections.emptyList();
private void ensureInverseOfferIdsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
inverseOfferIds_ = new java.util.ArrayList(inverseOfferIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder> inverseOfferIdsBuilder_;
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List getInverseOfferIdsList() {
if (inverseOfferIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(inverseOfferIds_);
} else {
return inverseOfferIdsBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public int getInverseOfferIdsCount() {
if (inverseOfferIdsBuilder_ == null) {
return inverseOfferIds_.size();
} else {
return inverseOfferIdsBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID getInverseOfferIds(int index) {
if (inverseOfferIdsBuilder_ == null) {
return inverseOfferIds_.get(index);
} else {
return inverseOfferIdsBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder setInverseOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID value) {
if (inverseOfferIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.set(index, value);
onChanged();
} else {
inverseOfferIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder setInverseOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.set(index, builderForValue.build());
onChanged();
} else {
inverseOfferIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addInverseOfferIds(org.apache.mesos.v1.Protos.OfferID value) {
if (inverseOfferIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.add(value);
onChanged();
} else {
inverseOfferIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addInverseOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID value) {
if (inverseOfferIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.add(index, value);
onChanged();
} else {
inverseOfferIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addInverseOfferIds(
org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.add(builderForValue.build());
onChanged();
} else {
inverseOfferIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addInverseOfferIds(
int index, org.apache.mesos.v1.Protos.OfferID.Builder builderForValue) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.add(index, builderForValue.build());
onChanged();
} else {
inverseOfferIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder addAllInverseOfferIds(
java.lang.Iterable extends org.apache.mesos.v1.Protos.OfferID> values) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inverseOfferIds_);
onChanged();
} else {
inverseOfferIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder clearInverseOfferIds() {
if (inverseOfferIdsBuilder_ == null) {
inverseOfferIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
inverseOfferIdsBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public Builder removeInverseOfferIds(int index) {
if (inverseOfferIdsBuilder_ == null) {
ensureInverseOfferIdsIsMutable();
inverseOfferIds_.remove(index);
onChanged();
} else {
inverseOfferIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder getInverseOfferIdsBuilder(
int index) {
return getInverseOfferIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferIDOrBuilder getInverseOfferIdsOrBuilder(
int index) {
if (inverseOfferIdsBuilder_ == null) {
return inverseOfferIds_.get(index); } else {
return inverseOfferIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdsOrBuilderList() {
if (inverseOfferIdsBuilder_ != null) {
return inverseOfferIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inverseOfferIds_);
}
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder addInverseOfferIdsBuilder() {
return getInverseOfferIdsFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.OfferID.getDefaultInstance());
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public org.apache.mesos.v1.Protos.OfferID.Builder addInverseOfferIdsBuilder(
int index) {
return getInverseOfferIdsFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.OfferID.getDefaultInstance());
}
/**
* repeated .mesos.v1.OfferID inverse_offer_ids = 1;
*/
public java.util.List
getInverseOfferIdsBuilderList() {
return getInverseOfferIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>
getInverseOfferIdsFieldBuilder() {
if (inverseOfferIdsBuilder_ == null) {
inverseOfferIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.OfferID, org.apache.mesos.v1.Protos.OfferID.Builder, org.apache.mesos.v1.Protos.OfferIDOrBuilder>(
inverseOfferIds_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
inverseOfferIds_ = null;
}
return inverseOfferIdsBuilder_;
}
private org.apache.mesos.v1.Protos.Filters filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder> filtersBuilder_;
/**
* optional .mesos.v1.Filters filters = 2;
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters getFilters() {
if (filtersBuilder_ == null) {
return filters_;
} else {
return filtersBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder setFilters(org.apache.mesos.v1.Protos.Filters value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filters_ = value;
onChanged();
} else {
filtersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder setFilters(
org.apache.mesos.v1.Protos.Filters.Builder builderForValue) {
if (filtersBuilder_ == null) {
filters_ = builderForValue.build();
onChanged();
} else {
filtersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder mergeFilters(org.apache.mesos.v1.Protos.Filters value) {
if (filtersBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
filters_ != org.apache.mesos.v1.Protos.Filters.getDefaultInstance()) {
filters_ =
org.apache.mesos.v1.Protos.Filters.newBuilder(filters_).mergeFrom(value).buildPartial();
} else {
filters_ = value;
}
onChanged();
} else {
filtersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public Builder clearFilters() {
if (filtersBuilder_ == null) {
filters_ = org.apache.mesos.v1.Protos.Filters.getDefaultInstance();
onChanged();
} else {
filtersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.Filters.Builder getFiltersBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFiltersFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
public org.apache.mesos.v1.Protos.FiltersOrBuilder getFiltersOrBuilder() {
if (filtersBuilder_ != null) {
return filtersBuilder_.getMessageOrBuilder();
} else {
return filters_;
}
}
/**
* optional .mesos.v1.Filters filters = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder>
getFiltersFieldBuilder() {
if (filtersBuilder_ == null) {
filtersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.Filters, org.apache.mesos.v1.Protos.Filters.Builder, org.apache.mesos.v1.Protos.FiltersOrBuilder>(
getFilters(),
getParentForChildren(),
isClean());
filters_ = null;
}
return filtersBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.DeclineInverseOffers)
}
static {
defaultInstance = new DeclineInverseOffers(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.DeclineInverseOffers)
}
public interface ReviveOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Revive)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string roles = 1;
*/
com.google.protobuf.ProtocolStringList
getRolesList();
/**
* repeated string roles = 1;
*/
int getRolesCount();
/**
* repeated string roles = 1;
*/
java.lang.String getRoles(int index);
/**
* repeated string roles = 1;
*/
com.google.protobuf.ByteString
getRolesBytes(int index);
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Revive}
*
*
* Revive offers for the specified roles. If `roles` is empty,
* the `REVIVE` call will revive offers for all of the roles
* the framework is currently subscribed to.
*
*/
public static final class Revive extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Revive)
ReviveOrBuilder {
// Use Revive.newBuilder() to construct.
private Revive(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Revive(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Revive defaultInstance;
public static Revive getDefaultInstance() {
return defaultInstance;
}
public Revive getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Revive(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
roles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
roles_.add(bs);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
roles_ = roles_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Revive_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Revive_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Revive.class, org.apache.mesos.v1.scheduler.Protos.Call.Revive.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Revive parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Revive(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int ROLES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList roles_;
/**
* repeated string roles = 1;
*/
public com.google.protobuf.ProtocolStringList
getRolesList() {
return roles_;
}
/**
* repeated string roles = 1;
*/
public int getRolesCount() {
return roles_.size();
}
/**
* repeated string roles = 1;
*/
public java.lang.String getRoles(int index) {
return roles_.get(index);
}
/**
* repeated string roles = 1;
*/
public com.google.protobuf.ByteString
getRolesBytes(int index) {
return roles_.getByteString(index);
}
private void initFields() {
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < roles_.size(); i++) {
output.writeBytes(1, roles_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < roles_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(roles_.getByteString(i));
}
size += dataSize;
size += 1 * getRolesList().size();
}
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.scheduler.Protos.Call.Revive parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Revive 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.scheduler.Protos.Call.Revive parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Revive parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Revive parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Revive 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.scheduler.Protos.Call.Revive parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Revive 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.scheduler.Protos.Call.Revive parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Revive 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.scheduler.Protos.Call.Revive 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.scheduler.Call.Revive}
*
*
* Revive offers for the specified roles. If `roles` is empty,
* the `REVIVE` call will revive offers for all of the roles
* the framework is currently subscribed to.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Revive)
org.apache.mesos.v1.scheduler.Protos.Call.ReviveOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Revive_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Revive_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Revive.class, org.apache.mesos.v1.scheduler.Protos.Call.Revive.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Revive.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Revive_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Revive getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Revive.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Revive build() {
org.apache.mesos.v1.scheduler.Protos.Call.Revive result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Revive buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Revive result = new org.apache.mesos.v1.scheduler.Protos.Call.Revive(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
roles_ = roles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.roles_ = roles_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Revive) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Revive)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Revive other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Revive.getDefaultInstance()) return this;
if (!other.roles_.isEmpty()) {
if (roles_.isEmpty()) {
roles_ = other.roles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRolesIsMutable();
roles_.addAll(other.roles_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Call.Revive parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Revive) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRolesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
roles_ = new com.google.protobuf.LazyStringArrayList(roles_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string roles = 1;
*/
public com.google.protobuf.ProtocolStringList
getRolesList() {
return roles_.getUnmodifiableView();
}
/**
* repeated string roles = 1;
*/
public int getRolesCount() {
return roles_.size();
}
/**
* repeated string roles = 1;
*/
public java.lang.String getRoles(int index) {
return roles_.get(index);
}
/**
* repeated string roles = 1;
*/
public com.google.protobuf.ByteString
getRolesBytes(int index) {
return roles_.getByteString(index);
}
/**
* repeated string roles = 1;
*/
public Builder setRoles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.set(index, value);
onChanged();
return this;
}
/**
* repeated string roles = 1;
*/
public Builder addRoles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
/**
* repeated string roles = 1;
*/
public Builder addAllRoles(
java.lang.Iterable values) {
ensureRolesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, roles_);
onChanged();
return this;
}
/**
* repeated string roles = 1;
*/
public Builder clearRoles() {
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string roles = 1;
*/
public Builder addRolesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Revive)
}
static {
defaultInstance = new Revive(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Revive)
}
public interface KillOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Kill)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.TaskID task_id = 1;
*/
boolean hasTaskId();
/**
* required .mesos.v1.TaskID task_id = 1;
*/
org.apache.mesos.v1.Protos.TaskID getTaskId();
/**
* required .mesos.v1.TaskID task_id = 1;
*/
org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder();
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
boolean hasAgentId();
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
org.apache.mesos.v1.Protos.AgentID getAgentId();
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder();
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
boolean hasKillPolicy();
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
org.apache.mesos.v1.Protos.KillPolicy getKillPolicy();
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Kill}
*
*
* Kills a specific task. If the scheduler has a custom executor,
* the kill is forwarded to the executor and it is up to the
* executor to kill the task and send a TASK_KILLED (or TASK_FAILED)
* update. Note that Mesos releases the resources for a task once it
* receives a terminal update (See TaskState in v1/mesos.proto) for
* it. If the task is unknown to the master, a TASK_LOST update is
* generated.
* If a task within a task group is killed before the group is
* delivered to the executor, all tasks in the task group are
* killed. When a task group has been delivered to the executor,
* it is up to the executor to decide how to deal with the kill.
* Note The default Mesos executor will currently kill all the
* tasks in the task group if it gets a kill for any task.
*
*/
public static final class Kill extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Kill)
KillOrBuilder {
// Use Kill.newBuilder() to construct.
private Kill(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Kill(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Kill defaultInstance;
public static Kill getDefaultInstance() {
return defaultInstance;
}
public Kill getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Kill(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.TaskID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = taskId_.toBuilder();
}
taskId_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskId_);
taskId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = agentId_.toBuilder();
}
agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentId_);
agentId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.apache.mesos.v1.Protos.KillPolicy.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = killPolicy_.toBuilder();
}
killPolicy_ = input.readMessage(org.apache.mesos.v1.Protos.KillPolicy.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(killPolicy_);
killPolicy_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Kill_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Kill_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Kill.class, org.apache.mesos.v1.scheduler.Protos.Call.Kill.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Kill parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Kill(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TASK_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.TaskID taskId_;
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
return taskId_;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
return taskId_;
}
public static final int AGENT_ID_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.AgentID agentId_;
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
return agentId_;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
return agentId_;
}
public static final int KILL_POLICY_FIELD_NUMBER = 3;
private org.apache.mesos.v1.Protos.KillPolicy killPolicy_;
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public boolean hasKillPolicy() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() {
return killPolicy_;
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() {
return killPolicy_;
}
private void initFields() {
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTaskId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getTaskId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasAgentId()) {
if (!getAgentId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasKillPolicy()) {
if (!getKillPolicy().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, taskId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, agentId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, killPolicy_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, taskId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, agentId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, killPolicy_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Kill parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Call.Kill prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Kill}
*
*
* Kills a specific task. If the scheduler has a custom executor,
* the kill is forwarded to the executor and it is up to the
* executor to kill the task and send a TASK_KILLED (or TASK_FAILED)
* update. Note that Mesos releases the resources for a task once it
* receives a terminal update (See TaskState in v1/mesos.proto) for
* it. If the task is unknown to the master, a TASK_LOST update is
* generated.
* If a task within a task group is killed before the group is
* delivered to the executor, all tasks in the task group are
* killed. When a task group has been delivered to the executor,
* it is up to the executor to decide how to deal with the kill.
* Note The default Mesos executor will currently kill all the
* tasks in the task group if it gets a kill for any task.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Kill)
org.apache.mesos.v1.scheduler.Protos.Call.KillOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Kill_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Kill_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Kill.class, org.apache.mesos.v1.scheduler.Protos.Call.Kill.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Kill.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTaskIdFieldBuilder();
getAgentIdFieldBuilder();
getKillPolicyFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (taskIdBuilder_ == null) {
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (killPolicyBuilder_ == null) {
killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance();
} else {
killPolicyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Kill_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Kill getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Kill.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Kill build() {
org.apache.mesos.v1.scheduler.Protos.Call.Kill result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Kill buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Kill result = new org.apache.mesos.v1.scheduler.Protos.Call.Kill(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (taskIdBuilder_ == null) {
result.taskId_ = taskId_;
} else {
result.taskId_ = taskIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (agentIdBuilder_ == null) {
result.agentId_ = agentId_;
} else {
result.agentId_ = agentIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (killPolicyBuilder_ == null) {
result.killPolicy_ = killPolicy_;
} else {
result.killPolicy_ = killPolicyBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Kill) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Kill)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Kill other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Kill.getDefaultInstance()) return this;
if (other.hasTaskId()) {
mergeTaskId(other.getTaskId());
}
if (other.hasAgentId()) {
mergeAgentId(other.getAgentId());
}
if (other.hasKillPolicy()) {
mergeKillPolicy(other.getKillPolicy());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTaskId()) {
return false;
}
if (!getTaskId().isInitialized()) {
return false;
}
if (hasAgentId()) {
if (!getAgentId().isInitialized()) {
return false;
}
}
if (hasKillPolicy()) {
if (!getKillPolicy().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Call.Kill parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Kill) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.TaskID taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> taskIdBuilder_;
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
if (taskIdBuilder_ == null) {
return taskId_;
} else {
return taskIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder setTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
} else {
taskIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder setTaskId(
org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) {
if (taskIdBuilder_ == null) {
taskId_ = builderForValue.build();
onChanged();
} else {
taskIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder mergeTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
taskId_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) {
taskId_ =
org.apache.mesos.v1.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial();
} else {
taskId_ = value;
}
onChanged();
} else {
taskIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder clearTaskId() {
if (taskIdBuilder_ == null) {
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
onChanged();
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID.Builder getTaskIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTaskIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
if (taskIdBuilder_ != null) {
return taskIdBuilder_.getMessageOrBuilder();
} else {
return taskId_;
}
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>
getTaskIdFieldBuilder() {
if (taskIdBuilder_ == null) {
taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>(
getTaskId(),
getParentForChildren(),
isClean());
taskId_ = null;
}
return taskIdBuilder_;
}
private org.apache.mesos.v1.Protos.AgentID agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_;
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
if (agentIdBuilder_ == null) {
return agentId_;
} else {
return agentIdBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentId_ = value;
onChanged();
} else {
agentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public Builder setAgentId(
org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) {
if (agentIdBuilder_ == null) {
agentId_ = builderForValue.build();
onChanged();
} else {
agentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) {
agentId_ =
org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial();
} else {
agentId_ = value;
}
onChanged();
} else {
agentIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public Builder clearAgentId() {
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
onChanged();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAgentIdFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
if (agentIdBuilder_ != null) {
return agentIdBuilder_.getMessageOrBuilder();
} else {
return agentId_;
}
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>
getAgentIdFieldBuilder() {
if (agentIdBuilder_ == null) {
agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>(
getAgentId(),
getParentForChildren(),
isClean());
agentId_ = null;
}
return agentIdBuilder_;
}
private org.apache.mesos.v1.Protos.KillPolicy killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder> killPolicyBuilder_;
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public boolean hasKillPolicy() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() {
if (killPolicyBuilder_ == null) {
return killPolicy_;
} else {
return killPolicyBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public Builder setKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) {
if (killPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
killPolicy_ = value;
onChanged();
} else {
killPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public Builder setKillPolicy(
org.apache.mesos.v1.Protos.KillPolicy.Builder builderForValue) {
if (killPolicyBuilder_ == null) {
killPolicy_ = builderForValue.build();
onChanged();
} else {
killPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public Builder mergeKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) {
if (killPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
killPolicy_ != org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance()) {
killPolicy_ =
org.apache.mesos.v1.Protos.KillPolicy.newBuilder(killPolicy_).mergeFrom(value).buildPartial();
} else {
killPolicy_ = value;
}
onChanged();
} else {
killPolicyBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public Builder clearKillPolicy() {
if (killPolicyBuilder_ == null) {
killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance();
onChanged();
} else {
killPolicyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public org.apache.mesos.v1.Protos.KillPolicy.Builder getKillPolicyBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getKillPolicyFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() {
if (killPolicyBuilder_ != null) {
return killPolicyBuilder_.getMessageOrBuilder();
} else {
return killPolicy_;
}
}
/**
* optional .mesos.v1.KillPolicy kill_policy = 3;
*
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder>
getKillPolicyFieldBuilder() {
if (killPolicyBuilder_ == null) {
killPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder>(
getKillPolicy(),
getParentForChildren(),
isClean());
killPolicy_ = null;
}
return killPolicyBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Kill)
}
static {
defaultInstance = new Kill(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Kill)
}
public interface ShutdownOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Shutdown)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
boolean hasExecutorId();
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
org.apache.mesos.v1.Protos.ExecutorID getExecutorId();
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder();
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
boolean hasAgentId();
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
org.apache.mesos.v1.Protos.AgentID getAgentId();
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Shutdown}
*
*
* Shuts down a custom executor. When the executor gets a shutdown
* event, it is expected to kill all its tasks (and send TASK_KILLED
* updates) and terminate. If the executor doesn’t terminate within
* a certain timeout (configurable via
* '--executor_shutdown_grace_period' agent flag), the agent will
* forcefully destroy the container (executor and its tasks) and
* transition its active tasks to TASK_LOST.
*
*/
public static final class Shutdown extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Shutdown)
ShutdownOrBuilder {
// Use Shutdown.newBuilder() to construct.
private Shutdown(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Shutdown(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Shutdown defaultInstance;
public static Shutdown getDefaultInstance() {
return defaultInstance;
}
public Shutdown getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Shutdown(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = executorId_.toBuilder();
}
executorId_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executorId_);
executorId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = agentId_.toBuilder();
}
agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentId_);
agentId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Shutdown_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Shutdown_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.class, org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Shutdown parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Shutdown(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int EXECUTOR_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.ExecutorID executorId_;
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
return executorId_;
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
return executorId_;
}
public static final int AGENT_ID_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.AgentID agentId_;
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
return agentId_;
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
return agentId_;
}
private void initFields() {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasExecutorId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAgentId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getExecutorId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getAgentId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, executorId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, agentId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, executorId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, agentId_);
}
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.scheduler.Protos.Call.Shutdown parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Shutdown 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.scheduler.Protos.Call.Shutdown parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Shutdown parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Shutdown parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Shutdown 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.scheduler.Protos.Call.Shutdown parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Shutdown 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.scheduler.Protos.Call.Shutdown parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Shutdown 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.scheduler.Protos.Call.Shutdown 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.scheduler.Call.Shutdown}
*
*
* Shuts down a custom executor. When the executor gets a shutdown
* event, it is expected to kill all its tasks (and send TASK_KILLED
* updates) and terminate. If the executor doesn’t terminate within
* a certain timeout (configurable via
* '--executor_shutdown_grace_period' agent flag), the agent will
* forcefully destroy the container (executor and its tasks) and
* transition its active tasks to TASK_LOST.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Shutdown)
org.apache.mesos.v1.scheduler.Protos.Call.ShutdownOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Shutdown_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Shutdown_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.class, org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getExecutorIdFieldBuilder();
getAgentIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (executorIdBuilder_ == null) {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
} else {
agentIdBuilder_.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.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Shutdown_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Shutdown getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Shutdown build() {
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Shutdown buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown result = new org.apache.mesos.v1.scheduler.Protos.Call.Shutdown(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (executorIdBuilder_ == null) {
result.executorId_ = executorId_;
} else {
result.executorId_ = executorIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (agentIdBuilder_ == null) {
result.agentId_ = agentId_;
} else {
result.agentId_ = agentIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Shutdown) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Shutdown)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Shutdown other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.getDefaultInstance()) return this;
if (other.hasExecutorId()) {
mergeExecutorId(other.getExecutorId());
}
if (other.hasAgentId()) {
mergeAgentId(other.getAgentId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasExecutorId()) {
return false;
}
if (!hasAgentId()) {
return false;
}
if (!getExecutorId().isInitialized()) {
return false;
}
if (!getAgentId().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.scheduler.Protos.Call.Shutdown parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Shutdown) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.ExecutorID executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_;
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
if (executorIdBuilder_ == null) {
return executorId_;
} else {
return executorIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public Builder setExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executorId_ = value;
onChanged();
} else {
executorIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public Builder setExecutorId(
org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) {
if (executorIdBuilder_ == null) {
executorId_ = builderForValue.build();
onChanged();
} else {
executorIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) {
executorId_ =
org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial();
} else {
executorId_ = value;
}
onChanged();
} else {
executorIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public Builder clearExecutorId() {
if (executorIdBuilder_ == null) {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
onChanged();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getExecutorIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
if (executorIdBuilder_ != null) {
return executorIdBuilder_.getMessageOrBuilder();
} else {
return executorId_;
}
}
/**
* required .mesos.v1.ExecutorID executor_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>
getExecutorIdFieldBuilder() {
if (executorIdBuilder_ == null) {
executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>(
getExecutorId(),
getParentForChildren(),
isClean());
executorId_ = null;
}
return executorIdBuilder_;
}
private org.apache.mesos.v1.Protos.AgentID agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_;
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
if (agentIdBuilder_ == null) {
return agentId_;
} else {
return agentIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentId_ = value;
onChanged();
} else {
agentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public Builder setAgentId(
org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) {
if (agentIdBuilder_ == null) {
agentId_ = builderForValue.build();
onChanged();
} else {
agentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) {
agentId_ =
org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial();
} else {
agentId_ = value;
}
onChanged();
} else {
agentIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public Builder clearAgentId() {
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
onChanged();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAgentIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
if (agentIdBuilder_ != null) {
return agentIdBuilder_.getMessageOrBuilder();
} else {
return agentId_;
}
}
/**
* required .mesos.v1.AgentID agent_id = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>
getAgentIdFieldBuilder() {
if (agentIdBuilder_ == null) {
agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>(
getAgentId(),
getParentForChildren(),
isClean());
agentId_ = null;
}
return agentIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Shutdown)
}
static {
defaultInstance = new Shutdown(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Shutdown)
}
public interface AcknowledgeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Acknowledge)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
boolean hasAgentId();
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
org.apache.mesos.v1.Protos.AgentID getAgentId();
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder();
/**
* required .mesos.v1.TaskID task_id = 2;
*/
boolean hasTaskId();
/**
* required .mesos.v1.TaskID task_id = 2;
*/
org.apache.mesos.v1.Protos.TaskID getTaskId();
/**
* required .mesos.v1.TaskID task_id = 2;
*/
org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder();
/**
* required bytes uuid = 3;
*/
boolean hasUuid();
/**
* required bytes uuid = 3;
*/
com.google.protobuf.ByteString getUuid();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Acknowledge}
*
*
* Acknowledges the receipt of status update. Schedulers are
* responsible for explicitly acknowledging the receipt of status
* updates that have 'Update.status().uuid()' field set. Such status
* updates are retried by the agent until they are acknowledged by
* the scheduler.
*
*/
public static final class Acknowledge extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Acknowledge)
AcknowledgeOrBuilder {
// Use Acknowledge.newBuilder() to construct.
private Acknowledge(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Acknowledge(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Acknowledge defaultInstance;
public static Acknowledge getDefaultInstance() {
return defaultInstance;
}
public Acknowledge getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Acknowledge(
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.AgentID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = agentId_.toBuilder();
}
agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentId_);
agentId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.TaskID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = taskId_.toBuilder();
}
taskId_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskId_);
taskId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
bitField0_ |= 0x00000004;
uuid_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Acknowledge_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Acknowledge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.class, org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Acknowledge parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Acknowledge(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int AGENT_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.AgentID agentId_;
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
return agentId_;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
return agentId_;
}
public static final int TASK_ID_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.TaskID taskId_;
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
return taskId_;
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
return taskId_;
}
public static final int UUID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString uuid_;
/**
* required bytes uuid = 3;
*/
public boolean hasUuid() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes uuid = 3;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
private void initFields() {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
uuid_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasAgentId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTaskId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasUuid()) {
memoizedIsInitialized = 0;
return false;
}
if (!getAgentId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getTaskId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, agentId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, taskId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, uuid_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, agentId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, taskId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, uuid_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge 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.scheduler.Protos.Call.Acknowledge parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge 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.scheduler.Protos.Call.Acknowledge parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge 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.scheduler.Protos.Call.Acknowledge parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge 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.scheduler.Protos.Call.Acknowledge 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.scheduler.Call.Acknowledge}
*
*
* Acknowledges the receipt of status update. Schedulers are
* responsible for explicitly acknowledging the receipt of status
* updates that have 'Update.status().uuid()' field set. Such status
* updates are retried by the agent until they are acknowledged by
* the scheduler.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Acknowledge)
org.apache.mesos.v1.scheduler.Protos.Call.AcknowledgeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Acknowledge_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Acknowledge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.class, org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAgentIdFieldBuilder();
getTaskIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (taskIdBuilder_ == null) {
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
uuid_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Acknowledge_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge build() {
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge result = new org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (agentIdBuilder_ == null) {
result.agentId_ = agentId_;
} else {
result.agentId_ = agentIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (taskIdBuilder_ == null) {
result.taskId_ = taskId_;
} else {
result.taskId_ = taskIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.uuid_ = uuid_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.getDefaultInstance()) return this;
if (other.hasAgentId()) {
mergeAgentId(other.getAgentId());
}
if (other.hasTaskId()) {
mergeTaskId(other.getTaskId());
}
if (other.hasUuid()) {
setUuid(other.getUuid());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasAgentId()) {
return false;
}
if (!hasTaskId()) {
return false;
}
if (!hasUuid()) {
return false;
}
if (!getAgentId().isInitialized()) {
return false;
}
if (!getTaskId().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.AgentID agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_;
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
if (agentIdBuilder_ == null) {
return agentId_;
} else {
return agentIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentId_ = value;
onChanged();
} else {
agentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder setAgentId(
org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) {
if (agentIdBuilder_ == null) {
agentId_ = builderForValue.build();
onChanged();
} else {
agentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) {
agentId_ =
org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial();
} else {
agentId_ = value;
}
onChanged();
} else {
agentIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder clearAgentId() {
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
onChanged();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAgentIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
if (agentIdBuilder_ != null) {
return agentIdBuilder_.getMessageOrBuilder();
} else {
return agentId_;
}
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>
getAgentIdFieldBuilder() {
if (agentIdBuilder_ == null) {
agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>(
getAgentId(),
getParentForChildren(),
isClean());
agentId_ = null;
}
return agentIdBuilder_;
}
private org.apache.mesos.v1.Protos.TaskID taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> taskIdBuilder_;
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
if (taskIdBuilder_ == null) {
return taskId_;
} else {
return taskIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public Builder setTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
} else {
taskIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public Builder setTaskId(
org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) {
if (taskIdBuilder_ == null) {
taskId_ = builderForValue.build();
onChanged();
} else {
taskIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public Builder mergeTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
taskId_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) {
taskId_ =
org.apache.mesos.v1.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial();
} else {
taskId_ = value;
}
onChanged();
} else {
taskIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public Builder clearTaskId() {
if (taskIdBuilder_ == null) {
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
onChanged();
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public org.apache.mesos.v1.Protos.TaskID.Builder getTaskIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTaskIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
if (taskIdBuilder_ != null) {
return taskIdBuilder_.getMessageOrBuilder();
} else {
return taskId_;
}
}
/**
* required .mesos.v1.TaskID task_id = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>
getTaskIdFieldBuilder() {
if (taskIdBuilder_ == null) {
taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>(
getTaskId(),
getParentForChildren(),
isClean());
taskId_ = null;
}
return taskIdBuilder_;
}
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes uuid = 3;
*/
public boolean hasUuid() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes uuid = 3;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* required bytes uuid = 3;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
uuid_ = value;
onChanged();
return this;
}
/**
* required bytes uuid = 3;
*/
public Builder clearUuid() {
bitField0_ = (bitField0_ & ~0x00000004);
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Acknowledge)
}
static {
defaultInstance = new Acknowledge(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Acknowledge)
}
public interface ReconcileOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Reconcile)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
java.util.List
getTasksList();
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task getTasks(int index);
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
int getTasksCount();
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
java.util.List extends org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder>
getTasksOrBuilderList();
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder getTasksOrBuilder(
int index);
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Reconcile}
*
*
* Allows the scheduler to query the status for non-terminal tasks.
* This causes the master to send back the latest task status for
* each task in 'tasks', if possible. Tasks that are no longer known
* will result in a TASK_LOST, TASK_UNKNOWN, or TASK_UNREACHABLE update.
* If 'tasks' is empty, then the master will send the latest status
* for each task currently known.
*
*/
public static final class Reconcile extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Reconcile)
ReconcileOrBuilder {
// Use Reconcile.newBuilder() to construct.
private Reconcile(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Reconcile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Reconcile defaultInstance;
public static Reconcile getDefaultInstance() {
return defaultInstance;
}
public Reconcile getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Reconcile(
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)) {
tasks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tasks_.add(input.readMessage(org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tasks_ = java.util.Collections.unmodifiableList(tasks_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.class, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Reconcile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Reconcile(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public interface TaskOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Reconcile.Task)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.TaskID task_id = 1;
*/
boolean hasTaskId();
/**
* required .mesos.v1.TaskID task_id = 1;
*/
org.apache.mesos.v1.Protos.TaskID getTaskId();
/**
* required .mesos.v1.TaskID task_id = 1;
*/
org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder();
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
boolean hasAgentId();
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
org.apache.mesos.v1.Protos.AgentID getAgentId();
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Reconcile.Task}
*
*
* TODO(vinod): Support arbitrary queries than just state of tasks.
*
*/
public static final class Task extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Reconcile.Task)
TaskOrBuilder {
// Use Task.newBuilder() to construct.
private Task(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Task(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Task defaultInstance;
public static Task getDefaultInstance() {
return defaultInstance;
}
public Task getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Task(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.TaskID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = taskId_.toBuilder();
}
taskId_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskId_);
taskId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = agentId_.toBuilder();
}
agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentId_);
agentId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_Task_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_Task_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.class, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Task parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Task(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TASK_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.TaskID taskId_;
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
return taskId_;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
return taskId_;
}
public static final int AGENT_ID_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.AgentID agentId_;
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
return agentId_;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
return agentId_;
}
private void initFields() {
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTaskId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getTaskId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasAgentId()) {
if (!getAgentId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, taskId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, agentId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, taskId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, agentId_);
}
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.scheduler.Protos.Call.Reconcile.Task parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task 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.scheduler.Protos.Call.Reconcile.Task parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task 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.scheduler.Protos.Call.Reconcile.Task parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task 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.scheduler.Protos.Call.Reconcile.Task 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.scheduler.Call.Reconcile.Task}
*
*
* TODO(vinod): Support arbitrary queries than just state of tasks.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Reconcile.Task)
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_Task_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_Task_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.class, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTaskIdFieldBuilder();
getAgentIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (taskIdBuilder_ == null) {
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
} else {
agentIdBuilder_.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.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_Task_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task build() {
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task result = new org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (taskIdBuilder_ == null) {
result.taskId_ = taskId_;
} else {
result.taskId_ = taskIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (agentIdBuilder_ == null) {
result.agentId_ = agentId_;
} else {
result.agentId_ = agentIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.getDefaultInstance()) return this;
if (other.hasTaskId()) {
mergeTaskId(other.getTaskId());
}
if (other.hasAgentId()) {
mergeAgentId(other.getAgentId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTaskId()) {
return false;
}
if (!getTaskId().isInitialized()) {
return false;
}
if (hasAgentId()) {
if (!getAgentId().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.scheduler.Protos.Call.Reconcile.Task parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.TaskID taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> taskIdBuilder_;
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
if (taskIdBuilder_ == null) {
return taskId_;
} else {
return taskIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder setTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
} else {
taskIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder setTaskId(
org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) {
if (taskIdBuilder_ == null) {
taskId_ = builderForValue.build();
onChanged();
} else {
taskIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder mergeTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
taskId_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) {
taskId_ =
org.apache.mesos.v1.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial();
} else {
taskId_ = value;
}
onChanged();
} else {
taskIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder clearTaskId() {
if (taskIdBuilder_ == null) {
taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance();
onChanged();
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID.Builder getTaskIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTaskIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
if (taskIdBuilder_ != null) {
return taskIdBuilder_.getMessageOrBuilder();
} else {
return taskId_;
}
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>
getTaskIdFieldBuilder() {
if (taskIdBuilder_ == null) {
taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>(
getTaskId(),
getParentForChildren(),
isClean());
taskId_ = null;
}
return taskIdBuilder_;
}
private org.apache.mesos.v1.Protos.AgentID agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_;
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
if (agentIdBuilder_ == null) {
return agentId_;
} else {
return agentIdBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentId_ = value;
onChanged();
} else {
agentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public Builder setAgentId(
org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) {
if (agentIdBuilder_ == null) {
agentId_ = builderForValue.build();
onChanged();
} else {
agentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) {
agentId_ =
org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial();
} else {
agentId_ = value;
}
onChanged();
} else {
agentIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public Builder clearAgentId() {
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
onChanged();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAgentIdFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
if (agentIdBuilder_ != null) {
return agentIdBuilder_.getMessageOrBuilder();
} else {
return agentId_;
}
}
/**
* optional .mesos.v1.AgentID agent_id = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>
getAgentIdFieldBuilder() {
if (agentIdBuilder_ == null) {
agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>(
getAgentId(),
getParentForChildren(),
isClean());
agentId_ = null;
}
return agentIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Reconcile.Task)
}
static {
defaultInstance = new Task(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Reconcile.Task)
}
public static final int TASKS_FIELD_NUMBER = 1;
private java.util.List tasks_;
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public java.util.List getTasksList() {
return tasks_;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public java.util.List extends org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder>
getTasksOrBuilderList() {
return tasks_;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public int getTasksCount() {
return tasks_.size();
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task getTasks(int index) {
return tasks_.get(index);
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder getTasksOrBuilder(
int index) {
return tasks_.get(index);
}
private void initFields() {
tasks_ = 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 < getTasksCount(); i++) {
if (!getTasks(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tasks_.size(); i++) {
output.writeMessage(1, tasks_.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 < tasks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, tasks_.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.scheduler.Protos.Call.Reconcile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile 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.scheduler.Protos.Call.Reconcile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile 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.scheduler.Protos.Call.Reconcile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile 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.scheduler.Protos.Call.Reconcile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Reconcile 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.scheduler.Protos.Call.Reconcile 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.scheduler.Call.Reconcile}
*
*
* Allows the scheduler to query the status for non-terminal tasks.
* This causes the master to send back the latest task status for
* each task in 'tasks', if possible. Tasks that are no longer known
* will result in a TASK_LOST, TASK_UNKNOWN, or TASK_UNREACHABLE update.
* If 'tasks' is empty, then the master will send the latest status
* for each task currently known.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Reconcile)
org.apache.mesos.v1.scheduler.Protos.Call.ReconcileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.class, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTasksFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (tasksBuilder_ == null) {
tasks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
tasksBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Reconcile_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile build() {
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile result = new org.apache.mesos.v1.scheduler.Protos.Call.Reconcile(this);
int from_bitField0_ = bitField0_;
if (tasksBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tasks_ = java.util.Collections.unmodifiableList(tasks_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tasks_ = tasks_;
} else {
result.tasks_ = tasksBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Reconcile) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Reconcile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Reconcile other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.getDefaultInstance()) return this;
if (tasksBuilder_ == null) {
if (!other.tasks_.isEmpty()) {
if (tasks_.isEmpty()) {
tasks_ = other.tasks_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTasksIsMutable();
tasks_.addAll(other.tasks_);
}
onChanged();
}
} else {
if (!other.tasks_.isEmpty()) {
if (tasksBuilder_.isEmpty()) {
tasksBuilder_.dispose();
tasksBuilder_ = null;
tasks_ = other.tasks_;
bitField0_ = (bitField0_ & ~0x00000001);
tasksBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTasksFieldBuilder() : null;
} else {
tasksBuilder_.addAllMessages(other.tasks_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getTasksCount(); i++) {
if (!getTasks(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Reconcile) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List tasks_ =
java.util.Collections.emptyList();
private void ensureTasksIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tasks_ = new java.util.ArrayList(tasks_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder> tasksBuilder_;
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public java.util.List getTasksList() {
if (tasksBuilder_ == null) {
return java.util.Collections.unmodifiableList(tasks_);
} else {
return tasksBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public int getTasksCount() {
if (tasksBuilder_ == null) {
return tasks_.size();
} else {
return tasksBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task getTasks(int index) {
if (tasksBuilder_ == null) {
return tasks_.get(index);
} else {
return tasksBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder setTasks(
int index, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task value) {
if (tasksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTasksIsMutable();
tasks_.set(index, value);
onChanged();
} else {
tasksBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder setTasks(
int index, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder builderForValue) {
if (tasksBuilder_ == null) {
ensureTasksIsMutable();
tasks_.set(index, builderForValue.build());
onChanged();
} else {
tasksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder addTasks(org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task value) {
if (tasksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTasksIsMutable();
tasks_.add(value);
onChanged();
} else {
tasksBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder addTasks(
int index, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task value) {
if (tasksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTasksIsMutable();
tasks_.add(index, value);
onChanged();
} else {
tasksBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder addTasks(
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder builderForValue) {
if (tasksBuilder_ == null) {
ensureTasksIsMutable();
tasks_.add(builderForValue.build());
onChanged();
} else {
tasksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder addTasks(
int index, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder builderForValue) {
if (tasksBuilder_ == null) {
ensureTasksIsMutable();
tasks_.add(index, builderForValue.build());
onChanged();
} else {
tasksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder addAllTasks(
java.lang.Iterable extends org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task> values) {
if (tasksBuilder_ == null) {
ensureTasksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tasks_);
onChanged();
} else {
tasksBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder clearTasks() {
if (tasksBuilder_ == null) {
tasks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
tasksBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public Builder removeTasks(int index) {
if (tasksBuilder_ == null) {
ensureTasksIsMutable();
tasks_.remove(index);
onChanged();
} else {
tasksBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder getTasksBuilder(
int index) {
return getTasksFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder getTasksOrBuilder(
int index) {
if (tasksBuilder_ == null) {
return tasks_.get(index); } else {
return tasksBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public java.util.List extends org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder>
getTasksOrBuilderList() {
if (tasksBuilder_ != null) {
return tasksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tasks_);
}
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder addTasksBuilder() {
return getTasksFieldBuilder().addBuilder(
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.getDefaultInstance());
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder addTasksBuilder(
int index) {
return getTasksFieldBuilder().addBuilder(
index, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.getDefaultInstance());
}
/**
* repeated .mesos.v1.scheduler.Call.Reconcile.Task tasks = 1;
*/
public java.util.List
getTasksBuilderList() {
return getTasksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder>
getTasksFieldBuilder() {
if (tasksBuilder_ == null) {
tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Task.Builder, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.TaskOrBuilder>(
tasks_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
tasks_ = null;
}
return tasksBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Reconcile)
}
static {
defaultInstance = new Reconcile(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Reconcile)
}
public interface MessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Message)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
boolean hasAgentId();
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
org.apache.mesos.v1.Protos.AgentID getAgentId();
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder();
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
boolean hasExecutorId();
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
org.apache.mesos.v1.Protos.ExecutorID getExecutorId();
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder();
/**
* required bytes data = 3;
*/
boolean hasData();
/**
* required bytes data = 3;
*/
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Message}
*
*
* Sends arbitrary binary data to the executor. Note that Mesos
* neither interprets this data nor makes any guarantees about the
* delivery of this message to the executor.
*
*/
public static final class Message extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Message)
MessageOrBuilder {
// Use Message.newBuilder() to construct.
private Message(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Message defaultInstance;
public static Message getDefaultInstance() {
return defaultInstance;
}
public Message getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Message(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.v1.Protos.AgentID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = agentId_.toBuilder();
}
agentId_ = input.readMessage(org.apache.mesos.v1.Protos.AgentID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentId_);
agentId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = executorId_.toBuilder();
}
executorId_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executorId_);
executorId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
bitField0_ |= 0x00000004;
data_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Message.class, org.apache.mesos.v1.scheduler.Protos.Call.Message.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Message parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Message(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int AGENT_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.AgentID agentId_;
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
return agentId_;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
return agentId_;
}
public static final int EXECUTOR_ID_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.ExecutorID executorId_;
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
return executorId_;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
return executorId_;
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
* required bytes data = 3;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
private void initFields() {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
data_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasAgentId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasExecutorId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
if (!getAgentId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getExecutorId().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, agentId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, executorId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, data_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, agentId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, executorId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Message parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Call.Message prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Message}
*
*
* Sends arbitrary binary data to the executor. Note that Mesos
* neither interprets this data nor makes any guarantees about the
* delivery of this message to the executor.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Message)
org.apache.mesos.v1.scheduler.Protos.Call.MessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Message.class, org.apache.mesos.v1.scheduler.Protos.Call.Message.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Message.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAgentIdFieldBuilder();
getExecutorIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (executorIdBuilder_ == null) {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Message_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Message getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Message.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Message build() {
org.apache.mesos.v1.scheduler.Protos.Call.Message result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Message buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Message result = new org.apache.mesos.v1.scheduler.Protos.Call.Message(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (agentIdBuilder_ == null) {
result.agentId_ = agentId_;
} else {
result.agentId_ = agentIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (executorIdBuilder_ == null) {
result.executorId_ = executorId_;
} else {
result.executorId_ = executorIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Message) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Message)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Message other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Message.getDefaultInstance()) return this;
if (other.hasAgentId()) {
mergeAgentId(other.getAgentId());
}
if (other.hasExecutorId()) {
mergeExecutorId(other.getExecutorId());
}
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasAgentId()) {
return false;
}
if (!hasExecutorId()) {
return false;
}
if (!hasData()) {
return false;
}
if (!getAgentId().isInitialized()) {
return false;
}
if (!getExecutorId().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.scheduler.Protos.Call.Message parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Message) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.AgentID agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder> agentIdBuilder_;
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID getAgentId() {
if (agentIdBuilder_ == null) {
return agentId_;
} else {
return agentIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder setAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentId_ = value;
onChanged();
} else {
agentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder setAgentId(
org.apache.mesos.v1.Protos.AgentID.Builder builderForValue) {
if (agentIdBuilder_ == null) {
agentId_ = builderForValue.build();
onChanged();
} else {
agentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder mergeAgentId(org.apache.mesos.v1.Protos.AgentID value) {
if (agentIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
agentId_ != org.apache.mesos.v1.Protos.AgentID.getDefaultInstance()) {
agentId_ =
org.apache.mesos.v1.Protos.AgentID.newBuilder(agentId_).mergeFrom(value).buildPartial();
} else {
agentId_ = value;
}
onChanged();
} else {
agentIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public Builder clearAgentId() {
if (agentIdBuilder_ == null) {
agentId_ = org.apache.mesos.v1.Protos.AgentID.getDefaultInstance();
onChanged();
} else {
agentIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentID.Builder getAgentIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAgentIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
public org.apache.mesos.v1.Protos.AgentIDOrBuilder getAgentIdOrBuilder() {
if (agentIdBuilder_ != null) {
return agentIdBuilder_.getMessageOrBuilder();
} else {
return agentId_;
}
}
/**
* required .mesos.v1.AgentID agent_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>
getAgentIdFieldBuilder() {
if (agentIdBuilder_ == null) {
agentIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.AgentID, org.apache.mesos.v1.Protos.AgentID.Builder, org.apache.mesos.v1.Protos.AgentIDOrBuilder>(
getAgentId(),
getParentForChildren(),
isClean());
agentId_ = null;
}
return agentIdBuilder_;
}
private org.apache.mesos.v1.Protos.ExecutorID executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_;
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
if (executorIdBuilder_ == null) {
return executorId_;
} else {
return executorIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public Builder setExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executorId_ = value;
onChanged();
} else {
executorIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public Builder setExecutorId(
org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) {
if (executorIdBuilder_ == null) {
executorId_ = builderForValue.build();
onChanged();
} else {
executorIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) {
executorId_ =
org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial();
} else {
executorId_ = value;
}
onChanged();
} else {
executorIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public Builder clearExecutorId() {
if (executorIdBuilder_ == null) {
executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance();
onChanged();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getExecutorIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
if (executorIdBuilder_ != null) {
return executorIdBuilder_.getMessageOrBuilder();
} else {
return executorId_;
}
}
/**
* required .mesos.v1.ExecutorID executor_id = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>
getExecutorIdFieldBuilder() {
if (executorIdBuilder_ == null) {
executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>(
getExecutorId(),
getParentForChildren(),
isClean());
executorId_ = null;
}
return executorIdBuilder_;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes data = 3;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* required bytes data = 3;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
data_ = value;
onChanged();
return this;
}
/**
* required bytes data = 3;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000004);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Message)
}
static {
defaultInstance = new Message(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Message)
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Request)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.Request requests = 1;
*/
java.util.List
getRequestsList();
/**
* repeated .mesos.v1.Request requests = 1;
*/
org.apache.mesos.v1.Protos.Request getRequests(int index);
/**
* repeated .mesos.v1.Request requests = 1;
*/
int getRequestsCount();
/**
* repeated .mesos.v1.Request requests = 1;
*/
java.util.List extends org.apache.mesos.v1.Protos.RequestOrBuilder>
getRequestsOrBuilderList();
/**
* repeated .mesos.v1.Request requests = 1;
*/
org.apache.mesos.v1.Protos.RequestOrBuilder getRequestsOrBuilder(
int index);
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Request}
*
*
* Requests a specific set of resources from Mesos's allocator. If
* the allocator has support for this, corresponding offers will be
* sent asynchronously via the OFFERS event(s).
* NOTE: The built-in hierarchical allocator doesn't have support
* for this call and hence simply ignores it.
*
*/
public static final class Request extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Request)
RequestOrBuilder {
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Request(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Request defaultInstance;
public static Request getDefaultInstance() {
return defaultInstance;
}
public Request getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Request(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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)) {
requests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
requests_.add(input.readMessage(org.apache.mesos.v1.Protos.Request.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)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Request.class, org.apache.mesos.v1.scheduler.Protos.Call.Request.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Request(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int REQUESTS_FIELD_NUMBER = 1;
private java.util.List requests_;
/**
* repeated .mesos.v1.Request requests = 1;
*/
public java.util.List getRequestsList() {
return requests_;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.RequestOrBuilder>
getRequestsOrBuilderList() {
return requests_;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public int getRequestsCount() {
return requests_.size();
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public org.apache.mesos.v1.Protos.Request getRequests(int index) {
return requests_.get(index);
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public org.apache.mesos.v1.Protos.RequestOrBuilder getRequestsOrBuilder(
int index) {
return requests_.get(index);
}
private void initFields() {
requests_ = 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 < getRequestsCount(); i++) {
if (!getRequests(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 < requests_.size(); i++) {
output.writeMessage(1, requests_.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 < requests_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, requests_.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.scheduler.Protos.Call.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Request 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.scheduler.Protos.Call.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Request 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.scheduler.Protos.Call.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Request 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.scheduler.Protos.Call.Request 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.scheduler.Call.Request}
*
*
* Requests a specific set of resources from Mesos's allocator. If
* the allocator has support for this, corresponding offers will be
* sent asynchronously via the OFFERS event(s).
* NOTE: The built-in hierarchical allocator doesn't have support
* for this call and hence simply ignores it.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Request)
org.apache.mesos.v1.scheduler.Protos.Call.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Request.class, org.apache.mesos.v1.scheduler.Protos.Call.Request.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Request.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRequestsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
requestsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Request_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Request getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Request.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Request build() {
org.apache.mesos.v1.scheduler.Protos.Call.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Request buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Request result = new org.apache.mesos.v1.scheduler.Protos.Call.Request(this);
int from_bitField0_ = bitField0_;
if (requestsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.requests_ = requests_;
} else {
result.requests_ = requestsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Request) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Request other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Request.getDefaultInstance()) return this;
if (requestsBuilder_ == null) {
if (!other.requests_.isEmpty()) {
if (requests_.isEmpty()) {
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestsIsMutable();
requests_.addAll(other.requests_);
}
onChanged();
}
} else {
if (!other.requests_.isEmpty()) {
if (requestsBuilder_.isEmpty()) {
requestsBuilder_.dispose();
requestsBuilder_ = null;
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000001);
requestsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRequestsFieldBuilder() : null;
} else {
requestsBuilder_.addAllMessages(other.requests_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getRequestsCount(); i++) {
if (!getRequests(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.scheduler.Protos.Call.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Request) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List requests_ =
java.util.Collections.emptyList();
private void ensureRequestsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = new java.util.ArrayList(requests_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Request, org.apache.mesos.v1.Protos.Request.Builder, org.apache.mesos.v1.Protos.RequestOrBuilder> requestsBuilder_;
/**
* repeated .mesos.v1.Request requests = 1;
*/
public java.util.List getRequestsList() {
if (requestsBuilder_ == null) {
return java.util.Collections.unmodifiableList(requests_);
} else {
return requestsBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public int getRequestsCount() {
if (requestsBuilder_ == null) {
return requests_.size();
} else {
return requestsBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public org.apache.mesos.v1.Protos.Request getRequests(int index) {
if (requestsBuilder_ == null) {
return requests_.get(index);
} else {
return requestsBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder setRequests(
int index, org.apache.mesos.v1.Protos.Request value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.set(index, value);
onChanged();
} else {
requestsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder setRequests(
int index, org.apache.mesos.v1.Protos.Request.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.set(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder addRequests(org.apache.mesos.v1.Protos.Request value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(value);
onChanged();
} else {
requestsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder addRequests(
int index, org.apache.mesos.v1.Protos.Request value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(index, value);
onChanged();
} else {
requestsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder addRequests(
org.apache.mesos.v1.Protos.Request.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder addRequests(
int index, org.apache.mesos.v1.Protos.Request.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder addAllRequests(
java.lang.Iterable extends org.apache.mesos.v1.Protos.Request> values) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requests_);
onChanged();
} else {
requestsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder clearRequests() {
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
requestsBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public Builder removeRequests(int index) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.remove(index);
onChanged();
} else {
requestsBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public org.apache.mesos.v1.Protos.Request.Builder getRequestsBuilder(
int index) {
return getRequestsFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public org.apache.mesos.v1.Protos.RequestOrBuilder getRequestsOrBuilder(
int index) {
if (requestsBuilder_ == null) {
return requests_.get(index); } else {
return requestsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.RequestOrBuilder>
getRequestsOrBuilderList() {
if (requestsBuilder_ != null) {
return requestsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requests_);
}
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public org.apache.mesos.v1.Protos.Request.Builder addRequestsBuilder() {
return getRequestsFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.Request.getDefaultInstance());
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public org.apache.mesos.v1.Protos.Request.Builder addRequestsBuilder(
int index) {
return getRequestsFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.Request.getDefaultInstance());
}
/**
* repeated .mesos.v1.Request requests = 1;
*/
public java.util.List
getRequestsBuilderList() {
return getRequestsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Request, org.apache.mesos.v1.Protos.Request.Builder, org.apache.mesos.v1.Protos.RequestOrBuilder>
getRequestsFieldBuilder() {
if (requestsBuilder_ == null) {
requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.v1.Protos.Request, org.apache.mesos.v1.Protos.Request.Builder, org.apache.mesos.v1.Protos.RequestOrBuilder>(
requests_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
requests_ = null;
}
return requestsBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Request)
}
static {
defaultInstance = new Request(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Request)
}
public interface SuppressOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.scheduler.Call.Suppress)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string roles = 1;
*/
com.google.protobuf.ProtocolStringList
getRolesList();
/**
* repeated string roles = 1;
*/
int getRolesCount();
/**
* repeated string roles = 1;
*/
java.lang.String getRoles(int index);
/**
* repeated string roles = 1;
*/
com.google.protobuf.ByteString
getRolesBytes(int index);
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call.Suppress}
*
*
* Suppress offers for the specified roles. If `roles` is empty,
* the `SUPPRESS` call will suppress offers for all of the roles
* the framework is currently subscribed to.
*
*/
public static final class Suppress extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mesos.v1.scheduler.Call.Suppress)
SuppressOrBuilder {
// Use Suppress.newBuilder() to construct.
private Suppress(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Suppress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Suppress defaultInstance;
public static Suppress getDefaultInstance() {
return defaultInstance;
}
public Suppress getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Suppress(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
roles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
roles_.add(bs);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
roles_ = roles_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Suppress_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Suppress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Suppress.class, org.apache.mesos.v1.scheduler.Protos.Call.Suppress.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Suppress parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Suppress(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int ROLES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList roles_;
/**
* repeated string roles = 1;
*/
public com.google.protobuf.ProtocolStringList
getRolesList() {
return roles_;
}
/**
* repeated string roles = 1;
*/
public int getRolesCount() {
return roles_.size();
}
/**
* repeated string roles = 1;
*/
public java.lang.String getRoles(int index) {
return roles_.get(index);
}
/**
* repeated string roles = 1;
*/
public com.google.protobuf.ByteString
getRolesBytes(int index) {
return roles_.getByteString(index);
}
private void initFields() {
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < roles_.size(); i++) {
output.writeBytes(1, roles_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < roles_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(roles_.getByteString(i));
}
size += dataSize;
size += 1 * getRolesList().size();
}
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.scheduler.Protos.Call.Suppress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Suppress 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.scheduler.Protos.Call.Suppress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Suppress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Suppress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Suppress 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.scheduler.Protos.Call.Suppress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Suppress 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.scheduler.Protos.Call.Suppress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call.Suppress 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.scheduler.Protos.Call.Suppress 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.scheduler.Call.Suppress}
*
*
* Suppress offers for the specified roles. If `roles` is empty,
* the `SUPPRESS` call will suppress offers for all of the roles
* the framework is currently subscribed to.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call.Suppress)
org.apache.mesos.v1.scheduler.Protos.Call.SuppressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Suppress_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Suppress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.Suppress.class, org.apache.mesos.v1.scheduler.Protos.Call.Suppress.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.Suppress.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_Suppress_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Suppress getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.Suppress.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call.Suppress build() {
org.apache.mesos.v1.scheduler.Protos.Call.Suppress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call.Suppress buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call.Suppress result = new org.apache.mesos.v1.scheduler.Protos.Call.Suppress(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
roles_ = roles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.roles_ = roles_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call.Suppress) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call.Suppress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call.Suppress other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.Suppress.getDefaultInstance()) return this;
if (!other.roles_.isEmpty()) {
if (roles_.isEmpty()) {
roles_ = other.roles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRolesIsMutable();
roles_.addAll(other.roles_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.scheduler.Protos.Call.Suppress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call.Suppress) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRolesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
roles_ = new com.google.protobuf.LazyStringArrayList(roles_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string roles = 1;
*/
public com.google.protobuf.ProtocolStringList
getRolesList() {
return roles_.getUnmodifiableView();
}
/**
* repeated string roles = 1;
*/
public int getRolesCount() {
return roles_.size();
}
/**
* repeated string roles = 1;
*/
public java.lang.String getRoles(int index) {
return roles_.get(index);
}
/**
* repeated string roles = 1;
*/
public com.google.protobuf.ByteString
getRolesBytes(int index) {
return roles_.getByteString(index);
}
/**
* repeated string roles = 1;
*/
public Builder setRoles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.set(index, value);
onChanged();
return this;
}
/**
* repeated string roles = 1;
*/
public Builder addRoles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
/**
* repeated string roles = 1;
*/
public Builder addAllRoles(
java.lang.Iterable values) {
ensureRolesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, roles_);
onChanged();
return this;
}
/**
* repeated string roles = 1;
*/
public Builder clearRoles() {
roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string roles = 1;
*/
public Builder addRolesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call.Suppress)
}
static {
defaultInstance = new Suppress(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call.Suppress)
}
private int bitField0_;
public static final int FRAMEWORK_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.FrameworkID frameworkId_;
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public boolean hasFrameworkId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() {
return frameworkId_;
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() {
return frameworkId_;
}
public static final int TYPE_FIELD_NUMBER = 2;
private org.apache.mesos.v1.scheduler.Protos.Call.Type type_;
/**
* optional .mesos.v1.scheduler.Call.Type type = 2;
*
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* See comments on `Event::Type` above on the reasoning behind this field being optional.
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.scheduler.Call.Type type = 2;
*
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* See comments on `Event::Type` above on the reasoning behind this field being optional.
*
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Type getType() {
return type_;
}
public static final int SUBSCRIBE_FIELD_NUMBER = 3;
private org.apache.mesos.v1.scheduler.Protos.Call.Subscribe subscribe_;
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public boolean hasSubscribe() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Subscribe getSubscribe() {
return subscribe_;
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.SubscribeOrBuilder getSubscribeOrBuilder() {
return subscribe_;
}
public static final int ACCEPT_FIELD_NUMBER = 4;
private org.apache.mesos.v1.scheduler.Protos.Call.Accept accept_;
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public boolean hasAccept() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Accept getAccept() {
return accept_;
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptOrBuilder getAcceptOrBuilder() {
return accept_;
}
public static final int DECLINE_FIELD_NUMBER = 5;
private org.apache.mesos.v1.scheduler.Protos.Call.Decline decline_;
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public boolean hasDecline() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Decline getDecline() {
return decline_;
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineOrBuilder getDeclineOrBuilder() {
return decline_;
}
public static final int ACCEPT_INVERSE_OFFERS_FIELD_NUMBER = 13;
private org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers acceptInverseOffers_;
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public boolean hasAcceptInverseOffers() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers getAcceptInverseOffers() {
return acceptInverseOffers_;
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffersOrBuilder getAcceptInverseOffersOrBuilder() {
return acceptInverseOffers_;
}
public static final int DECLINE_INVERSE_OFFERS_FIELD_NUMBER = 14;
private org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers declineInverseOffers_;
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public boolean hasDeclineInverseOffers() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers getDeclineInverseOffers() {
return declineInverseOffers_;
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffersOrBuilder getDeclineInverseOffersOrBuilder() {
return declineInverseOffers_;
}
public static final int REVIVE_FIELD_NUMBER = 15;
private org.apache.mesos.v1.scheduler.Protos.Call.Revive revive_;
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public boolean hasRevive() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Revive getRevive() {
return revive_;
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.ReviveOrBuilder getReviveOrBuilder() {
return revive_;
}
public static final int KILL_FIELD_NUMBER = 6;
private org.apache.mesos.v1.scheduler.Protos.Call.Kill kill_;
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public boolean hasKill() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Kill getKill() {
return kill_;
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.KillOrBuilder getKillOrBuilder() {
return kill_;
}
public static final int SHUTDOWN_FIELD_NUMBER = 7;
private org.apache.mesos.v1.scheduler.Protos.Call.Shutdown shutdown_;
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public boolean hasShutdown() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Shutdown getShutdown() {
return shutdown_;
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.ShutdownOrBuilder getShutdownOrBuilder() {
return shutdown_;
}
public static final int ACKNOWLEDGE_FIELD_NUMBER = 8;
private org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge acknowledge_;
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public boolean hasAcknowledge() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge getAcknowledge() {
return acknowledge_;
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcknowledgeOrBuilder getAcknowledgeOrBuilder() {
return acknowledge_;
}
public static final int RECONCILE_FIELD_NUMBER = 9;
private org.apache.mesos.v1.scheduler.Protos.Call.Reconcile reconcile_;
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public boolean hasReconcile() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile getReconcile() {
return reconcile_;
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.ReconcileOrBuilder getReconcileOrBuilder() {
return reconcile_;
}
public static final int MESSAGE_FIELD_NUMBER = 10;
private org.apache.mesos.v1.scheduler.Protos.Call.Message message_;
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Message getMessage() {
return message_;
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.MessageOrBuilder getMessageOrBuilder() {
return message_;
}
public static final int REQUEST_FIELD_NUMBER = 11;
private org.apache.mesos.v1.scheduler.Protos.Call.Request request_;
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Request getRequest() {
return request_;
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.RequestOrBuilder getRequestOrBuilder() {
return request_;
}
public static final int SUPPRESS_FIELD_NUMBER = 16;
private org.apache.mesos.v1.scheduler.Protos.Call.Suppress suppress_;
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public boolean hasSuppress() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Suppress getSuppress() {
return suppress_;
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.SuppressOrBuilder getSuppressOrBuilder() {
return suppress_;
}
private void initFields() {
frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance();
type_ = org.apache.mesos.v1.scheduler.Protos.Call.Type.UNKNOWN;
subscribe_ = org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.getDefaultInstance();
accept_ = org.apache.mesos.v1.scheduler.Protos.Call.Accept.getDefaultInstance();
decline_ = org.apache.mesos.v1.scheduler.Protos.Call.Decline.getDefaultInstance();
acceptInverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.getDefaultInstance();
declineInverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.getDefaultInstance();
revive_ = org.apache.mesos.v1.scheduler.Protos.Call.Revive.getDefaultInstance();
kill_ = org.apache.mesos.v1.scheduler.Protos.Call.Kill.getDefaultInstance();
shutdown_ = org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.getDefaultInstance();
acknowledge_ = org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.getDefaultInstance();
reconcile_ = org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.getDefaultInstance();
message_ = org.apache.mesos.v1.scheduler.Protos.Call.Message.getDefaultInstance();
request_ = org.apache.mesos.v1.scheduler.Protos.Call.Request.getDefaultInstance();
suppress_ = org.apache.mesos.v1.scheduler.Protos.Call.Suppress.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasFrameworkId()) {
if (!getFrameworkId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasSubscribe()) {
if (!getSubscribe().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAccept()) {
if (!getAccept().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasDecline()) {
if (!getDecline().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAcceptInverseOffers()) {
if (!getAcceptInverseOffers().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasDeclineInverseOffers()) {
if (!getDeclineInverseOffers().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasKill()) {
if (!getKill().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasShutdown()) {
if (!getShutdown().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAcknowledge()) {
if (!getAcknowledge().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasReconcile()) {
if (!getReconcile().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasMessage()) {
if (!getMessage().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasRequest()) {
if (!getRequest().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, frameworkId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, type_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, subscribe_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, accept_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, decline_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(6, kill_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeMessage(7, shutdown_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeMessage(8, acknowledge_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeMessage(9, reconcile_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeMessage(10, message_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeMessage(11, request_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(13, acceptInverseOffers_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(14, declineInverseOffers_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(15, revive_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeMessage(16, suppress_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, frameworkId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, subscribe_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, accept_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, decline_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, kill_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, shutdown_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, acknowledge_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, reconcile_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, message_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, request_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, acceptInverseOffers_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, declineInverseOffers_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, revive_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, suppress_);
}
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.scheduler.Protos.Call parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.v1.scheduler.Protos.Call parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.v1.scheduler.Protos.Call prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mesos.v1.scheduler.Call}
*
*
**
* Scheduler call API.
* Like Event, a Call is described using the standard protocol buffer
* "union" trick (see above).
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.scheduler.Call)
org.apache.mesos.v1.scheduler.Protos.CallOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.scheduler.Protos.Call.class, org.apache.mesos.v1.scheduler.Protos.Call.Builder.class);
}
// Construct using org.apache.mesos.v1.scheduler.Protos.Call.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getFrameworkIdFieldBuilder();
getSubscribeFieldBuilder();
getAcceptFieldBuilder();
getDeclineFieldBuilder();
getAcceptInverseOffersFieldBuilder();
getDeclineInverseOffersFieldBuilder();
getReviveFieldBuilder();
getKillFieldBuilder();
getShutdownFieldBuilder();
getAcknowledgeFieldBuilder();
getReconcileFieldBuilder();
getMessageFieldBuilder();
getRequestFieldBuilder();
getSuppressFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (frameworkIdBuilder_ == null) {
frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance();
} else {
frameworkIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
type_ = org.apache.mesos.v1.scheduler.Protos.Call.Type.UNKNOWN;
bitField0_ = (bitField0_ & ~0x00000002);
if (subscribeBuilder_ == null) {
subscribe_ = org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.getDefaultInstance();
} else {
subscribeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (acceptBuilder_ == null) {
accept_ = org.apache.mesos.v1.scheduler.Protos.Call.Accept.getDefaultInstance();
} else {
acceptBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (declineBuilder_ == null) {
decline_ = org.apache.mesos.v1.scheduler.Protos.Call.Decline.getDefaultInstance();
} else {
declineBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (acceptInverseOffersBuilder_ == null) {
acceptInverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.getDefaultInstance();
} else {
acceptInverseOffersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (declineInverseOffersBuilder_ == null) {
declineInverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.getDefaultInstance();
} else {
declineInverseOffersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (reviveBuilder_ == null) {
revive_ = org.apache.mesos.v1.scheduler.Protos.Call.Revive.getDefaultInstance();
} else {
reviveBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (killBuilder_ == null) {
kill_ = org.apache.mesos.v1.scheduler.Protos.Call.Kill.getDefaultInstance();
} else {
killBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (shutdownBuilder_ == null) {
shutdown_ = org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.getDefaultInstance();
} else {
shutdownBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
if (acknowledgeBuilder_ == null) {
acknowledge_ = org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.getDefaultInstance();
} else {
acknowledgeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (reconcileBuilder_ == null) {
reconcile_ = org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.getDefaultInstance();
} else {
reconcileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (messageBuilder_ == null) {
message_ = org.apache.mesos.v1.scheduler.Protos.Call.Message.getDefaultInstance();
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
if (requestBuilder_ == null) {
request_ = org.apache.mesos.v1.scheduler.Protos.Call.Request.getDefaultInstance();
} else {
requestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
if (suppressBuilder_ == null) {
suppress_ = org.apache.mesos.v1.scheduler.Protos.Call.Suppress.getDefaultInstance();
} else {
suppressBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.scheduler.Protos.internal_static_mesos_v1_scheduler_Call_descriptor;
}
public org.apache.mesos.v1.scheduler.Protos.Call getDefaultInstanceForType() {
return org.apache.mesos.v1.scheduler.Protos.Call.getDefaultInstance();
}
public org.apache.mesos.v1.scheduler.Protos.Call build() {
org.apache.mesos.v1.scheduler.Protos.Call result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.scheduler.Protos.Call buildPartial() {
org.apache.mesos.v1.scheduler.Protos.Call result = new org.apache.mesos.v1.scheduler.Protos.Call(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (frameworkIdBuilder_ == null) {
result.frameworkId_ = frameworkId_;
} else {
result.frameworkId_ = frameworkIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (subscribeBuilder_ == null) {
result.subscribe_ = subscribe_;
} else {
result.subscribe_ = subscribeBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (acceptBuilder_ == null) {
result.accept_ = accept_;
} else {
result.accept_ = acceptBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (declineBuilder_ == null) {
result.decline_ = decline_;
} else {
result.decline_ = declineBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (acceptInverseOffersBuilder_ == null) {
result.acceptInverseOffers_ = acceptInverseOffers_;
} else {
result.acceptInverseOffers_ = acceptInverseOffersBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (declineInverseOffersBuilder_ == null) {
result.declineInverseOffers_ = declineInverseOffers_;
} else {
result.declineInverseOffers_ = declineInverseOffersBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (reviveBuilder_ == null) {
result.revive_ = revive_;
} else {
result.revive_ = reviveBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
if (killBuilder_ == null) {
result.kill_ = kill_;
} else {
result.kill_ = killBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
if (shutdownBuilder_ == null) {
result.shutdown_ = shutdown_;
} else {
result.shutdown_ = shutdownBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
if (acknowledgeBuilder_ == null) {
result.acknowledge_ = acknowledge_;
} else {
result.acknowledge_ = acknowledgeBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
if (reconcileBuilder_ == null) {
result.reconcile_ = reconcile_;
} else {
result.reconcile_ = reconcileBuilder_.build();
}
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
if (messageBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = messageBuilder_.build();
}
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
if (suppressBuilder_ == null) {
result.suppress_ = suppress_;
} else {
result.suppress_ = suppressBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.scheduler.Protos.Call) {
return mergeFrom((org.apache.mesos.v1.scheduler.Protos.Call)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.scheduler.Protos.Call other) {
if (other == org.apache.mesos.v1.scheduler.Protos.Call.getDefaultInstance()) return this;
if (other.hasFrameworkId()) {
mergeFrameworkId(other.getFrameworkId());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasSubscribe()) {
mergeSubscribe(other.getSubscribe());
}
if (other.hasAccept()) {
mergeAccept(other.getAccept());
}
if (other.hasDecline()) {
mergeDecline(other.getDecline());
}
if (other.hasAcceptInverseOffers()) {
mergeAcceptInverseOffers(other.getAcceptInverseOffers());
}
if (other.hasDeclineInverseOffers()) {
mergeDeclineInverseOffers(other.getDeclineInverseOffers());
}
if (other.hasRevive()) {
mergeRevive(other.getRevive());
}
if (other.hasKill()) {
mergeKill(other.getKill());
}
if (other.hasShutdown()) {
mergeShutdown(other.getShutdown());
}
if (other.hasAcknowledge()) {
mergeAcknowledge(other.getAcknowledge());
}
if (other.hasReconcile()) {
mergeReconcile(other.getReconcile());
}
if (other.hasMessage()) {
mergeMessage(other.getMessage());
}
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.hasSuppress()) {
mergeSuppress(other.getSuppress());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasFrameworkId()) {
if (!getFrameworkId().isInitialized()) {
return false;
}
}
if (hasSubscribe()) {
if (!getSubscribe().isInitialized()) {
return false;
}
}
if (hasAccept()) {
if (!getAccept().isInitialized()) {
return false;
}
}
if (hasDecline()) {
if (!getDecline().isInitialized()) {
return false;
}
}
if (hasAcceptInverseOffers()) {
if (!getAcceptInverseOffers().isInitialized()) {
return false;
}
}
if (hasDeclineInverseOffers()) {
if (!getDeclineInverseOffers().isInitialized()) {
return false;
}
}
if (hasKill()) {
if (!getKill().isInitialized()) {
return false;
}
}
if (hasShutdown()) {
if (!getShutdown().isInitialized()) {
return false;
}
}
if (hasAcknowledge()) {
if (!getAcknowledge().isInitialized()) {
return false;
}
}
if (hasReconcile()) {
if (!getReconcile().isInitialized()) {
return false;
}
}
if (hasMessage()) {
if (!getMessage().isInitialized()) {
return false;
}
}
if (hasRequest()) {
if (!getRequest().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.scheduler.Protos.Call parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.scheduler.Protos.Call) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.FrameworkID frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_;
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public boolean hasFrameworkId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() {
if (frameworkIdBuilder_ == null) {
return frameworkId_;
} else {
return frameworkIdBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public Builder setFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) {
if (frameworkIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
frameworkId_ = value;
onChanged();
} else {
frameworkIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public Builder setFrameworkId(
org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) {
if (frameworkIdBuilder_ == null) {
frameworkId_ = builderForValue.build();
onChanged();
} else {
frameworkIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) {
if (frameworkIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
frameworkId_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) {
frameworkId_ =
org.apache.mesos.v1.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial();
} else {
frameworkId_ = value;
}
onChanged();
} else {
frameworkIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public Builder clearFrameworkId() {
if (frameworkIdBuilder_ == null) {
frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance();
onChanged();
} else {
frameworkIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getFrameworkIdFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() {
if (frameworkIdBuilder_ != null) {
return frameworkIdBuilder_.getMessageOrBuilder();
} else {
return frameworkId_;
}
}
/**
* optional .mesos.v1.FrameworkID framework_id = 1;
*
*
* Identifies who generated this call. Master assigns a framework id
* when a new scheduler subscribes for the first time. Once assigned,
* the scheduler must set the 'framework_id' here and within its
* FrameworkInfo (in any further 'Subscribe' calls). This allows the
* master to identify a scheduler correctly across disconnections,
* failovers, etc.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>
getFrameworkIdFieldBuilder() {
if (frameworkIdBuilder_ == null) {
frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>(
getFrameworkId(),
getParentForChildren(),
isClean());
frameworkId_ = null;
}
return frameworkIdBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Type type_ = org.apache.mesos.v1.scheduler.Protos.Call.Type.UNKNOWN;
/**
* optional .mesos.v1.scheduler.Call.Type type = 2;
*
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* See comments on `Event::Type` above on the reasoning behind this field being optional.
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.scheduler.Call.Type type = 2;
*
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* See comments on `Event::Type` above on the reasoning behind this field being optional.
*
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Type getType() {
return type_;
}
/**
* optional .mesos.v1.scheduler.Call.Type type = 2;
*
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* See comments on `Event::Type` above on the reasoning behind this field being optional.
*
*/
public Builder setType(org.apache.mesos.v1.scheduler.Protos.Call.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Type type = 2;
*
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* See comments on `Event::Type` above on the reasoning behind this field being optional.
*
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = org.apache.mesos.v1.scheduler.Protos.Call.Type.UNKNOWN;
onChanged();
return this;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Subscribe subscribe_ = org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe, org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.Builder, org.apache.mesos.v1.scheduler.Protos.Call.SubscribeOrBuilder> subscribeBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public boolean hasSubscribe() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Subscribe getSubscribe() {
if (subscribeBuilder_ == null) {
return subscribe_;
} else {
return subscribeBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public Builder setSubscribe(org.apache.mesos.v1.scheduler.Protos.Call.Subscribe value) {
if (subscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribe_ = value;
onChanged();
} else {
subscribeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public Builder setSubscribe(
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.Builder builderForValue) {
if (subscribeBuilder_ == null) {
subscribe_ = builderForValue.build();
onChanged();
} else {
subscribeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public Builder mergeSubscribe(org.apache.mesos.v1.scheduler.Protos.Call.Subscribe value) {
if (subscribeBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
subscribe_ != org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.getDefaultInstance()) {
subscribe_ =
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.newBuilder(subscribe_).mergeFrom(value).buildPartial();
} else {
subscribe_ = value;
}
onChanged();
} else {
subscribeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public Builder clearSubscribe() {
if (subscribeBuilder_ == null) {
subscribe_ = org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.getDefaultInstance();
onChanged();
} else {
subscribeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.Builder getSubscribeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getSubscribeFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.SubscribeOrBuilder getSubscribeOrBuilder() {
if (subscribeBuilder_ != null) {
return subscribeBuilder_.getMessageOrBuilder();
} else {
return subscribe_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Subscribe subscribe = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe, org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.Builder, org.apache.mesos.v1.scheduler.Protos.Call.SubscribeOrBuilder>
getSubscribeFieldBuilder() {
if (subscribeBuilder_ == null) {
subscribeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Subscribe, org.apache.mesos.v1.scheduler.Protos.Call.Subscribe.Builder, org.apache.mesos.v1.scheduler.Protos.Call.SubscribeOrBuilder>(
getSubscribe(),
getParentForChildren(),
isClean());
subscribe_ = null;
}
return subscribeBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Accept accept_ = org.apache.mesos.v1.scheduler.Protos.Call.Accept.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Accept, org.apache.mesos.v1.scheduler.Protos.Call.Accept.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcceptOrBuilder> acceptBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public boolean hasAccept() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Accept getAccept() {
if (acceptBuilder_ == null) {
return accept_;
} else {
return acceptBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public Builder setAccept(org.apache.mesos.v1.scheduler.Protos.Call.Accept value) {
if (acceptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accept_ = value;
onChanged();
} else {
acceptBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public Builder setAccept(
org.apache.mesos.v1.scheduler.Protos.Call.Accept.Builder builderForValue) {
if (acceptBuilder_ == null) {
accept_ = builderForValue.build();
onChanged();
} else {
acceptBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public Builder mergeAccept(org.apache.mesos.v1.scheduler.Protos.Call.Accept value) {
if (acceptBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
accept_ != org.apache.mesos.v1.scheduler.Protos.Call.Accept.getDefaultInstance()) {
accept_ =
org.apache.mesos.v1.scheduler.Protos.Call.Accept.newBuilder(accept_).mergeFrom(value).buildPartial();
} else {
accept_ = value;
}
onChanged();
} else {
acceptBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public Builder clearAccept() {
if (acceptBuilder_ == null) {
accept_ = org.apache.mesos.v1.scheduler.Protos.Call.Accept.getDefaultInstance();
onChanged();
} else {
acceptBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Accept.Builder getAcceptBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getAcceptFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptOrBuilder getAcceptOrBuilder() {
if (acceptBuilder_ != null) {
return acceptBuilder_.getMessageOrBuilder();
} else {
return accept_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Accept accept = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Accept, org.apache.mesos.v1.scheduler.Protos.Call.Accept.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcceptOrBuilder>
getAcceptFieldBuilder() {
if (acceptBuilder_ == null) {
acceptBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Accept, org.apache.mesos.v1.scheduler.Protos.Call.Accept.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcceptOrBuilder>(
getAccept(),
getParentForChildren(),
isClean());
accept_ = null;
}
return acceptBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Decline decline_ = org.apache.mesos.v1.scheduler.Protos.Call.Decline.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Decline, org.apache.mesos.v1.scheduler.Protos.Call.Decline.Builder, org.apache.mesos.v1.scheduler.Protos.Call.DeclineOrBuilder> declineBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public boolean hasDecline() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Decline getDecline() {
if (declineBuilder_ == null) {
return decline_;
} else {
return declineBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public Builder setDecline(org.apache.mesos.v1.scheduler.Protos.Call.Decline value) {
if (declineBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
decline_ = value;
onChanged();
} else {
declineBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public Builder setDecline(
org.apache.mesos.v1.scheduler.Protos.Call.Decline.Builder builderForValue) {
if (declineBuilder_ == null) {
decline_ = builderForValue.build();
onChanged();
} else {
declineBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public Builder mergeDecline(org.apache.mesos.v1.scheduler.Protos.Call.Decline value) {
if (declineBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
decline_ != org.apache.mesos.v1.scheduler.Protos.Call.Decline.getDefaultInstance()) {
decline_ =
org.apache.mesos.v1.scheduler.Protos.Call.Decline.newBuilder(decline_).mergeFrom(value).buildPartial();
} else {
decline_ = value;
}
onChanged();
} else {
declineBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public Builder clearDecline() {
if (declineBuilder_ == null) {
decline_ = org.apache.mesos.v1.scheduler.Protos.Call.Decline.getDefaultInstance();
onChanged();
} else {
declineBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Decline.Builder getDeclineBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getDeclineFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineOrBuilder getDeclineOrBuilder() {
if (declineBuilder_ != null) {
return declineBuilder_.getMessageOrBuilder();
} else {
return decline_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Decline decline = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Decline, org.apache.mesos.v1.scheduler.Protos.Call.Decline.Builder, org.apache.mesos.v1.scheduler.Protos.Call.DeclineOrBuilder>
getDeclineFieldBuilder() {
if (declineBuilder_ == null) {
declineBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Decline, org.apache.mesos.v1.scheduler.Protos.Call.Decline.Builder, org.apache.mesos.v1.scheduler.Protos.Call.DeclineOrBuilder>(
getDecline(),
getParentForChildren(),
isClean());
decline_ = null;
}
return declineBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers acceptInverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers, org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffersOrBuilder> acceptInverseOffersBuilder_;
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public boolean hasAcceptInverseOffers() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers getAcceptInverseOffers() {
if (acceptInverseOffersBuilder_ == null) {
return acceptInverseOffers_;
} else {
return acceptInverseOffersBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public Builder setAcceptInverseOffers(org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers value) {
if (acceptInverseOffersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
acceptInverseOffers_ = value;
onChanged();
} else {
acceptInverseOffersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public Builder setAcceptInverseOffers(
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.Builder builderForValue) {
if (acceptInverseOffersBuilder_ == null) {
acceptInverseOffers_ = builderForValue.build();
onChanged();
} else {
acceptInverseOffersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public Builder mergeAcceptInverseOffers(org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers value) {
if (acceptInverseOffersBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
acceptInverseOffers_ != org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.getDefaultInstance()) {
acceptInverseOffers_ =
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.newBuilder(acceptInverseOffers_).mergeFrom(value).buildPartial();
} else {
acceptInverseOffers_ = value;
}
onChanged();
} else {
acceptInverseOffersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public Builder clearAcceptInverseOffers() {
if (acceptInverseOffersBuilder_ == null) {
acceptInverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.getDefaultInstance();
onChanged();
} else {
acceptInverseOffersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.Builder getAcceptInverseOffersBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getAcceptInverseOffersFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffersOrBuilder getAcceptInverseOffersOrBuilder() {
if (acceptInverseOffersBuilder_ != null) {
return acceptInverseOffersBuilder_.getMessageOrBuilder();
} else {
return acceptInverseOffers_;
}
}
/**
* optional .mesos.v1.scheduler.Call.AcceptInverseOffers accept_inverse_offers = 13;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers, org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffersOrBuilder>
getAcceptInverseOffersFieldBuilder() {
if (acceptInverseOffersBuilder_ == null) {
acceptInverseOffersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers, org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcceptInverseOffersOrBuilder>(
getAcceptInverseOffers(),
getParentForChildren(),
isClean());
acceptInverseOffers_ = null;
}
return acceptInverseOffersBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers declineInverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers, org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffersOrBuilder> declineInverseOffersBuilder_;
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public boolean hasDeclineInverseOffers() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers getDeclineInverseOffers() {
if (declineInverseOffersBuilder_ == null) {
return declineInverseOffers_;
} else {
return declineInverseOffersBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public Builder setDeclineInverseOffers(org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers value) {
if (declineInverseOffersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
declineInverseOffers_ = value;
onChanged();
} else {
declineInverseOffersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public Builder setDeclineInverseOffers(
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.Builder builderForValue) {
if (declineInverseOffersBuilder_ == null) {
declineInverseOffers_ = builderForValue.build();
onChanged();
} else {
declineInverseOffersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public Builder mergeDeclineInverseOffers(org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers value) {
if (declineInverseOffersBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
declineInverseOffers_ != org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.getDefaultInstance()) {
declineInverseOffers_ =
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.newBuilder(declineInverseOffers_).mergeFrom(value).buildPartial();
} else {
declineInverseOffers_ = value;
}
onChanged();
} else {
declineInverseOffersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public Builder clearDeclineInverseOffers() {
if (declineInverseOffersBuilder_ == null) {
declineInverseOffers_ = org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.getDefaultInstance();
onChanged();
} else {
declineInverseOffersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.Builder getDeclineInverseOffersBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDeclineInverseOffersFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffersOrBuilder getDeclineInverseOffersOrBuilder() {
if (declineInverseOffersBuilder_ != null) {
return declineInverseOffersBuilder_.getMessageOrBuilder();
} else {
return declineInverseOffers_;
}
}
/**
* optional .mesos.v1.scheduler.Call.DeclineInverseOffers decline_inverse_offers = 14;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers, org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffersOrBuilder>
getDeclineInverseOffersFieldBuilder() {
if (declineInverseOffersBuilder_ == null) {
declineInverseOffersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers, org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffers.Builder, org.apache.mesos.v1.scheduler.Protos.Call.DeclineInverseOffersOrBuilder>(
getDeclineInverseOffers(),
getParentForChildren(),
isClean());
declineInverseOffers_ = null;
}
return declineInverseOffersBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Revive revive_ = org.apache.mesos.v1.scheduler.Protos.Call.Revive.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Revive, org.apache.mesos.v1.scheduler.Protos.Call.Revive.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ReviveOrBuilder> reviveBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public boolean hasRevive() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Revive getRevive() {
if (reviveBuilder_ == null) {
return revive_;
} else {
return reviveBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public Builder setRevive(org.apache.mesos.v1.scheduler.Protos.Call.Revive value) {
if (reviveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
revive_ = value;
onChanged();
} else {
reviveBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public Builder setRevive(
org.apache.mesos.v1.scheduler.Protos.Call.Revive.Builder builderForValue) {
if (reviveBuilder_ == null) {
revive_ = builderForValue.build();
onChanged();
} else {
reviveBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public Builder mergeRevive(org.apache.mesos.v1.scheduler.Protos.Call.Revive value) {
if (reviveBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
revive_ != org.apache.mesos.v1.scheduler.Protos.Call.Revive.getDefaultInstance()) {
revive_ =
org.apache.mesos.v1.scheduler.Protos.Call.Revive.newBuilder(revive_).mergeFrom(value).buildPartial();
} else {
revive_ = value;
}
onChanged();
} else {
reviveBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public Builder clearRevive() {
if (reviveBuilder_ == null) {
revive_ = org.apache.mesos.v1.scheduler.Protos.Call.Revive.getDefaultInstance();
onChanged();
} else {
reviveBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Revive.Builder getReviveBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getReviveFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.ReviveOrBuilder getReviveOrBuilder() {
if (reviveBuilder_ != null) {
return reviveBuilder_.getMessageOrBuilder();
} else {
return revive_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Revive revive = 15;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Revive, org.apache.mesos.v1.scheduler.Protos.Call.Revive.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ReviveOrBuilder>
getReviveFieldBuilder() {
if (reviveBuilder_ == null) {
reviveBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Revive, org.apache.mesos.v1.scheduler.Protos.Call.Revive.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ReviveOrBuilder>(
getRevive(),
getParentForChildren(),
isClean());
revive_ = null;
}
return reviveBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Kill kill_ = org.apache.mesos.v1.scheduler.Protos.Call.Kill.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Kill, org.apache.mesos.v1.scheduler.Protos.Call.Kill.Builder, org.apache.mesos.v1.scheduler.Protos.Call.KillOrBuilder> killBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public boolean hasKill() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Kill getKill() {
if (killBuilder_ == null) {
return kill_;
} else {
return killBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public Builder setKill(org.apache.mesos.v1.scheduler.Protos.Call.Kill value) {
if (killBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kill_ = value;
onChanged();
} else {
killBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public Builder setKill(
org.apache.mesos.v1.scheduler.Protos.Call.Kill.Builder builderForValue) {
if (killBuilder_ == null) {
kill_ = builderForValue.build();
onChanged();
} else {
killBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public Builder mergeKill(org.apache.mesos.v1.scheduler.Protos.Call.Kill value) {
if (killBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
kill_ != org.apache.mesos.v1.scheduler.Protos.Call.Kill.getDefaultInstance()) {
kill_ =
org.apache.mesos.v1.scheduler.Protos.Call.Kill.newBuilder(kill_).mergeFrom(value).buildPartial();
} else {
kill_ = value;
}
onChanged();
} else {
killBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public Builder clearKill() {
if (killBuilder_ == null) {
kill_ = org.apache.mesos.v1.scheduler.Protos.Call.Kill.getDefaultInstance();
onChanged();
} else {
killBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Kill.Builder getKillBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getKillFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.KillOrBuilder getKillOrBuilder() {
if (killBuilder_ != null) {
return killBuilder_.getMessageOrBuilder();
} else {
return kill_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Kill kill = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Kill, org.apache.mesos.v1.scheduler.Protos.Call.Kill.Builder, org.apache.mesos.v1.scheduler.Protos.Call.KillOrBuilder>
getKillFieldBuilder() {
if (killBuilder_ == null) {
killBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Kill, org.apache.mesos.v1.scheduler.Protos.Call.Kill.Builder, org.apache.mesos.v1.scheduler.Protos.Call.KillOrBuilder>(
getKill(),
getParentForChildren(),
isClean());
kill_ = null;
}
return killBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Shutdown shutdown_ = org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown, org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ShutdownOrBuilder> shutdownBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public boolean hasShutdown() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Shutdown getShutdown() {
if (shutdownBuilder_ == null) {
return shutdown_;
} else {
return shutdownBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public Builder setShutdown(org.apache.mesos.v1.scheduler.Protos.Call.Shutdown value) {
if (shutdownBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shutdown_ = value;
onChanged();
} else {
shutdownBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public Builder setShutdown(
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.Builder builderForValue) {
if (shutdownBuilder_ == null) {
shutdown_ = builderForValue.build();
onChanged();
} else {
shutdownBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public Builder mergeShutdown(org.apache.mesos.v1.scheduler.Protos.Call.Shutdown value) {
if (shutdownBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
shutdown_ != org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.getDefaultInstance()) {
shutdown_ =
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.newBuilder(shutdown_).mergeFrom(value).buildPartial();
} else {
shutdown_ = value;
}
onChanged();
} else {
shutdownBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public Builder clearShutdown() {
if (shutdownBuilder_ == null) {
shutdown_ = org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.getDefaultInstance();
onChanged();
} else {
shutdownBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.Builder getShutdownBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getShutdownFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.ShutdownOrBuilder getShutdownOrBuilder() {
if (shutdownBuilder_ != null) {
return shutdownBuilder_.getMessageOrBuilder();
} else {
return shutdown_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Shutdown shutdown = 7;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown, org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ShutdownOrBuilder>
getShutdownFieldBuilder() {
if (shutdownBuilder_ == null) {
shutdownBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Shutdown, org.apache.mesos.v1.scheduler.Protos.Call.Shutdown.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ShutdownOrBuilder>(
getShutdown(),
getParentForChildren(),
isClean());
shutdown_ = null;
}
return shutdownBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge acknowledge_ = org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge, org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcknowledgeOrBuilder> acknowledgeBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public boolean hasAcknowledge() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge getAcknowledge() {
if (acknowledgeBuilder_ == null) {
return acknowledge_;
} else {
return acknowledgeBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public Builder setAcknowledge(org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge value) {
if (acknowledgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
acknowledge_ = value;
onChanged();
} else {
acknowledgeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public Builder setAcknowledge(
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.Builder builderForValue) {
if (acknowledgeBuilder_ == null) {
acknowledge_ = builderForValue.build();
onChanged();
} else {
acknowledgeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public Builder mergeAcknowledge(org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge value) {
if (acknowledgeBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400) &&
acknowledge_ != org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.getDefaultInstance()) {
acknowledge_ =
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.newBuilder(acknowledge_).mergeFrom(value).buildPartial();
} else {
acknowledge_ = value;
}
onChanged();
} else {
acknowledgeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public Builder clearAcknowledge() {
if (acknowledgeBuilder_ == null) {
acknowledge_ = org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.getDefaultInstance();
onChanged();
} else {
acknowledgeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.Builder getAcknowledgeBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getAcknowledgeFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.AcknowledgeOrBuilder getAcknowledgeOrBuilder() {
if (acknowledgeBuilder_ != null) {
return acknowledgeBuilder_.getMessageOrBuilder();
} else {
return acknowledge_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Acknowledge acknowledge = 8;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge, org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcknowledgeOrBuilder>
getAcknowledgeFieldBuilder() {
if (acknowledgeBuilder_ == null) {
acknowledgeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge, org.apache.mesos.v1.scheduler.Protos.Call.Acknowledge.Builder, org.apache.mesos.v1.scheduler.Protos.Call.AcknowledgeOrBuilder>(
getAcknowledge(),
getParentForChildren(),
isClean());
acknowledge_ = null;
}
return acknowledgeBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Reconcile reconcile_ = org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ReconcileOrBuilder> reconcileBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public boolean hasReconcile() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile getReconcile() {
if (reconcileBuilder_ == null) {
return reconcile_;
} else {
return reconcileBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public Builder setReconcile(org.apache.mesos.v1.scheduler.Protos.Call.Reconcile value) {
if (reconcileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reconcile_ = value;
onChanged();
} else {
reconcileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public Builder setReconcile(
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Builder builderForValue) {
if (reconcileBuilder_ == null) {
reconcile_ = builderForValue.build();
onChanged();
} else {
reconcileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public Builder mergeReconcile(org.apache.mesos.v1.scheduler.Protos.Call.Reconcile value) {
if (reconcileBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800) &&
reconcile_ != org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.getDefaultInstance()) {
reconcile_ =
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.newBuilder(reconcile_).mergeFrom(value).buildPartial();
} else {
reconcile_ = value;
}
onChanged();
} else {
reconcileBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public Builder clearReconcile() {
if (reconcileBuilder_ == null) {
reconcile_ = org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.getDefaultInstance();
onChanged();
} else {
reconcileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Builder getReconcileBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getReconcileFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.ReconcileOrBuilder getReconcileOrBuilder() {
if (reconcileBuilder_ != null) {
return reconcileBuilder_.getMessageOrBuilder();
} else {
return reconcile_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Reconcile reconcile = 9;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ReconcileOrBuilder>
getReconcileFieldBuilder() {
if (reconcileBuilder_ == null) {
reconcileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Reconcile, org.apache.mesos.v1.scheduler.Protos.Call.Reconcile.Builder, org.apache.mesos.v1.scheduler.Protos.Call.ReconcileOrBuilder>(
getReconcile(),
getParentForChildren(),
isClean());
reconcile_ = null;
}
return reconcileBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Message message_ = org.apache.mesos.v1.scheduler.Protos.Call.Message.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Message, org.apache.mesos.v1.scheduler.Protos.Call.Message.Builder, org.apache.mesos.v1.scheduler.Protos.Call.MessageOrBuilder> messageBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Message getMessage() {
if (messageBuilder_ == null) {
return message_;
} else {
return messageBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public Builder setMessage(org.apache.mesos.v1.scheduler.Protos.Call.Message value) {
if (messageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
messageBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public Builder setMessage(
org.apache.mesos.v1.scheduler.Protos.Call.Message.Builder builderForValue) {
if (messageBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
messageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public Builder mergeMessage(org.apache.mesos.v1.scheduler.Protos.Call.Message value) {
if (messageBuilder_ == null) {
if (((bitField0_ & 0x00001000) == 0x00001000) &&
message_ != org.apache.mesos.v1.scheduler.Protos.Call.Message.getDefaultInstance()) {
message_ =
org.apache.mesos.v1.scheduler.Protos.Call.Message.newBuilder(message_).mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
messageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public Builder clearMessage() {
if (messageBuilder_ == null) {
message_ = org.apache.mesos.v1.scheduler.Protos.Call.Message.getDefaultInstance();
onChanged();
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Message.Builder getMessageBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getMessageFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.MessageOrBuilder getMessageOrBuilder() {
if (messageBuilder_ != null) {
return messageBuilder_.getMessageOrBuilder();
} else {
return message_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Message message = 10;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Message, org.apache.mesos.v1.scheduler.Protos.Call.Message.Builder, org.apache.mesos.v1.scheduler.Protos.Call.MessageOrBuilder>
getMessageFieldBuilder() {
if (messageBuilder_ == null) {
messageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Message, org.apache.mesos.v1.scheduler.Protos.Call.Message.Builder, org.apache.mesos.v1.scheduler.Protos.Call.MessageOrBuilder>(
getMessage(),
getParentForChildren(),
isClean());
message_ = null;
}
return messageBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Request request_ = org.apache.mesos.v1.scheduler.Protos.Call.Request.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Request, org.apache.mesos.v1.scheduler.Protos.Call.Request.Builder, org.apache.mesos.v1.scheduler.Protos.Call.RequestOrBuilder> requestBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Request getRequest() {
if (requestBuilder_ == null) {
return request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public Builder setRequest(org.apache.mesos.v1.scheduler.Protos.Call.Request value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public Builder setRequest(
org.apache.mesos.v1.scheduler.Protos.Call.Request.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public Builder mergeRequest(org.apache.mesos.v1.scheduler.Protos.Call.Request value) {
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00002000) == 0x00002000) &&
request_ != org.apache.mesos.v1.scheduler.Protos.Call.Request.getDefaultInstance()) {
request_ =
org.apache.mesos.v1.scheduler.Protos.Call.Request.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = org.apache.mesos.v1.scheduler.Protos.Call.Request.getDefaultInstance();
onChanged();
} else {
requestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Request.Builder getRequestBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.RequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Request request = 11;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Request, org.apache.mesos.v1.scheduler.Protos.Call.Request.Builder, org.apache.mesos.v1.scheduler.Protos.Call.RequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Request, org.apache.mesos.v1.scheduler.Protos.Call.Request.Builder, org.apache.mesos.v1.scheduler.Protos.Call.RequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private org.apache.mesos.v1.scheduler.Protos.Call.Suppress suppress_ = org.apache.mesos.v1.scheduler.Protos.Call.Suppress.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Suppress, org.apache.mesos.v1.scheduler.Protos.Call.Suppress.Builder, org.apache.mesos.v1.scheduler.Protos.Call.SuppressOrBuilder> suppressBuilder_;
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public boolean hasSuppress() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Suppress getSuppress() {
if (suppressBuilder_ == null) {
return suppress_;
} else {
return suppressBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public Builder setSuppress(org.apache.mesos.v1.scheduler.Protos.Call.Suppress value) {
if (suppressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
suppress_ = value;
onChanged();
} else {
suppressBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public Builder setSuppress(
org.apache.mesos.v1.scheduler.Protos.Call.Suppress.Builder builderForValue) {
if (suppressBuilder_ == null) {
suppress_ = builderForValue.build();
onChanged();
} else {
suppressBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public Builder mergeSuppress(org.apache.mesos.v1.scheduler.Protos.Call.Suppress value) {
if (suppressBuilder_ == null) {
if (((bitField0_ & 0x00004000) == 0x00004000) &&
suppress_ != org.apache.mesos.v1.scheduler.Protos.Call.Suppress.getDefaultInstance()) {
suppress_ =
org.apache.mesos.v1.scheduler.Protos.Call.Suppress.newBuilder(suppress_).mergeFrom(value).buildPartial();
} else {
suppress_ = value;
}
onChanged();
} else {
suppressBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00004000;
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public Builder clearSuppress() {
if (suppressBuilder_ == null) {
suppress_ = org.apache.mesos.v1.scheduler.Protos.Call.Suppress.getDefaultInstance();
onChanged();
} else {
suppressBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.Suppress.Builder getSuppressBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getSuppressFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
public org.apache.mesos.v1.scheduler.Protos.Call.SuppressOrBuilder getSuppressOrBuilder() {
if (suppressBuilder_ != null) {
return suppressBuilder_.getMessageOrBuilder();
} else {
return suppress_;
}
}
/**
* optional .mesos.v1.scheduler.Call.Suppress suppress = 16;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Suppress, org.apache.mesos.v1.scheduler.Protos.Call.Suppress.Builder, org.apache.mesos.v1.scheduler.Protos.Call.SuppressOrBuilder>
getSuppressFieldBuilder() {
if (suppressBuilder_ == null) {
suppressBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.v1.scheduler.Protos.Call.Suppress, org.apache.mesos.v1.scheduler.Protos.Call.Suppress.Builder, org.apache.mesos.v1.scheduler.Protos.Call.SuppressOrBuilder>(
getSuppress(),
getParentForChildren(),
isClean());
suppress_ = null;
}
return suppressBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.v1.scheduler.Call)
}
static {
defaultInstance = new Call(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.v1.scheduler.Call)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_Subscribed_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_Subscribed_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_Offers_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_Offers_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_InverseOffers_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_InverseOffers_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_Rescind_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_Rescind_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_Update_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_Update_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_Message_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_Message_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_Failure_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_Failure_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Event_Error_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Event_Error_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Subscribe_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Subscribe_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Accept_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Accept_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Decline_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Decline_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Revive_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Revive_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Kill_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Kill_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Shutdown_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Shutdown_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Acknowledge_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Acknowledge_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Reconcile_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Reconcile_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Reconcile_Task_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Reconcile_Task_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Message_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Message_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Request_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_scheduler_Call_Suppress_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_v1_scheduler_Call_Suppress_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/scheduler/scheduler.proto\022\022me" +
"sos.v1.scheduler\032\024mesos/v1/mesos.proto\"\345" +
"\n\n\005Event\022,\n\004type\030\001 \001(\0162\036.mesos.v1.schedu" +
"ler.Event.Type\0228\n\nsubscribed\030\002 \001(\0132$.mes" +
"os.v1.scheduler.Event.Subscribed\0220\n\006offe" +
"rs\030\003 \001(\0132 .mesos.v1.scheduler.Event.Offe" +
"rs\022?\n\016inverse_offers\030\t \001(\0132\'.mesos.v1.sc" +
"heduler.Event.InverseOffers\0222\n\007rescind\030\004" +
" \001(\0132!.mesos.v1.scheduler.Event.Rescind\022" +
"L\n\025rescind_inverse_offer\030\n \001(\0132-.mesos.v",
"1.scheduler.Event.RescindInverseOffer\0220\n" +
"\006update\030\005 \001(\0132 .mesos.v1.scheduler.Event" +
".Update\0222\n\007message\030\006 \001(\0132!.mesos.v1.sche" +
"duler.Event.Message\0222\n\007failure\030\007 \001(\0132!.m" +
"esos.v1.scheduler.Event.Failure\022.\n\005error" +
"\030\010 \001(\0132\037.mesos.v1.scheduler.Event.Error\032" +
"\210\001\n\nSubscribed\022+\n\014framework_id\030\001 \002(\0132\025.m" +
"esos.v1.FrameworkID\022\"\n\032heartbeat_interva" +
"l_seconds\030\002 \001(\001\022)\n\013master_info\030\003 \001(\0132\024.m" +
"esos.v1.MasterInfo\032)\n\006Offers\022\037\n\006offers\030\001",
" \003(\0132\017.mesos.v1.Offer\032?\n\rInverseOffers\022." +
"\n\016inverse_offers\030\001 \003(\0132\026.mesos.v1.Invers" +
"eOffer\032.\n\007Rescind\022#\n\010offer_id\030\001 \002(\0132\021.me" +
"sos.v1.OfferID\032B\n\023RescindInverseOffer\022+\n" +
"\020inverse_offer_id\030\001 \002(\0132\021.mesos.v1.Offer" +
"ID\032.\n\006Update\022$\n\006status\030\001 \002(\0132\024.mesos.v1." +
"TaskStatus\032g\n\007Message\022#\n\010agent_id\030\001 \002(\0132" +
"\021.mesos.v1.AgentID\022)\n\013executor_id\030\002 \002(\0132" +
"\024.mesos.v1.ExecutorID\022\014\n\004data\030\003 \002(\014\032i\n\007F" +
"ailure\022#\n\010agent_id\030\001 \001(\0132\021.mesos.v1.Agen",
"tID\022)\n\013executor_id\030\002 \001(\0132\024.mesos.v1.Exec" +
"utorID\022\016\n\006status\030\003 \001(\005\032\030\n\005Error\022\017\n\007messa" +
"ge\030\001 \002(\t\"\253\001\n\004Type\022\013\n\007UNKNOWN\020\000\022\016\n\nSUBSCR" +
"IBED\020\001\022\n\n\006OFFERS\020\002\022\022\n\016INVERSE_OFFERS\020\t\022\013" +
"\n\007RESCIND\020\003\022\031\n\025RESCIND_INVERSE_OFFER\020\n\022\n" +
"\n\006UPDATE\020\004\022\013\n\007MESSAGE\020\005\022\013\n\007FAILURE\020\006\022\t\n\005" +
"ERROR\020\007\022\r\n\tHEARTBEAT\020\010\"\257\021\n\004Call\022+\n\014frame" +
"work_id\030\001 \001(\0132\025.mesos.v1.FrameworkID\022+\n\004" +
"type\030\002 \001(\0162\035.mesos.v1.scheduler.Call.Typ" +
"e\0225\n\tsubscribe\030\003 \001(\0132\".mesos.v1.schedule",
"r.Call.Subscribe\022/\n\006accept\030\004 \001(\0132\037.mesos" +
".v1.scheduler.Call.Accept\0221\n\007decline\030\005 \001" +
"(\0132 .mesos.v1.scheduler.Call.Decline\022K\n\025" +
"accept_inverse_offers\030\r \001(\0132,.mesos.v1.s" +
"cheduler.Call.AcceptInverseOffers\022M\n\026dec" +
"line_inverse_offers\030\016 \001(\0132-.mesos.v1.sch" +
"eduler.Call.DeclineInverseOffers\022/\n\006revi" +
"ve\030\017 \001(\0132\037.mesos.v1.scheduler.Call.Reviv" +
"e\022+\n\004kill\030\006 \001(\0132\035.mesos.v1.scheduler.Cal" +
"l.Kill\0223\n\010shutdown\030\007 \001(\0132!.mesos.v1.sche",
"duler.Call.Shutdown\0229\n\013acknowledge\030\010 \001(\013" +
"2$.mesos.v1.scheduler.Call.Acknowledge\0225" +
"\n\treconcile\030\t \001(\0132\".mesos.v1.scheduler.C" +
"all.Reconcile\0221\n\007message\030\n \001(\0132 .mesos.v" +
"1.scheduler.Call.Message\0221\n\007request\030\013 \001(" +
"\0132 .mesos.v1.scheduler.Call.Request\0223\n\010s" +
"uppress\030\020 \001(\0132!.mesos.v1.scheduler.Call." +
"Suppress\032<\n\tSubscribe\022/\n\016framework_info\030" +
"\001 \002(\0132\027.mesos.v1.FrameworkInfo\032\201\001\n\006Accep" +
"t\022$\n\toffer_ids\030\001 \003(\0132\021.mesos.v1.OfferID\022",
"-\n\noperations\030\002 \003(\0132\031.mesos.v1.Offer.Ope" +
"ration\022\"\n\007filters\030\003 \001(\0132\021.mesos.v1.Filte" +
"rs\032S\n\007Decline\022$\n\toffer_ids\030\001 \003(\0132\021.mesos" +
".v1.OfferID\022\"\n\007filters\030\002 \001(\0132\021.mesos.v1." +
"Filters\032g\n\023AcceptInverseOffers\022,\n\021invers" +
"e_offer_ids\030\001 \003(\0132\021.mesos.v1.OfferID\022\"\n\007" +
"filters\030\002 \001(\0132\021.mesos.v1.Filters\032h\n\024Decl" +
"ineInverseOffers\022,\n\021inverse_offer_ids\030\001 " +
"\003(\0132\021.mesos.v1.OfferID\022\"\n\007filters\030\002 \001(\0132" +
"\021.mesos.v1.Filters\032\027\n\006Revive\022\r\n\005roles\030\001 ",
"\003(\t\032y\n\004Kill\022!\n\007task_id\030\001 \002(\0132\020.mesos.v1." +
"TaskID\022#\n\010agent_id\030\002 \001(\0132\021.mesos.v1.Agen" +
"tID\022)\n\013kill_policy\030\003 \001(\0132\024.mesos.v1.Kill" +
"Policy\032Z\n\010Shutdown\022)\n\013executor_id\030\001 \002(\0132" +
"\024.mesos.v1.ExecutorID\022#\n\010agent_id\030\002 \002(\0132" +
"\021.mesos.v1.AgentID\032c\n\013Acknowledge\022#\n\010age" +
"nt_id\030\001 \002(\0132\021.mesos.v1.AgentID\022!\n\007task_i" +
"d\030\002 \002(\0132\020.mesos.v1.TaskID\022\014\n\004uuid\030\003 \002(\014\032" +
"\223\001\n\tReconcile\0226\n\005tasks\030\001 \003(\0132\'.mesos.v1." +
"scheduler.Call.Reconcile.Task\032N\n\004Task\022!\n",
"\007task_id\030\001 \002(\0132\020.mesos.v1.TaskID\022#\n\010agen" +
"t_id\030\002 \001(\0132\021.mesos.v1.AgentID\032g\n\007Message" +
"\022#\n\010agent_id\030\001 \002(\0132\021.mesos.v1.AgentID\022)\n" +
"\013executor_id\030\002 \002(\0132\024.mesos.v1.ExecutorID" +
"\022\014\n\004data\030\003 \002(\014\032.\n\007Request\022#\n\010requests\030\001 " +
"\003(\0132\021.mesos.v1.Request\032\031\n\010Suppress\022\r\n\005ro" +
"les\030\001 \003(\t\"\354\001\n\004Type\022\013\n\007UNKNOWN\020\000\022\r\n\tSUBSC" +
"RIBE\020\001\022\014\n\010TEARDOWN\020\002\022\n\n\006ACCEPT\020\003\022\013\n\007DECL" +
"INE\020\004\022\031\n\025ACCEPT_INVERSE_OFFERS\020\r\022\032\n\026DECL" +
"INE_INVERSE_OFFERS\020\016\022\n\n\006REVIVE\020\005\022\010\n\004KILL",
"\020\006\022\014\n\010SHUTDOWN\020\007\022\017\n\013ACKNOWLEDGE\020\010\022\r\n\tREC" +
"ONCILE\020\t\022\013\n\007MESSAGE\020\n\022\013\n\007REQUEST\020\013\022\014\n\010SU" +
"PPRESS\020\014B\'\n\035org.apache.mesos.v1.schedule" +
"rB\006Protos"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.mesos.v1.Protos.getDescriptor(),
}, assigner);
internal_static_mesos_v1_scheduler_Event_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_mesos_v1_scheduler_Event_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_descriptor,
new java.lang.String[] { "Type", "Subscribed", "Offers", "InverseOffers", "Rescind", "RescindInverseOffer", "Update", "Message", "Failure", "Error", });
internal_static_mesos_v1_scheduler_Event_Subscribed_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(0);
internal_static_mesos_v1_scheduler_Event_Subscribed_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_Subscribed_descriptor,
new java.lang.String[] { "FrameworkId", "HeartbeatIntervalSeconds", "MasterInfo", });
internal_static_mesos_v1_scheduler_Event_Offers_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(1);
internal_static_mesos_v1_scheduler_Event_Offers_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_Offers_descriptor,
new java.lang.String[] { "Offers", });
internal_static_mesos_v1_scheduler_Event_InverseOffers_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(2);
internal_static_mesos_v1_scheduler_Event_InverseOffers_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_InverseOffers_descriptor,
new java.lang.String[] { "InverseOffers", });
internal_static_mesos_v1_scheduler_Event_Rescind_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(3);
internal_static_mesos_v1_scheduler_Event_Rescind_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_Rescind_descriptor,
new java.lang.String[] { "OfferId", });
internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(4);
internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_RescindInverseOffer_descriptor,
new java.lang.String[] { "InverseOfferId", });
internal_static_mesos_v1_scheduler_Event_Update_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(5);
internal_static_mesos_v1_scheduler_Event_Update_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_Update_descriptor,
new java.lang.String[] { "Status", });
internal_static_mesos_v1_scheduler_Event_Message_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(6);
internal_static_mesos_v1_scheduler_Event_Message_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_Message_descriptor,
new java.lang.String[] { "AgentId", "ExecutorId", "Data", });
internal_static_mesos_v1_scheduler_Event_Failure_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(7);
internal_static_mesos_v1_scheduler_Event_Failure_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_Failure_descriptor,
new java.lang.String[] { "AgentId", "ExecutorId", "Status", });
internal_static_mesos_v1_scheduler_Event_Error_descriptor =
internal_static_mesos_v1_scheduler_Event_descriptor.getNestedTypes().get(8);
internal_static_mesos_v1_scheduler_Event_Error_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Event_Error_descriptor,
new java.lang.String[] { "Message", });
internal_static_mesos_v1_scheduler_Call_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_mesos_v1_scheduler_Call_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_descriptor,
new java.lang.String[] { "FrameworkId", "Type", "Subscribe", "Accept", "Decline", "AcceptInverseOffers", "DeclineInverseOffers", "Revive", "Kill", "Shutdown", "Acknowledge", "Reconcile", "Message", "Request", "Suppress", });
internal_static_mesos_v1_scheduler_Call_Subscribe_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(0);
internal_static_mesos_v1_scheduler_Call_Subscribe_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Subscribe_descriptor,
new java.lang.String[] { "FrameworkInfo", });
internal_static_mesos_v1_scheduler_Call_Accept_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(1);
internal_static_mesos_v1_scheduler_Call_Accept_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Accept_descriptor,
new java.lang.String[] { "OfferIds", "Operations", "Filters", });
internal_static_mesos_v1_scheduler_Call_Decline_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(2);
internal_static_mesos_v1_scheduler_Call_Decline_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Decline_descriptor,
new java.lang.String[] { "OfferIds", "Filters", });
internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(3);
internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_AcceptInverseOffers_descriptor,
new java.lang.String[] { "InverseOfferIds", "Filters", });
internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(4);
internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_DeclineInverseOffers_descriptor,
new java.lang.String[] { "InverseOfferIds", "Filters", });
internal_static_mesos_v1_scheduler_Call_Revive_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(5);
internal_static_mesos_v1_scheduler_Call_Revive_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Revive_descriptor,
new java.lang.String[] { "Roles", });
internal_static_mesos_v1_scheduler_Call_Kill_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(6);
internal_static_mesos_v1_scheduler_Call_Kill_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Kill_descriptor,
new java.lang.String[] { "TaskId", "AgentId", "KillPolicy", });
internal_static_mesos_v1_scheduler_Call_Shutdown_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(7);
internal_static_mesos_v1_scheduler_Call_Shutdown_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Shutdown_descriptor,
new java.lang.String[] { "ExecutorId", "AgentId", });
internal_static_mesos_v1_scheduler_Call_Acknowledge_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(8);
internal_static_mesos_v1_scheduler_Call_Acknowledge_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Acknowledge_descriptor,
new java.lang.String[] { "AgentId", "TaskId", "Uuid", });
internal_static_mesos_v1_scheduler_Call_Reconcile_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(9);
internal_static_mesos_v1_scheduler_Call_Reconcile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Reconcile_descriptor,
new java.lang.String[] { "Tasks", });
internal_static_mesos_v1_scheduler_Call_Reconcile_Task_descriptor =
internal_static_mesos_v1_scheduler_Call_Reconcile_descriptor.getNestedTypes().get(0);
internal_static_mesos_v1_scheduler_Call_Reconcile_Task_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Reconcile_Task_descriptor,
new java.lang.String[] { "TaskId", "AgentId", });
internal_static_mesos_v1_scheduler_Call_Message_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(10);
internal_static_mesos_v1_scheduler_Call_Message_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Message_descriptor,
new java.lang.String[] { "AgentId", "ExecutorId", "Data", });
internal_static_mesos_v1_scheduler_Call_Request_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(11);
internal_static_mesos_v1_scheduler_Call_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Request_descriptor,
new java.lang.String[] { "Requests", });
internal_static_mesos_v1_scheduler_Call_Suppress_descriptor =
internal_static_mesos_v1_scheduler_Call_descriptor.getNestedTypes().get(12);
internal_static_mesos_v1_scheduler_Call_Suppress_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_v1_scheduler_Call_Suppress_descriptor,
new java.lang.String[] { "Roles", });
org.apache.mesos.v1.Protos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy