Created
April 16, 2015 01:41
-
-
Save erikdw/9fb94a0c41b14d97c732 to your computer and use it in GitHub Desktop.
org/apache/mesos/Protos.java
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by the protocol buffer compiler. DO NOT EDIT! | |
// source: include/mesos/mesos.proto | |
package org.apache.mesos; | |
public final class Protos { | |
private Protos() {} | |
public static void registerAllExtensions( | |
com.google.protobuf.ExtensionRegistry registry) { | |
} | |
/** | |
* Protobuf enum {@code mesos.Status} | |
* | |
* <pre> | |
** | |
* Status is used to indicate the state of the scheduler and executor | |
* driver after function calls. | |
* </pre> | |
*/ | |
public enum Status | |
implements com.google.protobuf.ProtocolMessageEnum { | |
/** | |
* <code>DRIVER_NOT_STARTED = 1;</code> | |
*/ | |
DRIVER_NOT_STARTED(0, 1), | |
/** | |
* <code>DRIVER_RUNNING = 2;</code> | |
*/ | |
DRIVER_RUNNING(1, 2), | |
/** | |
* <code>DRIVER_ABORTED = 3;</code> | |
*/ | |
DRIVER_ABORTED(2, 3), | |
/** | |
* <code>DRIVER_STOPPED = 4;</code> | |
*/ | |
DRIVER_STOPPED(3, 4), | |
; | |
/** | |
* <code>DRIVER_NOT_STARTED = 1;</code> | |
*/ | |
public static final int DRIVER_NOT_STARTED_VALUE = 1; | |
/** | |
* <code>DRIVER_RUNNING = 2;</code> | |
*/ | |
public static final int DRIVER_RUNNING_VALUE = 2; | |
/** | |
* <code>DRIVER_ABORTED = 3;</code> | |
*/ | |
public static final int DRIVER_ABORTED_VALUE = 3; | |
/** | |
* <code>DRIVER_STOPPED = 4;</code> | |
*/ | |
public static final int DRIVER_STOPPED_VALUE = 4; | |
public final int getNumber() { return value; } | |
public static Status valueOf(int value) { | |
switch (value) { | |
case 1: return DRIVER_NOT_STARTED; | |
case 2: return DRIVER_RUNNING; | |
case 3: return DRIVER_ABORTED; | |
case 4: return DRIVER_STOPPED; | |
default: return null; | |
} | |
} | |
public static com.google.protobuf.Internal.EnumLiteMap<Status> | |
internalGetValueMap() { | |
return internalValueMap; | |
} | |
private static com.google.protobuf.Internal.EnumLiteMap<Status> | |
internalValueMap = | |
new com.google.protobuf.Internal.EnumLiteMap<Status>() { | |
public Status findValueByNumber(int number) { | |
return Status.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.Protos.getDescriptor().getEnumTypes().get(0); | |
} | |
private static final Status[] VALUES = values(); | |
public static Status valueOf( | |
com.google.protobuf.Descriptors.EnumValueDescriptor desc) { | |
if (desc.getType() != getDescriptor()) { | |
throw new java.lang.IllegalArgumentException( | |
"EnumValueDescriptor is not for this type."); | |
} | |
return VALUES[desc.getIndex()]; | |
} | |
private final int index; | |
private final int value; | |
private Status(int index, int value) { | |
this.index = index; | |
this.value = value; | |
} | |
// @@protoc_insertion_point(enum_scope:mesos.Status) | |
} | |
/** | |
* Protobuf enum {@code mesos.TaskState} | |
* | |
* <pre> | |
** | |
* Describes possible task states. IMPORTANT: Mesos assumes tasks that | |
* enter terminal states (see below) imply the task is no longer | |
* running and thus clean up any thing associated with the task | |
* (ultimately offering any resources being consumed by that task to | |
* another task). | |
* </pre> | |
*/ | |
public enum TaskState | |
implements com.google.protobuf.ProtocolMessageEnum { | |
/** | |
* <code>TASK_STAGING = 6;</code> | |
* | |
* <pre> | |
* Initial state. Framework status updates should not use. | |
* </pre> | |
*/ | |
TASK_STAGING(0, 6), | |
/** | |
* <code>TASK_STARTING = 0;</code> | |
*/ | |
TASK_STARTING(1, 0), | |
/** | |
* <code>TASK_RUNNING = 1;</code> | |
*/ | |
TASK_RUNNING(2, 1), | |
/** | |
* <code>TASK_FINISHED = 2;</code> | |
* | |
* <pre> | |
* TERMINAL. | |
* </pre> | |
*/ | |
TASK_FINISHED(3, 2), | |
/** | |
* <code>TASK_FAILED = 3;</code> | |
* | |
* <pre> | |
* TERMINAL. | |
* </pre> | |
*/ | |
TASK_FAILED(4, 3), | |
/** | |
* <code>TASK_KILLED = 4;</code> | |
* | |
* <pre> | |
* TERMINAL. | |
* </pre> | |
*/ | |
TASK_KILLED(5, 4), | |
/** | |
* <code>TASK_LOST = 5;</code> | |
* | |
* <pre> | |
* TERMINAL. | |
* </pre> | |
*/ | |
TASK_LOST(6, 5), | |
; | |
/** | |
* <code>TASK_STAGING = 6;</code> | |
* | |
* <pre> | |
* Initial state. Framework status updates should not use. | |
* </pre> | |
*/ | |
public static final int TASK_STAGING_VALUE = 6; | |
/** | |
* <code>TASK_STARTING = 0;</code> | |
*/ | |
public static final int TASK_STARTING_VALUE = 0; | |
/** | |
* <code>TASK_RUNNING = 1;</code> | |
*/ | |
public static final int TASK_RUNNING_VALUE = 1; | |
/** | |
* <code>TASK_FINISHED = 2;</code> | |
* | |
* <pre> | |
* TERMINAL. | |
* </pre> | |
*/ | |
public static final int TASK_FINISHED_VALUE = 2; | |
/** | |
* <code>TASK_FAILED = 3;</code> | |
* | |
* <pre> | |
* TERMINAL. | |
* </pre> | |
*/ | |
public static final int TASK_FAILED_VALUE = 3; | |
/** | |
* <code>TASK_KILLED = 4;</code> | |
* | |
* <pre> | |
* TERMINAL. | |
* </pre> | |
*/ | |
public static final int TASK_KILLED_VALUE = 4; | |
/** | |
* <code>TASK_LOST = 5;</code> | |
* | |
* <pre> | |
* TERMINAL. | |
* </pre> | |
*/ | |
public static final int TASK_LOST_VALUE = 5; | |
public final int getNumber() { return value; } | |
public static TaskState valueOf(int value) { | |
switch (value) { | |
case 6: return TASK_STAGING; | |
case 0: return TASK_STARTING; | |
case 1: return TASK_RUNNING; | |
case 2: return TASK_FINISHED; | |
case 3: return TASK_FAILED; | |
case 4: return TASK_KILLED; | |
case 5: return TASK_LOST; | |
default: return null; | |
} | |
} | |
public static com.google.protobuf.Internal.EnumLiteMap<TaskState> | |
internalGetValueMap() { | |
return internalValueMap; | |
} | |
private static com.google.protobuf.Internal.EnumLiteMap<TaskState> | |
internalValueMap = | |
new com.google.protobuf.Internal.EnumLiteMap<TaskState>() { | |
public TaskState findValueByNumber(int number) { | |
return TaskState.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.Protos.getDescriptor().getEnumTypes().get(1); | |
} | |
private static final TaskState[] VALUES = values(); | |
public static TaskState valueOf( | |
com.google.protobuf.Descriptors.EnumValueDescriptor desc) { | |
if (desc.getType() != getDescriptor()) { | |
throw new java.lang.IllegalArgumentException( | |
"EnumValueDescriptor is not for this type."); | |
} | |
return VALUES[desc.getIndex()]; | |
} | |
private final int index; | |
private final int value; | |
private TaskState(int index, int value) { | |
this.index = index; | |
this.value = value; | |
} | |
// @@protoc_insertion_point(enum_scope:mesos.TaskState) | |
} | |
public interface FrameworkIDOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.FrameworkID) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.FrameworkID} | |
* | |
* <pre> | |
** | |
* A unique ID assigned to a framework. A framework can reuse this ID | |
* in order to do failover (see MesosSchedulerDriver). | |
* </pre> | |
*/ | |
public static final class FrameworkID extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.FrameworkID) | |
FrameworkIDOrBuilder { | |
// Use FrameworkID.newBuilder() to construct. | |
private FrameworkID(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private FrameworkID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final FrameworkID defaultInstance; | |
public static FrameworkID getDefaultInstance() { | |
return defaultInstance; | |
} | |
public FrameworkID getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private FrameworkID( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
value_ = bs; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.FrameworkID.class, org.apache.mesos.Protos.FrameworkID.Builder.class); | |
} | |
public static com.google.protobuf.Parser<FrameworkID> PARSER = | |
new com.google.protobuf.AbstractParser<FrameworkID>() { | |
public FrameworkID parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new FrameworkID(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<FrameworkID> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private java.lang.Object value_; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
value_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getValueBytes()); | |
} | |
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, getValueBytes()); | |
} | |
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.Protos.FrameworkID parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.FrameworkID parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.FrameworkID parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.FrameworkID parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.FrameworkID parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.FrameworkID parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.FrameworkID parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.FrameworkID parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.FrameworkID parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.FrameworkID 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.Protos.FrameworkID 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.FrameworkID} | |
* | |
* <pre> | |
** | |
* A unique ID assigned to a framework. A framework can reuse this ID | |
* in order to do failover (see MesosSchedulerDriver). | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.FrameworkID) | |
org.apache.mesos.Protos.FrameworkIDOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.FrameworkID.class, org.apache.mesos.Protos.FrameworkID.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.FrameworkID.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(); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkID_descriptor; | |
} | |
public org.apache.mesos.Protos.FrameworkID getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.FrameworkID build() { | |
org.apache.mesos.Protos.FrameworkID result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.FrameworkID buildPartial() { | |
org.apache.mesos.Protos.FrameworkID result = new org.apache.mesos.Protos.FrameworkID(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.FrameworkID) { | |
return mergeFrom((org.apache.mesos.Protos.FrameworkID)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.FrameworkID other) { | |
if (other == org.apache.mesos.Protos.FrameworkID.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000001; | |
value_ = other.value_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.FrameworkID parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.FrameworkID) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.FrameworkID) | |
} | |
static { | |
defaultInstance = new FrameworkID(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.FrameworkID) | |
} | |
public interface OfferIDOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.OfferID) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.OfferID} | |
* | |
* <pre> | |
** | |
* A unique ID assigned to an offer. | |
* </pre> | |
*/ | |
public static final class OfferID extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.OfferID) | |
OfferIDOrBuilder { | |
// Use OfferID.newBuilder() to construct. | |
private OfferID(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private OfferID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final OfferID defaultInstance; | |
public static OfferID getDefaultInstance() { | |
return defaultInstance; | |
} | |
public OfferID getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private OfferID( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
value_ = bs; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_OfferID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_OfferID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.OfferID.class, org.apache.mesos.Protos.OfferID.Builder.class); | |
} | |
public static com.google.protobuf.Parser<OfferID> PARSER = | |
new com.google.protobuf.AbstractParser<OfferID>() { | |
public OfferID parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new OfferID(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<OfferID> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private java.lang.Object value_; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
value_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getValueBytes()); | |
} | |
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, getValueBytes()); | |
} | |
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.Protos.OfferID parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.OfferID parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.OfferID parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.OfferID parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.OfferID parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.OfferID parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.OfferID parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.OfferID parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.OfferID parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.OfferID 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.Protos.OfferID 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.OfferID} | |
* | |
* <pre> | |
** | |
* A unique ID assigned to an offer. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.OfferID) | |
org.apache.mesos.Protos.OfferIDOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_OfferID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_OfferID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.OfferID.class, org.apache.mesos.Protos.OfferID.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.OfferID.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(); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_OfferID_descriptor; | |
} | |
public org.apache.mesos.Protos.OfferID getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.OfferID.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.OfferID build() { | |
org.apache.mesos.Protos.OfferID result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.OfferID buildPartial() { | |
org.apache.mesos.Protos.OfferID result = new org.apache.mesos.Protos.OfferID(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.OfferID) { | |
return mergeFrom((org.apache.mesos.Protos.OfferID)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.OfferID other) { | |
if (other == org.apache.mesos.Protos.OfferID.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000001; | |
value_ = other.value_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.OfferID parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.OfferID) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.OfferID) | |
} | |
static { | |
defaultInstance = new OfferID(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.OfferID) | |
} | |
public interface SlaveIDOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.SlaveID) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.SlaveID} | |
* | |
* <pre> | |
** | |
* A unique ID assigned to a slave. Currently, a slave gets a new ID | |
* whenever it (re)registers with Mesos. Framework writers shouldn't | |
* assume any binding between a slave ID and and a hostname. | |
* </pre> | |
*/ | |
public static final class SlaveID extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.SlaveID) | |
SlaveIDOrBuilder { | |
// Use SlaveID.newBuilder() to construct. | |
private SlaveID(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private SlaveID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final SlaveID defaultInstance; | |
public static SlaveID getDefaultInstance() { | |
return defaultInstance; | |
} | |
public SlaveID getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private SlaveID( | |
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; | |
value_ = bs; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.SlaveID.class, org.apache.mesos.Protos.SlaveID.Builder.class); | |
} | |
public static com.google.protobuf.Parser<SlaveID> PARSER = | |
new com.google.protobuf.AbstractParser<SlaveID>() { | |
public SlaveID parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new SlaveID(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<SlaveID> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private java.lang.Object value_; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
value_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getValueBytes()); | |
} | |
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, getValueBytes()); | |
} | |
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.Protos.SlaveID parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.SlaveID 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.Protos.SlaveID parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.SlaveID parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.SlaveID parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.SlaveID parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.SlaveID parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.SlaveID parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.SlaveID parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.SlaveID 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.Protos.SlaveID 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.SlaveID} | |
* | |
* <pre> | |
** | |
* A unique ID assigned to a slave. Currently, a slave gets a new ID | |
* whenever it (re)registers with Mesos. Framework writers shouldn't | |
* assume any binding between a slave ID and and a hostname. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.SlaveID) | |
org.apache.mesos.Protos.SlaveIDOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.SlaveID.class, org.apache.mesos.Protos.SlaveID.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.SlaveID.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(); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveID_descriptor; | |
} | |
public org.apache.mesos.Protos.SlaveID getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.SlaveID build() { | |
org.apache.mesos.Protos.SlaveID result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.SlaveID buildPartial() { | |
org.apache.mesos.Protos.SlaveID result = new org.apache.mesos.Protos.SlaveID(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.SlaveID) { | |
return mergeFrom((org.apache.mesos.Protos.SlaveID)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.SlaveID other) { | |
if (other == org.apache.mesos.Protos.SlaveID.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000001; | |
value_ = other.value_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.SlaveID parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.SlaveID) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.SlaveID) | |
} | |
static { | |
defaultInstance = new SlaveID(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.SlaveID) | |
} | |
public interface TaskIDOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.TaskID) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.TaskID} | |
* | |
* <pre> | |
** | |
* A framework generated ID to distinguish a task. The ID must remain | |
* unique while the task is active. However, a framework can reuse an | |
* ID _only_ if a previous task with the same ID has reached a | |
* terminal state (e.g., TASK_FINISHED, TASK_LOST, TASK_KILLED, etc.). | |
* </pre> | |
*/ | |
public static final class TaskID extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.TaskID) | |
TaskIDOrBuilder { | |
// Use TaskID.newBuilder() to construct. | |
private TaskID(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private TaskID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final TaskID defaultInstance; | |
public static TaskID getDefaultInstance() { | |
return defaultInstance; | |
} | |
public TaskID getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private TaskID( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
value_ = bs; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_TaskID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_TaskID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.TaskID.class, org.apache.mesos.Protos.TaskID.Builder.class); | |
} | |
public static com.google.protobuf.Parser<TaskID> PARSER = | |
new com.google.protobuf.AbstractParser<TaskID>() { | |
public TaskID parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new TaskID(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<TaskID> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private java.lang.Object value_; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
value_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getValueBytes()); | |
} | |
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, getValueBytes()); | |
} | |
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.Protos.TaskID parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.TaskID parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.TaskID parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.TaskID parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.TaskID parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.TaskID parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.TaskID parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.TaskID parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.TaskID parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.TaskID 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.Protos.TaskID 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.TaskID} | |
* | |
* <pre> | |
** | |
* A framework generated ID to distinguish a task. The ID must remain | |
* unique while the task is active. However, a framework can reuse an | |
* ID _only_ if a previous task with the same ID has reached a | |
* terminal state (e.g., TASK_FINISHED, TASK_LOST, TASK_KILLED, etc.). | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.TaskID) | |
org.apache.mesos.Protos.TaskIDOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_TaskID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_TaskID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.TaskID.class, org.apache.mesos.Protos.TaskID.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.TaskID.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(); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_TaskID_descriptor; | |
} | |
public org.apache.mesos.Protos.TaskID getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.TaskID.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.TaskID build() { | |
org.apache.mesos.Protos.TaskID result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.TaskID buildPartial() { | |
org.apache.mesos.Protos.TaskID result = new org.apache.mesos.Protos.TaskID(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.TaskID) { | |
return mergeFrom((org.apache.mesos.Protos.TaskID)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.TaskID other) { | |
if (other == org.apache.mesos.Protos.TaskID.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000001; | |
value_ = other.value_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.TaskID parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.TaskID) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.TaskID) | |
} | |
static { | |
defaultInstance = new TaskID(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.TaskID) | |
} | |
public interface ExecutorIDOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.ExecutorID) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.ExecutorID} | |
* | |
* <pre> | |
** | |
* A framework generated ID to distinguish an executor. Only one | |
* executor with the same ID can be active on the same slave at a | |
* time. | |
* </pre> | |
*/ | |
public static final class ExecutorID extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.ExecutorID) | |
ExecutorIDOrBuilder { | |
// Use ExecutorID.newBuilder() to construct. | |
private ExecutorID(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private ExecutorID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final ExecutorID defaultInstance; | |
public static ExecutorID getDefaultInstance() { | |
return defaultInstance; | |
} | |
public ExecutorID getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private ExecutorID( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
value_ = bs; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ExecutorID.class, org.apache.mesos.Protos.ExecutorID.Builder.class); | |
} | |
public static com.google.protobuf.Parser<ExecutorID> PARSER = | |
new com.google.protobuf.AbstractParser<ExecutorID>() { | |
public ExecutorID parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new ExecutorID(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<ExecutorID> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private java.lang.Object value_; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
value_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getValueBytes()); | |
} | |
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, getValueBytes()); | |
} | |
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.Protos.ExecutorID parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ExecutorID parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ExecutorID parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ExecutorID parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ExecutorID parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ExecutorID parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ExecutorID parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.ExecutorID parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ExecutorID parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ExecutorID 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.Protos.ExecutorID 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.ExecutorID} | |
* | |
* <pre> | |
** | |
* A framework generated ID to distinguish an executor. Only one | |
* executor with the same ID can be active on the same slave at a | |
* time. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.ExecutorID) | |
org.apache.mesos.Protos.ExecutorIDOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ExecutorID.class, org.apache.mesos.Protos.ExecutorID.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.ExecutorID.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(); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorID_descriptor; | |
} | |
public org.apache.mesos.Protos.ExecutorID getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.ExecutorID build() { | |
org.apache.mesos.Protos.ExecutorID result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.ExecutorID buildPartial() { | |
org.apache.mesos.Protos.ExecutorID result = new org.apache.mesos.Protos.ExecutorID(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.ExecutorID) { | |
return mergeFrom((org.apache.mesos.Protos.ExecutorID)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.ExecutorID other) { | |
if (other == org.apache.mesos.Protos.ExecutorID.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000001; | |
value_ = other.value_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.ExecutorID parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.ExecutorID) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.ExecutorID) | |
} | |
static { | |
defaultInstance = new ExecutorID(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.ExecutorID) | |
} | |
public interface ContainerIDOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.ContainerID) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.ContainerID} | |
* | |
* <pre> | |
** | |
* A slave generated ID to distinguish a container. The ID must be unique | |
* between any active or completed containers on the slave. In particular, | |
* containers for different runs of the same (framework, executor) pair must be | |
* unique. | |
* </pre> | |
*/ | |
public static final class ContainerID extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.ContainerID) | |
ContainerIDOrBuilder { | |
// Use ContainerID.newBuilder() to construct. | |
private ContainerID(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private ContainerID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final ContainerID defaultInstance; | |
public static ContainerID getDefaultInstance() { | |
return defaultInstance; | |
} | |
public ContainerID getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private ContainerID( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
value_ = bs; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ContainerID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ContainerID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ContainerID.class, org.apache.mesos.Protos.ContainerID.Builder.class); | |
} | |
public static com.google.protobuf.Parser<ContainerID> PARSER = | |
new com.google.protobuf.AbstractParser<ContainerID>() { | |
public ContainerID parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new ContainerID(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<ContainerID> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private java.lang.Object value_; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
value_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getValueBytes()); | |
} | |
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, getValueBytes()); | |
} | |
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.Protos.ContainerID parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ContainerID parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ContainerID parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ContainerID parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ContainerID parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ContainerID parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ContainerID parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.ContainerID parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ContainerID parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ContainerID 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.Protos.ContainerID 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.ContainerID} | |
* | |
* <pre> | |
** | |
* A slave generated ID to distinguish a container. The ID must be unique | |
* between any active or completed containers on the slave. In particular, | |
* containers for different runs of the same (framework, executor) pair must be | |
* unique. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.ContainerID) | |
org.apache.mesos.Protos.ContainerIDOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ContainerID_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ContainerID_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ContainerID.class, org.apache.mesos.Protos.ContainerID.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.ContainerID.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(); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_ContainerID_descriptor; | |
} | |
public org.apache.mesos.Protos.ContainerID getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.ContainerID.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.ContainerID build() { | |
org.apache.mesos.Protos.ContainerID result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.ContainerID buildPartial() { | |
org.apache.mesos.Protos.ContainerID result = new org.apache.mesos.Protos.ContainerID(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.ContainerID) { | |
return mergeFrom((org.apache.mesos.Protos.ContainerID)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.ContainerID other) { | |
if (other == org.apache.mesos.Protos.ContainerID.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000001; | |
value_ = other.value_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.ContainerID parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.ContainerID) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.ContainerID) | |
} | |
static { | |
defaultInstance = new ContainerID(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.ContainerID) | |
} | |
public interface FrameworkInfoOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.FrameworkInfo) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
boolean hasUser(); | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
java.lang.String getUser(); | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getUserBytes(); | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
boolean hasName(); | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
java.lang.String getName(); | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getNameBytes(); | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
boolean hasId(); | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
org.apache.mesos.Protos.FrameworkID getId(); | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
org.apache.mesos.Protos.FrameworkIDOrBuilder getIdOrBuilder(); | |
/** | |
* <code>optional double failover_timeout = 4 [default = 0];</code> | |
*/ | |
boolean hasFailoverTimeout(); | |
/** | |
* <code>optional double failover_timeout = 4 [default = 0];</code> | |
*/ | |
double getFailoverTimeout(); | |
/** | |
* <code>optional bool checkpoint = 5 [default = false];</code> | |
*/ | |
boolean hasCheckpoint(); | |
/** | |
* <code>optional bool checkpoint = 5 [default = false];</code> | |
*/ | |
boolean getCheckpoint(); | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
boolean hasRole(); | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
java.lang.String getRole(); | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
com.google.protobuf.ByteString | |
getRoleBytes(); | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
boolean hasHostname(); | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
java.lang.String getHostname(); | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getHostnameBytes(); | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
boolean hasPrincipal(); | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
java.lang.String getPrincipal(); | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getPrincipalBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.FrameworkInfo} | |
* | |
* <pre> | |
** | |
* Describes a framework. The user field is used to determine the | |
* Unix user that an executor/task should be launched as. If the user | |
* field is set to an empty string Mesos will automagically set it | |
* to the current user. Note that the ID is only available after a | |
* framework has registered, however, it is included here in order to | |
* facilitate scheduler failover (i.e., if it is set then the | |
* MesosSchedulerDriver expects the scheduler is performing failover). | |
* The amount of time that the master will wait for the scheduler to | |
* failover before removing the framework is specified by | |
* failover_timeout. If checkpoint is set, framework pid, executor | |
* pids and status updates are checkpointed to disk by the slaves. | |
* Checkpointing allows a restarted slave to reconnect with old | |
* executors and recover status updates, at the cost of disk I/O. | |
* The role field is used to group frameworks for allocation | |
* decisions, depending on the allocation policy being used. | |
* If the hostname field is set to an empty string Mesos will | |
* automagically set it to the current hostname. | |
* The principal field should match the credential the framework uses | |
* in authentication. This field is used for framework API rate | |
* exporting and limiting and should be set even if authentication is | |
* not enabled if these features are desired. | |
* </pre> | |
*/ | |
public static final class FrameworkInfo extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.FrameworkInfo) | |
FrameworkInfoOrBuilder { | |
// Use FrameworkInfo.newBuilder() to construct. | |
private FrameworkInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private FrameworkInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final FrameworkInfo defaultInstance; | |
public static FrameworkInfo getDefaultInstance() { | |
return defaultInstance; | |
} | |
public FrameworkInfo getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private FrameworkInfo( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
user_ = bs; | |
break; | |
} | |
case 18: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000002; | |
name_ = bs; | |
break; | |
} | |
case 26: { | |
org.apache.mesos.Protos.FrameworkID.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
subBuilder = id_.toBuilder(); | |
} | |
id_ = input.readMessage(org.apache.mesos.Protos.FrameworkID.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(id_); | |
id_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000004; | |
break; | |
} | |
case 33: { | |
bitField0_ |= 0x00000008; | |
failoverTimeout_ = input.readDouble(); | |
break; | |
} | |
case 40: { | |
bitField0_ |= 0x00000010; | |
checkpoint_ = input.readBool(); | |
break; | |
} | |
case 50: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000020; | |
role_ = bs; | |
break; | |
} | |
case 58: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000040; | |
hostname_ = bs; | |
break; | |
} | |
case 66: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000080; | |
principal_ = bs; | |
break; | |
} | |
} | |
} | |
} 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.Protos.internal_static_mesos_FrameworkInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.FrameworkInfo.class, org.apache.mesos.Protos.FrameworkInfo.Builder.class); | |
} | |
public static com.google.protobuf.Parser<FrameworkInfo> PARSER = | |
new com.google.protobuf.AbstractParser<FrameworkInfo>() { | |
public FrameworkInfo parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new FrameworkInfo(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<FrameworkInfo> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int USER_FIELD_NUMBER = 1; | |
private java.lang.Object user_; | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public boolean hasUser() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public java.lang.String getUser() { | |
java.lang.Object ref = user_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
user_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getUserBytes() { | |
java.lang.Object ref = user_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
user_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int NAME_FIELD_NUMBER = 2; | |
private java.lang.Object name_; | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public boolean hasName() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public java.lang.String getName() { | |
java.lang.Object ref = name_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
name_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getNameBytes() { | |
java.lang.Object ref = name_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
name_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int ID_FIELD_NUMBER = 3; | |
private org.apache.mesos.Protos.FrameworkID id_; | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public boolean hasId() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID getId() { | |
return id_; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkIDOrBuilder getIdOrBuilder() { | |
return id_; | |
} | |
public static final int FAILOVER_TIMEOUT_FIELD_NUMBER = 4; | |
private double failoverTimeout_; | |
/** | |
* <code>optional double failover_timeout = 4 [default = 0];</code> | |
*/ | |
public boolean hasFailoverTimeout() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional double failover_timeout = 4 [default = 0];</code> | |
*/ | |
public double getFailoverTimeout() { | |
return failoverTimeout_; | |
} | |
public static final int CHECKPOINT_FIELD_NUMBER = 5; | |
private boolean checkpoint_; | |
/** | |
* <code>optional bool checkpoint = 5 [default = false];</code> | |
*/ | |
public boolean hasCheckpoint() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional bool checkpoint = 5 [default = false];</code> | |
*/ | |
public boolean getCheckpoint() { | |
return checkpoint_; | |
} | |
public static final int ROLE_FIELD_NUMBER = 6; | |
private java.lang.Object role_; | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public boolean hasRole() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public java.lang.String getRole() { | |
java.lang.Object ref = role_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
role_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getRoleBytes() { | |
java.lang.Object ref = role_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
role_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int HOSTNAME_FIELD_NUMBER = 7; | |
private java.lang.Object hostname_; | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public boolean hasHostname() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public java.lang.String getHostname() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
hostname_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getHostnameBytes() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
hostname_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int PRINCIPAL_FIELD_NUMBER = 8; | |
private java.lang.Object principal_; | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public boolean hasPrincipal() { | |
return ((bitField0_ & 0x00000080) == 0x00000080); | |
} | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public java.lang.String getPrincipal() { | |
java.lang.Object ref = principal_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
principal_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getPrincipalBytes() { | |
java.lang.Object ref = principal_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
principal_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
user_ = ""; | |
name_ = ""; | |
id_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
failoverTimeout_ = 0D; | |
checkpoint_ = false; | |
role_ = "*"; | |
hostname_ = ""; | |
principal_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasUser()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasName()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (hasId()) { | |
if (!getId().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getUserBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeBytes(2, getNameBytes()); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeMessage(3, id_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeDouble(4, failoverTimeout_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeBool(5, checkpoint_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
output.writeBytes(6, getRoleBytes()); | |
} | |
if (((bitField0_ & 0x00000040) == 0x00000040)) { | |
output.writeBytes(7, getHostnameBytes()); | |
} | |
if (((bitField0_ & 0x00000080) == 0x00000080)) { | |
output.writeBytes(8, getPrincipalBytes()); | |
} | |
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, getUserBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(2, getNameBytes()); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(3, id_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(4, failoverTimeout_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBoolSize(5, checkpoint_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(6, getRoleBytes()); | |
} | |
if (((bitField0_ & 0x00000040) == 0x00000040)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(7, getHostnameBytes()); | |
} | |
if (((bitField0_ & 0x00000080) == 0x00000080)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(8, getPrincipalBytes()); | |
} | |
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.Protos.FrameworkInfo parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.FrameworkInfo 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.Protos.FrameworkInfo 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.FrameworkInfo} | |
* | |
* <pre> | |
** | |
* Describes a framework. The user field is used to determine the | |
* Unix user that an executor/task should be launched as. If the user | |
* field is set to an empty string Mesos will automagically set it | |
* to the current user. Note that the ID is only available after a | |
* framework has registered, however, it is included here in order to | |
* facilitate scheduler failover (i.e., if it is set then the | |
* MesosSchedulerDriver expects the scheduler is performing failover). | |
* The amount of time that the master will wait for the scheduler to | |
* failover before removing the framework is specified by | |
* failover_timeout. If checkpoint is set, framework pid, executor | |
* pids and status updates are checkpointed to disk by the slaves. | |
* Checkpointing allows a restarted slave to reconnect with old | |
* executors and recover status updates, at the cost of disk I/O. | |
* The role field is used to group frameworks for allocation | |
* decisions, depending on the allocation policy being used. | |
* If the hostname field is set to an empty string Mesos will | |
* automagically set it to the current hostname. | |
* The principal field should match the credential the framework uses | |
* in authentication. This field is used for framework API rate | |
* exporting and limiting and should be set even if authentication is | |
* not enabled if these features are desired. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.FrameworkInfo) | |
org.apache.mesos.Protos.FrameworkInfoOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.FrameworkInfo.class, org.apache.mesos.Protos.FrameworkInfo.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.FrameworkInfo.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getIdFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
user_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
name_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
if (idBuilder_ == null) { | |
id_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
} else { | |
idBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
failoverTimeout_ = 0D; | |
bitField0_ = (bitField0_ & ~0x00000008); | |
checkpoint_ = false; | |
bitField0_ = (bitField0_ & ~0x00000010); | |
role_ = "*"; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
hostname_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000040); | |
principal_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000080); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_FrameworkInfo_descriptor; | |
} | |
public org.apache.mesos.Protos.FrameworkInfo getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.FrameworkInfo.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.FrameworkInfo build() { | |
org.apache.mesos.Protos.FrameworkInfo result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.FrameworkInfo buildPartial() { | |
org.apache.mesos.Protos.FrameworkInfo result = new org.apache.mesos.Protos.FrameworkInfo(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.user_ = user_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.name_ = name_; | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
if (idBuilder_ == null) { | |
result.id_ = id_; | |
} else { | |
result.id_ = idBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
result.failoverTimeout_ = failoverTimeout_; | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
result.checkpoint_ = checkpoint_; | |
if (((from_bitField0_ & 0x00000020) == 0x00000020)) { | |
to_bitField0_ |= 0x00000020; | |
} | |
result.role_ = role_; | |
if (((from_bitField0_ & 0x00000040) == 0x00000040)) { | |
to_bitField0_ |= 0x00000040; | |
} | |
result.hostname_ = hostname_; | |
if (((from_bitField0_ & 0x00000080) == 0x00000080)) { | |
to_bitField0_ |= 0x00000080; | |
} | |
result.principal_ = principal_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.FrameworkInfo) { | |
return mergeFrom((org.apache.mesos.Protos.FrameworkInfo)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.FrameworkInfo other) { | |
if (other == org.apache.mesos.Protos.FrameworkInfo.getDefaultInstance()) return this; | |
if (other.hasUser()) { | |
bitField0_ |= 0x00000001; | |
user_ = other.user_; | |
onChanged(); | |
} | |
if (other.hasName()) { | |
bitField0_ |= 0x00000002; | |
name_ = other.name_; | |
onChanged(); | |
} | |
if (other.hasId()) { | |
mergeId(other.getId()); | |
} | |
if (other.hasFailoverTimeout()) { | |
setFailoverTimeout(other.getFailoverTimeout()); | |
} | |
if (other.hasCheckpoint()) { | |
setCheckpoint(other.getCheckpoint()); | |
} | |
if (other.hasRole()) { | |
bitField0_ |= 0x00000020; | |
role_ = other.role_; | |
onChanged(); | |
} | |
if (other.hasHostname()) { | |
bitField0_ |= 0x00000040; | |
hostname_ = other.hostname_; | |
onChanged(); | |
} | |
if (other.hasPrincipal()) { | |
bitField0_ |= 0x00000080; | |
principal_ = other.principal_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasUser()) { | |
return false; | |
} | |
if (!hasName()) { | |
return false; | |
} | |
if (hasId()) { | |
if (!getId().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.Protos.FrameworkInfo parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.FrameworkInfo) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object user_ = ""; | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public boolean hasUser() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public java.lang.String getUser() { | |
java.lang.Object ref = user_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
user_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getUserBytes() { | |
java.lang.Object ref = user_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
user_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public Builder setUser( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
user_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public Builder clearUser() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
user_ = getDefaultInstance().getUser(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string user = 1;</code> | |
*/ | |
public Builder setUserBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
user_ = value; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object name_ = ""; | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public boolean hasName() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public java.lang.String getName() { | |
java.lang.Object ref = name_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
name_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getNameBytes() { | |
java.lang.Object ref = name_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
name_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public Builder setName( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000002; | |
name_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public Builder clearName() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
name_ = getDefaultInstance().getName(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string name = 2;</code> | |
*/ | |
public Builder setNameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000002; | |
name_ = value; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.FrameworkID id_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder> idBuilder_; | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public boolean hasId() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID getId() { | |
if (idBuilder_ == null) { | |
return id_; | |
} else { | |
return idBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public Builder setId(org.apache.mesos.Protos.FrameworkID value) { | |
if (idBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
id_ = value; | |
onChanged(); | |
} else { | |
idBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public Builder setId( | |
org.apache.mesos.Protos.FrameworkID.Builder builderForValue) { | |
if (idBuilder_ == null) { | |
id_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
idBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public Builder mergeId(org.apache.mesos.Protos.FrameworkID value) { | |
if (idBuilder_ == null) { | |
if (((bitField0_ & 0x00000004) == 0x00000004) && | |
id_ != org.apache.mesos.Protos.FrameworkID.getDefaultInstance()) { | |
id_ = | |
org.apache.mesos.Protos.FrameworkID.newBuilder(id_).mergeFrom(value).buildPartial(); | |
} else { | |
id_ = value; | |
} | |
onChanged(); | |
} else { | |
idBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public Builder clearId() { | |
if (idBuilder_ == null) { | |
id_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
onChanged(); | |
} else { | |
idBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID.Builder getIdBuilder() { | |
bitField0_ |= 0x00000004; | |
onChanged(); | |
return getIdFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkIDOrBuilder getIdOrBuilder() { | |
if (idBuilder_ != null) { | |
return idBuilder_.getMessageOrBuilder(); | |
} else { | |
return id_; | |
} | |
} | |
/** | |
* <code>optional .mesos.FrameworkID id = 3;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder> | |
getIdFieldBuilder() { | |
if (idBuilder_ == null) { | |
idBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder>( | |
getId(), | |
getParentForChildren(), | |
isClean()); | |
id_ = null; | |
} | |
return idBuilder_; | |
} | |
private double failoverTimeout_ ; | |
/** | |
* <code>optional double failover_timeout = 4 [default = 0];</code> | |
*/ | |
public boolean hasFailoverTimeout() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional double failover_timeout = 4 [default = 0];</code> | |
*/ | |
public double getFailoverTimeout() { | |
return failoverTimeout_; | |
} | |
/** | |
* <code>optional double failover_timeout = 4 [default = 0];</code> | |
*/ | |
public Builder setFailoverTimeout(double value) { | |
bitField0_ |= 0x00000008; | |
failoverTimeout_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double failover_timeout = 4 [default = 0];</code> | |
*/ | |
public Builder clearFailoverTimeout() { | |
bitField0_ = (bitField0_ & ~0x00000008); | |
failoverTimeout_ = 0D; | |
onChanged(); | |
return this; | |
} | |
private boolean checkpoint_ ; | |
/** | |
* <code>optional bool checkpoint = 5 [default = false];</code> | |
*/ | |
public boolean hasCheckpoint() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional bool checkpoint = 5 [default = false];</code> | |
*/ | |
public boolean getCheckpoint() { | |
return checkpoint_; | |
} | |
/** | |
* <code>optional bool checkpoint = 5 [default = false];</code> | |
*/ | |
public Builder setCheckpoint(boolean value) { | |
bitField0_ |= 0x00000010; | |
checkpoint_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional bool checkpoint = 5 [default = false];</code> | |
*/ | |
public Builder clearCheckpoint() { | |
bitField0_ = (bitField0_ & ~0x00000010); | |
checkpoint_ = false; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object role_ = "*"; | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public boolean hasRole() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public java.lang.String getRole() { | |
java.lang.Object ref = role_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
role_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getRoleBytes() { | |
java.lang.Object ref = role_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
role_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public Builder setRole( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000020; | |
role_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public Builder clearRole() { | |
bitField0_ = (bitField0_ & ~0x00000020); | |
role_ = getDefaultInstance().getRole(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public Builder setRoleBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000020; | |
role_ = value; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object hostname_ = ""; | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public boolean hasHostname() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public java.lang.String getHostname() { | |
java.lang.Object ref = hostname_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
hostname_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getHostnameBytes() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
hostname_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public Builder setHostname( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000040; | |
hostname_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public Builder clearHostname() { | |
bitField0_ = (bitField0_ & ~0x00000040); | |
hostname_ = getDefaultInstance().getHostname(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string hostname = 7;</code> | |
*/ | |
public Builder setHostnameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000040; | |
hostname_ = value; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object principal_ = ""; | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public boolean hasPrincipal() { | |
return ((bitField0_ & 0x00000080) == 0x00000080); | |
} | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public java.lang.String getPrincipal() { | |
java.lang.Object ref = principal_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
principal_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getPrincipalBytes() { | |
java.lang.Object ref = principal_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
principal_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public Builder setPrincipal( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000080; | |
principal_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public Builder clearPrincipal() { | |
bitField0_ = (bitField0_ & ~0x00000080); | |
principal_ = getDefaultInstance().getPrincipal(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string principal = 8;</code> | |
*/ | |
public Builder setPrincipalBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000080; | |
principal_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.FrameworkInfo) | |
} | |
static { | |
defaultInstance = new FrameworkInfo(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.FrameworkInfo) | |
} | |
public interface HealthCheckOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.HealthCheck) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
boolean hasHttp(); | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
org.apache.mesos.Protos.HealthCheck.HTTP getHttp(); | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
org.apache.mesos.Protos.HealthCheck.HTTPOrBuilder getHttpOrBuilder(); | |
/** | |
* <code>optional double delay_seconds = 2 [default = 15];</code> | |
* | |
* <pre> | |
* Amount of time to wait until starting the health checks. | |
* </pre> | |
*/ | |
boolean hasDelaySeconds(); | |
/** | |
* <code>optional double delay_seconds = 2 [default = 15];</code> | |
* | |
* <pre> | |
* Amount of time to wait until starting the health checks. | |
* </pre> | |
*/ | |
double getDelaySeconds(); | |
/** | |
* <code>optional double interval_seconds = 3 [default = 10];</code> | |
* | |
* <pre> | |
* Interval between health checks. | |
* </pre> | |
*/ | |
boolean hasIntervalSeconds(); | |
/** | |
* <code>optional double interval_seconds = 3 [default = 10];</code> | |
* | |
* <pre> | |
* Interval between health checks. | |
* </pre> | |
*/ | |
double getIntervalSeconds(); | |
/** | |
* <code>optional double timeout_seconds = 4 [default = 20];</code> | |
* | |
* <pre> | |
* Amount of time to wait for the health check to complete. | |
* </pre> | |
*/ | |
boolean hasTimeoutSeconds(); | |
/** | |
* <code>optional double timeout_seconds = 4 [default = 20];</code> | |
* | |
* <pre> | |
* Amount of time to wait for the health check to complete. | |
* </pre> | |
*/ | |
double getTimeoutSeconds(); | |
/** | |
* <code>optional uint32 consecutive_failures = 5 [default = 3];</code> | |
* | |
* <pre> | |
* Number of consecutive failures until considered unhealthy. | |
* </pre> | |
*/ | |
boolean hasConsecutiveFailures(); | |
/** | |
* <code>optional uint32 consecutive_failures = 5 [default = 3];</code> | |
* | |
* <pre> | |
* Number of consecutive failures until considered unhealthy. | |
* </pre> | |
*/ | |
int getConsecutiveFailures(); | |
/** | |
* <code>optional double grace_period_seconds = 6 [default = 10];</code> | |
* | |
* <pre> | |
* Amount of time to allow failed health checks since launch. | |
* </pre> | |
*/ | |
boolean hasGracePeriodSeconds(); | |
/** | |
* <code>optional double grace_period_seconds = 6 [default = 10];</code> | |
* | |
* <pre> | |
* Amount of time to allow failed health checks since launch. | |
* </pre> | |
*/ | |
double getGracePeriodSeconds(); | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
boolean hasCommand(); | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.CommandInfo getCommand(); | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.CommandInfoOrBuilder getCommandOrBuilder(); | |
} | |
/** | |
* Protobuf type {@code mesos.HealthCheck} | |
* | |
* <pre> | |
** | |
* Describes a health check for a task or executor (or any arbitrary | |
* process/command). A "strategy" is picked by specifying one of the | |
* optional fields, currently only 'http' and 'command' are | |
* supported. Specifying more than one strategy is an error. | |
* </pre> | |
*/ | |
public static final class HealthCheck extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.HealthCheck) | |
HealthCheckOrBuilder { | |
// Use HealthCheck.newBuilder() to construct. | |
private HealthCheck(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private HealthCheck(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final HealthCheck defaultInstance; | |
public static HealthCheck getDefaultInstance() { | |
return defaultInstance; | |
} | |
public HealthCheck getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private HealthCheck( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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.Protos.HealthCheck.HTTP.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
subBuilder = http_.toBuilder(); | |
} | |
http_ = input.readMessage(org.apache.mesos.Protos.HealthCheck.HTTP.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(http_); | |
http_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000001; | |
break; | |
} | |
case 17: { | |
bitField0_ |= 0x00000002; | |
delaySeconds_ = input.readDouble(); | |
break; | |
} | |
case 25: { | |
bitField0_ |= 0x00000004; | |
intervalSeconds_ = input.readDouble(); | |
break; | |
} | |
case 33: { | |
bitField0_ |= 0x00000008; | |
timeoutSeconds_ = input.readDouble(); | |
break; | |
} | |
case 40: { | |
bitField0_ |= 0x00000010; | |
consecutiveFailures_ = input.readUInt32(); | |
break; | |
} | |
case 49: { | |
bitField0_ |= 0x00000020; | |
gracePeriodSeconds_ = input.readDouble(); | |
break; | |
} | |
case 58: { | |
org.apache.mesos.Protos.CommandInfo.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000040) == 0x00000040)) { | |
subBuilder = command_.toBuilder(); | |
} | |
command_ = input.readMessage(org.apache.mesos.Protos.CommandInfo.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(command_); | |
command_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000040; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.HealthCheck.class, org.apache.mesos.Protos.HealthCheck.Builder.class); | |
} | |
public static com.google.protobuf.Parser<HealthCheck> PARSER = | |
new com.google.protobuf.AbstractParser<HealthCheck>() { | |
public HealthCheck parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new HealthCheck(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<HealthCheck> getParserForType() { | |
return PARSER; | |
} | |
public interface HTTPOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.HealthCheck.HTTP) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required uint32 port = 1;</code> | |
* | |
* <pre> | |
* Port to send the HTTP request. | |
* </pre> | |
*/ | |
boolean hasPort(); | |
/** | |
* <code>required uint32 port = 1;</code> | |
* | |
* <pre> | |
* Port to send the HTTP request. | |
* </pre> | |
*/ | |
int getPort(); | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
boolean hasPath(); | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
java.lang.String getPath(); | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
com.google.protobuf.ByteString | |
getPathBytes(); | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
java.util.List<java.lang.Integer> getStatusesList(); | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
int getStatusesCount(); | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
int getStatuses(int index); | |
} | |
/** | |
* Protobuf type {@code mesos.HealthCheck.HTTP} | |
* | |
* <pre> | |
* Describes an HTTP health check. | |
* </pre> | |
*/ | |
public static final class HTTP extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.HealthCheck.HTTP) | |
HTTPOrBuilder { | |
// Use HTTP.newBuilder() to construct. | |
private HTTP(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private HTTP(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final HTTP defaultInstance; | |
public static HTTP getDefaultInstance() { | |
return defaultInstance; | |
} | |
public HTTP getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private HTTP( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
initFields(); | |
int mutable_bitField0_ = 0; | |
com.google.protobuf.UnknownFieldSet.Builder unknownFields = | |
com.google.protobuf.UnknownFieldSet.newBuilder(); | |
try { | |
boolean done = false; | |
while (!done) { | |
int tag = input.readTag(); | |
switch (tag) { | |
case 0: | |
done = true; | |
break; | |
default: { | |
if (!parseUnknownField(input, unknownFields, | |
extensionRegistry, tag)) { | |
done = true; | |
} | |
break; | |
} | |
case 8: { | |
bitField0_ |= 0x00000001; | |
port_ = input.readUInt32(); | |
break; | |
} | |
case 18: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000002; | |
path_ = bs; | |
break; | |
} | |
case 32: { | |
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { | |
statuses_ = new java.util.ArrayList<java.lang.Integer>(); | |
mutable_bitField0_ |= 0x00000004; | |
} | |
statuses_.add(input.readUInt32()); | |
break; | |
} | |
case 34: { | |
int length = input.readRawVarint32(); | |
int limit = input.pushLimit(length); | |
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { | |
statuses_ = new java.util.ArrayList<java.lang.Integer>(); | |
mutable_bitField0_ |= 0x00000004; | |
} | |
while (input.getBytesUntilLimit() > 0) { | |
statuses_.add(input.readUInt32()); | |
} | |
input.popLimit(limit); | |
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_ & 0x00000004) == 0x00000004)) { | |
statuses_ = java.util.Collections.unmodifiableList(statuses_); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_HTTP_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_HTTP_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.HealthCheck.HTTP.class, org.apache.mesos.Protos.HealthCheck.HTTP.Builder.class); | |
} | |
public static com.google.protobuf.Parser<HTTP> PARSER = | |
new com.google.protobuf.AbstractParser<HTTP>() { | |
public HTTP parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new HTTP(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<HTTP> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int PORT_FIELD_NUMBER = 1; | |
private int port_; | |
/** | |
* <code>required uint32 port = 1;</code> | |
* | |
* <pre> | |
* Port to send the HTTP request. | |
* </pre> | |
*/ | |
public boolean hasPort() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required uint32 port = 1;</code> | |
* | |
* <pre> | |
* Port to send the HTTP request. | |
* </pre> | |
*/ | |
public int getPort() { | |
return port_; | |
} | |
public static final int PATH_FIELD_NUMBER = 2; | |
private java.lang.Object path_; | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public boolean hasPath() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public java.lang.String getPath() { | |
java.lang.Object ref = path_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
path_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getPathBytes() { | |
java.lang.Object ref = path_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
path_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int STATUSES_FIELD_NUMBER = 4; | |
private java.util.List<java.lang.Integer> statuses_; | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public java.util.List<java.lang.Integer> | |
getStatusesList() { | |
return statuses_; | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public int getStatusesCount() { | |
return statuses_.size(); | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public int getStatuses(int index) { | |
return statuses_.get(index); | |
} | |
private void initFields() { | |
port_ = 0; | |
path_ = "/"; | |
statuses_ = java.util.Collections.emptyList(); | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasPort()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeUInt32(1, port_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeBytes(2, getPathBytes()); | |
} | |
for (int i = 0; i < statuses_.size(); i++) { | |
output.writeUInt32(4, statuses_.get(i)); | |
} | |
getUnknownFields().writeTo(output); | |
} | |
private int memoizedSerializedSize = -1; | |
public int getSerializedSize() { | |
int size = memoizedSerializedSize; | |
if (size != -1) return size; | |
size = 0; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt32Size(1, port_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(2, getPathBytes()); | |
} | |
{ | |
int dataSize = 0; | |
for (int i = 0; i < statuses_.size(); i++) { | |
dataSize += com.google.protobuf.CodedOutputStream | |
.computeUInt32SizeNoTag(statuses_.get(i)); | |
} | |
size += dataSize; | |
size += 1 * getStatusesList().size(); | |
} | |
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.Protos.HealthCheck.HTTP parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.HealthCheck.HTTP 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.Protos.HealthCheck.HTTP 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.HealthCheck.HTTP} | |
* | |
* <pre> | |
* Describes an HTTP health check. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.HealthCheck.HTTP) | |
org.apache.mesos.Protos.HealthCheck.HTTPOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_HTTP_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_HTTP_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.HealthCheck.HTTP.class, org.apache.mesos.Protos.HealthCheck.HTTP.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.HealthCheck.HTTP.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(); | |
port_ = 0; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
path_ = "/"; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
statuses_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_HTTP_descriptor; | |
} | |
public org.apache.mesos.Protos.HealthCheck.HTTP getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.HealthCheck.HTTP.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.HealthCheck.HTTP build() { | |
org.apache.mesos.Protos.HealthCheck.HTTP result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.HealthCheck.HTTP buildPartial() { | |
org.apache.mesos.Protos.HealthCheck.HTTP result = new org.apache.mesos.Protos.HealthCheck.HTTP(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.port_ = port_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.path_ = path_; | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
statuses_ = java.util.Collections.unmodifiableList(statuses_); | |
bitField0_ = (bitField0_ & ~0x00000004); | |
} | |
result.statuses_ = statuses_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.HealthCheck.HTTP) { | |
return mergeFrom((org.apache.mesos.Protos.HealthCheck.HTTP)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.HealthCheck.HTTP other) { | |
if (other == org.apache.mesos.Protos.HealthCheck.HTTP.getDefaultInstance()) return this; | |
if (other.hasPort()) { | |
setPort(other.getPort()); | |
} | |
if (other.hasPath()) { | |
bitField0_ |= 0x00000002; | |
path_ = other.path_; | |
onChanged(); | |
} | |
if (!other.statuses_.isEmpty()) { | |
if (statuses_.isEmpty()) { | |
statuses_ = other.statuses_; | |
bitField0_ = (bitField0_ & ~0x00000004); | |
} else { | |
ensureStatusesIsMutable(); | |
statuses_.addAll(other.statuses_); | |
} | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasPort()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.HealthCheck.HTTP parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.HealthCheck.HTTP) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private int port_ ; | |
/** | |
* <code>required uint32 port = 1;</code> | |
* | |
* <pre> | |
* Port to send the HTTP request. | |
* </pre> | |
*/ | |
public boolean hasPort() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required uint32 port = 1;</code> | |
* | |
* <pre> | |
* Port to send the HTTP request. | |
* </pre> | |
*/ | |
public int getPort() { | |
return port_; | |
} | |
/** | |
* <code>required uint32 port = 1;</code> | |
* | |
* <pre> | |
* Port to send the HTTP request. | |
* </pre> | |
*/ | |
public Builder setPort(int value) { | |
bitField0_ |= 0x00000001; | |
port_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required uint32 port = 1;</code> | |
* | |
* <pre> | |
* Port to send the HTTP request. | |
* </pre> | |
*/ | |
public Builder clearPort() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
port_ = 0; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object path_ = "/"; | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public boolean hasPath() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public java.lang.String getPath() { | |
java.lang.Object ref = path_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
path_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getPathBytes() { | |
java.lang.Object ref = path_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
path_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public Builder setPath( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000002; | |
path_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public Builder clearPath() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
path_ = getDefaultInstance().getPath(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string path = 2 [default = "/"];</code> | |
* | |
* <pre> | |
* HTTP request path. | |
* </pre> | |
*/ | |
public Builder setPathBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000002; | |
path_ = value; | |
onChanged(); | |
return this; | |
} | |
private java.util.List<java.lang.Integer> statuses_ = java.util.Collections.emptyList(); | |
private void ensureStatusesIsMutable() { | |
if (!((bitField0_ & 0x00000004) == 0x00000004)) { | |
statuses_ = new java.util.ArrayList<java.lang.Integer>(statuses_); | |
bitField0_ |= 0x00000004; | |
} | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public java.util.List<java.lang.Integer> | |
getStatusesList() { | |
return java.util.Collections.unmodifiableList(statuses_); | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public int getStatusesCount() { | |
return statuses_.size(); | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public int getStatuses(int index) { | |
return statuses_.get(index); | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public Builder setStatuses( | |
int index, int value) { | |
ensureStatusesIsMutable(); | |
statuses_.set(index, value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public Builder addStatuses(int value) { | |
ensureStatusesIsMutable(); | |
statuses_.add(value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public Builder addAllStatuses( | |
java.lang.Iterable<? extends java.lang.Integer> values) { | |
ensureStatusesIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, statuses_); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated uint32 statuses = 4;</code> | |
* | |
* <pre> | |
* Expected response statuses. Not specifying any statuses implies | |
* that any returned status is acceptable. | |
* </pre> | |
*/ | |
public Builder clearStatuses() { | |
statuses_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000004); | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.HealthCheck.HTTP) | |
} | |
static { | |
defaultInstance = new HTTP(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.HealthCheck.HTTP) | |
} | |
private int bitField0_; | |
public static final int HTTP_FIELD_NUMBER = 1; | |
private org.apache.mesos.Protos.HealthCheck.HTTP http_; | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public boolean hasHttp() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.HealthCheck.HTTP getHttp() { | |
return http_; | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.HealthCheck.HTTPOrBuilder getHttpOrBuilder() { | |
return http_; | |
} | |
public static final int DELAY_SECONDS_FIELD_NUMBER = 2; | |
private double delaySeconds_; | |
/** | |
* <code>optional double delay_seconds = 2 [default = 15];</code> | |
* | |
* <pre> | |
* Amount of time to wait until starting the health checks. | |
* </pre> | |
*/ | |
public boolean hasDelaySeconds() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional double delay_seconds = 2 [default = 15];</code> | |
* | |
* <pre> | |
* Amount of time to wait until starting the health checks. | |
* </pre> | |
*/ | |
public double getDelaySeconds() { | |
return delaySeconds_; | |
} | |
public static final int INTERVAL_SECONDS_FIELD_NUMBER = 3; | |
private double intervalSeconds_; | |
/** | |
* <code>optional double interval_seconds = 3 [default = 10];</code> | |
* | |
* <pre> | |
* Interval between health checks. | |
* </pre> | |
*/ | |
public boolean hasIntervalSeconds() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional double interval_seconds = 3 [default = 10];</code> | |
* | |
* <pre> | |
* Interval between health checks. | |
* </pre> | |
*/ | |
public double getIntervalSeconds() { | |
return intervalSeconds_; | |
} | |
public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 4; | |
private double timeoutSeconds_; | |
/** | |
* <code>optional double timeout_seconds = 4 [default = 20];</code> | |
* | |
* <pre> | |
* Amount of time to wait for the health check to complete. | |
* </pre> | |
*/ | |
public boolean hasTimeoutSeconds() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional double timeout_seconds = 4 [default = 20];</code> | |
* | |
* <pre> | |
* Amount of time to wait for the health check to complete. | |
* </pre> | |
*/ | |
public double getTimeoutSeconds() { | |
return timeoutSeconds_; | |
} | |
public static final int CONSECUTIVE_FAILURES_FIELD_NUMBER = 5; | |
private int consecutiveFailures_; | |
/** | |
* <code>optional uint32 consecutive_failures = 5 [default = 3];</code> | |
* | |
* <pre> | |
* Number of consecutive failures until considered unhealthy. | |
* </pre> | |
*/ | |
public boolean hasConsecutiveFailures() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional uint32 consecutive_failures = 5 [default = 3];</code> | |
* | |
* <pre> | |
* Number of consecutive failures until considered unhealthy. | |
* </pre> | |
*/ | |
public int getConsecutiveFailures() { | |
return consecutiveFailures_; | |
} | |
public static final int GRACE_PERIOD_SECONDS_FIELD_NUMBER = 6; | |
private double gracePeriodSeconds_; | |
/** | |
* <code>optional double grace_period_seconds = 6 [default = 10];</code> | |
* | |
* <pre> | |
* Amount of time to allow failed health checks since launch. | |
* </pre> | |
*/ | |
public boolean hasGracePeriodSeconds() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional double grace_period_seconds = 6 [default = 10];</code> | |
* | |
* <pre> | |
* Amount of time to allow failed health checks since launch. | |
* </pre> | |
*/ | |
public double getGracePeriodSeconds() { | |
return gracePeriodSeconds_; | |
} | |
public static final int COMMAND_FIELD_NUMBER = 7; | |
private org.apache.mesos.Protos.CommandInfo command_; | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public boolean hasCommand() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo getCommand() { | |
return command_; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfoOrBuilder getCommandOrBuilder() { | |
return command_; | |
} | |
private void initFields() { | |
http_ = org.apache.mesos.Protos.HealthCheck.HTTP.getDefaultInstance(); | |
delaySeconds_ = 15D; | |
intervalSeconds_ = 10D; | |
timeoutSeconds_ = 20D; | |
consecutiveFailures_ = 3; | |
gracePeriodSeconds_ = 10D; | |
command_ = org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (hasHttp()) { | |
if (!getHttp().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasCommand()) { | |
if (!getCommand().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, http_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeDouble(2, delaySeconds_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeDouble(3, intervalSeconds_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeDouble(4, timeoutSeconds_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeUInt32(5, consecutiveFailures_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
output.writeDouble(6, gracePeriodSeconds_); | |
} | |
if (((bitField0_ & 0x00000040) == 0x00000040)) { | |
output.writeMessage(7, command_); | |
} | |
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, http_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(2, delaySeconds_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(3, intervalSeconds_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(4, timeoutSeconds_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt32Size(5, consecutiveFailures_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(6, gracePeriodSeconds_); | |
} | |
if (((bitField0_ & 0x00000040) == 0x00000040)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(7, command_); | |
} | |
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.Protos.HealthCheck parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.HealthCheck parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.HealthCheck parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.HealthCheck parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.HealthCheck parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.HealthCheck parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.HealthCheck parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.HealthCheck parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.HealthCheck parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.HealthCheck 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.Protos.HealthCheck 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.HealthCheck} | |
* | |
* <pre> | |
** | |
* Describes a health check for a task or executor (or any arbitrary | |
* process/command). A "strategy" is picked by specifying one of the | |
* optional fields, currently only 'http' and 'command' are | |
* supported. Specifying more than one strategy is an error. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.HealthCheck) | |
org.apache.mesos.Protos.HealthCheckOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.HealthCheck.class, org.apache.mesos.Protos.HealthCheck.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.HealthCheck.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getHttpFieldBuilder(); | |
getCommandFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
if (httpBuilder_ == null) { | |
http_ = org.apache.mesos.Protos.HealthCheck.HTTP.getDefaultInstance(); | |
} else { | |
httpBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000001); | |
delaySeconds_ = 15D; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
intervalSeconds_ = 10D; | |
bitField0_ = (bitField0_ & ~0x00000004); | |
timeoutSeconds_ = 20D; | |
bitField0_ = (bitField0_ & ~0x00000008); | |
consecutiveFailures_ = 3; | |
bitField0_ = (bitField0_ & ~0x00000010); | |
gracePeriodSeconds_ = 10D; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
if (commandBuilder_ == null) { | |
command_ = org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
} else { | |
commandBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000040); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_HealthCheck_descriptor; | |
} | |
public org.apache.mesos.Protos.HealthCheck getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.HealthCheck.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.HealthCheck build() { | |
org.apache.mesos.Protos.HealthCheck result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.HealthCheck buildPartial() { | |
org.apache.mesos.Protos.HealthCheck result = new org.apache.mesos.Protos.HealthCheck(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
if (httpBuilder_ == null) { | |
result.http_ = http_; | |
} else { | |
result.http_ = httpBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.delaySeconds_ = delaySeconds_; | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
result.intervalSeconds_ = intervalSeconds_; | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
result.timeoutSeconds_ = timeoutSeconds_; | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
result.consecutiveFailures_ = consecutiveFailures_; | |
if (((from_bitField0_ & 0x00000020) == 0x00000020)) { | |
to_bitField0_ |= 0x00000020; | |
} | |
result.gracePeriodSeconds_ = gracePeriodSeconds_; | |
if (((from_bitField0_ & 0x00000040) == 0x00000040)) { | |
to_bitField0_ |= 0x00000040; | |
} | |
if (commandBuilder_ == null) { | |
result.command_ = command_; | |
} else { | |
result.command_ = commandBuilder_.build(); | |
} | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.HealthCheck) { | |
return mergeFrom((org.apache.mesos.Protos.HealthCheck)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.HealthCheck other) { | |
if (other == org.apache.mesos.Protos.HealthCheck.getDefaultInstance()) return this; | |
if (other.hasHttp()) { | |
mergeHttp(other.getHttp()); | |
} | |
if (other.hasDelaySeconds()) { | |
setDelaySeconds(other.getDelaySeconds()); | |
} | |
if (other.hasIntervalSeconds()) { | |
setIntervalSeconds(other.getIntervalSeconds()); | |
} | |
if (other.hasTimeoutSeconds()) { | |
setTimeoutSeconds(other.getTimeoutSeconds()); | |
} | |
if (other.hasConsecutiveFailures()) { | |
setConsecutiveFailures(other.getConsecutiveFailures()); | |
} | |
if (other.hasGracePeriodSeconds()) { | |
setGracePeriodSeconds(other.getGracePeriodSeconds()); | |
} | |
if (other.hasCommand()) { | |
mergeCommand(other.getCommand()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (hasHttp()) { | |
if (!getHttp().isInitialized()) { | |
return false; | |
} | |
} | |
if (hasCommand()) { | |
if (!getCommand().isInitialized()) { | |
return false; | |
} | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.HealthCheck parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.HealthCheck) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private org.apache.mesos.Protos.HealthCheck.HTTP http_ = org.apache.mesos.Protos.HealthCheck.HTTP.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.HealthCheck.HTTP, org.apache.mesos.Protos.HealthCheck.HTTP.Builder, org.apache.mesos.Protos.HealthCheck.HTTPOrBuilder> httpBuilder_; | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public boolean hasHttp() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.HealthCheck.HTTP getHttp() { | |
if (httpBuilder_ == null) { | |
return http_; | |
} else { | |
return httpBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public Builder setHttp(org.apache.mesos.Protos.HealthCheck.HTTP value) { | |
if (httpBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
http_ = value; | |
onChanged(); | |
} else { | |
httpBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public Builder setHttp( | |
org.apache.mesos.Protos.HealthCheck.HTTP.Builder builderForValue) { | |
if (httpBuilder_ == null) { | |
http_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
httpBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public Builder mergeHttp(org.apache.mesos.Protos.HealthCheck.HTTP value) { | |
if (httpBuilder_ == null) { | |
if (((bitField0_ & 0x00000001) == 0x00000001) && | |
http_ != org.apache.mesos.Protos.HealthCheck.HTTP.getDefaultInstance()) { | |
http_ = | |
org.apache.mesos.Protos.HealthCheck.HTTP.newBuilder(http_).mergeFrom(value).buildPartial(); | |
} else { | |
http_ = value; | |
} | |
onChanged(); | |
} else { | |
httpBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public Builder clearHttp() { | |
if (httpBuilder_ == null) { | |
http_ = org.apache.mesos.Protos.HealthCheck.HTTP.getDefaultInstance(); | |
onChanged(); | |
} else { | |
httpBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.HealthCheck.HTTP.Builder getHttpBuilder() { | |
bitField0_ |= 0x00000001; | |
onChanged(); | |
return getHttpFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.HealthCheck.HTTPOrBuilder getHttpOrBuilder() { | |
if (httpBuilder_ != null) { | |
return httpBuilder_.getMessageOrBuilder(); | |
} else { | |
return http_; | |
} | |
} | |
/** | |
* <code>optional .mesos.HealthCheck.HTTP http = 1;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.HealthCheck.HTTP, org.apache.mesos.Protos.HealthCheck.HTTP.Builder, org.apache.mesos.Protos.HealthCheck.HTTPOrBuilder> | |
getHttpFieldBuilder() { | |
if (httpBuilder_ == null) { | |
httpBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.HealthCheck.HTTP, org.apache.mesos.Protos.HealthCheck.HTTP.Builder, org.apache.mesos.Protos.HealthCheck.HTTPOrBuilder>( | |
getHttp(), | |
getParentForChildren(), | |
isClean()); | |
http_ = null; | |
} | |
return httpBuilder_; | |
} | |
private double delaySeconds_ = 15D; | |
/** | |
* <code>optional double delay_seconds = 2 [default = 15];</code> | |
* | |
* <pre> | |
* Amount of time to wait until starting the health checks. | |
* </pre> | |
*/ | |
public boolean hasDelaySeconds() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional double delay_seconds = 2 [default = 15];</code> | |
* | |
* <pre> | |
* Amount of time to wait until starting the health checks. | |
* </pre> | |
*/ | |
public double getDelaySeconds() { | |
return delaySeconds_; | |
} | |
/** | |
* <code>optional double delay_seconds = 2 [default = 15];</code> | |
* | |
* <pre> | |
* Amount of time to wait until starting the health checks. | |
* </pre> | |
*/ | |
public Builder setDelaySeconds(double value) { | |
bitField0_ |= 0x00000002; | |
delaySeconds_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double delay_seconds = 2 [default = 15];</code> | |
* | |
* <pre> | |
* Amount of time to wait until starting the health checks. | |
* </pre> | |
*/ | |
public Builder clearDelaySeconds() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
delaySeconds_ = 15D; | |
onChanged(); | |
return this; | |
} | |
private double intervalSeconds_ = 10D; | |
/** | |
* <code>optional double interval_seconds = 3 [default = 10];</code> | |
* | |
* <pre> | |
* Interval between health checks. | |
* </pre> | |
*/ | |
public boolean hasIntervalSeconds() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional double interval_seconds = 3 [default = 10];</code> | |
* | |
* <pre> | |
* Interval between health checks. | |
* </pre> | |
*/ | |
public double getIntervalSeconds() { | |
return intervalSeconds_; | |
} | |
/** | |
* <code>optional double interval_seconds = 3 [default = 10];</code> | |
* | |
* <pre> | |
* Interval between health checks. | |
* </pre> | |
*/ | |
public Builder setIntervalSeconds(double value) { | |
bitField0_ |= 0x00000004; | |
intervalSeconds_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double interval_seconds = 3 [default = 10];</code> | |
* | |
* <pre> | |
* Interval between health checks. | |
* </pre> | |
*/ | |
public Builder clearIntervalSeconds() { | |
bitField0_ = (bitField0_ & ~0x00000004); | |
intervalSeconds_ = 10D; | |
onChanged(); | |
return this; | |
} | |
private double timeoutSeconds_ = 20D; | |
/** | |
* <code>optional double timeout_seconds = 4 [default = 20];</code> | |
* | |
* <pre> | |
* Amount of time to wait for the health check to complete. | |
* </pre> | |
*/ | |
public boolean hasTimeoutSeconds() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional double timeout_seconds = 4 [default = 20];</code> | |
* | |
* <pre> | |
* Amount of time to wait for the health check to complete. | |
* </pre> | |
*/ | |
public double getTimeoutSeconds() { | |
return timeoutSeconds_; | |
} | |
/** | |
* <code>optional double timeout_seconds = 4 [default = 20];</code> | |
* | |
* <pre> | |
* Amount of time to wait for the health check to complete. | |
* </pre> | |
*/ | |
public Builder setTimeoutSeconds(double value) { | |
bitField0_ |= 0x00000008; | |
timeoutSeconds_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double timeout_seconds = 4 [default = 20];</code> | |
* | |
* <pre> | |
* Amount of time to wait for the health check to complete. | |
* </pre> | |
*/ | |
public Builder clearTimeoutSeconds() { | |
bitField0_ = (bitField0_ & ~0x00000008); | |
timeoutSeconds_ = 20D; | |
onChanged(); | |
return this; | |
} | |
private int consecutiveFailures_ = 3; | |
/** | |
* <code>optional uint32 consecutive_failures = 5 [default = 3];</code> | |
* | |
* <pre> | |
* Number of consecutive failures until considered unhealthy. | |
* </pre> | |
*/ | |
public boolean hasConsecutiveFailures() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional uint32 consecutive_failures = 5 [default = 3];</code> | |
* | |
* <pre> | |
* Number of consecutive failures until considered unhealthy. | |
* </pre> | |
*/ | |
public int getConsecutiveFailures() { | |
return consecutiveFailures_; | |
} | |
/** | |
* <code>optional uint32 consecutive_failures = 5 [default = 3];</code> | |
* | |
* <pre> | |
* Number of consecutive failures until considered unhealthy. | |
* </pre> | |
*/ | |
public Builder setConsecutiveFailures(int value) { | |
bitField0_ |= 0x00000010; | |
consecutiveFailures_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint32 consecutive_failures = 5 [default = 3];</code> | |
* | |
* <pre> | |
* Number of consecutive failures until considered unhealthy. | |
* </pre> | |
*/ | |
public Builder clearConsecutiveFailures() { | |
bitField0_ = (bitField0_ & ~0x00000010); | |
consecutiveFailures_ = 3; | |
onChanged(); | |
return this; | |
} | |
private double gracePeriodSeconds_ = 10D; | |
/** | |
* <code>optional double grace_period_seconds = 6 [default = 10];</code> | |
* | |
* <pre> | |
* Amount of time to allow failed health checks since launch. | |
* </pre> | |
*/ | |
public boolean hasGracePeriodSeconds() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional double grace_period_seconds = 6 [default = 10];</code> | |
* | |
* <pre> | |
* Amount of time to allow failed health checks since launch. | |
* </pre> | |
*/ | |
public double getGracePeriodSeconds() { | |
return gracePeriodSeconds_; | |
} | |
/** | |
* <code>optional double grace_period_seconds = 6 [default = 10];</code> | |
* | |
* <pre> | |
* Amount of time to allow failed health checks since launch. | |
* </pre> | |
*/ | |
public Builder setGracePeriodSeconds(double value) { | |
bitField0_ |= 0x00000020; | |
gracePeriodSeconds_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double grace_period_seconds = 6 [default = 10];</code> | |
* | |
* <pre> | |
* Amount of time to allow failed health checks since launch. | |
* </pre> | |
*/ | |
public Builder clearGracePeriodSeconds() { | |
bitField0_ = (bitField0_ & ~0x00000020); | |
gracePeriodSeconds_ = 10D; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.CommandInfo command_ = org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo, org.apache.mesos.Protos.CommandInfo.Builder, org.apache.mesos.Protos.CommandInfoOrBuilder> commandBuilder_; | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public boolean hasCommand() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo getCommand() { | |
if (commandBuilder_ == null) { | |
return command_; | |
} else { | |
return commandBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public Builder setCommand(org.apache.mesos.Protos.CommandInfo value) { | |
if (commandBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
command_ = value; | |
onChanged(); | |
} else { | |
commandBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000040; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public Builder setCommand( | |
org.apache.mesos.Protos.CommandInfo.Builder builderForValue) { | |
if (commandBuilder_ == null) { | |
command_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
commandBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000040; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public Builder mergeCommand(org.apache.mesos.Protos.CommandInfo value) { | |
if (commandBuilder_ == null) { | |
if (((bitField0_ & 0x00000040) == 0x00000040) && | |
command_ != org.apache.mesos.Protos.CommandInfo.getDefaultInstance()) { | |
command_ = | |
org.apache.mesos.Protos.CommandInfo.newBuilder(command_).mergeFrom(value).buildPartial(); | |
} else { | |
command_ = value; | |
} | |
onChanged(); | |
} else { | |
commandBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000040; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public Builder clearCommand() { | |
if (commandBuilder_ == null) { | |
command_ = org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
onChanged(); | |
} else { | |
commandBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000040); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.Builder getCommandBuilder() { | |
bitField0_ |= 0x00000040; | |
onChanged(); | |
return getCommandFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfoOrBuilder getCommandOrBuilder() { | |
if (commandBuilder_ != null) { | |
return commandBuilder_.getMessageOrBuilder(); | |
} else { | |
return command_; | |
} | |
} | |
/** | |
* <code>optional .mesos.CommandInfo command = 7;</code> | |
* | |
* <pre> | |
* Command health check. | |
* </pre> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo, org.apache.mesos.Protos.CommandInfo.Builder, org.apache.mesos.Protos.CommandInfoOrBuilder> | |
getCommandFieldBuilder() { | |
if (commandBuilder_ == null) { | |
commandBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo, org.apache.mesos.Protos.CommandInfo.Builder, org.apache.mesos.Protos.CommandInfoOrBuilder>( | |
getCommand(), | |
getParentForChildren(), | |
isClean()); | |
command_ = null; | |
} | |
return commandBuilder_; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.HealthCheck) | |
} | |
static { | |
defaultInstance = new HealthCheck(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.HealthCheck) | |
} | |
public interface CommandInfoOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.CommandInfo) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
boolean hasContainer(); | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo getContainer(); | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.CommandInfo.ContainerInfoOrBuilder getContainerOrBuilder(); | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
java.util.List<org.apache.mesos.Protos.CommandInfo.URI> | |
getUrisList(); | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
org.apache.mesos.Protos.CommandInfo.URI getUris(int index); | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
int getUrisCount(); | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
java.util.List<? extends org.apache.mesos.Protos.CommandInfo.URIOrBuilder> | |
getUrisOrBuilderList(); | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
org.apache.mesos.Protos.CommandInfo.URIOrBuilder getUrisOrBuilder( | |
int index); | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
boolean hasEnvironment(); | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
org.apache.mesos.Protos.Environment getEnvironment(); | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
org.apache.mesos.Protos.EnvironmentOrBuilder getEnvironmentOrBuilder(); | |
/** | |
* <code>optional bool shell = 6 [default = true];</code> | |
* | |
* <pre> | |
* There are two ways to specify the command: | |
* 1) If 'shell == true', the command will be launched via shell | |
* (i.e., /bin/sh -c 'value'). The 'value' specified will be | |
* treated as the shell command. The 'arguments' will be ignored. | |
* 2) If 'shell == false', the command will be launched by passing | |
* arguments to an executable. The 'value' specified will be | |
* treated as the filename of the executable. The 'arguments' | |
* will be treated as the arguments to the executable. This is | |
* similar to how POSIX exec families launch processes (i.e., | |
* execlp(value, arguments(0), arguments(1), ...)). | |
* NOTE: The field 'value' is changed from 'required' to 'optional' | |
* in 0.20.0. It will only cause issues if a new framework is | |
* connecting to an old master. | |
* </pre> | |
*/ | |
boolean hasShell(); | |
/** | |
* <code>optional bool shell = 6 [default = true];</code> | |
* | |
* <pre> | |
* There are two ways to specify the command: | |
* 1) If 'shell == true', the command will be launched via shell | |
* (i.e., /bin/sh -c 'value'). The 'value' specified will be | |
* treated as the shell command. The 'arguments' will be ignored. | |
* 2) If 'shell == false', the command will be launched by passing | |
* arguments to an executable. The 'value' specified will be | |
* treated as the filename of the executable. The 'arguments' | |
* will be treated as the arguments to the executable. This is | |
* similar to how POSIX exec families launch processes (i.e., | |
* execlp(value, arguments(0), arguments(1), ...)). | |
* NOTE: The field 'value' is changed from 'required' to 'optional' | |
* in 0.20.0. It will only cause issues if a new framework is | |
* connecting to an old master. | |
* </pre> | |
*/ | |
boolean getShell(); | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
com.google.protobuf.ProtocolStringList | |
getArgumentsList(); | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
int getArgumentsCount(); | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
java.lang.String getArguments(int index); | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getArgumentsBytes(int index); | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
boolean hasUser(); | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
java.lang.String getUser(); | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
com.google.protobuf.ByteString | |
getUserBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.CommandInfo} | |
* | |
* <pre> | |
** | |
* Describes a command, executed via: '/bin/sh -c value'. Any URIs specified | |
* are fetched before executing the command. If the executable field for an | |
* uri is set, executable file permission is set on the downloaded file. | |
* Otherwise, if the downloaded file has a recognized archive extension | |
* (currently [compressed] tar and zip) it is extracted into the executor's | |
* working directory. This extraction can be disabled by setting `extract` to | |
* false. In addition, any environment variables are set before executing | |
* the command (so they can be used to "parameterize" your command). | |
* </pre> | |
*/ | |
public static final class CommandInfo extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.CommandInfo) | |
CommandInfoOrBuilder { | |
// Use CommandInfo.newBuilder() to construct. | |
private CommandInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private CommandInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final CommandInfo defaultInstance; | |
public static CommandInfo getDefaultInstance() { | |
return defaultInstance; | |
} | |
public CommandInfo getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private CommandInfo( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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_ & 0x00000002) == 0x00000002)) { | |
uris_ = new java.util.ArrayList<org.apache.mesos.Protos.CommandInfo.URI>(); | |
mutable_bitField0_ |= 0x00000002; | |
} | |
uris_.add(input.readMessage(org.apache.mesos.Protos.CommandInfo.URI.PARSER, extensionRegistry)); | |
break; | |
} | |
case 18: { | |
org.apache.mesos.Protos.Environment.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
subBuilder = environment_.toBuilder(); | |
} | |
environment_ = input.readMessage(org.apache.mesos.Protos.Environment.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(environment_); | |
environment_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000002; | |
break; | |
} | |
case 26: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000008; | |
value_ = bs; | |
break; | |
} | |
case 34: { | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
subBuilder = container_.toBuilder(); | |
} | |
container_ = input.readMessage(org.apache.mesos.Protos.CommandInfo.ContainerInfo.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(container_); | |
container_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000001; | |
break; | |
} | |
case 42: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000010; | |
user_ = bs; | |
break; | |
} | |
case 48: { | |
bitField0_ |= 0x00000004; | |
shell_ = input.readBool(); | |
break; | |
} | |
case 58: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { | |
arguments_ = new com.google.protobuf.LazyStringArrayList(); | |
mutable_bitField0_ |= 0x00000020; | |
} | |
arguments_.add(bs); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { | |
uris_ = java.util.Collections.unmodifiableList(uris_); | |
} | |
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { | |
arguments_ = arguments_.getUnmodifiableView(); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.CommandInfo.class, org.apache.mesos.Protos.CommandInfo.Builder.class); | |
} | |
public static com.google.protobuf.Parser<CommandInfo> PARSER = | |
new com.google.protobuf.AbstractParser<CommandInfo>() { | |
public CommandInfo parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new CommandInfo(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<CommandInfo> getParserForType() { | |
return PARSER; | |
} | |
public interface URIOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.CommandInfo.URI) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
/** | |
* <code>optional bool executable = 2;</code> | |
*/ | |
boolean hasExecutable(); | |
/** | |
* <code>optional bool executable = 2;</code> | |
*/ | |
boolean getExecutable(); | |
/** | |
* <code>optional bool extract = 3 [default = true];</code> | |
*/ | |
boolean hasExtract(); | |
/** | |
* <code>optional bool extract = 3 [default = true];</code> | |
*/ | |
boolean getExtract(); | |
} | |
/** | |
* Protobuf type {@code mesos.CommandInfo.URI} | |
*/ | |
public static final class URI extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.CommandInfo.URI) | |
URIOrBuilder { | |
// Use URI.newBuilder() to construct. | |
private URI(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private URI(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final URI defaultInstance; | |
public static URI getDefaultInstance() { | |
return defaultInstance; | |
} | |
public URI getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private URI( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
value_ = bs; | |
break; | |
} | |
case 16: { | |
bitField0_ |= 0x00000002; | |
executable_ = input.readBool(); | |
break; | |
} | |
case 24: { | |
bitField0_ |= 0x00000004; | |
extract_ = input.readBool(); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_URI_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_URI_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.CommandInfo.URI.class, org.apache.mesos.Protos.CommandInfo.URI.Builder.class); | |
} | |
public static com.google.protobuf.Parser<URI> PARSER = | |
new com.google.protobuf.AbstractParser<URI>() { | |
public URI parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new URI(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<URI> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private java.lang.Object value_; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int EXECUTABLE_FIELD_NUMBER = 2; | |
private boolean executable_; | |
/** | |
* <code>optional bool executable = 2;</code> | |
*/ | |
public boolean hasExecutable() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional bool executable = 2;</code> | |
*/ | |
public boolean getExecutable() { | |
return executable_; | |
} | |
public static final int EXTRACT_FIELD_NUMBER = 3; | |
private boolean extract_; | |
/** | |
* <code>optional bool extract = 3 [default = true];</code> | |
*/ | |
public boolean hasExtract() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional bool extract = 3 [default = true];</code> | |
*/ | |
public boolean getExtract() { | |
return extract_; | |
} | |
private void initFields() { | |
value_ = ""; | |
executable_ = false; | |
extract_ = true; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getValueBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeBool(2, executable_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeBool(3, extract_); | |
} | |
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, getValueBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBoolSize(2, executable_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBoolSize(3, extract_); | |
} | |
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.Protos.CommandInfo.URI parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.URI 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.Protos.CommandInfo.URI 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.CommandInfo.URI} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.CommandInfo.URI) | |
org.apache.mesos.Protos.CommandInfo.URIOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_URI_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_URI_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.CommandInfo.URI.class, org.apache.mesos.Protos.CommandInfo.URI.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.CommandInfo.URI.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(); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
executable_ = false; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
extract_ = true; | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_URI_descriptor; | |
} | |
public org.apache.mesos.Protos.CommandInfo.URI getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.CommandInfo.URI.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.CommandInfo.URI build() { | |
org.apache.mesos.Protos.CommandInfo.URI result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.CommandInfo.URI buildPartial() { | |
org.apache.mesos.Protos.CommandInfo.URI result = new org.apache.mesos.Protos.CommandInfo.URI(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.executable_ = executable_; | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
result.extract_ = extract_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.CommandInfo.URI) { | |
return mergeFrom((org.apache.mesos.Protos.CommandInfo.URI)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.CommandInfo.URI other) { | |
if (other == org.apache.mesos.Protos.CommandInfo.URI.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000001; | |
value_ = other.value_; | |
onChanged(); | |
} | |
if (other.hasExecutable()) { | |
setExecutable(other.getExecutable()); | |
} | |
if (other.hasExtract()) { | |
setExtract(other.getExtract()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.CommandInfo.URI parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.CommandInfo.URI) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
private boolean executable_ ; | |
/** | |
* <code>optional bool executable = 2;</code> | |
*/ | |
public boolean hasExecutable() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional bool executable = 2;</code> | |
*/ | |
public boolean getExecutable() { | |
return executable_; | |
} | |
/** | |
* <code>optional bool executable = 2;</code> | |
*/ | |
public Builder setExecutable(boolean value) { | |
bitField0_ |= 0x00000002; | |
executable_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional bool executable = 2;</code> | |
*/ | |
public Builder clearExecutable() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
executable_ = false; | |
onChanged(); | |
return this; | |
} | |
private boolean extract_ = true; | |
/** | |
* <code>optional bool extract = 3 [default = true];</code> | |
*/ | |
public boolean hasExtract() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional bool extract = 3 [default = true];</code> | |
*/ | |
public boolean getExtract() { | |
return extract_; | |
} | |
/** | |
* <code>optional bool extract = 3 [default = true];</code> | |
*/ | |
public Builder setExtract(boolean value) { | |
bitField0_ |= 0x00000004; | |
extract_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional bool extract = 3 [default = true];</code> | |
*/ | |
public Builder clearExtract() { | |
bitField0_ = (bitField0_ & ~0x00000004); | |
extract_ = true; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.CommandInfo.URI) | |
} | |
static { | |
defaultInstance = new URI(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.CommandInfo.URI) | |
} | |
public interface ContainerInfoOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.CommandInfo.ContainerInfo) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
boolean hasImage(); | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
java.lang.String getImage(); | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
com.google.protobuf.ByteString | |
getImageBytes(); | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
com.google.protobuf.ProtocolStringList | |
getOptionsList(); | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
int getOptionsCount(); | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
java.lang.String getOptions(int index); | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
com.google.protobuf.ByteString | |
getOptionsBytes(int index); | |
} | |
/** | |
* Protobuf type {@code mesos.CommandInfo.ContainerInfo} | |
* | |
* <pre> | |
* Describes a container. | |
* Not all containerizers currently implement ContainerInfo, so it | |
* is possible that a launched task will fail due to supplying this | |
* attribute. | |
* NOTE: The containerizer API is currently in an early beta or | |
* even alpha state. Some details, like the exact semantics of an | |
* "image" or "options" are not yet hardened. | |
* TODO(tillt): Describe the exact scheme and semantics of "image" | |
* and "options". | |
* </pre> | |
*/ | |
public static final class ContainerInfo extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.CommandInfo.ContainerInfo) | |
ContainerInfoOrBuilder { | |
// Use ContainerInfo.newBuilder() to construct. | |
private ContainerInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private ContainerInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final ContainerInfo defaultInstance; | |
public static ContainerInfo getDefaultInstance() { | |
return defaultInstance; | |
} | |
public ContainerInfo getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private ContainerInfo( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
image_ = bs; | |
break; | |
} | |
case 18: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { | |
options_ = new com.google.protobuf.LazyStringArrayList(); | |
mutable_bitField0_ |= 0x00000002; | |
} | |
options_.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_ & 0x00000002) == 0x00000002)) { | |
options_ = options_.getUnmodifiableView(); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_ContainerInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_ContainerInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo.class, org.apache.mesos.Protos.CommandInfo.ContainerInfo.Builder.class); | |
} | |
public static com.google.protobuf.Parser<ContainerInfo> PARSER = | |
new com.google.protobuf.AbstractParser<ContainerInfo>() { | |
public ContainerInfo parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new ContainerInfo(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<ContainerInfo> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int IMAGE_FIELD_NUMBER = 1; | |
private java.lang.Object image_; | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public boolean hasImage() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public java.lang.String getImage() { | |
java.lang.Object ref = image_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
image_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getImageBytes() { | |
java.lang.Object ref = image_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
image_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int OPTIONS_FIELD_NUMBER = 2; | |
private com.google.protobuf.LazyStringList options_; | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public com.google.protobuf.ProtocolStringList | |
getOptionsList() { | |
return options_; | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public int getOptionsCount() { | |
return options_.size(); | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public java.lang.String getOptions(int index) { | |
return options_.get(index); | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getOptionsBytes(int index) { | |
return options_.getByteString(index); | |
} | |
private void initFields() { | |
image_ = ""; | |
options_ = 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; | |
if (!hasImage()) { | |
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, getImageBytes()); | |
} | |
for (int i = 0; i < options_.size(); i++) { | |
output.writeBytes(2, options_.getByteString(i)); | |
} | |
getUnknownFields().writeTo(output); | |
} | |
private int memoizedSerializedSize = -1; | |
public int getSerializedSize() { | |
int size = memoizedSerializedSize; | |
if (size != -1) return size; | |
size = 0; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(1, getImageBytes()); | |
} | |
{ | |
int dataSize = 0; | |
for (int i = 0; i < options_.size(); i++) { | |
dataSize += com.google.protobuf.CodedOutputStream | |
.computeBytesSizeNoTag(options_.getByteString(i)); | |
} | |
size += dataSize; | |
size += 1 * getOptionsList().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.Protos.CommandInfo.ContainerInfo parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo.ContainerInfo 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.Protos.CommandInfo.ContainerInfo 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.CommandInfo.ContainerInfo} | |
* | |
* <pre> | |
* Describes a container. | |
* Not all containerizers currently implement ContainerInfo, so it | |
* is possible that a launched task will fail due to supplying this | |
* attribute. | |
* NOTE: The containerizer API is currently in an early beta or | |
* even alpha state. Some details, like the exact semantics of an | |
* "image" or "options" are not yet hardened. | |
* TODO(tillt): Describe the exact scheme and semantics of "image" | |
* and "options". | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.CommandInfo.ContainerInfo) | |
org.apache.mesos.Protos.CommandInfo.ContainerInfoOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_ContainerInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_ContainerInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo.class, org.apache.mesos.Protos.CommandInfo.ContainerInfo.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.CommandInfo.ContainerInfo.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(); | |
image_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
options_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_ContainerInfo_descriptor; | |
} | |
public org.apache.mesos.Protos.CommandInfo.ContainerInfo getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.CommandInfo.ContainerInfo.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.CommandInfo.ContainerInfo build() { | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.CommandInfo.ContainerInfo buildPartial() { | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo result = new org.apache.mesos.Protos.CommandInfo.ContainerInfo(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.image_ = image_; | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
options_ = options_.getUnmodifiableView(); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} | |
result.options_ = options_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.CommandInfo.ContainerInfo) { | |
return mergeFrom((org.apache.mesos.Protos.CommandInfo.ContainerInfo)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.CommandInfo.ContainerInfo other) { | |
if (other == org.apache.mesos.Protos.CommandInfo.ContainerInfo.getDefaultInstance()) return this; | |
if (other.hasImage()) { | |
bitField0_ |= 0x00000001; | |
image_ = other.image_; | |
onChanged(); | |
} | |
if (!other.options_.isEmpty()) { | |
if (options_.isEmpty()) { | |
options_ = other.options_; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} else { | |
ensureOptionsIsMutable(); | |
options_.addAll(other.options_); | |
} | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasImage()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.CommandInfo.ContainerInfo) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object image_ = ""; | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public boolean hasImage() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public java.lang.String getImage() { | |
java.lang.Object ref = image_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
image_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getImageBytes() { | |
java.lang.Object ref = image_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
image_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public Builder setImage( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
image_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public Builder clearImage() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
image_ = getDefaultInstance().getImage(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string image = 1;</code> | |
* | |
* <pre> | |
* URI describing the container image name. | |
* </pre> | |
*/ | |
public Builder setImageBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
image_ = value; | |
onChanged(); | |
return this; | |
} | |
private com.google.protobuf.LazyStringList options_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
private void ensureOptionsIsMutable() { | |
if (!((bitField0_ & 0x00000002) == 0x00000002)) { | |
options_ = new com.google.protobuf.LazyStringArrayList(options_); | |
bitField0_ |= 0x00000002; | |
} | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public com.google.protobuf.ProtocolStringList | |
getOptionsList() { | |
return options_.getUnmodifiableView(); | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public int getOptionsCount() { | |
return options_.size(); | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public java.lang.String getOptions(int index) { | |
return options_.get(index); | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getOptionsBytes(int index) { | |
return options_.getByteString(index); | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public Builder setOptions( | |
int index, java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureOptionsIsMutable(); | |
options_.set(index, value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public Builder addOptions( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureOptionsIsMutable(); | |
options_.add(value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public Builder addAllOptions( | |
java.lang.Iterable<java.lang.String> values) { | |
ensureOptionsIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, options_); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public Builder clearOptions() { | |
options_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string options = 2;</code> | |
* | |
* <pre> | |
* Describes additional options passed to the containerizer. | |
* </pre> | |
*/ | |
public Builder addOptionsBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureOptionsIsMutable(); | |
options_.add(value); | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.CommandInfo.ContainerInfo) | |
} | |
static { | |
defaultInstance = new ContainerInfo(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.CommandInfo.ContainerInfo) | |
} | |
private int bitField0_; | |
public static final int CONTAINER_FIELD_NUMBER = 4; | |
private org.apache.mesos.Protos.CommandInfo.ContainerInfo container_; | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public boolean hasContainer() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.ContainerInfo getContainer() { | |
return container_; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.ContainerInfoOrBuilder getContainerOrBuilder() { | |
return container_; | |
} | |
public static final int URIS_FIELD_NUMBER = 1; | |
private java.util.List<org.apache.mesos.Protos.CommandInfo.URI> uris_; | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.CommandInfo.URI> getUrisList() { | |
return uris_; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.CommandInfo.URIOrBuilder> | |
getUrisOrBuilderList() { | |
return uris_; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public int getUrisCount() { | |
return uris_.size(); | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.URI getUris(int index) { | |
return uris_.get(index); | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.URIOrBuilder getUrisOrBuilder( | |
int index) { | |
return uris_.get(index); | |
} | |
public static final int ENVIRONMENT_FIELD_NUMBER = 2; | |
private org.apache.mesos.Protos.Environment environment_; | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public boolean hasEnvironment() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Environment getEnvironment() { | |
return environment_; | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.EnvironmentOrBuilder getEnvironmentOrBuilder() { | |
return environment_; | |
} | |
public static final int SHELL_FIELD_NUMBER = 6; | |
private boolean shell_; | |
/** | |
* <code>optional bool shell = 6 [default = true];</code> | |
* | |
* <pre> | |
* There are two ways to specify the command: | |
* 1) If 'shell == true', the command will be launched via shell | |
* (i.e., /bin/sh -c 'value'). The 'value' specified will be | |
* treated as the shell command. The 'arguments' will be ignored. | |
* 2) If 'shell == false', the command will be launched by passing | |
* arguments to an executable. The 'value' specified will be | |
* treated as the filename of the executable. The 'arguments' | |
* will be treated as the arguments to the executable. This is | |
* similar to how POSIX exec families launch processes (i.e., | |
* execlp(value, arguments(0), arguments(1), ...)). | |
* NOTE: The field 'value' is changed from 'required' to 'optional' | |
* in 0.20.0. It will only cause issues if a new framework is | |
* connecting to an old master. | |
* </pre> | |
*/ | |
public boolean hasShell() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional bool shell = 6 [default = true];</code> | |
* | |
* <pre> | |
* There are two ways to specify the command: | |
* 1) If 'shell == true', the command will be launched via shell | |
* (i.e., /bin/sh -c 'value'). The 'value' specified will be | |
* treated as the shell command. The 'arguments' will be ignored. | |
* 2) If 'shell == false', the command will be launched by passing | |
* arguments to an executable. The 'value' specified will be | |
* treated as the filename of the executable. The 'arguments' | |
* will be treated as the arguments to the executable. This is | |
* similar to how POSIX exec families launch processes (i.e., | |
* execlp(value, arguments(0), arguments(1), ...)). | |
* NOTE: The field 'value' is changed from 'required' to 'optional' | |
* in 0.20.0. It will only cause issues if a new framework is | |
* connecting to an old master. | |
* </pre> | |
*/ | |
public boolean getShell() { | |
return shell_; | |
} | |
public static final int VALUE_FIELD_NUMBER = 3; | |
private java.lang.Object value_; | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int ARGUMENTS_FIELD_NUMBER = 7; | |
private com.google.protobuf.LazyStringList arguments_; | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public com.google.protobuf.ProtocolStringList | |
getArgumentsList() { | |
return arguments_; | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public int getArgumentsCount() { | |
return arguments_.size(); | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public java.lang.String getArguments(int index) { | |
return arguments_.get(index); | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getArgumentsBytes(int index) { | |
return arguments_.getByteString(index); | |
} | |
public static final int USER_FIELD_NUMBER = 5; | |
private java.lang.Object user_; | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public boolean hasUser() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public java.lang.String getUser() { | |
java.lang.Object ref = user_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
user_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getUserBytes() { | |
java.lang.Object ref = user_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
user_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
container_ = org.apache.mesos.Protos.CommandInfo.ContainerInfo.getDefaultInstance(); | |
uris_ = java.util.Collections.emptyList(); | |
environment_ = org.apache.mesos.Protos.Environment.getDefaultInstance(); | |
shell_ = true; | |
value_ = ""; | |
arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
user_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (hasContainer()) { | |
if (!getContainer().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
for (int i = 0; i < getUrisCount(); i++) { | |
if (!getUris(i).isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasEnvironment()) { | |
if (!getEnvironment().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
for (int i = 0; i < uris_.size(); i++) { | |
output.writeMessage(1, uris_.get(i)); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeMessage(2, environment_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeBytes(3, getValueBytes()); | |
} | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeMessage(4, container_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeBytes(5, getUserBytes()); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeBool(6, shell_); | |
} | |
for (int i = 0; i < arguments_.size(); i++) { | |
output.writeBytes(7, arguments_.getByteString(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 < uris_.size(); i++) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(1, uris_.get(i)); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(2, environment_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(3, getValueBytes()); | |
} | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(4, container_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(5, getUserBytes()); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBoolSize(6, shell_); | |
} | |
{ | |
int dataSize = 0; | |
for (int i = 0; i < arguments_.size(); i++) { | |
dataSize += com.google.protobuf.CodedOutputStream | |
.computeBytesSizeNoTag(arguments_.getByteString(i)); | |
} | |
size += dataSize; | |
size += 1 * getArgumentsList().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.Protos.CommandInfo parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.CommandInfo parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.CommandInfo parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.CommandInfo parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.CommandInfo 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.Protos.CommandInfo 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.CommandInfo} | |
* | |
* <pre> | |
** | |
* Describes a command, executed via: '/bin/sh -c value'. Any URIs specified | |
* are fetched before executing the command. If the executable field for an | |
* uri is set, executable file permission is set on the downloaded file. | |
* Otherwise, if the downloaded file has a recognized archive extension | |
* (currently [compressed] tar and zip) it is extracted into the executor's | |
* working directory. This extraction can be disabled by setting `extract` to | |
* false. In addition, any environment variables are set before executing | |
* the command (so they can be used to "parameterize" your command). | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.CommandInfo) | |
org.apache.mesos.Protos.CommandInfoOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.CommandInfo.class, org.apache.mesos.Protos.CommandInfo.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.CommandInfo.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getContainerFieldBuilder(); | |
getUrisFieldBuilder(); | |
getEnvironmentFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
if (containerBuilder_ == null) { | |
container_ = org.apache.mesos.Protos.CommandInfo.ContainerInfo.getDefaultInstance(); | |
} else { | |
containerBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000001); | |
if (urisBuilder_ == null) { | |
uris_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} else { | |
urisBuilder_.clear(); | |
} | |
if (environmentBuilder_ == null) { | |
environment_ = org.apache.mesos.Protos.Environment.getDefaultInstance(); | |
} else { | |
environmentBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
shell_ = true; | |
bitField0_ = (bitField0_ & ~0x00000008); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000010); | |
arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
user_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000040); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_CommandInfo_descriptor; | |
} | |
public org.apache.mesos.Protos.CommandInfo getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.CommandInfo build() { | |
org.apache.mesos.Protos.CommandInfo result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.CommandInfo buildPartial() { | |
org.apache.mesos.Protos.CommandInfo result = new org.apache.mesos.Protos.CommandInfo(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
if (containerBuilder_ == null) { | |
result.container_ = container_; | |
} else { | |
result.container_ = containerBuilder_.build(); | |
} | |
if (urisBuilder_ == null) { | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
uris_ = java.util.Collections.unmodifiableList(uris_); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} | |
result.uris_ = uris_; | |
} else { | |
result.uris_ = urisBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
if (environmentBuilder_ == null) { | |
result.environment_ = environment_; | |
} else { | |
result.environment_ = environmentBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
result.shell_ = shell_; | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
result.value_ = value_; | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
arguments_ = arguments_.getUnmodifiableView(); | |
bitField0_ = (bitField0_ & ~0x00000020); | |
} | |
result.arguments_ = arguments_; | |
if (((from_bitField0_ & 0x00000040) == 0x00000040)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
result.user_ = user_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.CommandInfo) { | |
return mergeFrom((org.apache.mesos.Protos.CommandInfo)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.CommandInfo other) { | |
if (other == org.apache.mesos.Protos.CommandInfo.getDefaultInstance()) return this; | |
if (other.hasContainer()) { | |
mergeContainer(other.getContainer()); | |
} | |
if (urisBuilder_ == null) { | |
if (!other.uris_.isEmpty()) { | |
if (uris_.isEmpty()) { | |
uris_ = other.uris_; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
} else { | |
ensureUrisIsMutable(); | |
uris_.addAll(other.uris_); | |
} | |
onChanged(); | |
} | |
} else { | |
if (!other.uris_.isEmpty()) { | |
if (urisBuilder_.isEmpty()) { | |
urisBuilder_.dispose(); | |
urisBuilder_ = null; | |
uris_ = other.uris_; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
urisBuilder_ = | |
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? | |
getUrisFieldBuilder() : null; | |
} else { | |
urisBuilder_.addAllMessages(other.uris_); | |
} | |
} | |
} | |
if (other.hasEnvironment()) { | |
mergeEnvironment(other.getEnvironment()); | |
} | |
if (other.hasShell()) { | |
setShell(other.getShell()); | |
} | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000010; | |
value_ = other.value_; | |
onChanged(); | |
} | |
if (!other.arguments_.isEmpty()) { | |
if (arguments_.isEmpty()) { | |
arguments_ = other.arguments_; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
} else { | |
ensureArgumentsIsMutable(); | |
arguments_.addAll(other.arguments_); | |
} | |
onChanged(); | |
} | |
if (other.hasUser()) { | |
bitField0_ |= 0x00000040; | |
user_ = other.user_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (hasContainer()) { | |
if (!getContainer().isInitialized()) { | |
return false; | |
} | |
} | |
for (int i = 0; i < getUrisCount(); i++) { | |
if (!getUris(i).isInitialized()) { | |
return false; | |
} | |
} | |
if (hasEnvironment()) { | |
if (!getEnvironment().isInitialized()) { | |
return false; | |
} | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.CommandInfo parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.CommandInfo) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private org.apache.mesos.Protos.CommandInfo.ContainerInfo container_ = org.apache.mesos.Protos.CommandInfo.ContainerInfo.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo, org.apache.mesos.Protos.CommandInfo.ContainerInfo.Builder, org.apache.mesos.Protos.CommandInfo.ContainerInfoOrBuilder> containerBuilder_; | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public boolean hasContainer() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.ContainerInfo getContainer() { | |
if (containerBuilder_ == null) { | |
return container_; | |
} else { | |
return containerBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public Builder setContainer(org.apache.mesos.Protos.CommandInfo.ContainerInfo value) { | |
if (containerBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
container_ = value; | |
onChanged(); | |
} else { | |
containerBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public Builder setContainer( | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo.Builder builderForValue) { | |
if (containerBuilder_ == null) { | |
container_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
containerBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public Builder mergeContainer(org.apache.mesos.Protos.CommandInfo.ContainerInfo value) { | |
if (containerBuilder_ == null) { | |
if (((bitField0_ & 0x00000001) == 0x00000001) && | |
container_ != org.apache.mesos.Protos.CommandInfo.ContainerInfo.getDefaultInstance()) { | |
container_ = | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo.newBuilder(container_).mergeFrom(value).buildPartial(); | |
} else { | |
container_ = value; | |
} | |
onChanged(); | |
} else { | |
containerBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public Builder clearContainer() { | |
if (containerBuilder_ == null) { | |
container_ = org.apache.mesos.Protos.CommandInfo.ContainerInfo.getDefaultInstance(); | |
onChanged(); | |
} else { | |
containerBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.ContainerInfo.Builder getContainerBuilder() { | |
bitField0_ |= 0x00000001; | |
onChanged(); | |
return getContainerFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.ContainerInfoOrBuilder getContainerOrBuilder() { | |
if (containerBuilder_ != null) { | |
return containerBuilder_.getMessageOrBuilder(); | |
} else { | |
return container_; | |
} | |
} | |
/** | |
* <code>optional .mesos.CommandInfo.ContainerInfo container = 4;</code> | |
* | |
* <pre> | |
* NOTE: MesosContainerizer does currently not support this | |
* attribute and tasks supplying a 'container' will fail. | |
* </pre> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo, org.apache.mesos.Protos.CommandInfo.ContainerInfo.Builder, org.apache.mesos.Protos.CommandInfo.ContainerInfoOrBuilder> | |
getContainerFieldBuilder() { | |
if (containerBuilder_ == null) { | |
containerBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo.ContainerInfo, org.apache.mesos.Protos.CommandInfo.ContainerInfo.Builder, org.apache.mesos.Protos.CommandInfo.ContainerInfoOrBuilder>( | |
getContainer(), | |
getParentForChildren(), | |
isClean()); | |
container_ = null; | |
} | |
return containerBuilder_; | |
} | |
private java.util.List<org.apache.mesos.Protos.CommandInfo.URI> uris_ = | |
java.util.Collections.emptyList(); | |
private void ensureUrisIsMutable() { | |
if (!((bitField0_ & 0x00000002) == 0x00000002)) { | |
uris_ = new java.util.ArrayList<org.apache.mesos.Protos.CommandInfo.URI>(uris_); | |
bitField0_ |= 0x00000002; | |
} | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo.URI, org.apache.mesos.Protos.CommandInfo.URI.Builder, org.apache.mesos.Protos.CommandInfo.URIOrBuilder> urisBuilder_; | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.CommandInfo.URI> getUrisList() { | |
if (urisBuilder_ == null) { | |
return java.util.Collections.unmodifiableList(uris_); | |
} else { | |
return urisBuilder_.getMessageList(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public int getUrisCount() { | |
if (urisBuilder_ == null) { | |
return uris_.size(); | |
} else { | |
return urisBuilder_.getCount(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.URI getUris(int index) { | |
if (urisBuilder_ == null) { | |
return uris_.get(index); | |
} else { | |
return urisBuilder_.getMessage(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder setUris( | |
int index, org.apache.mesos.Protos.CommandInfo.URI value) { | |
if (urisBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureUrisIsMutable(); | |
uris_.set(index, value); | |
onChanged(); | |
} else { | |
urisBuilder_.setMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder setUris( | |
int index, org.apache.mesos.Protos.CommandInfo.URI.Builder builderForValue) { | |
if (urisBuilder_ == null) { | |
ensureUrisIsMutable(); | |
uris_.set(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
urisBuilder_.setMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder addUris(org.apache.mesos.Protos.CommandInfo.URI value) { | |
if (urisBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureUrisIsMutable(); | |
uris_.add(value); | |
onChanged(); | |
} else { | |
urisBuilder_.addMessage(value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder addUris( | |
int index, org.apache.mesos.Protos.CommandInfo.URI value) { | |
if (urisBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureUrisIsMutable(); | |
uris_.add(index, value); | |
onChanged(); | |
} else { | |
urisBuilder_.addMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder addUris( | |
org.apache.mesos.Protos.CommandInfo.URI.Builder builderForValue) { | |
if (urisBuilder_ == null) { | |
ensureUrisIsMutable(); | |
uris_.add(builderForValue.build()); | |
onChanged(); | |
} else { | |
urisBuilder_.addMessage(builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder addUris( | |
int index, org.apache.mesos.Protos.CommandInfo.URI.Builder builderForValue) { | |
if (urisBuilder_ == null) { | |
ensureUrisIsMutable(); | |
uris_.add(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
urisBuilder_.addMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder addAllUris( | |
java.lang.Iterable<? extends org.apache.mesos.Protos.CommandInfo.URI> values) { | |
if (urisBuilder_ == null) { | |
ensureUrisIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, uris_); | |
onChanged(); | |
} else { | |
urisBuilder_.addAllMessages(values); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder clearUris() { | |
if (urisBuilder_ == null) { | |
uris_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000002); | |
onChanged(); | |
} else { | |
urisBuilder_.clear(); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public Builder removeUris(int index) { | |
if (urisBuilder_ == null) { | |
ensureUrisIsMutable(); | |
uris_.remove(index); | |
onChanged(); | |
} else { | |
urisBuilder_.remove(index); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.URI.Builder getUrisBuilder( | |
int index) { | |
return getUrisFieldBuilder().getBuilder(index); | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.URIOrBuilder getUrisOrBuilder( | |
int index) { | |
if (urisBuilder_ == null) { | |
return uris_.get(index); } else { | |
return urisBuilder_.getMessageOrBuilder(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.CommandInfo.URIOrBuilder> | |
getUrisOrBuilderList() { | |
if (urisBuilder_ != null) { | |
return urisBuilder_.getMessageOrBuilderList(); | |
} else { | |
return java.util.Collections.unmodifiableList(uris_); | |
} | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.URI.Builder addUrisBuilder() { | |
return getUrisFieldBuilder().addBuilder( | |
org.apache.mesos.Protos.CommandInfo.URI.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.URI.Builder addUrisBuilder( | |
int index) { | |
return getUrisFieldBuilder().addBuilder( | |
index, org.apache.mesos.Protos.CommandInfo.URI.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.CommandInfo.URI uris = 1;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.CommandInfo.URI.Builder> | |
getUrisBuilderList() { | |
return getUrisFieldBuilder().getBuilderList(); | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo.URI, org.apache.mesos.Protos.CommandInfo.URI.Builder, org.apache.mesos.Protos.CommandInfo.URIOrBuilder> | |
getUrisFieldBuilder() { | |
if (urisBuilder_ == null) { | |
urisBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo.URI, org.apache.mesos.Protos.CommandInfo.URI.Builder, org.apache.mesos.Protos.CommandInfo.URIOrBuilder>( | |
uris_, | |
((bitField0_ & 0x00000002) == 0x00000002), | |
getParentForChildren(), | |
isClean()); | |
uris_ = null; | |
} | |
return urisBuilder_; | |
} | |
private org.apache.mesos.Protos.Environment environment_ = org.apache.mesos.Protos.Environment.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Environment, org.apache.mesos.Protos.Environment.Builder, org.apache.mesos.Protos.EnvironmentOrBuilder> environmentBuilder_; | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public boolean hasEnvironment() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Environment getEnvironment() { | |
if (environmentBuilder_ == null) { | |
return environment_; | |
} else { | |
return environmentBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public Builder setEnvironment(org.apache.mesos.Protos.Environment value) { | |
if (environmentBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
environment_ = value; | |
onChanged(); | |
} else { | |
environmentBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public Builder setEnvironment( | |
org.apache.mesos.Protos.Environment.Builder builderForValue) { | |
if (environmentBuilder_ == null) { | |
environment_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
environmentBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public Builder mergeEnvironment(org.apache.mesos.Protos.Environment value) { | |
if (environmentBuilder_ == null) { | |
if (((bitField0_ & 0x00000004) == 0x00000004) && | |
environment_ != org.apache.mesos.Protos.Environment.getDefaultInstance()) { | |
environment_ = | |
org.apache.mesos.Protos.Environment.newBuilder(environment_).mergeFrom(value).buildPartial(); | |
} else { | |
environment_ = value; | |
} | |
onChanged(); | |
} else { | |
environmentBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public Builder clearEnvironment() { | |
if (environmentBuilder_ == null) { | |
environment_ = org.apache.mesos.Protos.Environment.getDefaultInstance(); | |
onChanged(); | |
} else { | |
environmentBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Environment.Builder getEnvironmentBuilder() { | |
bitField0_ |= 0x00000004; | |
onChanged(); | |
return getEnvironmentFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.EnvironmentOrBuilder getEnvironmentOrBuilder() { | |
if (environmentBuilder_ != null) { | |
return environmentBuilder_.getMessageOrBuilder(); | |
} else { | |
return environment_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Environment environment = 2;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Environment, org.apache.mesos.Protos.Environment.Builder, org.apache.mesos.Protos.EnvironmentOrBuilder> | |
getEnvironmentFieldBuilder() { | |
if (environmentBuilder_ == null) { | |
environmentBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Environment, org.apache.mesos.Protos.Environment.Builder, org.apache.mesos.Protos.EnvironmentOrBuilder>( | |
getEnvironment(), | |
getParentForChildren(), | |
isClean()); | |
environment_ = null; | |
} | |
return environmentBuilder_; | |
} | |
private boolean shell_ = true; | |
/** | |
* <code>optional bool shell = 6 [default = true];</code> | |
* | |
* <pre> | |
* There are two ways to specify the command: | |
* 1) If 'shell == true', the command will be launched via shell | |
* (i.e., /bin/sh -c 'value'). The 'value' specified will be | |
* treated as the shell command. The 'arguments' will be ignored. | |
* 2) If 'shell == false', the command will be launched by passing | |
* arguments to an executable. The 'value' specified will be | |
* treated as the filename of the executable. The 'arguments' | |
* will be treated as the arguments to the executable. This is | |
* similar to how POSIX exec families launch processes (i.e., | |
* execlp(value, arguments(0), arguments(1), ...)). | |
* NOTE: The field 'value' is changed from 'required' to 'optional' | |
* in 0.20.0. It will only cause issues if a new framework is | |
* connecting to an old master. | |
* </pre> | |
*/ | |
public boolean hasShell() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional bool shell = 6 [default = true];</code> | |
* | |
* <pre> | |
* There are two ways to specify the command: | |
* 1) If 'shell == true', the command will be launched via shell | |
* (i.e., /bin/sh -c 'value'). The 'value' specified will be | |
* treated as the shell command. The 'arguments' will be ignored. | |
* 2) If 'shell == false', the command will be launched by passing | |
* arguments to an executable. The 'value' specified will be | |
* treated as the filename of the executable. The 'arguments' | |
* will be treated as the arguments to the executable. This is | |
* similar to how POSIX exec families launch processes (i.e., | |
* execlp(value, arguments(0), arguments(1), ...)). | |
* NOTE: The field 'value' is changed from 'required' to 'optional' | |
* in 0.20.0. It will only cause issues if a new framework is | |
* connecting to an old master. | |
* </pre> | |
*/ | |
public boolean getShell() { | |
return shell_; | |
} | |
/** | |
* <code>optional bool shell = 6 [default = true];</code> | |
* | |
* <pre> | |
* There are two ways to specify the command: | |
* 1) If 'shell == true', the command will be launched via shell | |
* (i.e., /bin/sh -c 'value'). The 'value' specified will be | |
* treated as the shell command. The 'arguments' will be ignored. | |
* 2) If 'shell == false', the command will be launched by passing | |
* arguments to an executable. The 'value' specified will be | |
* treated as the filename of the executable. The 'arguments' | |
* will be treated as the arguments to the executable. This is | |
* similar to how POSIX exec families launch processes (i.e., | |
* execlp(value, arguments(0), arguments(1), ...)). | |
* NOTE: The field 'value' is changed from 'required' to 'optional' | |
* in 0.20.0. It will only cause issues if a new framework is | |
* connecting to an old master. | |
* </pre> | |
*/ | |
public Builder setShell(boolean value) { | |
bitField0_ |= 0x00000008; | |
shell_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional bool shell = 6 [default = true];</code> | |
* | |
* <pre> | |
* There are two ways to specify the command: | |
* 1) If 'shell == true', the command will be launched via shell | |
* (i.e., /bin/sh -c 'value'). The 'value' specified will be | |
* treated as the shell command. The 'arguments' will be ignored. | |
* 2) If 'shell == false', the command will be launched by passing | |
* arguments to an executable. The 'value' specified will be | |
* treated as the filename of the executable. The 'arguments' | |
* will be treated as the arguments to the executable. This is | |
* similar to how POSIX exec families launch processes (i.e., | |
* execlp(value, arguments(0), arguments(1), ...)). | |
* NOTE: The field 'value' is changed from 'required' to 'optional' | |
* in 0.20.0. It will only cause issues if a new framework is | |
* connecting to an old master. | |
* </pre> | |
*/ | |
public Builder clearShell() { | |
bitField0_ = (bitField0_ & ~0x00000008); | |
shell_ = true; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000010; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000010); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string value = 3;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000010; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
private com.google.protobuf.LazyStringList arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
private void ensureArgumentsIsMutable() { | |
if (!((bitField0_ & 0x00000020) == 0x00000020)) { | |
arguments_ = new com.google.protobuf.LazyStringArrayList(arguments_); | |
bitField0_ |= 0x00000020; | |
} | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public com.google.protobuf.ProtocolStringList | |
getArgumentsList() { | |
return arguments_.getUnmodifiableView(); | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public int getArgumentsCount() { | |
return arguments_.size(); | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public java.lang.String getArguments(int index) { | |
return arguments_.get(index); | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getArgumentsBytes(int index) { | |
return arguments_.getByteString(index); | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public Builder setArguments( | |
int index, java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureArgumentsIsMutable(); | |
arguments_.set(index, value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public Builder addArguments( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureArgumentsIsMutable(); | |
arguments_.add(value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public Builder addAllArguments( | |
java.lang.Iterable<java.lang.String> values) { | |
ensureArgumentsIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, arguments_); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public Builder clearArguments() { | |
arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string arguments = 7;</code> | |
*/ | |
public Builder addArgumentsBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureArgumentsIsMutable(); | |
arguments_.add(value); | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object user_ = ""; | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public boolean hasUser() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public java.lang.String getUser() { | |
java.lang.Object ref = user_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
user_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getUserBytes() { | |
java.lang.Object ref = user_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
user_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public Builder setUser( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000040; | |
user_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public Builder clearUser() { | |
bitField0_ = (bitField0_ & ~0x00000040); | |
user_ = getDefaultInstance().getUser(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string user = 5;</code> | |
* | |
* <pre> | |
* Enables executor and tasks to run as a specific user. If the user | |
* field is present both in FrameworkInfo and here, the CommandInfo | |
* user value takes precedence. | |
* </pre> | |
*/ | |
public Builder setUserBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000040; | |
user_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.CommandInfo) | |
} | |
static { | |
defaultInstance = new CommandInfo(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.CommandInfo) | |
} | |
public interface ExecutorInfoOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.ExecutorInfo) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
boolean hasExecutorId(); | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
org.apache.mesos.Protos.ExecutorID getExecutorId(); | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
org.apache.mesos.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder(); | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
boolean hasFrameworkId(); | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.FrameworkID getFrameworkId(); | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder(); | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
boolean hasCommand(); | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
org.apache.mesos.Protos.CommandInfo getCommand(); | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
org.apache.mesos.Protos.CommandInfoOrBuilder getCommandOrBuilder(); | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
boolean hasContainer(); | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.ContainerInfo getContainer(); | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.ContainerInfoOrBuilder getContainerOrBuilder(); | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
java.util.List<org.apache.mesos.Protos.Resource> | |
getResourcesList(); | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
org.apache.mesos.Protos.Resource getResources(int index); | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
int getResourcesCount(); | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
java.util.List<? extends org.apache.mesos.Protos.ResourceOrBuilder> | |
getResourcesOrBuilderList(); | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder( | |
int index); | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
boolean hasName(); | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
java.lang.String getName(); | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getNameBytes(); | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
boolean hasSource(); | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
java.lang.String getSource(); | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
com.google.protobuf.ByteString | |
getSourceBytes(); | |
/** | |
* <code>optional bytes data = 4;</code> | |
*/ | |
boolean hasData(); | |
/** | |
* <code>optional bytes data = 4;</code> | |
*/ | |
com.google.protobuf.ByteString getData(); | |
} | |
/** | |
* Protobuf type {@code mesos.ExecutorInfo} | |
* | |
* <pre> | |
** | |
* Describes information about an executor. The 'data' field can be | |
* used to pass arbitrary bytes to an executor. | |
* </pre> | |
*/ | |
public static final class ExecutorInfo extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.ExecutorInfo) | |
ExecutorInfoOrBuilder { | |
// Use ExecutorInfo.newBuilder() to construct. | |
private ExecutorInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private ExecutorInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final ExecutorInfo defaultInstance; | |
public static ExecutorInfo getDefaultInstance() { | |
return defaultInstance; | |
} | |
public ExecutorInfo getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private ExecutorInfo( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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.Protos.ExecutorID.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
subBuilder = executorId_.toBuilder(); | |
} | |
executorId_ = input.readMessage(org.apache.mesos.Protos.ExecutorID.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(executorId_); | |
executorId_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000001; | |
break; | |
} | |
case 34: { | |
bitField0_ |= 0x00000040; | |
data_ = input.readBytes(); | |
break; | |
} | |
case 42: { | |
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { | |
resources_ = new java.util.ArrayList<org.apache.mesos.Protos.Resource>(); | |
mutable_bitField0_ |= 0x00000010; | |
} | |
resources_.add(input.readMessage(org.apache.mesos.Protos.Resource.PARSER, extensionRegistry)); | |
break; | |
} | |
case 58: { | |
org.apache.mesos.Protos.CommandInfo.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
subBuilder = command_.toBuilder(); | |
} | |
command_ = input.readMessage(org.apache.mesos.Protos.CommandInfo.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(command_); | |
command_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000004; | |
break; | |
} | |
case 66: { | |
org.apache.mesos.Protos.FrameworkID.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
subBuilder = frameworkId_.toBuilder(); | |
} | |
frameworkId_ = input.readMessage(org.apache.mesos.Protos.FrameworkID.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(frameworkId_); | |
frameworkId_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000002; | |
break; | |
} | |
case 74: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000010; | |
name_ = bs; | |
break; | |
} | |
case 82: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000020; | |
source_ = bs; | |
break; | |
} | |
case 90: { | |
org.apache.mesos.Protos.ContainerInfo.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
subBuilder = container_.toBuilder(); | |
} | |
container_ = input.readMessage(org.apache.mesos.Protos.ContainerInfo.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(container_); | |
container_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000008; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { | |
resources_ = java.util.Collections.unmodifiableList(resources_); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ExecutorInfo.class, org.apache.mesos.Protos.ExecutorInfo.Builder.class); | |
} | |
public static com.google.protobuf.Parser<ExecutorInfo> PARSER = | |
new com.google.protobuf.AbstractParser<ExecutorInfo>() { | |
public ExecutorInfo parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new ExecutorInfo(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<ExecutorInfo> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int EXECUTOR_ID_FIELD_NUMBER = 1; | |
private org.apache.mesos.Protos.ExecutorID executorId_; | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public boolean hasExecutorId() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.ExecutorID getExecutorId() { | |
return executorId_; | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { | |
return executorId_; | |
} | |
public static final int FRAMEWORK_ID_FIELD_NUMBER = 8; | |
private org.apache.mesos.Protos.FrameworkID frameworkId_; | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public boolean hasFrameworkId() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID getFrameworkId() { | |
return frameworkId_; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { | |
return frameworkId_; | |
} | |
public static final int COMMAND_FIELD_NUMBER = 7; | |
private org.apache.mesos.Protos.CommandInfo command_; | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public boolean hasCommand() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo getCommand() { | |
return command_; | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfoOrBuilder getCommandOrBuilder() { | |
return command_; | |
} | |
public static final int CONTAINER_FIELD_NUMBER = 11; | |
private org.apache.mesos.Protos.ContainerInfo container_; | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public boolean hasContainer() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ContainerInfo getContainer() { | |
return container_; | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { | |
return container_; | |
} | |
public static final int RESOURCES_FIELD_NUMBER = 5; | |
private java.util.List<org.apache.mesos.Protos.Resource> resources_; | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Resource> getResourcesList() { | |
return resources_; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.ResourceOrBuilder> | |
getResourcesOrBuilderList() { | |
return resources_; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public int getResourcesCount() { | |
return resources_.size(); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource getResources(int index) { | |
return resources_.get(index); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder( | |
int index) { | |
return resources_.get(index); | |
} | |
public static final int NAME_FIELD_NUMBER = 9; | |
private java.lang.Object name_; | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public boolean hasName() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public java.lang.String getName() { | |
java.lang.Object ref = name_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
name_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getNameBytes() { | |
java.lang.Object ref = name_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
name_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int SOURCE_FIELD_NUMBER = 10; | |
private java.lang.Object source_; | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public boolean hasSource() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public java.lang.String getSource() { | |
java.lang.Object ref = source_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
source_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getSourceBytes() { | |
java.lang.Object ref = source_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
source_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int DATA_FIELD_NUMBER = 4; | |
private com.google.protobuf.ByteString data_; | |
/** | |
* <code>optional bytes data = 4;</code> | |
*/ | |
public boolean hasData() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional bytes data = 4;</code> | |
*/ | |
public com.google.protobuf.ByteString getData() { | |
return data_; | |
} | |
private void initFields() { | |
executorId_ = org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
frameworkId_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
command_ = org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
container_ = org.apache.mesos.Protos.ContainerInfo.getDefaultInstance(); | |
resources_ = java.util.Collections.emptyList(); | |
name_ = ""; | |
source_ = ""; | |
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 (!hasExecutorId()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasCommand()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!getExecutorId().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (hasFrameworkId()) { | |
if (!getFrameworkId().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (!getCommand().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (hasContainer()) { | |
if (!getContainer().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
for (int i = 0; i < getResourcesCount(); i++) { | |
if (!getResources(i).isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
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_ & 0x00000040) == 0x00000040)) { | |
output.writeBytes(4, data_); | |
} | |
for (int i = 0; i < resources_.size(); i++) { | |
output.writeMessage(5, resources_.get(i)); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeMessage(7, command_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeMessage(8, frameworkId_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeBytes(9, getNameBytes()); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
output.writeBytes(10, getSourceBytes()); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeMessage(11, container_); | |
} | |
getUnknownFields().writeTo(output); | |
} | |
private int memoizedSerializedSize = -1; | |
public int getSerializedSize() { | |
int size = memoizedSerializedSize; | |
if (size != -1) return size; | |
size = 0; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(1, executorId_); | |
} | |
if (((bitField0_ & 0x00000040) == 0x00000040)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(4, data_); | |
} | |
for (int i = 0; i < resources_.size(); i++) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(5, resources_.get(i)); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(7, command_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(8, frameworkId_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(9, getNameBytes()); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(10, getSourceBytes()); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(11, container_); | |
} | |
size += getUnknownFields().getSerializedSize(); | |
memoizedSerializedSize = size; | |
return size; | |
} | |
private static final long serialVersionUID = 0L; | |
@java.lang.Override | |
protected java.lang.Object writeReplace() | |
throws java.io.ObjectStreamException { | |
return super.writeReplace(); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ExecutorInfo 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.Protos.ExecutorInfo 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.ExecutorInfo} | |
* | |
* <pre> | |
** | |
* Describes information about an executor. The 'data' field can be | |
* used to pass arbitrary bytes to an executor. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.ExecutorInfo) | |
org.apache.mesos.Protos.ExecutorInfoOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ExecutorInfo.class, org.apache.mesos.Protos.ExecutorInfo.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.ExecutorInfo.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getExecutorIdFieldBuilder(); | |
getFrameworkIdFieldBuilder(); | |
getCommandFieldBuilder(); | |
getContainerFieldBuilder(); | |
getResourcesFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
if (executorIdBuilder_ == null) { | |
executorId_ = org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
} else { | |
executorIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000001); | |
if (frameworkIdBuilder_ == null) { | |
frameworkId_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
} else { | |
frameworkIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000002); | |
if (commandBuilder_ == null) { | |
command_ = org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
} else { | |
commandBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
if (containerBuilder_ == null) { | |
container_ = org.apache.mesos.Protos.ContainerInfo.getDefaultInstance(); | |
} else { | |
containerBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000008); | |
if (resourcesBuilder_ == null) { | |
resources_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000010); | |
} else { | |
resourcesBuilder_.clear(); | |
} | |
name_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
source_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000040); | |
data_ = com.google.protobuf.ByteString.EMPTY; | |
bitField0_ = (bitField0_ & ~0x00000080); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_ExecutorInfo_descriptor; | |
} | |
public org.apache.mesos.Protos.ExecutorInfo getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.ExecutorInfo.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.ExecutorInfo build() { | |
org.apache.mesos.Protos.ExecutorInfo result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.ExecutorInfo buildPartial() { | |
org.apache.mesos.Protos.ExecutorInfo result = new org.apache.mesos.Protos.ExecutorInfo(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
if (executorIdBuilder_ == null) { | |
result.executorId_ = executorId_; | |
} else { | |
result.executorId_ = executorIdBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
if (frameworkIdBuilder_ == null) { | |
result.frameworkId_ = frameworkId_; | |
} else { | |
result.frameworkId_ = frameworkIdBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
if (commandBuilder_ == null) { | |
result.command_ = command_; | |
} else { | |
result.command_ = commandBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
if (containerBuilder_ == null) { | |
result.container_ = container_; | |
} else { | |
result.container_ = containerBuilder_.build(); | |
} | |
if (resourcesBuilder_ == null) { | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
resources_ = java.util.Collections.unmodifiableList(resources_); | |
bitField0_ = (bitField0_ & ~0x00000010); | |
} | |
result.resources_ = resources_; | |
} else { | |
result.resources_ = resourcesBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000020) == 0x00000020)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
result.name_ = name_; | |
if (((from_bitField0_ & 0x00000040) == 0x00000040)) { | |
to_bitField0_ |= 0x00000020; | |
} | |
result.source_ = source_; | |
if (((from_bitField0_ & 0x00000080) == 0x00000080)) { | |
to_bitField0_ |= 0x00000040; | |
} | |
result.data_ = data_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.ExecutorInfo) { | |
return mergeFrom((org.apache.mesos.Protos.ExecutorInfo)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.ExecutorInfo other) { | |
if (other == org.apache.mesos.Protos.ExecutorInfo.getDefaultInstance()) return this; | |
if (other.hasExecutorId()) { | |
mergeExecutorId(other.getExecutorId()); | |
} | |
if (other.hasFrameworkId()) { | |
mergeFrameworkId(other.getFrameworkId()); | |
} | |
if (other.hasCommand()) { | |
mergeCommand(other.getCommand()); | |
} | |
if (other.hasContainer()) { | |
mergeContainer(other.getContainer()); | |
} | |
if (resourcesBuilder_ == null) { | |
if (!other.resources_.isEmpty()) { | |
if (resources_.isEmpty()) { | |
resources_ = other.resources_; | |
bitField0_ = (bitField0_ & ~0x00000010); | |
} else { | |
ensureResourcesIsMutable(); | |
resources_.addAll(other.resources_); | |
} | |
onChanged(); | |
} | |
} else { | |
if (!other.resources_.isEmpty()) { | |
if (resourcesBuilder_.isEmpty()) { | |
resourcesBuilder_.dispose(); | |
resourcesBuilder_ = null; | |
resources_ = other.resources_; | |
bitField0_ = (bitField0_ & ~0x00000010); | |
resourcesBuilder_ = | |
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? | |
getResourcesFieldBuilder() : null; | |
} else { | |
resourcesBuilder_.addAllMessages(other.resources_); | |
} | |
} | |
} | |
if (other.hasName()) { | |
bitField0_ |= 0x00000020; | |
name_ = other.name_; | |
onChanged(); | |
} | |
if (other.hasSource()) { | |
bitField0_ |= 0x00000040; | |
source_ = other.source_; | |
onChanged(); | |
} | |
if (other.hasData()) { | |
setData(other.getData()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasExecutorId()) { | |
return false; | |
} | |
if (!hasCommand()) { | |
return false; | |
} | |
if (!getExecutorId().isInitialized()) { | |
return false; | |
} | |
if (hasFrameworkId()) { | |
if (!getFrameworkId().isInitialized()) { | |
return false; | |
} | |
} | |
if (!getCommand().isInitialized()) { | |
return false; | |
} | |
if (hasContainer()) { | |
if (!getContainer().isInitialized()) { | |
return false; | |
} | |
} | |
for (int i = 0; i < getResourcesCount(); i++) { | |
if (!getResources(i).isInitialized()) { | |
return false; | |
} | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.ExecutorInfo parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.ExecutorInfo) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private org.apache.mesos.Protos.ExecutorID executorId_ = org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ExecutorID, org.apache.mesos.Protos.ExecutorID.Builder, org.apache.mesos.Protos.ExecutorIDOrBuilder> executorIdBuilder_; | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public boolean hasExecutorId() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.ExecutorID getExecutorId() { | |
if (executorIdBuilder_ == null) { | |
return executorId_; | |
} else { | |
return executorIdBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public Builder setExecutorId(org.apache.mesos.Protos.ExecutorID value) { | |
if (executorIdBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
executorId_ = value; | |
onChanged(); | |
} else { | |
executorIdBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public Builder setExecutorId( | |
org.apache.mesos.Protos.ExecutorID.Builder builderForValue) { | |
if (executorIdBuilder_ == null) { | |
executorId_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
executorIdBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public Builder mergeExecutorId(org.apache.mesos.Protos.ExecutorID value) { | |
if (executorIdBuilder_ == null) { | |
if (((bitField0_ & 0x00000001) == 0x00000001) && | |
executorId_ != org.apache.mesos.Protos.ExecutorID.getDefaultInstance()) { | |
executorId_ = | |
org.apache.mesos.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial(); | |
} else { | |
executorId_ = value; | |
} | |
onChanged(); | |
} else { | |
executorIdBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public Builder clearExecutorId() { | |
if (executorIdBuilder_ == null) { | |
executorId_ = org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
onChanged(); | |
} else { | |
executorIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.ExecutorID.Builder getExecutorIdBuilder() { | |
bitField0_ |= 0x00000001; | |
onChanged(); | |
return getExecutorIdFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { | |
if (executorIdBuilder_ != null) { | |
return executorIdBuilder_.getMessageOrBuilder(); | |
} else { | |
return executorId_; | |
} | |
} | |
/** | |
* <code>required .mesos.ExecutorID executor_id = 1;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ExecutorID, org.apache.mesos.Protos.ExecutorID.Builder, org.apache.mesos.Protos.ExecutorIDOrBuilder> | |
getExecutorIdFieldBuilder() { | |
if (executorIdBuilder_ == null) { | |
executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ExecutorID, org.apache.mesos.Protos.ExecutorID.Builder, org.apache.mesos.Protos.ExecutorIDOrBuilder>( | |
getExecutorId(), | |
getParentForChildren(), | |
isClean()); | |
executorId_ = null; | |
} | |
return executorIdBuilder_; | |
} | |
private org.apache.mesos.Protos.FrameworkID frameworkId_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_; | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public boolean hasFrameworkId() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID getFrameworkId() { | |
if (frameworkIdBuilder_ == null) { | |
return frameworkId_; | |
} else { | |
return frameworkIdBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public Builder setFrameworkId(org.apache.mesos.Protos.FrameworkID value) { | |
if (frameworkIdBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
frameworkId_ = value; | |
onChanged(); | |
} else { | |
frameworkIdBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public Builder setFrameworkId( | |
org.apache.mesos.Protos.FrameworkID.Builder builderForValue) { | |
if (frameworkIdBuilder_ == null) { | |
frameworkId_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
frameworkIdBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public Builder mergeFrameworkId(org.apache.mesos.Protos.FrameworkID value) { | |
if (frameworkIdBuilder_ == null) { | |
if (((bitField0_ & 0x00000002) == 0x00000002) && | |
frameworkId_ != org.apache.mesos.Protos.FrameworkID.getDefaultInstance()) { | |
frameworkId_ = | |
org.apache.mesos.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial(); | |
} else { | |
frameworkId_ = value; | |
} | |
onChanged(); | |
} else { | |
frameworkIdBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public Builder clearFrameworkId() { | |
if (frameworkIdBuilder_ == null) { | |
frameworkId_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
onChanged(); | |
} else { | |
frameworkIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000002); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID.Builder getFrameworkIdBuilder() { | |
bitField0_ |= 0x00000002; | |
onChanged(); | |
return getFrameworkIdFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { | |
if (frameworkIdBuilder_ != null) { | |
return frameworkIdBuilder_.getMessageOrBuilder(); | |
} else { | |
return frameworkId_; | |
} | |
} | |
/** | |
* <code>optional .mesos.FrameworkID framework_id = 8;</code> | |
* | |
* <pre> | |
* TODO(benh): Make this required. | |
* </pre> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder> | |
getFrameworkIdFieldBuilder() { | |
if (frameworkIdBuilder_ == null) { | |
frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder>( | |
getFrameworkId(), | |
getParentForChildren(), | |
isClean()); | |
frameworkId_ = null; | |
} | |
return frameworkIdBuilder_; | |
} | |
private org.apache.mesos.Protos.CommandInfo command_ = org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo, org.apache.mesos.Protos.CommandInfo.Builder, org.apache.mesos.Protos.CommandInfoOrBuilder> commandBuilder_; | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public boolean hasCommand() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo getCommand() { | |
if (commandBuilder_ == null) { | |
return command_; | |
} else { | |
return commandBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public Builder setCommand(org.apache.mesos.Protos.CommandInfo value) { | |
if (commandBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
command_ = value; | |
onChanged(); | |
} else { | |
commandBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public Builder setCommand( | |
org.apache.mesos.Protos.CommandInfo.Builder builderForValue) { | |
if (commandBuilder_ == null) { | |
command_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
commandBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public Builder mergeCommand(org.apache.mesos.Protos.CommandInfo value) { | |
if (commandBuilder_ == null) { | |
if (((bitField0_ & 0x00000004) == 0x00000004) && | |
command_ != org.apache.mesos.Protos.CommandInfo.getDefaultInstance()) { | |
command_ = | |
org.apache.mesos.Protos.CommandInfo.newBuilder(command_).mergeFrom(value).buildPartial(); | |
} else { | |
command_ = value; | |
} | |
onChanged(); | |
} else { | |
commandBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public Builder clearCommand() { | |
if (commandBuilder_ == null) { | |
command_ = org.apache.mesos.Protos.CommandInfo.getDefaultInstance(); | |
onChanged(); | |
} else { | |
commandBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfo.Builder getCommandBuilder() { | |
bitField0_ |= 0x00000004; | |
onChanged(); | |
return getCommandFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
public org.apache.mesos.Protos.CommandInfoOrBuilder getCommandOrBuilder() { | |
if (commandBuilder_ != null) { | |
return commandBuilder_.getMessageOrBuilder(); | |
} else { | |
return command_; | |
} | |
} | |
/** | |
* <code>required .mesos.CommandInfo command = 7;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo, org.apache.mesos.Protos.CommandInfo.Builder, org.apache.mesos.Protos.CommandInfoOrBuilder> | |
getCommandFieldBuilder() { | |
if (commandBuilder_ == null) { | |
commandBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.CommandInfo, org.apache.mesos.Protos.CommandInfo.Builder, org.apache.mesos.Protos.CommandInfoOrBuilder>( | |
getCommand(), | |
getParentForChildren(), | |
isClean()); | |
command_ = null; | |
} | |
return commandBuilder_; | |
} | |
private org.apache.mesos.Protos.ContainerInfo container_ = org.apache.mesos.Protos.ContainerInfo.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ContainerInfo, org.apache.mesos.Protos.ContainerInfo.Builder, org.apache.mesos.Protos.ContainerInfoOrBuilder> containerBuilder_; | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public boolean hasContainer() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ContainerInfo getContainer() { | |
if (containerBuilder_ == null) { | |
return container_; | |
} else { | |
return containerBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public Builder setContainer(org.apache.mesos.Protos.ContainerInfo value) { | |
if (containerBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
container_ = value; | |
onChanged(); | |
} else { | |
containerBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public Builder setContainer( | |
org.apache.mesos.Protos.ContainerInfo.Builder builderForValue) { | |
if (containerBuilder_ == null) { | |
container_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
containerBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public Builder mergeContainer(org.apache.mesos.Protos.ContainerInfo value) { | |
if (containerBuilder_ == null) { | |
if (((bitField0_ & 0x00000008) == 0x00000008) && | |
container_ != org.apache.mesos.Protos.ContainerInfo.getDefaultInstance()) { | |
container_ = | |
org.apache.mesos.Protos.ContainerInfo.newBuilder(container_).mergeFrom(value).buildPartial(); | |
} else { | |
container_ = value; | |
} | |
onChanged(); | |
} else { | |
containerBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public Builder clearContainer() { | |
if (containerBuilder_ == null) { | |
container_ = org.apache.mesos.Protos.ContainerInfo.getDefaultInstance(); | |
onChanged(); | |
} else { | |
containerBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000008); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ContainerInfo.Builder getContainerBuilder() { | |
bitField0_ |= 0x00000008; | |
onChanged(); | |
return getContainerFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { | |
if (containerBuilder_ != null) { | |
return containerBuilder_.getMessageOrBuilder(); | |
} else { | |
return container_; | |
} | |
} | |
/** | |
* <code>optional .mesos.ContainerInfo container = 11;</code> | |
* | |
* <pre> | |
* Executor provided with a container will launch the container | |
* with the executor's CommandInfo and we expect the container to | |
* act as a Mesos executor. | |
* </pre> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ContainerInfo, org.apache.mesos.Protos.ContainerInfo.Builder, org.apache.mesos.Protos.ContainerInfoOrBuilder> | |
getContainerFieldBuilder() { | |
if (containerBuilder_ == null) { | |
containerBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ContainerInfo, org.apache.mesos.Protos.ContainerInfo.Builder, org.apache.mesos.Protos.ContainerInfoOrBuilder>( | |
getContainer(), | |
getParentForChildren(), | |
isClean()); | |
container_ = null; | |
} | |
return containerBuilder_; | |
} | |
private java.util.List<org.apache.mesos.Protos.Resource> resources_ = | |
java.util.Collections.emptyList(); | |
private void ensureResourcesIsMutable() { | |
if (!((bitField0_ & 0x00000010) == 0x00000010)) { | |
resources_ = new java.util.ArrayList<org.apache.mesos.Protos.Resource>(resources_); | |
bitField0_ |= 0x00000010; | |
} | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder> resourcesBuilder_; | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Resource> getResourcesList() { | |
if (resourcesBuilder_ == null) { | |
return java.util.Collections.unmodifiableList(resources_); | |
} else { | |
return resourcesBuilder_.getMessageList(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public int getResourcesCount() { | |
if (resourcesBuilder_ == null) { | |
return resources_.size(); | |
} else { | |
return resourcesBuilder_.getCount(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource getResources(int index) { | |
if (resourcesBuilder_ == null) { | |
return resources_.get(index); | |
} else { | |
return resourcesBuilder_.getMessage(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder setResources( | |
int index, org.apache.mesos.Protos.Resource value) { | |
if (resourcesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureResourcesIsMutable(); | |
resources_.set(index, value); | |
onChanged(); | |
} else { | |
resourcesBuilder_.setMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder setResources( | |
int index, org.apache.mesos.Protos.Resource.Builder builderForValue) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
resources_.set(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
resourcesBuilder_.setMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder addResources(org.apache.mesos.Protos.Resource value) { | |
if (resourcesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureResourcesIsMutable(); | |
resources_.add(value); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addMessage(value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder addResources( | |
int index, org.apache.mesos.Protos.Resource value) { | |
if (resourcesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureResourcesIsMutable(); | |
resources_.add(index, value); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder addResources( | |
org.apache.mesos.Protos.Resource.Builder builderForValue) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
resources_.add(builderForValue.build()); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addMessage(builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder addResources( | |
int index, org.apache.mesos.Protos.Resource.Builder builderForValue) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
resources_.add(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder addAllResources( | |
java.lang.Iterable<? extends org.apache.mesos.Protos.Resource> values) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, resources_); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addAllMessages(values); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder clearResources() { | |
if (resourcesBuilder_ == null) { | |
resources_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000010); | |
onChanged(); | |
} else { | |
resourcesBuilder_.clear(); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public Builder removeResources(int index) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
resources_.remove(index); | |
onChanged(); | |
} else { | |
resourcesBuilder_.remove(index); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource.Builder getResourcesBuilder( | |
int index) { | |
return getResourcesFieldBuilder().getBuilder(index); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder( | |
int index) { | |
if (resourcesBuilder_ == null) { | |
return resources_.get(index); } else { | |
return resourcesBuilder_.getMessageOrBuilder(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.ResourceOrBuilder> | |
getResourcesOrBuilderList() { | |
if (resourcesBuilder_ != null) { | |
return resourcesBuilder_.getMessageOrBuilderList(); | |
} else { | |
return java.util.Collections.unmodifiableList(resources_); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource.Builder addResourcesBuilder() { | |
return getResourcesFieldBuilder().addBuilder( | |
org.apache.mesos.Protos.Resource.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource.Builder addResourcesBuilder( | |
int index) { | |
return getResourcesFieldBuilder().addBuilder( | |
index, org.apache.mesos.Protos.Resource.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 5;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Resource.Builder> | |
getResourcesBuilderList() { | |
return getResourcesFieldBuilder().getBuilderList(); | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder> | |
getResourcesFieldBuilder() { | |
if (resourcesBuilder_ == null) { | |
resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder>( | |
resources_, | |
((bitField0_ & 0x00000010) == 0x00000010), | |
getParentForChildren(), | |
isClean()); | |
resources_ = null; | |
} | |
return resourcesBuilder_; | |
} | |
private java.lang.Object name_ = ""; | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public boolean hasName() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public java.lang.String getName() { | |
java.lang.Object ref = name_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
name_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getNameBytes() { | |
java.lang.Object ref = name_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
name_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public Builder setName( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000020; | |
name_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public Builder clearName() { | |
bitField0_ = (bitField0_ & ~0x00000020); | |
name_ = getDefaultInstance().getName(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string name = 9;</code> | |
*/ | |
public Builder setNameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000020; | |
name_ = value; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object source_ = ""; | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public boolean hasSource() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public java.lang.String getSource() { | |
java.lang.Object ref = source_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
source_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getSourceBytes() { | |
java.lang.Object ref = source_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
source_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public Builder setSource( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000040; | |
source_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public Builder clearSource() { | |
bitField0_ = (bitField0_ & ~0x00000040); | |
source_ = getDefaultInstance().getSource(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string source = 10;</code> | |
* | |
* <pre> | |
* Source is an identifier style string used by frameworks to track | |
* the source of an executor. This is useful when it's possible for | |
* different executor ids to be related semantically. | |
* NOTE: Source is exposed alongside the resource usage of the | |
* executor via JSON on the slave. This allows users to import | |
* usage information into a time series database for monitoring. | |
* </pre> | |
*/ | |
public Builder setSourceBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000040; | |
source_ = value; | |
onChanged(); | |
return this; | |
} | |
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; | |
/** | |
* <code>optional bytes data = 4;</code> | |
*/ | |
public boolean hasData() { | |
return ((bitField0_ & 0x00000080) == 0x00000080); | |
} | |
/** | |
* <code>optional bytes data = 4;</code> | |
*/ | |
public com.google.protobuf.ByteString getData() { | |
return data_; | |
} | |
/** | |
* <code>optional bytes data = 4;</code> | |
*/ | |
public Builder setData(com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000080; | |
data_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional bytes data = 4;</code> | |
*/ | |
public Builder clearData() { | |
bitField0_ = (bitField0_ & ~0x00000080); | |
data_ = getDefaultInstance().getData(); | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.ExecutorInfo) | |
} | |
static { | |
defaultInstance = new ExecutorInfo(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.ExecutorInfo) | |
} | |
public interface MasterInfoOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.MasterInfo) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
boolean hasId(); | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
java.lang.String getId(); | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getIdBytes(); | |
/** | |
* <code>required uint32 ip = 2;</code> | |
*/ | |
boolean hasIp(); | |
/** | |
* <code>required uint32 ip = 2;</code> | |
*/ | |
int getIp(); | |
/** | |
* <code>required uint32 port = 3 [default = 5050];</code> | |
*/ | |
boolean hasPort(); | |
/** | |
* <code>required uint32 port = 3 [default = 5050];</code> | |
*/ | |
int getPort(); | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
boolean hasPid(); | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
java.lang.String getPid(); | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getPidBytes(); | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
boolean hasHostname(); | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
java.lang.String getHostname(); | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getHostnameBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.MasterInfo} | |
* | |
* <pre> | |
** | |
* Describes a master. This will probably have more fields in the | |
* future which might be used, for example, to link a framework webui | |
* to a master webui. | |
* </pre> | |
*/ | |
public static final class MasterInfo extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.MasterInfo) | |
MasterInfoOrBuilder { | |
// Use MasterInfo.newBuilder() to construct. | |
private MasterInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private MasterInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final MasterInfo defaultInstance; | |
public static MasterInfo getDefaultInstance() { | |
return defaultInstance; | |
} | |
public MasterInfo getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private MasterInfo( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
id_ = bs; | |
break; | |
} | |
case 16: { | |
bitField0_ |= 0x00000002; | |
ip_ = input.readUInt32(); | |
break; | |
} | |
case 24: { | |
bitField0_ |= 0x00000004; | |
port_ = input.readUInt32(); | |
break; | |
} | |
case 34: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000008; | |
pid_ = bs; | |
break; | |
} | |
case 42: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000010; | |
hostname_ = bs; | |
break; | |
} | |
} | |
} | |
} 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.Protos.internal_static_mesos_MasterInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_MasterInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.MasterInfo.class, org.apache.mesos.Protos.MasterInfo.Builder.class); | |
} | |
public static com.google.protobuf.Parser<MasterInfo> PARSER = | |
new com.google.protobuf.AbstractParser<MasterInfo>() { | |
public MasterInfo parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new MasterInfo(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<MasterInfo> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int ID_FIELD_NUMBER = 1; | |
private java.lang.Object id_; | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public boolean hasId() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public java.lang.String getId() { | |
java.lang.Object ref = id_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
id_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getIdBytes() { | |
java.lang.Object ref = id_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
id_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int IP_FIELD_NUMBER = 2; | |
private int ip_; | |
/** | |
* <code>required uint32 ip = 2;</code> | |
*/ | |
public boolean hasIp() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required uint32 ip = 2;</code> | |
*/ | |
public int getIp() { | |
return ip_; | |
} | |
public static final int PORT_FIELD_NUMBER = 3; | |
private int port_; | |
/** | |
* <code>required uint32 port = 3 [default = 5050];</code> | |
*/ | |
public boolean hasPort() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>required uint32 port = 3 [default = 5050];</code> | |
*/ | |
public int getPort() { | |
return port_; | |
} | |
public static final int PID_FIELD_NUMBER = 4; | |
private java.lang.Object pid_; | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public boolean hasPid() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public java.lang.String getPid() { | |
java.lang.Object ref = pid_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
pid_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getPidBytes() { | |
java.lang.Object ref = pid_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
pid_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int HOSTNAME_FIELD_NUMBER = 5; | |
private java.lang.Object hostname_; | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public boolean hasHostname() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public java.lang.String getHostname() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
hostname_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getHostnameBytes() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
hostname_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
id_ = ""; | |
ip_ = 0; | |
port_ = 5050; | |
pid_ = ""; | |
hostname_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasId()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasIp()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasPort()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getIdBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeUInt32(2, ip_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeUInt32(3, port_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeBytes(4, getPidBytes()); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeBytes(5, getHostnameBytes()); | |
} | |
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, getIdBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt32Size(2, ip_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt32Size(3, port_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(4, getPidBytes()); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(5, getHostnameBytes()); | |
} | |
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.Protos.MasterInfo parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.MasterInfo parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.MasterInfo parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.MasterInfo parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.MasterInfo parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.MasterInfo parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.MasterInfo parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.MasterInfo parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.MasterInfo parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.MasterInfo 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.Protos.MasterInfo 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.MasterInfo} | |
* | |
* <pre> | |
** | |
* Describes a master. This will probably have more fields in the | |
* future which might be used, for example, to link a framework webui | |
* to a master webui. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.MasterInfo) | |
org.apache.mesos.Protos.MasterInfoOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_MasterInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_MasterInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.MasterInfo.class, org.apache.mesos.Protos.MasterInfo.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.MasterInfo.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(); | |
id_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
ip_ = 0; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
port_ = 5050; | |
bitField0_ = (bitField0_ & ~0x00000004); | |
pid_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000008); | |
hostname_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000010); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_MasterInfo_descriptor; | |
} | |
public org.apache.mesos.Protos.MasterInfo getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.MasterInfo.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.MasterInfo build() { | |
org.apache.mesos.Protos.MasterInfo result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.MasterInfo buildPartial() { | |
org.apache.mesos.Protos.MasterInfo result = new org.apache.mesos.Protos.MasterInfo(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.id_ = id_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.ip_ = ip_; | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
result.port_ = port_; | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
result.pid_ = pid_; | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
result.hostname_ = hostname_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.MasterInfo) { | |
return mergeFrom((org.apache.mesos.Protos.MasterInfo)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.MasterInfo other) { | |
if (other == org.apache.mesos.Protos.MasterInfo.getDefaultInstance()) return this; | |
if (other.hasId()) { | |
bitField0_ |= 0x00000001; | |
id_ = other.id_; | |
onChanged(); | |
} | |
if (other.hasIp()) { | |
setIp(other.getIp()); | |
} | |
if (other.hasPort()) { | |
setPort(other.getPort()); | |
} | |
if (other.hasPid()) { | |
bitField0_ |= 0x00000008; | |
pid_ = other.pid_; | |
onChanged(); | |
} | |
if (other.hasHostname()) { | |
bitField0_ |= 0x00000010; | |
hostname_ = other.hostname_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasId()) { | |
return false; | |
} | |
if (!hasIp()) { | |
return false; | |
} | |
if (!hasPort()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.MasterInfo parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.MasterInfo) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object id_ = ""; | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public boolean hasId() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public java.lang.String getId() { | |
java.lang.Object ref = id_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
id_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getIdBytes() { | |
java.lang.Object ref = id_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
id_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public Builder setId( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
id_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public Builder clearId() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
id_ = getDefaultInstance().getId(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string id = 1;</code> | |
*/ | |
public Builder setIdBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
id_ = value; | |
onChanged(); | |
return this; | |
} | |
private int ip_ ; | |
/** | |
* <code>required uint32 ip = 2;</code> | |
*/ | |
public boolean hasIp() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required uint32 ip = 2;</code> | |
*/ | |
public int getIp() { | |
return ip_; | |
} | |
/** | |
* <code>required uint32 ip = 2;</code> | |
*/ | |
public Builder setIp(int value) { | |
bitField0_ |= 0x00000002; | |
ip_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required uint32 ip = 2;</code> | |
*/ | |
public Builder clearIp() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
ip_ = 0; | |
onChanged(); | |
return this; | |
} | |
private int port_ = 5050; | |
/** | |
* <code>required uint32 port = 3 [default = 5050];</code> | |
*/ | |
public boolean hasPort() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>required uint32 port = 3 [default = 5050];</code> | |
*/ | |
public int getPort() { | |
return port_; | |
} | |
/** | |
* <code>required uint32 port = 3 [default = 5050];</code> | |
*/ | |
public Builder setPort(int value) { | |
bitField0_ |= 0x00000004; | |
port_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required uint32 port = 3 [default = 5050];</code> | |
*/ | |
public Builder clearPort() { | |
bitField0_ = (bitField0_ & ~0x00000004); | |
port_ = 5050; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object pid_ = ""; | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public boolean hasPid() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public java.lang.String getPid() { | |
java.lang.Object ref = pid_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
pid_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getPidBytes() { | |
java.lang.Object ref = pid_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
pid_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public Builder setPid( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000008; | |
pid_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public Builder clearPid() { | |
bitField0_ = (bitField0_ & ~0x00000008); | |
pid_ = getDefaultInstance().getPid(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string pid = 4;</code> | |
*/ | |
public Builder setPidBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000008; | |
pid_ = value; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object hostname_ = ""; | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public boolean hasHostname() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public java.lang.String getHostname() { | |
java.lang.Object ref = hostname_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
hostname_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getHostnameBytes() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
hostname_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public Builder setHostname( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000010; | |
hostname_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public Builder clearHostname() { | |
bitField0_ = (bitField0_ & ~0x00000010); | |
hostname_ = getDefaultInstance().getHostname(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string hostname = 5;</code> | |
*/ | |
public Builder setHostnameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000010; | |
hostname_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.MasterInfo) | |
} | |
static { | |
defaultInstance = new MasterInfo(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.MasterInfo) | |
} | |
public interface SlaveInfoOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.SlaveInfo) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
boolean hasHostname(); | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
java.lang.String getHostname(); | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getHostnameBytes(); | |
/** | |
* <code>optional int32 port = 8 [default = 5051];</code> | |
*/ | |
boolean hasPort(); | |
/** | |
* <code>optional int32 port = 8 [default = 5051];</code> | |
*/ | |
int getPort(); | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
java.util.List<org.apache.mesos.Protos.Resource> | |
getResourcesList(); | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
org.apache.mesos.Protos.Resource getResources(int index); | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
int getResourcesCount(); | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
java.util.List<? extends org.apache.mesos.Protos.ResourceOrBuilder> | |
getResourcesOrBuilderList(); | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder( | |
int index); | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
java.util.List<org.apache.mesos.Protos.Attribute> | |
getAttributesList(); | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
org.apache.mesos.Protos.Attribute getAttributes(int index); | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
int getAttributesCount(); | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
java.util.List<? extends org.apache.mesos.Protos.AttributeOrBuilder> | |
getAttributesOrBuilderList(); | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
org.apache.mesos.Protos.AttributeOrBuilder getAttributesOrBuilder( | |
int index); | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
boolean hasId(); | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
org.apache.mesos.Protos.SlaveID getId(); | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
org.apache.mesos.Protos.SlaveIDOrBuilder getIdOrBuilder(); | |
/** | |
* <code>optional bool checkpoint = 7 [default = false];</code> | |
*/ | |
boolean hasCheckpoint(); | |
/** | |
* <code>optional bool checkpoint = 7 [default = false];</code> | |
*/ | |
boolean getCheckpoint(); | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
boolean hasWebuiHostname(); | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
java.lang.String getWebuiHostname(); | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
com.google.protobuf.ByteString | |
getWebuiHostnameBytes(); | |
/** | |
* <code>optional int32 webui_port = 4 [default = 8081];</code> | |
*/ | |
boolean hasWebuiPort(); | |
/** | |
* <code>optional int32 webui_port = 4 [default = 8081];</code> | |
*/ | |
int getWebuiPort(); | |
} | |
/** | |
* Protobuf type {@code mesos.SlaveInfo} | |
* | |
* <pre> | |
** | |
* Describes a slave. Note that the 'id' field is only available after | |
* a slave is registered with the master, and is made available here | |
* to facilitate re-registration. If checkpoint is set, the slave is | |
* checkpointing its own information and potentially frameworks' | |
* information (if a framework has checkpointing enabled). | |
* </pre> | |
*/ | |
public static final class SlaveInfo extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.SlaveInfo) | |
SlaveInfoOrBuilder { | |
// Use SlaveInfo.newBuilder() to construct. | |
private SlaveInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private SlaveInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final SlaveInfo defaultInstance; | |
public static SlaveInfo getDefaultInstance() { | |
return defaultInstance; | |
} | |
public SlaveInfo getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private SlaveInfo( | |
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; | |
hostname_ = bs; | |
break; | |
} | |
case 18: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000010; | |
webuiHostname_ = bs; | |
break; | |
} | |
case 26: { | |
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { | |
resources_ = new java.util.ArrayList<org.apache.mesos.Protos.Resource>(); | |
mutable_bitField0_ |= 0x00000004; | |
} | |
resources_.add(input.readMessage(org.apache.mesos.Protos.Resource.PARSER, extensionRegistry)); | |
break; | |
} | |
case 32: { | |
bitField0_ |= 0x00000020; | |
webuiPort_ = input.readInt32(); | |
break; | |
} | |
case 42: { | |
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { | |
attributes_ = new java.util.ArrayList<org.apache.mesos.Protos.Attribute>(); | |
mutable_bitField0_ |= 0x00000008; | |
} | |
attributes_.add(input.readMessage(org.apache.mesos.Protos.Attribute.PARSER, extensionRegistry)); | |
break; | |
} | |
case 50: { | |
org.apache.mesos.Protos.SlaveID.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
subBuilder = id_.toBuilder(); | |
} | |
id_ = input.readMessage(org.apache.mesos.Protos.SlaveID.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(id_); | |
id_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000004; | |
break; | |
} | |
case 56: { | |
bitField0_ |= 0x00000008; | |
checkpoint_ = input.readBool(); | |
break; | |
} | |
case 64: { | |
bitField0_ |= 0x00000002; | |
port_ = input.readInt32(); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { | |
resources_ = java.util.Collections.unmodifiableList(resources_); | |
} | |
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { | |
attributes_ = java.util.Collections.unmodifiableList(attributes_); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.SlaveInfo.class, org.apache.mesos.Protos.SlaveInfo.Builder.class); | |
} | |
public static com.google.protobuf.Parser<SlaveInfo> PARSER = | |
new com.google.protobuf.AbstractParser<SlaveInfo>() { | |
public SlaveInfo parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new SlaveInfo(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<SlaveInfo> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int HOSTNAME_FIELD_NUMBER = 1; | |
private java.lang.Object hostname_; | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public boolean hasHostname() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public java.lang.String getHostname() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
hostname_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getHostnameBytes() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
hostname_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int PORT_FIELD_NUMBER = 8; | |
private int port_; | |
/** | |
* <code>optional int32 port = 8 [default = 5051];</code> | |
*/ | |
public boolean hasPort() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional int32 port = 8 [default = 5051];</code> | |
*/ | |
public int getPort() { | |
return port_; | |
} | |
public static final int RESOURCES_FIELD_NUMBER = 3; | |
private java.util.List<org.apache.mesos.Protos.Resource> resources_; | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Resource> getResourcesList() { | |
return resources_; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.ResourceOrBuilder> | |
getResourcesOrBuilderList() { | |
return resources_; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public int getResourcesCount() { | |
return resources_.size(); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource getResources(int index) { | |
return resources_.get(index); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder( | |
int index) { | |
return resources_.get(index); | |
} | |
public static final int ATTRIBUTES_FIELD_NUMBER = 5; | |
private java.util.List<org.apache.mesos.Protos.Attribute> attributes_; | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Attribute> getAttributesList() { | |
return attributes_; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.AttributeOrBuilder> | |
getAttributesOrBuilderList() { | |
return attributes_; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public int getAttributesCount() { | |
return attributes_.size(); | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Attribute getAttributes(int index) { | |
return attributes_.get(index); | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.AttributeOrBuilder getAttributesOrBuilder( | |
int index) { | |
return attributes_.get(index); | |
} | |
public static final int ID_FIELD_NUMBER = 6; | |
private org.apache.mesos.Protos.SlaveID id_; | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public boolean hasId() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveID getId() { | |
return id_; | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveIDOrBuilder getIdOrBuilder() { | |
return id_; | |
} | |
public static final int CHECKPOINT_FIELD_NUMBER = 7; | |
private boolean checkpoint_; | |
/** | |
* <code>optional bool checkpoint = 7 [default = false];</code> | |
*/ | |
public boolean hasCheckpoint() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional bool checkpoint = 7 [default = false];</code> | |
*/ | |
public boolean getCheckpoint() { | |
return checkpoint_; | |
} | |
public static final int WEBUI_HOSTNAME_FIELD_NUMBER = 2; | |
private java.lang.Object webuiHostname_; | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public boolean hasWebuiHostname() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public java.lang.String getWebuiHostname() { | |
java.lang.Object ref = webuiHostname_; | |
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()) { | |
webuiHostname_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getWebuiHostnameBytes() { | |
java.lang.Object ref = webuiHostname_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
webuiHostname_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int WEBUI_PORT_FIELD_NUMBER = 4; | |
private int webuiPort_; | |
/** | |
* <code>optional int32 webui_port = 4 [default = 8081];</code> | |
*/ | |
public boolean hasWebuiPort() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional int32 webui_port = 4 [default = 8081];</code> | |
*/ | |
public int getWebuiPort() { | |
return webuiPort_; | |
} | |
private void initFields() { | |
hostname_ = ""; | |
port_ = 5051; | |
resources_ = java.util.Collections.emptyList(); | |
attributes_ = java.util.Collections.emptyList(); | |
id_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
checkpoint_ = false; | |
webuiHostname_ = ""; | |
webuiPort_ = 8081; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasHostname()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
for (int i = 0; i < getResourcesCount(); i++) { | |
if (!getResources(i).isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
for (int i = 0; i < getAttributesCount(); i++) { | |
if (!getAttributes(i).isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasId()) { | |
if (!getId().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getHostnameBytes()); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeBytes(2, getWebuiHostnameBytes()); | |
} | |
for (int i = 0; i < resources_.size(); i++) { | |
output.writeMessage(3, resources_.get(i)); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
output.writeInt32(4, webuiPort_); | |
} | |
for (int i = 0; i < attributes_.size(); i++) { | |
output.writeMessage(5, attributes_.get(i)); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeMessage(6, id_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeBool(7, checkpoint_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeInt32(8, port_); | |
} | |
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, getHostnameBytes()); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(2, getWebuiHostnameBytes()); | |
} | |
for (int i = 0; i < resources_.size(); i++) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(3, resources_.get(i)); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeInt32Size(4, webuiPort_); | |
} | |
for (int i = 0; i < attributes_.size(); i++) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(5, attributes_.get(i)); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(6, id_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBoolSize(7, checkpoint_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeInt32Size(8, port_); | |
} | |
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.Protos.SlaveInfo parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.SlaveInfo 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.Protos.SlaveInfo parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.SlaveInfo parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.SlaveInfo parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.SlaveInfo parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.SlaveInfo parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.SlaveInfo parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.SlaveInfo parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.SlaveInfo 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.Protos.SlaveInfo 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.SlaveInfo} | |
* | |
* <pre> | |
** | |
* Describes a slave. Note that the 'id' field is only available after | |
* a slave is registered with the master, and is made available here | |
* to facilitate re-registration. If checkpoint is set, the slave is | |
* checkpointing its own information and potentially frameworks' | |
* information (if a framework has checkpointing enabled). | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.SlaveInfo) | |
org.apache.mesos.Protos.SlaveInfoOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveInfo_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveInfo_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.SlaveInfo.class, org.apache.mesos.Protos.SlaveInfo.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.SlaveInfo.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getResourcesFieldBuilder(); | |
getAttributesFieldBuilder(); | |
getIdFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
hostname_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
port_ = 5051; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
if (resourcesBuilder_ == null) { | |
resources_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000004); | |
} else { | |
resourcesBuilder_.clear(); | |
} | |
if (attributesBuilder_ == null) { | |
attributes_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000008); | |
} else { | |
attributesBuilder_.clear(); | |
} | |
if (idBuilder_ == null) { | |
id_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
} else { | |
idBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
checkpoint_ = false; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
webuiHostname_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000040); | |
webuiPort_ = 8081; | |
bitField0_ = (bitField0_ & ~0x00000080); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_SlaveInfo_descriptor; | |
} | |
public org.apache.mesos.Protos.SlaveInfo getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.SlaveInfo.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.SlaveInfo build() { | |
org.apache.mesos.Protos.SlaveInfo result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.SlaveInfo buildPartial() { | |
org.apache.mesos.Protos.SlaveInfo result = new org.apache.mesos.Protos.SlaveInfo(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.hostname_ = hostname_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.port_ = port_; | |
if (resourcesBuilder_ == null) { | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
resources_ = java.util.Collections.unmodifiableList(resources_); | |
bitField0_ = (bitField0_ & ~0x00000004); | |
} | |
result.resources_ = resources_; | |
} else { | |
result.resources_ = resourcesBuilder_.build(); | |
} | |
if (attributesBuilder_ == null) { | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
attributes_ = java.util.Collections.unmodifiableList(attributes_); | |
bitField0_ = (bitField0_ & ~0x00000008); | |
} | |
result.attributes_ = attributes_; | |
} else { | |
result.attributes_ = attributesBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
if (idBuilder_ == null) { | |
result.id_ = id_; | |
} else { | |
result.id_ = idBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000020) == 0x00000020)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
result.checkpoint_ = checkpoint_; | |
if (((from_bitField0_ & 0x00000040) == 0x00000040)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
result.webuiHostname_ = webuiHostname_; | |
if (((from_bitField0_ & 0x00000080) == 0x00000080)) { | |
to_bitField0_ |= 0x00000020; | |
} | |
result.webuiPort_ = webuiPort_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.SlaveInfo) { | |
return mergeFrom((org.apache.mesos.Protos.SlaveInfo)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.SlaveInfo other) { | |
if (other == org.apache.mesos.Protos.SlaveInfo.getDefaultInstance()) return this; | |
if (other.hasHostname()) { | |
bitField0_ |= 0x00000001; | |
hostname_ = other.hostname_; | |
onChanged(); | |
} | |
if (other.hasPort()) { | |
setPort(other.getPort()); | |
} | |
if (resourcesBuilder_ == null) { | |
if (!other.resources_.isEmpty()) { | |
if (resources_.isEmpty()) { | |
resources_ = other.resources_; | |
bitField0_ = (bitField0_ & ~0x00000004); | |
} else { | |
ensureResourcesIsMutable(); | |
resources_.addAll(other.resources_); | |
} | |
onChanged(); | |
} | |
} else { | |
if (!other.resources_.isEmpty()) { | |
if (resourcesBuilder_.isEmpty()) { | |
resourcesBuilder_.dispose(); | |
resourcesBuilder_ = null; | |
resources_ = other.resources_; | |
bitField0_ = (bitField0_ & ~0x00000004); | |
resourcesBuilder_ = | |
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? | |
getResourcesFieldBuilder() : null; | |
} else { | |
resourcesBuilder_.addAllMessages(other.resources_); | |
} | |
} | |
} | |
if (attributesBuilder_ == null) { | |
if (!other.attributes_.isEmpty()) { | |
if (attributes_.isEmpty()) { | |
attributes_ = other.attributes_; | |
bitField0_ = (bitField0_ & ~0x00000008); | |
} else { | |
ensureAttributesIsMutable(); | |
attributes_.addAll(other.attributes_); | |
} | |
onChanged(); | |
} | |
} else { | |
if (!other.attributes_.isEmpty()) { | |
if (attributesBuilder_.isEmpty()) { | |
attributesBuilder_.dispose(); | |
attributesBuilder_ = null; | |
attributes_ = other.attributes_; | |
bitField0_ = (bitField0_ & ~0x00000008); | |
attributesBuilder_ = | |
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? | |
getAttributesFieldBuilder() : null; | |
} else { | |
attributesBuilder_.addAllMessages(other.attributes_); | |
} | |
} | |
} | |
if (other.hasId()) { | |
mergeId(other.getId()); | |
} | |
if (other.hasCheckpoint()) { | |
setCheckpoint(other.getCheckpoint()); | |
} | |
if (other.hasWebuiHostname()) { | |
bitField0_ |= 0x00000040; | |
webuiHostname_ = other.webuiHostname_; | |
onChanged(); | |
} | |
if (other.hasWebuiPort()) { | |
setWebuiPort(other.getWebuiPort()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasHostname()) { | |
return false; | |
} | |
for (int i = 0; i < getResourcesCount(); i++) { | |
if (!getResources(i).isInitialized()) { | |
return false; | |
} | |
} | |
for (int i = 0; i < getAttributesCount(); i++) { | |
if (!getAttributes(i).isInitialized()) { | |
return false; | |
} | |
} | |
if (hasId()) { | |
if (!getId().isInitialized()) { | |
return false; | |
} | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.SlaveInfo parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.SlaveInfo) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object hostname_ = ""; | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public boolean hasHostname() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public java.lang.String getHostname() { | |
java.lang.Object ref = hostname_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
hostname_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getHostnameBytes() { | |
java.lang.Object ref = hostname_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
hostname_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public Builder setHostname( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
hostname_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public Builder clearHostname() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
hostname_ = getDefaultInstance().getHostname(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string hostname = 1;</code> | |
*/ | |
public Builder setHostnameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
hostname_ = value; | |
onChanged(); | |
return this; | |
} | |
private int port_ = 5051; | |
/** | |
* <code>optional int32 port = 8 [default = 5051];</code> | |
*/ | |
public boolean hasPort() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional int32 port = 8 [default = 5051];</code> | |
*/ | |
public int getPort() { | |
return port_; | |
} | |
/** | |
* <code>optional int32 port = 8 [default = 5051];</code> | |
*/ | |
public Builder setPort(int value) { | |
bitField0_ |= 0x00000002; | |
port_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional int32 port = 8 [default = 5051];</code> | |
*/ | |
public Builder clearPort() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
port_ = 5051; | |
onChanged(); | |
return this; | |
} | |
private java.util.List<org.apache.mesos.Protos.Resource> resources_ = | |
java.util.Collections.emptyList(); | |
private void ensureResourcesIsMutable() { | |
if (!((bitField0_ & 0x00000004) == 0x00000004)) { | |
resources_ = new java.util.ArrayList<org.apache.mesos.Protos.Resource>(resources_); | |
bitField0_ |= 0x00000004; | |
} | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder> resourcesBuilder_; | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Resource> getResourcesList() { | |
if (resourcesBuilder_ == null) { | |
return java.util.Collections.unmodifiableList(resources_); | |
} else { | |
return resourcesBuilder_.getMessageList(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public int getResourcesCount() { | |
if (resourcesBuilder_ == null) { | |
return resources_.size(); | |
} else { | |
return resourcesBuilder_.getCount(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource getResources(int index) { | |
if (resourcesBuilder_ == null) { | |
return resources_.get(index); | |
} else { | |
return resourcesBuilder_.getMessage(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder setResources( | |
int index, org.apache.mesos.Protos.Resource value) { | |
if (resourcesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureResourcesIsMutable(); | |
resources_.set(index, value); | |
onChanged(); | |
} else { | |
resourcesBuilder_.setMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder setResources( | |
int index, org.apache.mesos.Protos.Resource.Builder builderForValue) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
resources_.set(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
resourcesBuilder_.setMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder addResources(org.apache.mesos.Protos.Resource value) { | |
if (resourcesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureResourcesIsMutable(); | |
resources_.add(value); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addMessage(value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder addResources( | |
int index, org.apache.mesos.Protos.Resource value) { | |
if (resourcesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureResourcesIsMutable(); | |
resources_.add(index, value); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder addResources( | |
org.apache.mesos.Protos.Resource.Builder builderForValue) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
resources_.add(builderForValue.build()); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addMessage(builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder addResources( | |
int index, org.apache.mesos.Protos.Resource.Builder builderForValue) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
resources_.add(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder addAllResources( | |
java.lang.Iterable<? extends org.apache.mesos.Protos.Resource> values) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, resources_); | |
onChanged(); | |
} else { | |
resourcesBuilder_.addAllMessages(values); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder clearResources() { | |
if (resourcesBuilder_ == null) { | |
resources_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000004); | |
onChanged(); | |
} else { | |
resourcesBuilder_.clear(); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public Builder removeResources(int index) { | |
if (resourcesBuilder_ == null) { | |
ensureResourcesIsMutable(); | |
resources_.remove(index); | |
onChanged(); | |
} else { | |
resourcesBuilder_.remove(index); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource.Builder getResourcesBuilder( | |
int index) { | |
return getResourcesFieldBuilder().getBuilder(index); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder( | |
int index) { | |
if (resourcesBuilder_ == null) { | |
return resources_.get(index); } else { | |
return resourcesBuilder_.getMessageOrBuilder(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.ResourceOrBuilder> | |
getResourcesOrBuilderList() { | |
if (resourcesBuilder_ != null) { | |
return resourcesBuilder_.getMessageOrBuilderList(); | |
} else { | |
return java.util.Collections.unmodifiableList(resources_); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource.Builder addResourcesBuilder() { | |
return getResourcesFieldBuilder().addBuilder( | |
org.apache.mesos.Protos.Resource.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Resource.Builder addResourcesBuilder( | |
int index) { | |
return getResourcesFieldBuilder().addBuilder( | |
index, org.apache.mesos.Protos.Resource.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.Resource resources = 3;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Resource.Builder> | |
getResourcesBuilderList() { | |
return getResourcesFieldBuilder().getBuilderList(); | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder> | |
getResourcesFieldBuilder() { | |
if (resourcesBuilder_ == null) { | |
resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder>( | |
resources_, | |
((bitField0_ & 0x00000004) == 0x00000004), | |
getParentForChildren(), | |
isClean()); | |
resources_ = null; | |
} | |
return resourcesBuilder_; | |
} | |
private java.util.List<org.apache.mesos.Protos.Attribute> attributes_ = | |
java.util.Collections.emptyList(); | |
private void ensureAttributesIsMutable() { | |
if (!((bitField0_ & 0x00000008) == 0x00000008)) { | |
attributes_ = new java.util.ArrayList<org.apache.mesos.Protos.Attribute>(attributes_); | |
bitField0_ |= 0x00000008; | |
} | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Attribute, org.apache.mesos.Protos.Attribute.Builder, org.apache.mesos.Protos.AttributeOrBuilder> attributesBuilder_; | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Attribute> getAttributesList() { | |
if (attributesBuilder_ == null) { | |
return java.util.Collections.unmodifiableList(attributes_); | |
} else { | |
return attributesBuilder_.getMessageList(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public int getAttributesCount() { | |
if (attributesBuilder_ == null) { | |
return attributes_.size(); | |
} else { | |
return attributesBuilder_.getCount(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Attribute getAttributes(int index) { | |
if (attributesBuilder_ == null) { | |
return attributes_.get(index); | |
} else { | |
return attributesBuilder_.getMessage(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder setAttributes( | |
int index, org.apache.mesos.Protos.Attribute value) { | |
if (attributesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureAttributesIsMutable(); | |
attributes_.set(index, value); | |
onChanged(); | |
} else { | |
attributesBuilder_.setMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder setAttributes( | |
int index, org.apache.mesos.Protos.Attribute.Builder builderForValue) { | |
if (attributesBuilder_ == null) { | |
ensureAttributesIsMutable(); | |
attributes_.set(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
attributesBuilder_.setMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder addAttributes(org.apache.mesos.Protos.Attribute value) { | |
if (attributesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureAttributesIsMutable(); | |
attributes_.add(value); | |
onChanged(); | |
} else { | |
attributesBuilder_.addMessage(value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder addAttributes( | |
int index, org.apache.mesos.Protos.Attribute value) { | |
if (attributesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureAttributesIsMutable(); | |
attributes_.add(index, value); | |
onChanged(); | |
} else { | |
attributesBuilder_.addMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder addAttributes( | |
org.apache.mesos.Protos.Attribute.Builder builderForValue) { | |
if (attributesBuilder_ == null) { | |
ensureAttributesIsMutable(); | |
attributes_.add(builderForValue.build()); | |
onChanged(); | |
} else { | |
attributesBuilder_.addMessage(builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder addAttributes( | |
int index, org.apache.mesos.Protos.Attribute.Builder builderForValue) { | |
if (attributesBuilder_ == null) { | |
ensureAttributesIsMutable(); | |
attributes_.add(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
attributesBuilder_.addMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder addAllAttributes( | |
java.lang.Iterable<? extends org.apache.mesos.Protos.Attribute> values) { | |
if (attributesBuilder_ == null) { | |
ensureAttributesIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, attributes_); | |
onChanged(); | |
} else { | |
attributesBuilder_.addAllMessages(values); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder clearAttributes() { | |
if (attributesBuilder_ == null) { | |
attributes_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000008); | |
onChanged(); | |
} else { | |
attributesBuilder_.clear(); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public Builder removeAttributes(int index) { | |
if (attributesBuilder_ == null) { | |
ensureAttributesIsMutable(); | |
attributes_.remove(index); | |
onChanged(); | |
} else { | |
attributesBuilder_.remove(index); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Attribute.Builder getAttributesBuilder( | |
int index) { | |
return getAttributesFieldBuilder().getBuilder(index); | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.AttributeOrBuilder getAttributesOrBuilder( | |
int index) { | |
if (attributesBuilder_ == null) { | |
return attributes_.get(index); } else { | |
return attributesBuilder_.getMessageOrBuilder(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.AttributeOrBuilder> | |
getAttributesOrBuilderList() { | |
if (attributesBuilder_ != null) { | |
return attributesBuilder_.getMessageOrBuilderList(); | |
} else { | |
return java.util.Collections.unmodifiableList(attributes_); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Attribute.Builder addAttributesBuilder() { | |
return getAttributesFieldBuilder().addBuilder( | |
org.apache.mesos.Protos.Attribute.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Attribute.Builder addAttributesBuilder( | |
int index) { | |
return getAttributesFieldBuilder().addBuilder( | |
index, org.apache.mesos.Protos.Attribute.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.Attribute attributes = 5;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Attribute.Builder> | |
getAttributesBuilderList() { | |
return getAttributesFieldBuilder().getBuilderList(); | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Attribute, org.apache.mesos.Protos.Attribute.Builder, org.apache.mesos.Protos.AttributeOrBuilder> | |
getAttributesFieldBuilder() { | |
if (attributesBuilder_ == null) { | |
attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Attribute, org.apache.mesos.Protos.Attribute.Builder, org.apache.mesos.Protos.AttributeOrBuilder>( | |
attributes_, | |
((bitField0_ & 0x00000008) == 0x00000008), | |
getParentForChildren(), | |
isClean()); | |
attributes_ = null; | |
} | |
return attributesBuilder_; | |
} | |
private org.apache.mesos.Protos.SlaveID id_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder> idBuilder_; | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public boolean hasId() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveID getId() { | |
if (idBuilder_ == null) { | |
return id_; | |
} else { | |
return idBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public Builder setId(org.apache.mesos.Protos.SlaveID value) { | |
if (idBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
id_ = value; | |
onChanged(); | |
} else { | |
idBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public Builder setId( | |
org.apache.mesos.Protos.SlaveID.Builder builderForValue) { | |
if (idBuilder_ == null) { | |
id_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
idBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public Builder mergeId(org.apache.mesos.Protos.SlaveID value) { | |
if (idBuilder_ == null) { | |
if (((bitField0_ & 0x00000010) == 0x00000010) && | |
id_ != org.apache.mesos.Protos.SlaveID.getDefaultInstance()) { | |
id_ = | |
org.apache.mesos.Protos.SlaveID.newBuilder(id_).mergeFrom(value).buildPartial(); | |
} else { | |
id_ = value; | |
} | |
onChanged(); | |
} else { | |
idBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public Builder clearId() { | |
if (idBuilder_ == null) { | |
id_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
onChanged(); | |
} else { | |
idBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveID.Builder getIdBuilder() { | |
bitField0_ |= 0x00000010; | |
onChanged(); | |
return getIdFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveIDOrBuilder getIdOrBuilder() { | |
if (idBuilder_ != null) { | |
return idBuilder_.getMessageOrBuilder(); | |
} else { | |
return id_; | |
} | |
} | |
/** | |
* <code>optional .mesos.SlaveID id = 6;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder> | |
getIdFieldBuilder() { | |
if (idBuilder_ == null) { | |
idBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder>( | |
getId(), | |
getParentForChildren(), | |
isClean()); | |
id_ = null; | |
} | |
return idBuilder_; | |
} | |
private boolean checkpoint_ ; | |
/** | |
* <code>optional bool checkpoint = 7 [default = false];</code> | |
*/ | |
public boolean hasCheckpoint() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional bool checkpoint = 7 [default = false];</code> | |
*/ | |
public boolean getCheckpoint() { | |
return checkpoint_; | |
} | |
/** | |
* <code>optional bool checkpoint = 7 [default = false];</code> | |
*/ | |
public Builder setCheckpoint(boolean value) { | |
bitField0_ |= 0x00000020; | |
checkpoint_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional bool checkpoint = 7 [default = false];</code> | |
*/ | |
public Builder clearCheckpoint() { | |
bitField0_ = (bitField0_ & ~0x00000020); | |
checkpoint_ = false; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object webuiHostname_ = ""; | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public boolean hasWebuiHostname() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public java.lang.String getWebuiHostname() { | |
java.lang.Object ref = webuiHostname_; | |
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()) { | |
webuiHostname_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getWebuiHostnameBytes() { | |
java.lang.Object ref = webuiHostname_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
webuiHostname_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public Builder setWebuiHostname( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000040; | |
webuiHostname_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public Builder clearWebuiHostname() { | |
bitField0_ = (bitField0_ & ~0x00000040); | |
webuiHostname_ = getDefaultInstance().getWebuiHostname(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string webui_hostname = 2;</code> | |
* | |
* <pre> | |
* Deprecated! | |
* </pre> | |
*/ | |
public Builder setWebuiHostnameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000040; | |
webuiHostname_ = value; | |
onChanged(); | |
return this; | |
} | |
private int webuiPort_ = 8081; | |
/** | |
* <code>optional int32 webui_port = 4 [default = 8081];</code> | |
*/ | |
public boolean hasWebuiPort() { | |
return ((bitField0_ & 0x00000080) == 0x00000080); | |
} | |
/** | |
* <code>optional int32 webui_port = 4 [default = 8081];</code> | |
*/ | |
public int getWebuiPort() { | |
return webuiPort_; | |
} | |
/** | |
* <code>optional int32 webui_port = 4 [default = 8081];</code> | |
*/ | |
public Builder setWebuiPort(int value) { | |
bitField0_ |= 0x00000080; | |
webuiPort_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional int32 webui_port = 4 [default = 8081];</code> | |
*/ | |
public Builder clearWebuiPort() { | |
bitField0_ = (bitField0_ & ~0x00000080); | |
webuiPort_ = 8081; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.SlaveInfo) | |
} | |
static { | |
defaultInstance = new SlaveInfo(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.SlaveInfo) | |
} | |
public interface ValueOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.Value) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required .mesos.Value.Type type = 1;</code> | |
*/ | |
boolean hasType(); | |
/** | |
* <code>required .mesos.Value.Type type = 1;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Type getType(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
boolean hasScalar(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Scalar getScalar(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
boolean hasRanges(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Ranges getRanges(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder(); | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
boolean hasSet(); | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Set getSet(); | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder(); | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
boolean hasText(); | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Text getText(); | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
org.apache.mesos.Protos.Value.TextOrBuilder getTextOrBuilder(); | |
} | |
/** | |
* Protobuf type {@code mesos.Value} | |
* | |
* <pre> | |
** | |
* Describes an Attribute or Resource "value". A value is described | |
* using the standard protocol buffer "union" trick. | |
* </pre> | |
*/ | |
public static final class Value extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.Value) | |
ValueOrBuilder { | |
// Use Value.newBuilder() to construct. | |
private Value(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private Value(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final Value defaultInstance; | |
public static Value getDefaultInstance() { | |
return defaultInstance; | |
} | |
public Value getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private Value( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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.Protos.Value.Type value = org.apache.mesos.Protos.Value.Type.valueOf(rawValue); | |
if (value == null) { | |
unknownFields.mergeVarintField(1, rawValue); | |
} else { | |
bitField0_ |= 0x00000001; | |
type_ = value; | |
} | |
break; | |
} | |
case 18: { | |
org.apache.mesos.Protos.Value.Scalar.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
subBuilder = scalar_.toBuilder(); | |
} | |
scalar_ = input.readMessage(org.apache.mesos.Protos.Value.Scalar.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(scalar_); | |
scalar_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000002; | |
break; | |
} | |
case 26: { | |
org.apache.mesos.Protos.Value.Ranges.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
subBuilder = ranges_.toBuilder(); | |
} | |
ranges_ = input.readMessage(org.apache.mesos.Protos.Value.Ranges.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(ranges_); | |
ranges_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000004; | |
break; | |
} | |
case 34: { | |
org.apache.mesos.Protos.Value.Set.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
subBuilder = set_.toBuilder(); | |
} | |
set_ = input.readMessage(org.apache.mesos.Protos.Value.Set.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(set_); | |
set_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000008; | |
break; | |
} | |
case 42: { | |
org.apache.mesos.Protos.Value.Text.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
subBuilder = text_.toBuilder(); | |
} | |
text_ = input.readMessage(org.apache.mesos.Protos.Value.Text.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(text_); | |
text_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000010; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.class, org.apache.mesos.Protos.Value.Builder.class); | |
} | |
public static com.google.protobuf.Parser<Value> PARSER = | |
new com.google.protobuf.AbstractParser<Value>() { | |
public Value parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new Value(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<Value> getParserForType() { | |
return PARSER; | |
} | |
/** | |
* Protobuf enum {@code mesos.Value.Type} | |
*/ | |
public enum Type | |
implements com.google.protobuf.ProtocolMessageEnum { | |
/** | |
* <code>SCALAR = 0;</code> | |
*/ | |
SCALAR(0, 0), | |
/** | |
* <code>RANGES = 1;</code> | |
*/ | |
RANGES(1, 1), | |
/** | |
* <code>SET = 2;</code> | |
*/ | |
SET(2, 2), | |
/** | |
* <code>TEXT = 3;</code> | |
*/ | |
TEXT(3, 3), | |
; | |
/** | |
* <code>SCALAR = 0;</code> | |
*/ | |
public static final int SCALAR_VALUE = 0; | |
/** | |
* <code>RANGES = 1;</code> | |
*/ | |
public static final int RANGES_VALUE = 1; | |
/** | |
* <code>SET = 2;</code> | |
*/ | |
public static final int SET_VALUE = 2; | |
/** | |
* <code>TEXT = 3;</code> | |
*/ | |
public static final int TEXT_VALUE = 3; | |
public final int getNumber() { return value; } | |
public static Type valueOf(int value) { | |
switch (value) { | |
case 0: return SCALAR; | |
case 1: return RANGES; | |
case 2: return SET; | |
case 3: return TEXT; | |
default: return null; | |
} | |
} | |
public static com.google.protobuf.Internal.EnumLiteMap<Type> | |
internalGetValueMap() { | |
return internalValueMap; | |
} | |
private static com.google.protobuf.Internal.EnumLiteMap<Type> | |
internalValueMap = | |
new com.google.protobuf.Internal.EnumLiteMap<Type>() { | |
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.Protos.Value.getDescriptor().getEnumTypes().get(0); | |
} | |
private static final Type[] VALUES = values(); | |
public static Type valueOf( | |
com.google.protobuf.Descriptors.EnumValueDescriptor desc) { | |
if (desc.getType() != getDescriptor()) { | |
throw new java.lang.IllegalArgumentException( | |
"EnumValueDescriptor is not for this type."); | |
} | |
return VALUES[desc.getIndex()]; | |
} | |
private final int index; | |
private final int value; | |
private Type(int index, int value) { | |
this.index = index; | |
this.value = value; | |
} | |
// @@protoc_insertion_point(enum_scope:mesos.Value.Type) | |
} | |
public interface ScalarOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.Value.Scalar) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required double value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required double value = 1;</code> | |
*/ | |
double getValue(); | |
} | |
/** | |
* Protobuf type {@code mesos.Value.Scalar} | |
*/ | |
public static final class Scalar extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.Value.Scalar) | |
ScalarOrBuilder { | |
// Use Scalar.newBuilder() to construct. | |
private Scalar(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private Scalar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final Scalar defaultInstance; | |
public static Scalar getDefaultInstance() { | |
return defaultInstance; | |
} | |
public Scalar getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private Scalar( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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 9: { | |
bitField0_ |= 0x00000001; | |
value_ = input.readDouble(); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Scalar_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Scalar_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Scalar.class, org.apache.mesos.Protos.Value.Scalar.Builder.class); | |
} | |
public static com.google.protobuf.Parser<Scalar> PARSER = | |
new com.google.protobuf.AbstractParser<Scalar>() { | |
public Scalar parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new Scalar(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<Scalar> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private double value_; | |
/** | |
* <code>required double value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required double value = 1;</code> | |
*/ | |
public double getValue() { | |
return value_; | |
} | |
private void initFields() { | |
value_ = 0D; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeDouble(1, value_); | |
} | |
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 | |
.computeDoubleSize(1, value_); | |
} | |
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.Protos.Value.Scalar parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Scalar 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.Protos.Value.Scalar 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.Value.Scalar} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.Value.Scalar) | |
org.apache.mesos.Protos.Value.ScalarOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Scalar_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Scalar_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Scalar.class, org.apache.mesos.Protos.Value.Scalar.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.Value.Scalar.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(); | |
value_ = 0D; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Scalar_descriptor; | |
} | |
public org.apache.mesos.Protos.Value.Scalar getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.Value.Scalar build() { | |
org.apache.mesos.Protos.Value.Scalar result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.Value.Scalar buildPartial() { | |
org.apache.mesos.Protos.Value.Scalar result = new org.apache.mesos.Protos.Value.Scalar(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.Value.Scalar) { | |
return mergeFrom((org.apache.mesos.Protos.Value.Scalar)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.Value.Scalar other) { | |
if (other == org.apache.mesos.Protos.Value.Scalar.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
setValue(other.getValue()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.Value.Scalar parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.Value.Scalar) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private double value_ ; | |
/** | |
* <code>required double value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required double value = 1;</code> | |
*/ | |
public double getValue() { | |
return value_; | |
} | |
/** | |
* <code>required double value = 1;</code> | |
*/ | |
public Builder setValue(double value) { | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required double value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = 0D; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.Value.Scalar) | |
} | |
static { | |
defaultInstance = new Scalar(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.Value.Scalar) | |
} | |
public interface RangeOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.Value.Range) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required uint64 begin = 1;</code> | |
*/ | |
boolean hasBegin(); | |
/** | |
* <code>required uint64 begin = 1;</code> | |
*/ | |
long getBegin(); | |
/** | |
* <code>required uint64 end = 2;</code> | |
*/ | |
boolean hasEnd(); | |
/** | |
* <code>required uint64 end = 2;</code> | |
*/ | |
long getEnd(); | |
} | |
/** | |
* Protobuf type {@code mesos.Value.Range} | |
*/ | |
public static final class Range extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.Value.Range) | |
RangeOrBuilder { | |
// Use Range.newBuilder() to construct. | |
private Range(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private Range(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final Range defaultInstance; | |
public static Range getDefaultInstance() { | |
return defaultInstance; | |
} | |
public Range getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private Range( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
initFields(); | |
int mutable_bitField0_ = 0; | |
com.google.protobuf.UnknownFieldSet.Builder unknownFields = | |
com.google.protobuf.UnknownFieldSet.newBuilder(); | |
try { | |
boolean done = false; | |
while (!done) { | |
int tag = input.readTag(); | |
switch (tag) { | |
case 0: | |
done = true; | |
break; | |
default: { | |
if (!parseUnknownField(input, unknownFields, | |
extensionRegistry, tag)) { | |
done = true; | |
} | |
break; | |
} | |
case 8: { | |
bitField0_ |= 0x00000001; | |
begin_ = input.readUInt64(); | |
break; | |
} | |
case 16: { | |
bitField0_ |= 0x00000002; | |
end_ = input.readUInt64(); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Range_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Range_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Range.class, org.apache.mesos.Protos.Value.Range.Builder.class); | |
} | |
public static com.google.protobuf.Parser<Range> PARSER = | |
new com.google.protobuf.AbstractParser<Range>() { | |
public Range parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new Range(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<Range> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int BEGIN_FIELD_NUMBER = 1; | |
private long begin_; | |
/** | |
* <code>required uint64 begin = 1;</code> | |
*/ | |
public boolean hasBegin() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required uint64 begin = 1;</code> | |
*/ | |
public long getBegin() { | |
return begin_; | |
} | |
public static final int END_FIELD_NUMBER = 2; | |
private long end_; | |
/** | |
* <code>required uint64 end = 2;</code> | |
*/ | |
public boolean hasEnd() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required uint64 end = 2;</code> | |
*/ | |
public long getEnd() { | |
return end_; | |
} | |
private void initFields() { | |
begin_ = 0L; | |
end_ = 0L; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasBegin()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasEnd()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeUInt64(1, begin_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeUInt64(2, end_); | |
} | |
getUnknownFields().writeTo(output); | |
} | |
private int memoizedSerializedSize = -1; | |
public int getSerializedSize() { | |
int size = memoizedSerializedSize; | |
if (size != -1) return size; | |
size = 0; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(1, begin_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(2, end_); | |
} | |
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.Protos.Value.Range parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Range parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Range parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Range parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Range parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Range parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Range parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Range parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Range parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Range 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.Protos.Value.Range 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.Value.Range} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.Value.Range) | |
org.apache.mesos.Protos.Value.RangeOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Range_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Range_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Range.class, org.apache.mesos.Protos.Value.Range.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.Value.Range.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(); | |
begin_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
end_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Range_descriptor; | |
} | |
public org.apache.mesos.Protos.Value.Range getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.Value.Range.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.Value.Range build() { | |
org.apache.mesos.Protos.Value.Range result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.Value.Range buildPartial() { | |
org.apache.mesos.Protos.Value.Range result = new org.apache.mesos.Protos.Value.Range(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.begin_ = begin_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.end_ = end_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.Value.Range) { | |
return mergeFrom((org.apache.mesos.Protos.Value.Range)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.Value.Range other) { | |
if (other == org.apache.mesos.Protos.Value.Range.getDefaultInstance()) return this; | |
if (other.hasBegin()) { | |
setBegin(other.getBegin()); | |
} | |
if (other.hasEnd()) { | |
setEnd(other.getEnd()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasBegin()) { | |
return false; | |
} | |
if (!hasEnd()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.Value.Range parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.Value.Range) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private long begin_ ; | |
/** | |
* <code>required uint64 begin = 1;</code> | |
*/ | |
public boolean hasBegin() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required uint64 begin = 1;</code> | |
*/ | |
public long getBegin() { | |
return begin_; | |
} | |
/** | |
* <code>required uint64 begin = 1;</code> | |
*/ | |
public Builder setBegin(long value) { | |
bitField0_ |= 0x00000001; | |
begin_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required uint64 begin = 1;</code> | |
*/ | |
public Builder clearBegin() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
begin_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long end_ ; | |
/** | |
* <code>required uint64 end = 2;</code> | |
*/ | |
public boolean hasEnd() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required uint64 end = 2;</code> | |
*/ | |
public long getEnd() { | |
return end_; | |
} | |
/** | |
* <code>required uint64 end = 2;</code> | |
*/ | |
public Builder setEnd(long value) { | |
bitField0_ |= 0x00000002; | |
end_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required uint64 end = 2;</code> | |
*/ | |
public Builder clearEnd() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
end_ = 0L; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.Value.Range) | |
} | |
static { | |
defaultInstance = new Range(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.Value.Range) | |
} | |
public interface RangesOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.Value.Ranges) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
java.util.List<org.apache.mesos.Protos.Value.Range> | |
getRangeList(); | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Range getRange(int index); | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
int getRangeCount(); | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
java.util.List<? extends org.apache.mesos.Protos.Value.RangeOrBuilder> | |
getRangeOrBuilderList(); | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
org.apache.mesos.Protos.Value.RangeOrBuilder getRangeOrBuilder( | |
int index); | |
} | |
/** | |
* Protobuf type {@code mesos.Value.Ranges} | |
*/ | |
public static final class Ranges extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.Value.Ranges) | |
RangesOrBuilder { | |
// Use Ranges.newBuilder() to construct. | |
private Ranges(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private Ranges(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final Ranges defaultInstance; | |
public static Ranges getDefaultInstance() { | |
return defaultInstance; | |
} | |
public Ranges getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private Ranges( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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)) { | |
range_ = new java.util.ArrayList<org.apache.mesos.Protos.Value.Range>(); | |
mutable_bitField0_ |= 0x00000001; | |
} | |
range_.add(input.readMessage(org.apache.mesos.Protos.Value.Range.PARSER, extensionRegistry)); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { | |
range_ = java.util.Collections.unmodifiableList(range_); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Ranges_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Ranges_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Ranges.class, org.apache.mesos.Protos.Value.Ranges.Builder.class); | |
} | |
public static com.google.protobuf.Parser<Ranges> PARSER = | |
new com.google.protobuf.AbstractParser<Ranges>() { | |
public Ranges parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new Ranges(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<Ranges> getParserForType() { | |
return PARSER; | |
} | |
public static final int RANGE_FIELD_NUMBER = 1; | |
private java.util.List<org.apache.mesos.Protos.Value.Range> range_; | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Value.Range> getRangeList() { | |
return range_; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.Value.RangeOrBuilder> | |
getRangeOrBuilderList() { | |
return range_; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public int getRangeCount() { | |
return range_.size(); | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Range getRange(int index) { | |
return range_.get(index); | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.RangeOrBuilder getRangeOrBuilder( | |
int index) { | |
return range_.get(index); | |
} | |
private void initFields() { | |
range_ = 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 < getRangeCount(); i++) { | |
if (!getRange(i).isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
for (int i = 0; i < range_.size(); i++) { | |
output.writeMessage(1, range_.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 < range_.size(); i++) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(1, range_.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.Protos.Value.Ranges parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Ranges 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.Protos.Value.Ranges 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.Value.Ranges} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.Value.Ranges) | |
org.apache.mesos.Protos.Value.RangesOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Ranges_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Ranges_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Ranges.class, org.apache.mesos.Protos.Value.Ranges.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.Value.Ranges.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getRangeFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
if (rangeBuilder_ == null) { | |
range_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} else { | |
rangeBuilder_.clear(); | |
} | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Ranges_descriptor; | |
} | |
public org.apache.mesos.Protos.Value.Ranges getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.Value.Ranges build() { | |
org.apache.mesos.Protos.Value.Ranges result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.Value.Ranges buildPartial() { | |
org.apache.mesos.Protos.Value.Ranges result = new org.apache.mesos.Protos.Value.Ranges(this); | |
int from_bitField0_ = bitField0_; | |
if (rangeBuilder_ == null) { | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
range_ = java.util.Collections.unmodifiableList(range_); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} | |
result.range_ = range_; | |
} else { | |
result.range_ = rangeBuilder_.build(); | |
} | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.Value.Ranges) { | |
return mergeFrom((org.apache.mesos.Protos.Value.Ranges)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.Value.Ranges other) { | |
if (other == org.apache.mesos.Protos.Value.Ranges.getDefaultInstance()) return this; | |
if (rangeBuilder_ == null) { | |
if (!other.range_.isEmpty()) { | |
if (range_.isEmpty()) { | |
range_ = other.range_; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} else { | |
ensureRangeIsMutable(); | |
range_.addAll(other.range_); | |
} | |
onChanged(); | |
} | |
} else { | |
if (!other.range_.isEmpty()) { | |
if (rangeBuilder_.isEmpty()) { | |
rangeBuilder_.dispose(); | |
rangeBuilder_ = null; | |
range_ = other.range_; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
rangeBuilder_ = | |
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? | |
getRangeFieldBuilder() : null; | |
} else { | |
rangeBuilder_.addAllMessages(other.range_); | |
} | |
} | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
for (int i = 0; i < getRangeCount(); i++) { | |
if (!getRange(i).isInitialized()) { | |
return false; | |
} | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.Value.Ranges parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.Value.Ranges) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.util.List<org.apache.mesos.Protos.Value.Range> range_ = | |
java.util.Collections.emptyList(); | |
private void ensureRangeIsMutable() { | |
if (!((bitField0_ & 0x00000001) == 0x00000001)) { | |
range_ = new java.util.ArrayList<org.apache.mesos.Protos.Value.Range>(range_); | |
bitField0_ |= 0x00000001; | |
} | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Value.Range, org.apache.mesos.Protos.Value.Range.Builder, org.apache.mesos.Protos.Value.RangeOrBuilder> rangeBuilder_; | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Value.Range> getRangeList() { | |
if (rangeBuilder_ == null) { | |
return java.util.Collections.unmodifiableList(range_); | |
} else { | |
return rangeBuilder_.getMessageList(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public int getRangeCount() { | |
if (rangeBuilder_ == null) { | |
return range_.size(); | |
} else { | |
return rangeBuilder_.getCount(); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Range getRange(int index) { | |
if (rangeBuilder_ == null) { | |
return range_.get(index); | |
} else { | |
return rangeBuilder_.getMessage(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder setRange( | |
int index, org.apache.mesos.Protos.Value.Range value) { | |
if (rangeBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureRangeIsMutable(); | |
range_.set(index, value); | |
onChanged(); | |
} else { | |
rangeBuilder_.setMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder setRange( | |
int index, org.apache.mesos.Protos.Value.Range.Builder builderForValue) { | |
if (rangeBuilder_ == null) { | |
ensureRangeIsMutable(); | |
range_.set(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
rangeBuilder_.setMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder addRange(org.apache.mesos.Protos.Value.Range value) { | |
if (rangeBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureRangeIsMutable(); | |
range_.add(value); | |
onChanged(); | |
} else { | |
rangeBuilder_.addMessage(value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder addRange( | |
int index, org.apache.mesos.Protos.Value.Range value) { | |
if (rangeBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureRangeIsMutable(); | |
range_.add(index, value); | |
onChanged(); | |
} else { | |
rangeBuilder_.addMessage(index, value); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder addRange( | |
org.apache.mesos.Protos.Value.Range.Builder builderForValue) { | |
if (rangeBuilder_ == null) { | |
ensureRangeIsMutable(); | |
range_.add(builderForValue.build()); | |
onChanged(); | |
} else { | |
rangeBuilder_.addMessage(builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder addRange( | |
int index, org.apache.mesos.Protos.Value.Range.Builder builderForValue) { | |
if (rangeBuilder_ == null) { | |
ensureRangeIsMutable(); | |
range_.add(index, builderForValue.build()); | |
onChanged(); | |
} else { | |
rangeBuilder_.addMessage(index, builderForValue.build()); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder addAllRange( | |
java.lang.Iterable<? extends org.apache.mesos.Protos.Value.Range> values) { | |
if (rangeBuilder_ == null) { | |
ensureRangeIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, range_); | |
onChanged(); | |
} else { | |
rangeBuilder_.addAllMessages(values); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder clearRange() { | |
if (rangeBuilder_ == null) { | |
range_ = java.util.Collections.emptyList(); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
onChanged(); | |
} else { | |
rangeBuilder_.clear(); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public Builder removeRange(int index) { | |
if (rangeBuilder_ == null) { | |
ensureRangeIsMutable(); | |
range_.remove(index); | |
onChanged(); | |
} else { | |
rangeBuilder_.remove(index); | |
} | |
return this; | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Range.Builder getRangeBuilder( | |
int index) { | |
return getRangeFieldBuilder().getBuilder(index); | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.RangeOrBuilder getRangeOrBuilder( | |
int index) { | |
if (rangeBuilder_ == null) { | |
return range_.get(index); } else { | |
return rangeBuilder_.getMessageOrBuilder(index); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public java.util.List<? extends org.apache.mesos.Protos.Value.RangeOrBuilder> | |
getRangeOrBuilderList() { | |
if (rangeBuilder_ != null) { | |
return rangeBuilder_.getMessageOrBuilderList(); | |
} else { | |
return java.util.Collections.unmodifiableList(range_); | |
} | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Range.Builder addRangeBuilder() { | |
return getRangeFieldBuilder().addBuilder( | |
org.apache.mesos.Protos.Value.Range.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Range.Builder addRangeBuilder( | |
int index) { | |
return getRangeFieldBuilder().addBuilder( | |
index, org.apache.mesos.Protos.Value.Range.getDefaultInstance()); | |
} | |
/** | |
* <code>repeated .mesos.Value.Range range = 1;</code> | |
*/ | |
public java.util.List<org.apache.mesos.Protos.Value.Range.Builder> | |
getRangeBuilderList() { | |
return getRangeFieldBuilder().getBuilderList(); | |
} | |
private com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Value.Range, org.apache.mesos.Protos.Value.Range.Builder, org.apache.mesos.Protos.Value.RangeOrBuilder> | |
getRangeFieldBuilder() { | |
if (rangeBuilder_ == null) { | |
rangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< | |
org.apache.mesos.Protos.Value.Range, org.apache.mesos.Protos.Value.Range.Builder, org.apache.mesos.Protos.Value.RangeOrBuilder>( | |
range_, | |
((bitField0_ & 0x00000001) == 0x00000001), | |
getParentForChildren(), | |
isClean()); | |
range_ = null; | |
} | |
return rangeBuilder_; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.Value.Ranges) | |
} | |
static { | |
defaultInstance = new Ranges(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.Value.Ranges) | |
} | |
public interface SetOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.Value.Set) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
com.google.protobuf.ProtocolStringList | |
getItemList(); | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
int getItemCount(); | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
java.lang.String getItem(int index); | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getItemBytes(int index); | |
} | |
/** | |
* Protobuf type {@code mesos.Value.Set} | |
*/ | |
public static final class Set extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.Value.Set) | |
SetOrBuilder { | |
// Use Set.newBuilder() to construct. | |
private Set(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private Set(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final Set defaultInstance; | |
public static Set getDefaultInstance() { | |
return defaultInstance; | |
} | |
public Set getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private Set( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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)) { | |
item_ = new com.google.protobuf.LazyStringArrayList(); | |
mutable_bitField0_ |= 0x00000001; | |
} | |
item_.add(bs); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { | |
item_ = item_.getUnmodifiableView(); | |
} | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Set_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Set_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Set.class, org.apache.mesos.Protos.Value.Set.Builder.class); | |
} | |
public static com.google.protobuf.Parser<Set> PARSER = | |
new com.google.protobuf.AbstractParser<Set>() { | |
public Set parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new Set(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<Set> getParserForType() { | |
return PARSER; | |
} | |
public static final int ITEM_FIELD_NUMBER = 1; | |
private com.google.protobuf.LazyStringList item_; | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public com.google.protobuf.ProtocolStringList | |
getItemList() { | |
return item_; | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public int getItemCount() { | |
return item_.size(); | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public java.lang.String getItem(int index) { | |
return item_.get(index); | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getItemBytes(int index) { | |
return item_.getByteString(index); | |
} | |
private void initFields() { | |
item_ = 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 < item_.size(); i++) { | |
output.writeBytes(1, item_.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 < item_.size(); i++) { | |
dataSize += com.google.protobuf.CodedOutputStream | |
.computeBytesSizeNoTag(item_.getByteString(i)); | |
} | |
size += dataSize; | |
size += 1 * getItemList().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.Protos.Value.Set parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Set parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Set parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Set parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Set parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Set parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Set parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Set parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Set parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Set 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.Protos.Value.Set 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.Value.Set} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.Value.Set) | |
org.apache.mesos.Protos.Value.SetOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Set_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Set_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Set.class, org.apache.mesos.Protos.Value.Set.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.Value.Set.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(); | |
item_ = 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.Protos.internal_static_mesos_Value_Set_descriptor; | |
} | |
public org.apache.mesos.Protos.Value.Set getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.Value.Set build() { | |
org.apache.mesos.Protos.Value.Set result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.Value.Set buildPartial() { | |
org.apache.mesos.Protos.Value.Set result = new org.apache.mesos.Protos.Value.Set(this); | |
int from_bitField0_ = bitField0_; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
item_ = item_.getUnmodifiableView(); | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} | |
result.item_ = item_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.Value.Set) { | |
return mergeFrom((org.apache.mesos.Protos.Value.Set)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.Value.Set other) { | |
if (other == org.apache.mesos.Protos.Value.Set.getDefaultInstance()) return this; | |
if (!other.item_.isEmpty()) { | |
if (item_.isEmpty()) { | |
item_ = other.item_; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
} else { | |
ensureItemIsMutable(); | |
item_.addAll(other.item_); | |
} | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.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.Protos.Value.Set parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.Value.Set) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private com.google.protobuf.LazyStringList item_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
private void ensureItemIsMutable() { | |
if (!((bitField0_ & 0x00000001) == 0x00000001)) { | |
item_ = new com.google.protobuf.LazyStringArrayList(item_); | |
bitField0_ |= 0x00000001; | |
} | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public com.google.protobuf.ProtocolStringList | |
getItemList() { | |
return item_.getUnmodifiableView(); | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public int getItemCount() { | |
return item_.size(); | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public java.lang.String getItem(int index) { | |
return item_.get(index); | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getItemBytes(int index) { | |
return item_.getByteString(index); | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public Builder setItem( | |
int index, java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureItemIsMutable(); | |
item_.set(index, value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public Builder addItem( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureItemIsMutable(); | |
item_.add(value); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public Builder addAllItem( | |
java.lang.Iterable<java.lang.String> values) { | |
ensureItemIsMutable(); | |
com.google.protobuf.AbstractMessageLite.Builder.addAll( | |
values, item_); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public Builder clearItem() { | |
item_ = com.google.protobuf.LazyStringArrayList.EMPTY; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>repeated string item = 1;</code> | |
*/ | |
public Builder addItemBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ensureItemIsMutable(); | |
item_.add(value); | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.Value.Set) | |
} | |
static { | |
defaultInstance = new Set(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.Value.Set) | |
} | |
public interface TextOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.Value.Text) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
boolean hasValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
java.lang.String getValue(); | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getValueBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.Value.Text} | |
*/ | |
public static final class Text extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.Value.Text) | |
TextOrBuilder { | |
// Use Text.newBuilder() to construct. | |
private Text(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private Text(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final Text defaultInstance; | |
public static Text getDefaultInstance() { | |
return defaultInstance; | |
} | |
public Text getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private Text( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
value_ = bs; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Text_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Text_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Text.class, org.apache.mesos.Protos.Value.Text.Builder.class); | |
} | |
public static com.google.protobuf.Parser<Text> PARSER = | |
new com.google.protobuf.AbstractParser<Text>() { | |
public Text parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new Text(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<Text> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int VALUE_FIELD_NUMBER = 1; | |
private java.lang.Object value_; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
value_ = ""; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasValue()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getValueBytes()); | |
} | |
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, getValueBytes()); | |
} | |
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.Protos.Value.Text parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Text parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Text parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value.Text parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Text parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Text parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Text parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Text parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value.Text parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value.Text 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.Protos.Value.Text 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.Value.Text} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.Value.Text) | |
org.apache.mesos.Protos.Value.TextOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Text_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Text_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.Text.class, org.apache.mesos.Protos.Value.Text.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.Value.Text.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(); | |
value_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_Text_descriptor; | |
} | |
public org.apache.mesos.Protos.Value.Text getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.Value.Text build() { | |
org.apache.mesos.Protos.Value.Text result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.Value.Text buildPartial() { | |
org.apache.mesos.Protos.Value.Text result = new org.apache.mesos.Protos.Value.Text(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.value_ = value_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.Value.Text) { | |
return mergeFrom((org.apache.mesos.Protos.Value.Text)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.Value.Text other) { | |
if (other == org.apache.mesos.Protos.Value.Text.getDefaultInstance()) return this; | |
if (other.hasValue()) { | |
bitField0_ |= 0x00000001; | |
value_ = other.value_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasValue()) { | |
return false; | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.Value.Text parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.Value.Text) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object value_ = ""; | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public boolean hasValue() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public java.lang.String getValue() { | |
java.lang.Object ref = value_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
value_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getValueBytes() { | |
java.lang.Object ref = value_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
value_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValue( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder clearValue() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
value_ = getDefaultInstance().getValue(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string value = 1;</code> | |
*/ | |
public Builder setValueBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
value_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.Value.Text) | |
} | |
static { | |
defaultInstance = new Text(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.Value.Text) | |
} | |
private int bitField0_; | |
public static final int TYPE_FIELD_NUMBER = 1; | |
private org.apache.mesos.Protos.Value.Type type_; | |
/** | |
* <code>required .mesos.Value.Type type = 1;</code> | |
*/ | |
public boolean hasType() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Type getType() { | |
return type_; | |
} | |
public static final int SCALAR_FIELD_NUMBER = 2; | |
private org.apache.mesos.Protos.Value.Scalar scalar_; | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public boolean hasScalar() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar getScalar() { | |
return scalar_; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { | |
return scalar_; | |
} | |
public static final int RANGES_FIELD_NUMBER = 3; | |
private org.apache.mesos.Protos.Value.Ranges ranges_; | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public boolean hasRanges() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges getRanges() { | |
return ranges_; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder() { | |
return ranges_; | |
} | |
public static final int SET_FIELD_NUMBER = 4; | |
private org.apache.mesos.Protos.Value.Set set_; | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public boolean hasSet() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set getSet() { | |
return set_; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder() { | |
return set_; | |
} | |
public static final int TEXT_FIELD_NUMBER = 5; | |
private org.apache.mesos.Protos.Value.Text text_; | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public boolean hasText() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Text getText() { | |
return text_; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.TextOrBuilder getTextOrBuilder() { | |
return text_; | |
} | |
private void initFields() { | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
text_ = org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasType()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (hasScalar()) { | |
if (!getScalar().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasRanges()) { | |
if (!getRanges().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasText()) { | |
if (!getText().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeEnum(1, type_.getNumber()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeMessage(2, scalar_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeMessage(3, ranges_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeMessage(4, set_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeMessage(5, text_); | |
} | |
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, scalar_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(3, ranges_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(4, set_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(5, text_); | |
} | |
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.Protos.Value parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Value parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Value parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Value 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.Protos.Value 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.Value} | |
* | |
* <pre> | |
** | |
* Describes an Attribute or Resource "value". A value is described | |
* using the standard protocol buffer "union" trick. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.Value) | |
org.apache.mesos.Protos.ValueOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Value.class, org.apache.mesos.Protos.Value.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.Value.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getScalarFieldBuilder(); | |
getRangesFieldBuilder(); | |
getSetFieldBuilder(); | |
getTextFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
if (scalarBuilder_ == null) { | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
} else { | |
scalarBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000002); | |
if (rangesBuilder_ == null) { | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
} else { | |
rangesBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
if (setBuilder_ == null) { | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
} else { | |
setBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000008); | |
if (textBuilder_ == null) { | |
text_ = org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
} else { | |
textBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_Value_descriptor; | |
} | |
public org.apache.mesos.Protos.Value getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.Value.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.Value build() { | |
org.apache.mesos.Protos.Value result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.Value buildPartial() { | |
org.apache.mesos.Protos.Value result = new org.apache.mesos.Protos.Value(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.type_ = type_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
if (scalarBuilder_ == null) { | |
result.scalar_ = scalar_; | |
} else { | |
result.scalar_ = scalarBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
if (rangesBuilder_ == null) { | |
result.ranges_ = ranges_; | |
} else { | |
result.ranges_ = rangesBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
if (setBuilder_ == null) { | |
result.set_ = set_; | |
} else { | |
result.set_ = setBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
if (textBuilder_ == null) { | |
result.text_ = text_; | |
} else { | |
result.text_ = textBuilder_.build(); | |
} | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.Value) { | |
return mergeFrom((org.apache.mesos.Protos.Value)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.Value other) { | |
if (other == org.apache.mesos.Protos.Value.getDefaultInstance()) return this; | |
if (other.hasType()) { | |
setType(other.getType()); | |
} | |
if (other.hasScalar()) { | |
mergeScalar(other.getScalar()); | |
} | |
if (other.hasRanges()) { | |
mergeRanges(other.getRanges()); | |
} | |
if (other.hasSet()) { | |
mergeSet(other.getSet()); | |
} | |
if (other.hasText()) { | |
mergeText(other.getText()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasType()) { | |
return false; | |
} | |
if (hasScalar()) { | |
if (!getScalar().isInitialized()) { | |
return false; | |
} | |
} | |
if (hasRanges()) { | |
if (!getRanges().isInitialized()) { | |
return false; | |
} | |
} | |
if (hasText()) { | |
if (!getText().isInitialized()) { | |
return false; | |
} | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.Value parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.Value) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private org.apache.mesos.Protos.Value.Type type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
/** | |
* <code>required .mesos.Value.Type type = 1;</code> | |
*/ | |
public boolean hasType() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Type getType() { | |
return type_; | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 1;</code> | |
*/ | |
public Builder setType(org.apache.mesos.Protos.Value.Type value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
type_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 1;</code> | |
*/ | |
public Builder clearType() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.Value.Scalar scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder> scalarBuilder_; | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public boolean hasScalar() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar getScalar() { | |
if (scalarBuilder_ == null) { | |
return scalar_; | |
} else { | |
return scalarBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public Builder setScalar(org.apache.mesos.Protos.Value.Scalar value) { | |
if (scalarBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
scalar_ = value; | |
onChanged(); | |
} else { | |
scalarBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public Builder setScalar( | |
org.apache.mesos.Protos.Value.Scalar.Builder builderForValue) { | |
if (scalarBuilder_ == null) { | |
scalar_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
scalarBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public Builder mergeScalar(org.apache.mesos.Protos.Value.Scalar value) { | |
if (scalarBuilder_ == null) { | |
if (((bitField0_ & 0x00000002) == 0x00000002) && | |
scalar_ != org.apache.mesos.Protos.Value.Scalar.getDefaultInstance()) { | |
scalar_ = | |
org.apache.mesos.Protos.Value.Scalar.newBuilder(scalar_).mergeFrom(value).buildPartial(); | |
} else { | |
scalar_ = value; | |
} | |
onChanged(); | |
} else { | |
scalarBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public Builder clearScalar() { | |
if (scalarBuilder_ == null) { | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
onChanged(); | |
} else { | |
scalarBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000002); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar.Builder getScalarBuilder() { | |
bitField0_ |= 0x00000002; | |
onChanged(); | |
return getScalarFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { | |
if (scalarBuilder_ != null) { | |
return scalarBuilder_.getMessageOrBuilder(); | |
} else { | |
return scalar_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 2;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder> | |
getScalarFieldBuilder() { | |
if (scalarBuilder_ == null) { | |
scalarBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder>( | |
getScalar(), | |
getParentForChildren(), | |
isClean()); | |
scalar_ = null; | |
} | |
return scalarBuilder_; | |
} | |
private org.apache.mesos.Protos.Value.Ranges ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder> rangesBuilder_; | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public boolean hasRanges() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges getRanges() { | |
if (rangesBuilder_ == null) { | |
return ranges_; | |
} else { | |
return rangesBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public Builder setRanges(org.apache.mesos.Protos.Value.Ranges value) { | |
if (rangesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ranges_ = value; | |
onChanged(); | |
} else { | |
rangesBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public Builder setRanges( | |
org.apache.mesos.Protos.Value.Ranges.Builder builderForValue) { | |
if (rangesBuilder_ == null) { | |
ranges_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
rangesBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public Builder mergeRanges(org.apache.mesos.Protos.Value.Ranges value) { | |
if (rangesBuilder_ == null) { | |
if (((bitField0_ & 0x00000004) == 0x00000004) && | |
ranges_ != org.apache.mesos.Protos.Value.Ranges.getDefaultInstance()) { | |
ranges_ = | |
org.apache.mesos.Protos.Value.Ranges.newBuilder(ranges_).mergeFrom(value).buildPartial(); | |
} else { | |
ranges_ = value; | |
} | |
onChanged(); | |
} else { | |
rangesBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public Builder clearRanges() { | |
if (rangesBuilder_ == null) { | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
onChanged(); | |
} else { | |
rangesBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges.Builder getRangesBuilder() { | |
bitField0_ |= 0x00000004; | |
onChanged(); | |
return getRangesFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder() { | |
if (rangesBuilder_ != null) { | |
return rangesBuilder_.getMessageOrBuilder(); | |
} else { | |
return ranges_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 3;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder> | |
getRangesFieldBuilder() { | |
if (rangesBuilder_ == null) { | |
rangesBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder>( | |
getRanges(), | |
getParentForChildren(), | |
isClean()); | |
ranges_ = null; | |
} | |
return rangesBuilder_; | |
} | |
private org.apache.mesos.Protos.Value.Set set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder> setBuilder_; | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public boolean hasSet() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set getSet() { | |
if (setBuilder_ == null) { | |
return set_; | |
} else { | |
return setBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public Builder setSet(org.apache.mesos.Protos.Value.Set value) { | |
if (setBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
set_ = value; | |
onChanged(); | |
} else { | |
setBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public Builder setSet( | |
org.apache.mesos.Protos.Value.Set.Builder builderForValue) { | |
if (setBuilder_ == null) { | |
set_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
setBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public Builder mergeSet(org.apache.mesos.Protos.Value.Set value) { | |
if (setBuilder_ == null) { | |
if (((bitField0_ & 0x00000008) == 0x00000008) && | |
set_ != org.apache.mesos.Protos.Value.Set.getDefaultInstance()) { | |
set_ = | |
org.apache.mesos.Protos.Value.Set.newBuilder(set_).mergeFrom(value).buildPartial(); | |
} else { | |
set_ = value; | |
} | |
onChanged(); | |
} else { | |
setBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public Builder clearSet() { | |
if (setBuilder_ == null) { | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
onChanged(); | |
} else { | |
setBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000008); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set.Builder getSetBuilder() { | |
bitField0_ |= 0x00000008; | |
onChanged(); | |
return getSetFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder() { | |
if (setBuilder_ != null) { | |
return setBuilder_.getMessageOrBuilder(); | |
} else { | |
return set_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 4;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder> | |
getSetFieldBuilder() { | |
if (setBuilder_ == null) { | |
setBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder>( | |
getSet(), | |
getParentForChildren(), | |
isClean()); | |
set_ = null; | |
} | |
return setBuilder_; | |
} | |
private org.apache.mesos.Protos.Value.Text text_ = org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Text, org.apache.mesos.Protos.Value.Text.Builder, org.apache.mesos.Protos.Value.TextOrBuilder> textBuilder_; | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public boolean hasText() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Text getText() { | |
if (textBuilder_ == null) { | |
return text_; | |
} else { | |
return textBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public Builder setText(org.apache.mesos.Protos.Value.Text value) { | |
if (textBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
text_ = value; | |
onChanged(); | |
} else { | |
textBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public Builder setText( | |
org.apache.mesos.Protos.Value.Text.Builder builderForValue) { | |
if (textBuilder_ == null) { | |
text_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
textBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public Builder mergeText(org.apache.mesos.Protos.Value.Text value) { | |
if (textBuilder_ == null) { | |
if (((bitField0_ & 0x00000010) == 0x00000010) && | |
text_ != org.apache.mesos.Protos.Value.Text.getDefaultInstance()) { | |
text_ = | |
org.apache.mesos.Protos.Value.Text.newBuilder(text_).mergeFrom(value).buildPartial(); | |
} else { | |
text_ = value; | |
} | |
onChanged(); | |
} else { | |
textBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public Builder clearText() { | |
if (textBuilder_ == null) { | |
text_ = org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
onChanged(); | |
} else { | |
textBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Text.Builder getTextBuilder() { | |
bitField0_ |= 0x00000010; | |
onChanged(); | |
return getTextFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.TextOrBuilder getTextOrBuilder() { | |
if (textBuilder_ != null) { | |
return textBuilder_.getMessageOrBuilder(); | |
} else { | |
return text_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Text, org.apache.mesos.Protos.Value.Text.Builder, org.apache.mesos.Protos.Value.TextOrBuilder> | |
getTextFieldBuilder() { | |
if (textBuilder_ == null) { | |
textBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Text, org.apache.mesos.Protos.Value.Text.Builder, org.apache.mesos.Protos.Value.TextOrBuilder>( | |
getText(), | |
getParentForChildren(), | |
isClean()); | |
text_ = null; | |
} | |
return textBuilder_; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.Value) | |
} | |
static { | |
defaultInstance = new Value(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.Value) | |
} | |
public interface AttributeOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.Attribute) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
boolean hasName(); | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
java.lang.String getName(); | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getNameBytes(); | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
boolean hasType(); | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Type getType(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
boolean hasScalar(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Scalar getScalar(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
boolean hasRanges(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Ranges getRanges(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder(); | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
boolean hasSet(); | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Set getSet(); | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder(); | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
boolean hasText(); | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Text getText(); | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
org.apache.mesos.Protos.Value.TextOrBuilder getTextOrBuilder(); | |
} | |
/** | |
* Protobuf type {@code mesos.Attribute} | |
* | |
* <pre> | |
** | |
* Describes an attribute that can be set on a machine. For now, | |
* attributes and resources share the same "value" type, but this may | |
* change in the future and attributes may only be string based. | |
* </pre> | |
*/ | |
public static final class Attribute extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.Attribute) | |
AttributeOrBuilder { | |
// Use Attribute.newBuilder() to construct. | |
private Attribute(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private Attribute(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final Attribute defaultInstance; | |
public static Attribute getDefaultInstance() { | |
return defaultInstance; | |
} | |
public Attribute getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private Attribute( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
name_ = bs; | |
break; | |
} | |
case 16: { | |
int rawValue = input.readEnum(); | |
org.apache.mesos.Protos.Value.Type value = org.apache.mesos.Protos.Value.Type.valueOf(rawValue); | |
if (value == null) { | |
unknownFields.mergeVarintField(2, rawValue); | |
} else { | |
bitField0_ |= 0x00000002; | |
type_ = value; | |
} | |
break; | |
} | |
case 26: { | |
org.apache.mesos.Protos.Value.Scalar.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
subBuilder = scalar_.toBuilder(); | |
} | |
scalar_ = input.readMessage(org.apache.mesos.Protos.Value.Scalar.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(scalar_); | |
scalar_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000004; | |
break; | |
} | |
case 34: { | |
org.apache.mesos.Protos.Value.Ranges.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
subBuilder = ranges_.toBuilder(); | |
} | |
ranges_ = input.readMessage(org.apache.mesos.Protos.Value.Ranges.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(ranges_); | |
ranges_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000008; | |
break; | |
} | |
case 42: { | |
org.apache.mesos.Protos.Value.Text.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
subBuilder = text_.toBuilder(); | |
} | |
text_ = input.readMessage(org.apache.mesos.Protos.Value.Text.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(text_); | |
text_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000020; | |
break; | |
} | |
case 50: { | |
org.apache.mesos.Protos.Value.Set.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
subBuilder = set_.toBuilder(); | |
} | |
set_ = input.readMessage(org.apache.mesos.Protos.Value.Set.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(set_); | |
set_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000010; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Attribute_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Attribute_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Attribute.class, org.apache.mesos.Protos.Attribute.Builder.class); | |
} | |
public static com.google.protobuf.Parser<Attribute> PARSER = | |
new com.google.protobuf.AbstractParser<Attribute>() { | |
public Attribute parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new Attribute(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<Attribute> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int NAME_FIELD_NUMBER = 1; | |
private java.lang.Object name_; | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public boolean hasName() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public java.lang.String getName() { | |
java.lang.Object ref = name_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
name_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getNameBytes() { | |
java.lang.Object ref = name_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
name_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int TYPE_FIELD_NUMBER = 2; | |
private org.apache.mesos.Protos.Value.Type type_; | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public boolean hasType() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Type getType() { | |
return type_; | |
} | |
public static final int SCALAR_FIELD_NUMBER = 3; | |
private org.apache.mesos.Protos.Value.Scalar scalar_; | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public boolean hasScalar() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar getScalar() { | |
return scalar_; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { | |
return scalar_; | |
} | |
public static final int RANGES_FIELD_NUMBER = 4; | |
private org.apache.mesos.Protos.Value.Ranges ranges_; | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public boolean hasRanges() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges getRanges() { | |
return ranges_; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder() { | |
return ranges_; | |
} | |
public static final int SET_FIELD_NUMBER = 6; | |
private org.apache.mesos.Protos.Value.Set set_; | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public boolean hasSet() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set getSet() { | |
return set_; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder() { | |
return set_; | |
} | |
public static final int TEXT_FIELD_NUMBER = 5; | |
private org.apache.mesos.Protos.Value.Text text_; | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public boolean hasText() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Text getText() { | |
return text_; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.TextOrBuilder getTextOrBuilder() { | |
return text_; | |
} | |
private void initFields() { | |
name_ = ""; | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
text_ = org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasName()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasType()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (hasScalar()) { | |
if (!getScalar().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasRanges()) { | |
if (!getRanges().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasText()) { | |
if (!getText().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getNameBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeEnum(2, type_.getNumber()); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeMessage(3, scalar_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeMessage(4, ranges_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
output.writeMessage(5, text_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeMessage(6, set_); | |
} | |
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, getNameBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeEnumSize(2, type_.getNumber()); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(3, scalar_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(4, ranges_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(5, text_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(6, set_); | |
} | |
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.Protos.Attribute parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Attribute parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Attribute parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Attribute parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Attribute parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Attribute parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Attribute parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.Attribute parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Attribute parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Attribute 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.Protos.Attribute 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.Attribute} | |
* | |
* <pre> | |
** | |
* Describes an attribute that can be set on a machine. For now, | |
* attributes and resources share the same "value" type, but this may | |
* change in the future and attributes may only be string based. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.Attribute) | |
org.apache.mesos.Protos.AttributeOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Attribute_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Attribute_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Attribute.class, org.apache.mesos.Protos.Attribute.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.Attribute.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getScalarFieldBuilder(); | |
getRangesFieldBuilder(); | |
getSetFieldBuilder(); | |
getTextFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
name_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
if (scalarBuilder_ == null) { | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
} else { | |
scalarBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
if (rangesBuilder_ == null) { | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
} else { | |
rangesBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000008); | |
if (setBuilder_ == null) { | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
} else { | |
setBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
if (textBuilder_ == null) { | |
text_ = org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
} else { | |
textBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000020); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_Attribute_descriptor; | |
} | |
public org.apache.mesos.Protos.Attribute getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.Attribute.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.Attribute build() { | |
org.apache.mesos.Protos.Attribute result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.Attribute buildPartial() { | |
org.apache.mesos.Protos.Attribute result = new org.apache.mesos.Protos.Attribute(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.name_ = name_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.type_ = type_; | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
if (scalarBuilder_ == null) { | |
result.scalar_ = scalar_; | |
} else { | |
result.scalar_ = scalarBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
if (rangesBuilder_ == null) { | |
result.ranges_ = ranges_; | |
} else { | |
result.ranges_ = rangesBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
if (setBuilder_ == null) { | |
result.set_ = set_; | |
} else { | |
result.set_ = setBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000020) == 0x00000020)) { | |
to_bitField0_ |= 0x00000020; | |
} | |
if (textBuilder_ == null) { | |
result.text_ = text_; | |
} else { | |
result.text_ = textBuilder_.build(); | |
} | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.Attribute) { | |
return mergeFrom((org.apache.mesos.Protos.Attribute)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.Attribute other) { | |
if (other == org.apache.mesos.Protos.Attribute.getDefaultInstance()) return this; | |
if (other.hasName()) { | |
bitField0_ |= 0x00000001; | |
name_ = other.name_; | |
onChanged(); | |
} | |
if (other.hasType()) { | |
setType(other.getType()); | |
} | |
if (other.hasScalar()) { | |
mergeScalar(other.getScalar()); | |
} | |
if (other.hasRanges()) { | |
mergeRanges(other.getRanges()); | |
} | |
if (other.hasSet()) { | |
mergeSet(other.getSet()); | |
} | |
if (other.hasText()) { | |
mergeText(other.getText()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasName()) { | |
return false; | |
} | |
if (!hasType()) { | |
return false; | |
} | |
if (hasScalar()) { | |
if (!getScalar().isInitialized()) { | |
return false; | |
} | |
} | |
if (hasRanges()) { | |
if (!getRanges().isInitialized()) { | |
return false; | |
} | |
} | |
if (hasText()) { | |
if (!getText().isInitialized()) { | |
return false; | |
} | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.Attribute parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.Attribute) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object name_ = ""; | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public boolean hasName() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public java.lang.String getName() { | |
java.lang.Object ref = name_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
name_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getNameBytes() { | |
java.lang.Object ref = name_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
name_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public Builder setName( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
name_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public Builder clearName() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
name_ = getDefaultInstance().getName(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public Builder setNameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
name_ = value; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.Value.Type type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public boolean hasType() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Type getType() { | |
return type_; | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public Builder setType(org.apache.mesos.Protos.Value.Type value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000002; | |
type_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public Builder clearType() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.Value.Scalar scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder> scalarBuilder_; | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public boolean hasScalar() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar getScalar() { | |
if (scalarBuilder_ == null) { | |
return scalar_; | |
} else { | |
return scalarBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public Builder setScalar(org.apache.mesos.Protos.Value.Scalar value) { | |
if (scalarBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
scalar_ = value; | |
onChanged(); | |
} else { | |
scalarBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public Builder setScalar( | |
org.apache.mesos.Protos.Value.Scalar.Builder builderForValue) { | |
if (scalarBuilder_ == null) { | |
scalar_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
scalarBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public Builder mergeScalar(org.apache.mesos.Protos.Value.Scalar value) { | |
if (scalarBuilder_ == null) { | |
if (((bitField0_ & 0x00000004) == 0x00000004) && | |
scalar_ != org.apache.mesos.Protos.Value.Scalar.getDefaultInstance()) { | |
scalar_ = | |
org.apache.mesos.Protos.Value.Scalar.newBuilder(scalar_).mergeFrom(value).buildPartial(); | |
} else { | |
scalar_ = value; | |
} | |
onChanged(); | |
} else { | |
scalarBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public Builder clearScalar() { | |
if (scalarBuilder_ == null) { | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
onChanged(); | |
} else { | |
scalarBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar.Builder getScalarBuilder() { | |
bitField0_ |= 0x00000004; | |
onChanged(); | |
return getScalarFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { | |
if (scalarBuilder_ != null) { | |
return scalarBuilder_.getMessageOrBuilder(); | |
} else { | |
return scalar_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder> | |
getScalarFieldBuilder() { | |
if (scalarBuilder_ == null) { | |
scalarBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder>( | |
getScalar(), | |
getParentForChildren(), | |
isClean()); | |
scalar_ = null; | |
} | |
return scalarBuilder_; | |
} | |
private org.apache.mesos.Protos.Value.Ranges ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder> rangesBuilder_; | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public boolean hasRanges() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges getRanges() { | |
if (rangesBuilder_ == null) { | |
return ranges_; | |
} else { | |
return rangesBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public Builder setRanges(org.apache.mesos.Protos.Value.Ranges value) { | |
if (rangesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ranges_ = value; | |
onChanged(); | |
} else { | |
rangesBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public Builder setRanges( | |
org.apache.mesos.Protos.Value.Ranges.Builder builderForValue) { | |
if (rangesBuilder_ == null) { | |
ranges_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
rangesBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public Builder mergeRanges(org.apache.mesos.Protos.Value.Ranges value) { | |
if (rangesBuilder_ == null) { | |
if (((bitField0_ & 0x00000008) == 0x00000008) && | |
ranges_ != org.apache.mesos.Protos.Value.Ranges.getDefaultInstance()) { | |
ranges_ = | |
org.apache.mesos.Protos.Value.Ranges.newBuilder(ranges_).mergeFrom(value).buildPartial(); | |
} else { | |
ranges_ = value; | |
} | |
onChanged(); | |
} else { | |
rangesBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public Builder clearRanges() { | |
if (rangesBuilder_ == null) { | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
onChanged(); | |
} else { | |
rangesBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000008); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges.Builder getRangesBuilder() { | |
bitField0_ |= 0x00000008; | |
onChanged(); | |
return getRangesFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder() { | |
if (rangesBuilder_ != null) { | |
return rangesBuilder_.getMessageOrBuilder(); | |
} else { | |
return ranges_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder> | |
getRangesFieldBuilder() { | |
if (rangesBuilder_ == null) { | |
rangesBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder>( | |
getRanges(), | |
getParentForChildren(), | |
isClean()); | |
ranges_ = null; | |
} | |
return rangesBuilder_; | |
} | |
private org.apache.mesos.Protos.Value.Set set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder> setBuilder_; | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public boolean hasSet() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set getSet() { | |
if (setBuilder_ == null) { | |
return set_; | |
} else { | |
return setBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public Builder setSet(org.apache.mesos.Protos.Value.Set value) { | |
if (setBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
set_ = value; | |
onChanged(); | |
} else { | |
setBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public Builder setSet( | |
org.apache.mesos.Protos.Value.Set.Builder builderForValue) { | |
if (setBuilder_ == null) { | |
set_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
setBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public Builder mergeSet(org.apache.mesos.Protos.Value.Set value) { | |
if (setBuilder_ == null) { | |
if (((bitField0_ & 0x00000010) == 0x00000010) && | |
set_ != org.apache.mesos.Protos.Value.Set.getDefaultInstance()) { | |
set_ = | |
org.apache.mesos.Protos.Value.Set.newBuilder(set_).mergeFrom(value).buildPartial(); | |
} else { | |
set_ = value; | |
} | |
onChanged(); | |
} else { | |
setBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public Builder clearSet() { | |
if (setBuilder_ == null) { | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
onChanged(); | |
} else { | |
setBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set.Builder getSetBuilder() { | |
bitField0_ |= 0x00000010; | |
onChanged(); | |
return getSetFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder() { | |
if (setBuilder_ != null) { | |
return setBuilder_.getMessageOrBuilder(); | |
} else { | |
return set_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 6;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder> | |
getSetFieldBuilder() { | |
if (setBuilder_ == null) { | |
setBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder>( | |
getSet(), | |
getParentForChildren(), | |
isClean()); | |
set_ = null; | |
} | |
return setBuilder_; | |
} | |
private org.apache.mesos.Protos.Value.Text text_ = org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Text, org.apache.mesos.Protos.Value.Text.Builder, org.apache.mesos.Protos.Value.TextOrBuilder> textBuilder_; | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public boolean hasText() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Text getText() { | |
if (textBuilder_ == null) { | |
return text_; | |
} else { | |
return textBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public Builder setText(org.apache.mesos.Protos.Value.Text value) { | |
if (textBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
text_ = value; | |
onChanged(); | |
} else { | |
textBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000020; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public Builder setText( | |
org.apache.mesos.Protos.Value.Text.Builder builderForValue) { | |
if (textBuilder_ == null) { | |
text_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
textBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000020; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public Builder mergeText(org.apache.mesos.Protos.Value.Text value) { | |
if (textBuilder_ == null) { | |
if (((bitField0_ & 0x00000020) == 0x00000020) && | |
text_ != org.apache.mesos.Protos.Value.Text.getDefaultInstance()) { | |
text_ = | |
org.apache.mesos.Protos.Value.Text.newBuilder(text_).mergeFrom(value).buildPartial(); | |
} else { | |
text_ = value; | |
} | |
onChanged(); | |
} else { | |
textBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000020; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public Builder clearText() { | |
if (textBuilder_ == null) { | |
text_ = org.apache.mesos.Protos.Value.Text.getDefaultInstance(); | |
onChanged(); | |
} else { | |
textBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000020); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Text.Builder getTextBuilder() { | |
bitField0_ |= 0x00000020; | |
onChanged(); | |
return getTextFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.TextOrBuilder getTextOrBuilder() { | |
if (textBuilder_ != null) { | |
return textBuilder_.getMessageOrBuilder(); | |
} else { | |
return text_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Text text = 5;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Text, org.apache.mesos.Protos.Value.Text.Builder, org.apache.mesos.Protos.Value.TextOrBuilder> | |
getTextFieldBuilder() { | |
if (textBuilder_ == null) { | |
textBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Text, org.apache.mesos.Protos.Value.Text.Builder, org.apache.mesos.Protos.Value.TextOrBuilder>( | |
getText(), | |
getParentForChildren(), | |
isClean()); | |
text_ = null; | |
} | |
return textBuilder_; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.Attribute) | |
} | |
static { | |
defaultInstance = new Attribute(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.Attribute) | |
} | |
public interface ResourceOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.Resource) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
boolean hasName(); | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
java.lang.String getName(); | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getNameBytes(); | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
boolean hasType(); | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Type getType(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
boolean hasScalar(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Scalar getScalar(); | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
boolean hasRanges(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Ranges getRanges(); | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder(); | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
boolean hasSet(); | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
org.apache.mesos.Protos.Value.Set getSet(); | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder(); | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
boolean hasRole(); | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
java.lang.String getRole(); | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
com.google.protobuf.ByteString | |
getRoleBytes(); | |
} | |
/** | |
* Protobuf type {@code mesos.Resource} | |
* | |
* <pre> | |
** | |
* Describes a resource on a machine. A resource can take on one of | |
* three types: scalar (double), a list of finite and discrete ranges | |
* (e.g., [1-10, 20-30]), or a set of items. A resource is described | |
* using the standard protocol buffer "union" trick. | |
* TODO(benh): Add better support for "expected" resources (e.g., | |
* cpus, memory, disk, network). | |
* </pre> | |
*/ | |
public static final class Resource extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.Resource) | |
ResourceOrBuilder { | |
// Use Resource.newBuilder() to construct. | |
private Resource(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private Resource(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final Resource defaultInstance; | |
public static Resource getDefaultInstance() { | |
return defaultInstance; | |
} | |
public Resource getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private Resource( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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; | |
name_ = bs; | |
break; | |
} | |
case 16: { | |
int rawValue = input.readEnum(); | |
org.apache.mesos.Protos.Value.Type value = org.apache.mesos.Protos.Value.Type.valueOf(rawValue); | |
if (value == null) { | |
unknownFields.mergeVarintField(2, rawValue); | |
} else { | |
bitField0_ |= 0x00000002; | |
type_ = value; | |
} | |
break; | |
} | |
case 26: { | |
org.apache.mesos.Protos.Value.Scalar.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
subBuilder = scalar_.toBuilder(); | |
} | |
scalar_ = input.readMessage(org.apache.mesos.Protos.Value.Scalar.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(scalar_); | |
scalar_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000004; | |
break; | |
} | |
case 34: { | |
org.apache.mesos.Protos.Value.Ranges.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
subBuilder = ranges_.toBuilder(); | |
} | |
ranges_ = input.readMessage(org.apache.mesos.Protos.Value.Ranges.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(ranges_); | |
ranges_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000008; | |
break; | |
} | |
case 42: { | |
org.apache.mesos.Protos.Value.Set.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
subBuilder = set_.toBuilder(); | |
} | |
set_ = input.readMessage(org.apache.mesos.Protos.Value.Set.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(set_); | |
set_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000010; | |
break; | |
} | |
case 50: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000020; | |
role_ = bs; | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Resource_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Resource_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Resource.class, org.apache.mesos.Protos.Resource.Builder.class); | |
} | |
public static com.google.protobuf.Parser<Resource> PARSER = | |
new com.google.protobuf.AbstractParser<Resource>() { | |
public Resource parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new Resource(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<Resource> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int NAME_FIELD_NUMBER = 1; | |
private java.lang.Object name_; | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public boolean hasName() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public java.lang.String getName() { | |
java.lang.Object ref = name_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
name_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getNameBytes() { | |
java.lang.Object ref = name_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
name_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int TYPE_FIELD_NUMBER = 2; | |
private org.apache.mesos.Protos.Value.Type type_; | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public boolean hasType() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Type getType() { | |
return type_; | |
} | |
public static final int SCALAR_FIELD_NUMBER = 3; | |
private org.apache.mesos.Protos.Value.Scalar scalar_; | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public boolean hasScalar() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar getScalar() { | |
return scalar_; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { | |
return scalar_; | |
} | |
public static final int RANGES_FIELD_NUMBER = 4; | |
private org.apache.mesos.Protos.Value.Ranges ranges_; | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public boolean hasRanges() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges getRanges() { | |
return ranges_; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder() { | |
return ranges_; | |
} | |
public static final int SET_FIELD_NUMBER = 5; | |
private org.apache.mesos.Protos.Value.Set set_; | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public boolean hasSet() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set getSet() { | |
return set_; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder() { | |
return set_; | |
} | |
public static final int ROLE_FIELD_NUMBER = 6; | |
private java.lang.Object role_; | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public boolean hasRole() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public java.lang.String getRole() { | |
java.lang.Object ref = role_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
role_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getRoleBytes() { | |
java.lang.Object ref = role_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
role_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
private void initFields() { | |
name_ = ""; | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
role_ = "*"; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasName()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasType()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (hasScalar()) { | |
if (!getScalar().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasRanges()) { | |
if (!getRanges().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
memoizedIsInitialized = 1; | |
return true; | |
} | |
public void writeTo(com.google.protobuf.CodedOutputStream output) | |
throws java.io.IOException { | |
getSerializedSize(); | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
output.writeBytes(1, getNameBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeEnum(2, type_.getNumber()); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeMessage(3, scalar_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeMessage(4, ranges_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeMessage(5, set_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
output.writeBytes(6, getRoleBytes()); | |
} | |
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, getNameBytes()); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeEnumSize(2, type_.getNumber()); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(3, scalar_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(4, ranges_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(5, set_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(6, getRoleBytes()); | |
} | |
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.Protos.Resource parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Resource parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Resource parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.Resource parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Resource parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Resource parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Resource parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.Resource parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.Resource parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.Resource 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.Protos.Resource 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.Resource} | |
* | |
* <pre> | |
** | |
* Describes a resource on a machine. A resource can take on one of | |
* three types: scalar (double), a list of finite and discrete ranges | |
* (e.g., [1-10, 20-30]), or a set of items. A resource is described | |
* using the standard protocol buffer "union" trick. | |
* TODO(benh): Add better support for "expected" resources (e.g., | |
* cpus, memory, disk, network). | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.Resource) | |
org.apache.mesos.Protos.ResourceOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_Resource_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_Resource_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.Resource.class, org.apache.mesos.Protos.Resource.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.Resource.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getScalarFieldBuilder(); | |
getRangesFieldBuilder(); | |
getSetFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
name_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
if (scalarBuilder_ == null) { | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
} else { | |
scalarBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
if (rangesBuilder_ == null) { | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
} else { | |
rangesBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000008); | |
if (setBuilder_ == null) { | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
} else { | |
setBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
role_ = "*"; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_Resource_descriptor; | |
} | |
public org.apache.mesos.Protos.Resource getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.Resource.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.Resource build() { | |
org.apache.mesos.Protos.Resource result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.Resource buildPartial() { | |
org.apache.mesos.Protos.Resource result = new org.apache.mesos.Protos.Resource(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.name_ = name_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.type_ = type_; | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
if (scalarBuilder_ == null) { | |
result.scalar_ = scalar_; | |
} else { | |
result.scalar_ = scalarBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
if (rangesBuilder_ == null) { | |
result.ranges_ = ranges_; | |
} else { | |
result.ranges_ = rangesBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
if (setBuilder_ == null) { | |
result.set_ = set_; | |
} else { | |
result.set_ = setBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000020) == 0x00000020)) { | |
to_bitField0_ |= 0x00000020; | |
} | |
result.role_ = role_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.Resource) { | |
return mergeFrom((org.apache.mesos.Protos.Resource)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.Resource other) { | |
if (other == org.apache.mesos.Protos.Resource.getDefaultInstance()) return this; | |
if (other.hasName()) { | |
bitField0_ |= 0x00000001; | |
name_ = other.name_; | |
onChanged(); | |
} | |
if (other.hasType()) { | |
setType(other.getType()); | |
} | |
if (other.hasScalar()) { | |
mergeScalar(other.getScalar()); | |
} | |
if (other.hasRanges()) { | |
mergeRanges(other.getRanges()); | |
} | |
if (other.hasSet()) { | |
mergeSet(other.getSet()); | |
} | |
if (other.hasRole()) { | |
bitField0_ |= 0x00000020; | |
role_ = other.role_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasName()) { | |
return false; | |
} | |
if (!hasType()) { | |
return false; | |
} | |
if (hasScalar()) { | |
if (!getScalar().isInitialized()) { | |
return false; | |
} | |
} | |
if (hasRanges()) { | |
if (!getRanges().isInitialized()) { | |
return false; | |
} | |
} | |
return true; | |
} | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
org.apache.mesos.Protos.Resource parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.Resource) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private java.lang.Object name_ = ""; | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public boolean hasName() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public java.lang.String getName() { | |
java.lang.Object ref = name_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
name_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getNameBytes() { | |
java.lang.Object ref = name_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
name_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public Builder setName( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
name_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public Builder clearName() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
name_ = getDefaultInstance().getName(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string name = 1;</code> | |
*/ | |
public Builder setNameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000001; | |
name_ = value; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.Value.Type type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public boolean hasType() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Type getType() { | |
return type_; | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public Builder setType(org.apache.mesos.Protos.Value.Type value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000002; | |
type_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required .mesos.Value.Type type = 2;</code> | |
*/ | |
public Builder clearType() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
type_ = org.apache.mesos.Protos.Value.Type.SCALAR; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.Value.Scalar scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder> scalarBuilder_; | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public boolean hasScalar() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar getScalar() { | |
if (scalarBuilder_ == null) { | |
return scalar_; | |
} else { | |
return scalarBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public Builder setScalar(org.apache.mesos.Protos.Value.Scalar value) { | |
if (scalarBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
scalar_ = value; | |
onChanged(); | |
} else { | |
scalarBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public Builder setScalar( | |
org.apache.mesos.Protos.Value.Scalar.Builder builderForValue) { | |
if (scalarBuilder_ == null) { | |
scalar_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
scalarBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public Builder mergeScalar(org.apache.mesos.Protos.Value.Scalar value) { | |
if (scalarBuilder_ == null) { | |
if (((bitField0_ & 0x00000004) == 0x00000004) && | |
scalar_ != org.apache.mesos.Protos.Value.Scalar.getDefaultInstance()) { | |
scalar_ = | |
org.apache.mesos.Protos.Value.Scalar.newBuilder(scalar_).mergeFrom(value).buildPartial(); | |
} else { | |
scalar_ = value; | |
} | |
onChanged(); | |
} else { | |
scalarBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public Builder clearScalar() { | |
if (scalarBuilder_ == null) { | |
scalar_ = org.apache.mesos.Protos.Value.Scalar.getDefaultInstance(); | |
onChanged(); | |
} else { | |
scalarBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Scalar.Builder getScalarBuilder() { | |
bitField0_ |= 0x00000004; | |
onChanged(); | |
return getScalarFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.ScalarOrBuilder getScalarOrBuilder() { | |
if (scalarBuilder_ != null) { | |
return scalarBuilder_.getMessageOrBuilder(); | |
} else { | |
return scalar_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Scalar scalar = 3;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder> | |
getScalarFieldBuilder() { | |
if (scalarBuilder_ == null) { | |
scalarBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Scalar, org.apache.mesos.Protos.Value.Scalar.Builder, org.apache.mesos.Protos.Value.ScalarOrBuilder>( | |
getScalar(), | |
getParentForChildren(), | |
isClean()); | |
scalar_ = null; | |
} | |
return scalarBuilder_; | |
} | |
private org.apache.mesos.Protos.Value.Ranges ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder> rangesBuilder_; | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public boolean hasRanges() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges getRanges() { | |
if (rangesBuilder_ == null) { | |
return ranges_; | |
} else { | |
return rangesBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public Builder setRanges(org.apache.mesos.Protos.Value.Ranges value) { | |
if (rangesBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
ranges_ = value; | |
onChanged(); | |
} else { | |
rangesBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public Builder setRanges( | |
org.apache.mesos.Protos.Value.Ranges.Builder builderForValue) { | |
if (rangesBuilder_ == null) { | |
ranges_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
rangesBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public Builder mergeRanges(org.apache.mesos.Protos.Value.Ranges value) { | |
if (rangesBuilder_ == null) { | |
if (((bitField0_ & 0x00000008) == 0x00000008) && | |
ranges_ != org.apache.mesos.Protos.Value.Ranges.getDefaultInstance()) { | |
ranges_ = | |
org.apache.mesos.Protos.Value.Ranges.newBuilder(ranges_).mergeFrom(value).buildPartial(); | |
} else { | |
ranges_ = value; | |
} | |
onChanged(); | |
} else { | |
rangesBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000008; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public Builder clearRanges() { | |
if (rangesBuilder_ == null) { | |
ranges_ = org.apache.mesos.Protos.Value.Ranges.getDefaultInstance(); | |
onChanged(); | |
} else { | |
rangesBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000008); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Ranges.Builder getRangesBuilder() { | |
bitField0_ |= 0x00000008; | |
onChanged(); | |
return getRangesFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.RangesOrBuilder getRangesOrBuilder() { | |
if (rangesBuilder_ != null) { | |
return rangesBuilder_.getMessageOrBuilder(); | |
} else { | |
return ranges_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Ranges ranges = 4;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder> | |
getRangesFieldBuilder() { | |
if (rangesBuilder_ == null) { | |
rangesBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Ranges, org.apache.mesos.Protos.Value.Ranges.Builder, org.apache.mesos.Protos.Value.RangesOrBuilder>( | |
getRanges(), | |
getParentForChildren(), | |
isClean()); | |
ranges_ = null; | |
} | |
return rangesBuilder_; | |
} | |
private org.apache.mesos.Protos.Value.Set set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder> setBuilder_; | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public boolean hasSet() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set getSet() { | |
if (setBuilder_ == null) { | |
return set_; | |
} else { | |
return setBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public Builder setSet(org.apache.mesos.Protos.Value.Set value) { | |
if (setBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
set_ = value; | |
onChanged(); | |
} else { | |
setBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public Builder setSet( | |
org.apache.mesos.Protos.Value.Set.Builder builderForValue) { | |
if (setBuilder_ == null) { | |
set_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
setBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public Builder mergeSet(org.apache.mesos.Protos.Value.Set value) { | |
if (setBuilder_ == null) { | |
if (((bitField0_ & 0x00000010) == 0x00000010) && | |
set_ != org.apache.mesos.Protos.Value.Set.getDefaultInstance()) { | |
set_ = | |
org.apache.mesos.Protos.Value.Set.newBuilder(set_).mergeFrom(value).buildPartial(); | |
} else { | |
set_ = value; | |
} | |
onChanged(); | |
} else { | |
setBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public Builder clearSet() { | |
if (setBuilder_ == null) { | |
set_ = org.apache.mesos.Protos.Value.Set.getDefaultInstance(); | |
onChanged(); | |
} else { | |
setBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.Set.Builder getSetBuilder() { | |
bitField0_ |= 0x00000010; | |
onChanged(); | |
return getSetFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
public org.apache.mesos.Protos.Value.SetOrBuilder getSetOrBuilder() { | |
if (setBuilder_ != null) { | |
return setBuilder_.getMessageOrBuilder(); | |
} else { | |
return set_; | |
} | |
} | |
/** | |
* <code>optional .mesos.Value.Set set = 5;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder> | |
getSetFieldBuilder() { | |
if (setBuilder_ == null) { | |
setBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.Value.Set, org.apache.mesos.Protos.Value.Set.Builder, org.apache.mesos.Protos.Value.SetOrBuilder>( | |
getSet(), | |
getParentForChildren(), | |
isClean()); | |
set_ = null; | |
} | |
return setBuilder_; | |
} | |
private java.lang.Object role_ = "*"; | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public boolean hasRole() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public java.lang.String getRole() { | |
java.lang.Object ref = role_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
role_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getRoleBytes() { | |
java.lang.Object ref = role_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
role_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public Builder setRole( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000020; | |
role_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public Builder clearRole() { | |
bitField0_ = (bitField0_ & ~0x00000020); | |
role_ = getDefaultInstance().getRole(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string role = 6 [default = "*"];</code> | |
*/ | |
public Builder setRoleBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000020; | |
role_ = value; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.Resource) | |
} | |
static { | |
defaultInstance = new Resource(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.Resource) | |
} | |
public interface ResourceStatisticsOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.ResourceStatistics) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Snapshot time, in seconds since the Epoch. | |
* </pre> | |
*/ | |
boolean hasTimestamp(); | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Snapshot time, in seconds since the Epoch. | |
* </pre> | |
*/ | |
double getTimestamp(); | |
/** | |
* <code>optional double cpus_user_time_secs = 2;</code> | |
* | |
* <pre> | |
* CPU Usage Information: | |
* Total CPU time spent in user mode, and kernel mode. | |
* </pre> | |
*/ | |
boolean hasCpusUserTimeSecs(); | |
/** | |
* <code>optional double cpus_user_time_secs = 2;</code> | |
* | |
* <pre> | |
* CPU Usage Information: | |
* Total CPU time spent in user mode, and kernel mode. | |
* </pre> | |
*/ | |
double getCpusUserTimeSecs(); | |
/** | |
* <code>optional double cpus_system_time_secs = 3;</code> | |
*/ | |
boolean hasCpusSystemTimeSecs(); | |
/** | |
* <code>optional double cpus_system_time_secs = 3;</code> | |
*/ | |
double getCpusSystemTimeSecs(); | |
/** | |
* <code>optional double cpus_limit = 4;</code> | |
* | |
* <pre> | |
* Number of CPUs allocated. | |
* </pre> | |
*/ | |
boolean hasCpusLimit(); | |
/** | |
* <code>optional double cpus_limit = 4;</code> | |
* | |
* <pre> | |
* Number of CPUs allocated. | |
* </pre> | |
*/ | |
double getCpusLimit(); | |
/** | |
* <code>optional uint32 cpus_nr_periods = 7;</code> | |
* | |
* <pre> | |
* cpu.stat on process throttling (for contention issues). | |
* </pre> | |
*/ | |
boolean hasCpusNrPeriods(); | |
/** | |
* <code>optional uint32 cpus_nr_periods = 7;</code> | |
* | |
* <pre> | |
* cpu.stat on process throttling (for contention issues). | |
* </pre> | |
*/ | |
int getCpusNrPeriods(); | |
/** | |
* <code>optional uint32 cpus_nr_throttled = 8;</code> | |
*/ | |
boolean hasCpusNrThrottled(); | |
/** | |
* <code>optional uint32 cpus_nr_throttled = 8;</code> | |
*/ | |
int getCpusNrThrottled(); | |
/** | |
* <code>optional double cpus_throttled_time_secs = 9;</code> | |
*/ | |
boolean hasCpusThrottledTimeSecs(); | |
/** | |
* <code>optional double cpus_throttled_time_secs = 9;</code> | |
*/ | |
double getCpusThrottledTimeSecs(); | |
/** | |
* <code>optional uint64 mem_rss_bytes = 5;</code> | |
* | |
* <pre> | |
* Memory Usage Information: | |
* </pre> | |
*/ | |
boolean hasMemRssBytes(); | |
/** | |
* <code>optional uint64 mem_rss_bytes = 5;</code> | |
* | |
* <pre> | |
* Memory Usage Information: | |
* </pre> | |
*/ | |
long getMemRssBytes(); | |
/** | |
* <code>optional uint64 mem_limit_bytes = 6;</code> | |
* | |
* <pre> | |
* Amount of memory resources allocated. | |
* </pre> | |
*/ | |
boolean hasMemLimitBytes(); | |
/** | |
* <code>optional uint64 mem_limit_bytes = 6;</code> | |
* | |
* <pre> | |
* Amount of memory resources allocated. | |
* </pre> | |
*/ | |
long getMemLimitBytes(); | |
/** | |
* <code>optional uint64 mem_file_bytes = 10;</code> | |
* | |
* <pre> | |
* Broken out memory usage information (files, anonymous, and mmaped files) | |
* </pre> | |
*/ | |
boolean hasMemFileBytes(); | |
/** | |
* <code>optional uint64 mem_file_bytes = 10;</code> | |
* | |
* <pre> | |
* Broken out memory usage information (files, anonymous, and mmaped files) | |
* </pre> | |
*/ | |
long getMemFileBytes(); | |
/** | |
* <code>optional uint64 mem_anon_bytes = 11;</code> | |
*/ | |
boolean hasMemAnonBytes(); | |
/** | |
* <code>optional uint64 mem_anon_bytes = 11;</code> | |
*/ | |
long getMemAnonBytes(); | |
/** | |
* <code>optional uint64 mem_mapped_file_bytes = 12;</code> | |
*/ | |
boolean hasMemMappedFileBytes(); | |
/** | |
* <code>optional uint64 mem_mapped_file_bytes = 12;</code> | |
*/ | |
long getMemMappedFileBytes(); | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
boolean hasPerf(); | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.PerfStatistics getPerf(); | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.PerfStatisticsOrBuilder getPerfOrBuilder(); | |
/** | |
* <code>optional uint64 net_rx_packets = 14;</code> | |
* | |
* <pre> | |
* Network Usage Information: | |
* </pre> | |
*/ | |
boolean hasNetRxPackets(); | |
/** | |
* <code>optional uint64 net_rx_packets = 14;</code> | |
* | |
* <pre> | |
* Network Usage Information: | |
* </pre> | |
*/ | |
long getNetRxPackets(); | |
/** | |
* <code>optional uint64 net_rx_bytes = 15;</code> | |
*/ | |
boolean hasNetRxBytes(); | |
/** | |
* <code>optional uint64 net_rx_bytes = 15;</code> | |
*/ | |
long getNetRxBytes(); | |
/** | |
* <code>optional uint64 net_rx_errors = 16;</code> | |
*/ | |
boolean hasNetRxErrors(); | |
/** | |
* <code>optional uint64 net_rx_errors = 16;</code> | |
*/ | |
long getNetRxErrors(); | |
/** | |
* <code>optional uint64 net_rx_dropped = 17;</code> | |
*/ | |
boolean hasNetRxDropped(); | |
/** | |
* <code>optional uint64 net_rx_dropped = 17;</code> | |
*/ | |
long getNetRxDropped(); | |
/** | |
* <code>optional uint64 net_tx_packets = 18;</code> | |
*/ | |
boolean hasNetTxPackets(); | |
/** | |
* <code>optional uint64 net_tx_packets = 18;</code> | |
*/ | |
long getNetTxPackets(); | |
/** | |
* <code>optional uint64 net_tx_bytes = 19;</code> | |
*/ | |
boolean hasNetTxBytes(); | |
/** | |
* <code>optional uint64 net_tx_bytes = 19;</code> | |
*/ | |
long getNetTxBytes(); | |
/** | |
* <code>optional uint64 net_tx_errors = 20;</code> | |
*/ | |
boolean hasNetTxErrors(); | |
/** | |
* <code>optional uint64 net_tx_errors = 20;</code> | |
*/ | |
long getNetTxErrors(); | |
/** | |
* <code>optional uint64 net_tx_dropped = 21;</code> | |
*/ | |
boolean hasNetTxDropped(); | |
/** | |
* <code>optional uint64 net_tx_dropped = 21;</code> | |
*/ | |
long getNetTxDropped(); | |
} | |
/** | |
* Protobuf type {@code mesos.ResourceStatistics} | |
* | |
* <pre> | |
* A snapshot of resource usage statistics. | |
* </pre> | |
*/ | |
public static final class ResourceStatistics extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.ResourceStatistics) | |
ResourceStatisticsOrBuilder { | |
// Use ResourceStatistics.newBuilder() to construct. | |
private ResourceStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private ResourceStatistics(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final ResourceStatistics defaultInstance; | |
public static ResourceStatistics getDefaultInstance() { | |
return defaultInstance; | |
} | |
public ResourceStatistics getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private ResourceStatistics( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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 9: { | |
bitField0_ |= 0x00000001; | |
timestamp_ = input.readDouble(); | |
break; | |
} | |
case 17: { | |
bitField0_ |= 0x00000002; | |
cpusUserTimeSecs_ = input.readDouble(); | |
break; | |
} | |
case 25: { | |
bitField0_ |= 0x00000004; | |
cpusSystemTimeSecs_ = input.readDouble(); | |
break; | |
} | |
case 33: { | |
bitField0_ |= 0x00000008; | |
cpusLimit_ = input.readDouble(); | |
break; | |
} | |
case 40: { | |
bitField0_ |= 0x00000080; | |
memRssBytes_ = input.readUInt64(); | |
break; | |
} | |
case 48: { | |
bitField0_ |= 0x00000100; | |
memLimitBytes_ = input.readUInt64(); | |
break; | |
} | |
case 56: { | |
bitField0_ |= 0x00000010; | |
cpusNrPeriods_ = input.readUInt32(); | |
break; | |
} | |
case 64: { | |
bitField0_ |= 0x00000020; | |
cpusNrThrottled_ = input.readUInt32(); | |
break; | |
} | |
case 73: { | |
bitField0_ |= 0x00000040; | |
cpusThrottledTimeSecs_ = input.readDouble(); | |
break; | |
} | |
case 80: { | |
bitField0_ |= 0x00000200; | |
memFileBytes_ = input.readUInt64(); | |
break; | |
} | |
case 88: { | |
bitField0_ |= 0x00000400; | |
memAnonBytes_ = input.readUInt64(); | |
break; | |
} | |
case 96: { | |
bitField0_ |= 0x00000800; | |
memMappedFileBytes_ = input.readUInt64(); | |
break; | |
} | |
case 106: { | |
org.apache.mesos.Protos.PerfStatistics.Builder subBuilder = null; | |
if (((bitField0_ & 0x00001000) == 0x00001000)) { | |
subBuilder = perf_.toBuilder(); | |
} | |
perf_ = input.readMessage(org.apache.mesos.Protos.PerfStatistics.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(perf_); | |
perf_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00001000; | |
break; | |
} | |
case 112: { | |
bitField0_ |= 0x00002000; | |
netRxPackets_ = input.readUInt64(); | |
break; | |
} | |
case 120: { | |
bitField0_ |= 0x00004000; | |
netRxBytes_ = input.readUInt64(); | |
break; | |
} | |
case 128: { | |
bitField0_ |= 0x00008000; | |
netRxErrors_ = input.readUInt64(); | |
break; | |
} | |
case 136: { | |
bitField0_ |= 0x00010000; | |
netRxDropped_ = input.readUInt64(); | |
break; | |
} | |
case 144: { | |
bitField0_ |= 0x00020000; | |
netTxPackets_ = input.readUInt64(); | |
break; | |
} | |
case 152: { | |
bitField0_ |= 0x00040000; | |
netTxBytes_ = input.readUInt64(); | |
break; | |
} | |
case 160: { | |
bitField0_ |= 0x00080000; | |
netTxErrors_ = input.readUInt64(); | |
break; | |
} | |
case 168: { | |
bitField0_ |= 0x00100000; | |
netTxDropped_ = input.readUInt64(); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceStatistics_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceStatistics_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ResourceStatistics.class, org.apache.mesos.Protos.ResourceStatistics.Builder.class); | |
} | |
public static com.google.protobuf.Parser<ResourceStatistics> PARSER = | |
new com.google.protobuf.AbstractParser<ResourceStatistics>() { | |
public ResourceStatistics parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new ResourceStatistics(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<ResourceStatistics> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int TIMESTAMP_FIELD_NUMBER = 1; | |
private double timestamp_; | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Snapshot time, in seconds since the Epoch. | |
* </pre> | |
*/ | |
public boolean hasTimestamp() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Snapshot time, in seconds since the Epoch. | |
* </pre> | |
*/ | |
public double getTimestamp() { | |
return timestamp_; | |
} | |
public static final int CPUS_USER_TIME_SECS_FIELD_NUMBER = 2; | |
private double cpusUserTimeSecs_; | |
/** | |
* <code>optional double cpus_user_time_secs = 2;</code> | |
* | |
* <pre> | |
* CPU Usage Information: | |
* Total CPU time spent in user mode, and kernel mode. | |
* </pre> | |
*/ | |
public boolean hasCpusUserTimeSecs() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional double cpus_user_time_secs = 2;</code> | |
* | |
* <pre> | |
* CPU Usage Information: | |
* Total CPU time spent in user mode, and kernel mode. | |
* </pre> | |
*/ | |
public double getCpusUserTimeSecs() { | |
return cpusUserTimeSecs_; | |
} | |
public static final int CPUS_SYSTEM_TIME_SECS_FIELD_NUMBER = 3; | |
private double cpusSystemTimeSecs_; | |
/** | |
* <code>optional double cpus_system_time_secs = 3;</code> | |
*/ | |
public boolean hasCpusSystemTimeSecs() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional double cpus_system_time_secs = 3;</code> | |
*/ | |
public double getCpusSystemTimeSecs() { | |
return cpusSystemTimeSecs_; | |
} | |
public static final int CPUS_LIMIT_FIELD_NUMBER = 4; | |
private double cpusLimit_; | |
/** | |
* <code>optional double cpus_limit = 4;</code> | |
* | |
* <pre> | |
* Number of CPUs allocated. | |
* </pre> | |
*/ | |
public boolean hasCpusLimit() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional double cpus_limit = 4;</code> | |
* | |
* <pre> | |
* Number of CPUs allocated. | |
* </pre> | |
*/ | |
public double getCpusLimit() { | |
return cpusLimit_; | |
} | |
public static final int CPUS_NR_PERIODS_FIELD_NUMBER = 7; | |
private int cpusNrPeriods_; | |
/** | |
* <code>optional uint32 cpus_nr_periods = 7;</code> | |
* | |
* <pre> | |
* cpu.stat on process throttling (for contention issues). | |
* </pre> | |
*/ | |
public boolean hasCpusNrPeriods() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional uint32 cpus_nr_periods = 7;</code> | |
* | |
* <pre> | |
* cpu.stat on process throttling (for contention issues). | |
* </pre> | |
*/ | |
public int getCpusNrPeriods() { | |
return cpusNrPeriods_; | |
} | |
public static final int CPUS_NR_THROTTLED_FIELD_NUMBER = 8; | |
private int cpusNrThrottled_; | |
/** | |
* <code>optional uint32 cpus_nr_throttled = 8;</code> | |
*/ | |
public boolean hasCpusNrThrottled() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional uint32 cpus_nr_throttled = 8;</code> | |
*/ | |
public int getCpusNrThrottled() { | |
return cpusNrThrottled_; | |
} | |
public static final int CPUS_THROTTLED_TIME_SECS_FIELD_NUMBER = 9; | |
private double cpusThrottledTimeSecs_; | |
/** | |
* <code>optional double cpus_throttled_time_secs = 9;</code> | |
*/ | |
public boolean hasCpusThrottledTimeSecs() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional double cpus_throttled_time_secs = 9;</code> | |
*/ | |
public double getCpusThrottledTimeSecs() { | |
return cpusThrottledTimeSecs_; | |
} | |
public static final int MEM_RSS_BYTES_FIELD_NUMBER = 5; | |
private long memRssBytes_; | |
/** | |
* <code>optional uint64 mem_rss_bytes = 5;</code> | |
* | |
* <pre> | |
* Memory Usage Information: | |
* </pre> | |
*/ | |
public boolean hasMemRssBytes() { | |
return ((bitField0_ & 0x00000080) == 0x00000080); | |
} | |
/** | |
* <code>optional uint64 mem_rss_bytes = 5;</code> | |
* | |
* <pre> | |
* Memory Usage Information: | |
* </pre> | |
*/ | |
public long getMemRssBytes() { | |
return memRssBytes_; | |
} | |
public static final int MEM_LIMIT_BYTES_FIELD_NUMBER = 6; | |
private long memLimitBytes_; | |
/** | |
* <code>optional uint64 mem_limit_bytes = 6;</code> | |
* | |
* <pre> | |
* Amount of memory resources allocated. | |
* </pre> | |
*/ | |
public boolean hasMemLimitBytes() { | |
return ((bitField0_ & 0x00000100) == 0x00000100); | |
} | |
/** | |
* <code>optional uint64 mem_limit_bytes = 6;</code> | |
* | |
* <pre> | |
* Amount of memory resources allocated. | |
* </pre> | |
*/ | |
public long getMemLimitBytes() { | |
return memLimitBytes_; | |
} | |
public static final int MEM_FILE_BYTES_FIELD_NUMBER = 10; | |
private long memFileBytes_; | |
/** | |
* <code>optional uint64 mem_file_bytes = 10;</code> | |
* | |
* <pre> | |
* Broken out memory usage information (files, anonymous, and mmaped files) | |
* </pre> | |
*/ | |
public boolean hasMemFileBytes() { | |
return ((bitField0_ & 0x00000200) == 0x00000200); | |
} | |
/** | |
* <code>optional uint64 mem_file_bytes = 10;</code> | |
* | |
* <pre> | |
* Broken out memory usage information (files, anonymous, and mmaped files) | |
* </pre> | |
*/ | |
public long getMemFileBytes() { | |
return memFileBytes_; | |
} | |
public static final int MEM_ANON_BYTES_FIELD_NUMBER = 11; | |
private long memAnonBytes_; | |
/** | |
* <code>optional uint64 mem_anon_bytes = 11;</code> | |
*/ | |
public boolean hasMemAnonBytes() { | |
return ((bitField0_ & 0x00000400) == 0x00000400); | |
} | |
/** | |
* <code>optional uint64 mem_anon_bytes = 11;</code> | |
*/ | |
public long getMemAnonBytes() { | |
return memAnonBytes_; | |
} | |
public static final int MEM_MAPPED_FILE_BYTES_FIELD_NUMBER = 12; | |
private long memMappedFileBytes_; | |
/** | |
* <code>optional uint64 mem_mapped_file_bytes = 12;</code> | |
*/ | |
public boolean hasMemMappedFileBytes() { | |
return ((bitField0_ & 0x00000800) == 0x00000800); | |
} | |
/** | |
* <code>optional uint64 mem_mapped_file_bytes = 12;</code> | |
*/ | |
public long getMemMappedFileBytes() { | |
return memMappedFileBytes_; | |
} | |
public static final int PERF_FIELD_NUMBER = 13; | |
private org.apache.mesos.Protos.PerfStatistics perf_; | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public boolean hasPerf() { | |
return ((bitField0_ & 0x00001000) == 0x00001000); | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.PerfStatistics getPerf() { | |
return perf_; | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.PerfStatisticsOrBuilder getPerfOrBuilder() { | |
return perf_; | |
} | |
public static final int NET_RX_PACKETS_FIELD_NUMBER = 14; | |
private long netRxPackets_; | |
/** | |
* <code>optional uint64 net_rx_packets = 14;</code> | |
* | |
* <pre> | |
* Network Usage Information: | |
* </pre> | |
*/ | |
public boolean hasNetRxPackets() { | |
return ((bitField0_ & 0x00002000) == 0x00002000); | |
} | |
/** | |
* <code>optional uint64 net_rx_packets = 14;</code> | |
* | |
* <pre> | |
* Network Usage Information: | |
* </pre> | |
*/ | |
public long getNetRxPackets() { | |
return netRxPackets_; | |
} | |
public static final int NET_RX_BYTES_FIELD_NUMBER = 15; | |
private long netRxBytes_; | |
/** | |
* <code>optional uint64 net_rx_bytes = 15;</code> | |
*/ | |
public boolean hasNetRxBytes() { | |
return ((bitField0_ & 0x00004000) == 0x00004000); | |
} | |
/** | |
* <code>optional uint64 net_rx_bytes = 15;</code> | |
*/ | |
public long getNetRxBytes() { | |
return netRxBytes_; | |
} | |
public static final int NET_RX_ERRORS_FIELD_NUMBER = 16; | |
private long netRxErrors_; | |
/** | |
* <code>optional uint64 net_rx_errors = 16;</code> | |
*/ | |
public boolean hasNetRxErrors() { | |
return ((bitField0_ & 0x00008000) == 0x00008000); | |
} | |
/** | |
* <code>optional uint64 net_rx_errors = 16;</code> | |
*/ | |
public long getNetRxErrors() { | |
return netRxErrors_; | |
} | |
public static final int NET_RX_DROPPED_FIELD_NUMBER = 17; | |
private long netRxDropped_; | |
/** | |
* <code>optional uint64 net_rx_dropped = 17;</code> | |
*/ | |
public boolean hasNetRxDropped() { | |
return ((bitField0_ & 0x00010000) == 0x00010000); | |
} | |
/** | |
* <code>optional uint64 net_rx_dropped = 17;</code> | |
*/ | |
public long getNetRxDropped() { | |
return netRxDropped_; | |
} | |
public static final int NET_TX_PACKETS_FIELD_NUMBER = 18; | |
private long netTxPackets_; | |
/** | |
* <code>optional uint64 net_tx_packets = 18;</code> | |
*/ | |
public boolean hasNetTxPackets() { | |
return ((bitField0_ & 0x00020000) == 0x00020000); | |
} | |
/** | |
* <code>optional uint64 net_tx_packets = 18;</code> | |
*/ | |
public long getNetTxPackets() { | |
return netTxPackets_; | |
} | |
public static final int NET_TX_BYTES_FIELD_NUMBER = 19; | |
private long netTxBytes_; | |
/** | |
* <code>optional uint64 net_tx_bytes = 19;</code> | |
*/ | |
public boolean hasNetTxBytes() { | |
return ((bitField0_ & 0x00040000) == 0x00040000); | |
} | |
/** | |
* <code>optional uint64 net_tx_bytes = 19;</code> | |
*/ | |
public long getNetTxBytes() { | |
return netTxBytes_; | |
} | |
public static final int NET_TX_ERRORS_FIELD_NUMBER = 20; | |
private long netTxErrors_; | |
/** | |
* <code>optional uint64 net_tx_errors = 20;</code> | |
*/ | |
public boolean hasNetTxErrors() { | |
return ((bitField0_ & 0x00080000) == 0x00080000); | |
} | |
/** | |
* <code>optional uint64 net_tx_errors = 20;</code> | |
*/ | |
public long getNetTxErrors() { | |
return netTxErrors_; | |
} | |
public static final int NET_TX_DROPPED_FIELD_NUMBER = 21; | |
private long netTxDropped_; | |
/** | |
* <code>optional uint64 net_tx_dropped = 21;</code> | |
*/ | |
public boolean hasNetTxDropped() { | |
return ((bitField0_ & 0x00100000) == 0x00100000); | |
} | |
/** | |
* <code>optional uint64 net_tx_dropped = 21;</code> | |
*/ | |
public long getNetTxDropped() { | |
return netTxDropped_; | |
} | |
private void initFields() { | |
timestamp_ = 0D; | |
cpusUserTimeSecs_ = 0D; | |
cpusSystemTimeSecs_ = 0D; | |
cpusLimit_ = 0D; | |
cpusNrPeriods_ = 0; | |
cpusNrThrottled_ = 0; | |
cpusThrottledTimeSecs_ = 0D; | |
memRssBytes_ = 0L; | |
memLimitBytes_ = 0L; | |
memFileBytes_ = 0L; | |
memAnonBytes_ = 0L; | |
memMappedFileBytes_ = 0L; | |
perf_ = org.apache.mesos.Protos.PerfStatistics.getDefaultInstance(); | |
netRxPackets_ = 0L; | |
netRxBytes_ = 0L; | |
netRxErrors_ = 0L; | |
netRxDropped_ = 0L; | |
netTxPackets_ = 0L; | |
netTxBytes_ = 0L; | |
netTxErrors_ = 0L; | |
netTxDropped_ = 0L; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasTimestamp()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (hasPerf()) { | |
if (!getPerf().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.writeDouble(1, timestamp_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeDouble(2, cpusUserTimeSecs_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeDouble(3, cpusSystemTimeSecs_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeDouble(4, cpusLimit_); | |
} | |
if (((bitField0_ & 0x00000080) == 0x00000080)) { | |
output.writeUInt64(5, memRssBytes_); | |
} | |
if (((bitField0_ & 0x00000100) == 0x00000100)) { | |
output.writeUInt64(6, memLimitBytes_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeUInt32(7, cpusNrPeriods_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
output.writeUInt32(8, cpusNrThrottled_); | |
} | |
if (((bitField0_ & 0x00000040) == 0x00000040)) { | |
output.writeDouble(9, cpusThrottledTimeSecs_); | |
} | |
if (((bitField0_ & 0x00000200) == 0x00000200)) { | |
output.writeUInt64(10, memFileBytes_); | |
} | |
if (((bitField0_ & 0x00000400) == 0x00000400)) { | |
output.writeUInt64(11, memAnonBytes_); | |
} | |
if (((bitField0_ & 0x00000800) == 0x00000800)) { | |
output.writeUInt64(12, memMappedFileBytes_); | |
} | |
if (((bitField0_ & 0x00001000) == 0x00001000)) { | |
output.writeMessage(13, perf_); | |
} | |
if (((bitField0_ & 0x00002000) == 0x00002000)) { | |
output.writeUInt64(14, netRxPackets_); | |
} | |
if (((bitField0_ & 0x00004000) == 0x00004000)) { | |
output.writeUInt64(15, netRxBytes_); | |
} | |
if (((bitField0_ & 0x00008000) == 0x00008000)) { | |
output.writeUInt64(16, netRxErrors_); | |
} | |
if (((bitField0_ & 0x00010000) == 0x00010000)) { | |
output.writeUInt64(17, netRxDropped_); | |
} | |
if (((bitField0_ & 0x00020000) == 0x00020000)) { | |
output.writeUInt64(18, netTxPackets_); | |
} | |
if (((bitField0_ & 0x00040000) == 0x00040000)) { | |
output.writeUInt64(19, netTxBytes_); | |
} | |
if (((bitField0_ & 0x00080000) == 0x00080000)) { | |
output.writeUInt64(20, netTxErrors_); | |
} | |
if (((bitField0_ & 0x00100000) == 0x00100000)) { | |
output.writeUInt64(21, netTxDropped_); | |
} | |
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 | |
.computeDoubleSize(1, timestamp_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(2, cpusUserTimeSecs_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(3, cpusSystemTimeSecs_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(4, cpusLimit_); | |
} | |
if (((bitField0_ & 0x00000080) == 0x00000080)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(5, memRssBytes_); | |
} | |
if (((bitField0_ & 0x00000100) == 0x00000100)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(6, memLimitBytes_); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt32Size(7, cpusNrPeriods_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt32Size(8, cpusNrThrottled_); | |
} | |
if (((bitField0_ & 0x00000040) == 0x00000040)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeDoubleSize(9, cpusThrottledTimeSecs_); | |
} | |
if (((bitField0_ & 0x00000200) == 0x00000200)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(10, memFileBytes_); | |
} | |
if (((bitField0_ & 0x00000400) == 0x00000400)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(11, memAnonBytes_); | |
} | |
if (((bitField0_ & 0x00000800) == 0x00000800)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(12, memMappedFileBytes_); | |
} | |
if (((bitField0_ & 0x00001000) == 0x00001000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(13, perf_); | |
} | |
if (((bitField0_ & 0x00002000) == 0x00002000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(14, netRxPackets_); | |
} | |
if (((bitField0_ & 0x00004000) == 0x00004000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(15, netRxBytes_); | |
} | |
if (((bitField0_ & 0x00008000) == 0x00008000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(16, netRxErrors_); | |
} | |
if (((bitField0_ & 0x00010000) == 0x00010000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(17, netRxDropped_); | |
} | |
if (((bitField0_ & 0x00020000) == 0x00020000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(18, netTxPackets_); | |
} | |
if (((bitField0_ & 0x00040000) == 0x00040000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(19, netTxBytes_); | |
} | |
if (((bitField0_ & 0x00080000) == 0x00080000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(20, netTxErrors_); | |
} | |
if (((bitField0_ & 0x00100000) == 0x00100000)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeUInt64Size(21, netTxDropped_); | |
} | |
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.Protos.ResourceStatistics parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ResourceStatistics 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.Protos.ResourceStatistics 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.ResourceStatistics} | |
* | |
* <pre> | |
* A snapshot of resource usage statistics. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.ResourceStatistics) | |
org.apache.mesos.Protos.ResourceStatisticsOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceStatistics_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceStatistics_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ResourceStatistics.class, org.apache.mesos.Protos.ResourceStatistics.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.ResourceStatistics.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getPerfFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
timestamp_ = 0D; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
cpusUserTimeSecs_ = 0D; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
cpusSystemTimeSecs_ = 0D; | |
bitField0_ = (bitField0_ & ~0x00000004); | |
cpusLimit_ = 0D; | |
bitField0_ = (bitField0_ & ~0x00000008); | |
cpusNrPeriods_ = 0; | |
bitField0_ = (bitField0_ & ~0x00000010); | |
cpusNrThrottled_ = 0; | |
bitField0_ = (bitField0_ & ~0x00000020); | |
cpusThrottledTimeSecs_ = 0D; | |
bitField0_ = (bitField0_ & ~0x00000040); | |
memRssBytes_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00000080); | |
memLimitBytes_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00000100); | |
memFileBytes_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00000200); | |
memAnonBytes_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00000400); | |
memMappedFileBytes_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00000800); | |
if (perfBuilder_ == null) { | |
perf_ = org.apache.mesos.Protos.PerfStatistics.getDefaultInstance(); | |
} else { | |
perfBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00001000); | |
netRxPackets_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00002000); | |
netRxBytes_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00004000); | |
netRxErrors_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00008000); | |
netRxDropped_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00010000); | |
netTxPackets_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00020000); | |
netTxBytes_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00040000); | |
netTxErrors_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00080000); | |
netTxDropped_ = 0L; | |
bitField0_ = (bitField0_ & ~0x00100000); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceStatistics_descriptor; | |
} | |
public org.apache.mesos.Protos.ResourceStatistics getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.ResourceStatistics.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.ResourceStatistics build() { | |
org.apache.mesos.Protos.ResourceStatistics result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.ResourceStatistics buildPartial() { | |
org.apache.mesos.Protos.ResourceStatistics result = new org.apache.mesos.Protos.ResourceStatistics(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
result.timestamp_ = timestamp_; | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.cpusUserTimeSecs_ = cpusUserTimeSecs_; | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
result.cpusSystemTimeSecs_ = cpusSystemTimeSecs_; | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
result.cpusLimit_ = cpusLimit_; | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
result.cpusNrPeriods_ = cpusNrPeriods_; | |
if (((from_bitField0_ & 0x00000020) == 0x00000020)) { | |
to_bitField0_ |= 0x00000020; | |
} | |
result.cpusNrThrottled_ = cpusNrThrottled_; | |
if (((from_bitField0_ & 0x00000040) == 0x00000040)) { | |
to_bitField0_ |= 0x00000040; | |
} | |
result.cpusThrottledTimeSecs_ = cpusThrottledTimeSecs_; | |
if (((from_bitField0_ & 0x00000080) == 0x00000080)) { | |
to_bitField0_ |= 0x00000080; | |
} | |
result.memRssBytes_ = memRssBytes_; | |
if (((from_bitField0_ & 0x00000100) == 0x00000100)) { | |
to_bitField0_ |= 0x00000100; | |
} | |
result.memLimitBytes_ = memLimitBytes_; | |
if (((from_bitField0_ & 0x00000200) == 0x00000200)) { | |
to_bitField0_ |= 0x00000200; | |
} | |
result.memFileBytes_ = memFileBytes_; | |
if (((from_bitField0_ & 0x00000400) == 0x00000400)) { | |
to_bitField0_ |= 0x00000400; | |
} | |
result.memAnonBytes_ = memAnonBytes_; | |
if (((from_bitField0_ & 0x00000800) == 0x00000800)) { | |
to_bitField0_ |= 0x00000800; | |
} | |
result.memMappedFileBytes_ = memMappedFileBytes_; | |
if (((from_bitField0_ & 0x00001000) == 0x00001000)) { | |
to_bitField0_ |= 0x00001000; | |
} | |
if (perfBuilder_ == null) { | |
result.perf_ = perf_; | |
} else { | |
result.perf_ = perfBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00002000) == 0x00002000)) { | |
to_bitField0_ |= 0x00002000; | |
} | |
result.netRxPackets_ = netRxPackets_; | |
if (((from_bitField0_ & 0x00004000) == 0x00004000)) { | |
to_bitField0_ |= 0x00004000; | |
} | |
result.netRxBytes_ = netRxBytes_; | |
if (((from_bitField0_ & 0x00008000) == 0x00008000)) { | |
to_bitField0_ |= 0x00008000; | |
} | |
result.netRxErrors_ = netRxErrors_; | |
if (((from_bitField0_ & 0x00010000) == 0x00010000)) { | |
to_bitField0_ |= 0x00010000; | |
} | |
result.netRxDropped_ = netRxDropped_; | |
if (((from_bitField0_ & 0x00020000) == 0x00020000)) { | |
to_bitField0_ |= 0x00020000; | |
} | |
result.netTxPackets_ = netTxPackets_; | |
if (((from_bitField0_ & 0x00040000) == 0x00040000)) { | |
to_bitField0_ |= 0x00040000; | |
} | |
result.netTxBytes_ = netTxBytes_; | |
if (((from_bitField0_ & 0x00080000) == 0x00080000)) { | |
to_bitField0_ |= 0x00080000; | |
} | |
result.netTxErrors_ = netTxErrors_; | |
if (((from_bitField0_ & 0x00100000) == 0x00100000)) { | |
to_bitField0_ |= 0x00100000; | |
} | |
result.netTxDropped_ = netTxDropped_; | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.ResourceStatistics) { | |
return mergeFrom((org.apache.mesos.Protos.ResourceStatistics)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.ResourceStatistics other) { | |
if (other == org.apache.mesos.Protos.ResourceStatistics.getDefaultInstance()) return this; | |
if (other.hasTimestamp()) { | |
setTimestamp(other.getTimestamp()); | |
} | |
if (other.hasCpusUserTimeSecs()) { | |
setCpusUserTimeSecs(other.getCpusUserTimeSecs()); | |
} | |
if (other.hasCpusSystemTimeSecs()) { | |
setCpusSystemTimeSecs(other.getCpusSystemTimeSecs()); | |
} | |
if (other.hasCpusLimit()) { | |
setCpusLimit(other.getCpusLimit()); | |
} | |
if (other.hasCpusNrPeriods()) { | |
setCpusNrPeriods(other.getCpusNrPeriods()); | |
} | |
if (other.hasCpusNrThrottled()) { | |
setCpusNrThrottled(other.getCpusNrThrottled()); | |
} | |
if (other.hasCpusThrottledTimeSecs()) { | |
setCpusThrottledTimeSecs(other.getCpusThrottledTimeSecs()); | |
} | |
if (other.hasMemRssBytes()) { | |
setMemRssBytes(other.getMemRssBytes()); | |
} | |
if (other.hasMemLimitBytes()) { | |
setMemLimitBytes(other.getMemLimitBytes()); | |
} | |
if (other.hasMemFileBytes()) { | |
setMemFileBytes(other.getMemFileBytes()); | |
} | |
if (other.hasMemAnonBytes()) { | |
setMemAnonBytes(other.getMemAnonBytes()); | |
} | |
if (other.hasMemMappedFileBytes()) { | |
setMemMappedFileBytes(other.getMemMappedFileBytes()); | |
} | |
if (other.hasPerf()) { | |
mergePerf(other.getPerf()); | |
} | |
if (other.hasNetRxPackets()) { | |
setNetRxPackets(other.getNetRxPackets()); | |
} | |
if (other.hasNetRxBytes()) { | |
setNetRxBytes(other.getNetRxBytes()); | |
} | |
if (other.hasNetRxErrors()) { | |
setNetRxErrors(other.getNetRxErrors()); | |
} | |
if (other.hasNetRxDropped()) { | |
setNetRxDropped(other.getNetRxDropped()); | |
} | |
if (other.hasNetTxPackets()) { | |
setNetTxPackets(other.getNetTxPackets()); | |
} | |
if (other.hasNetTxBytes()) { | |
setNetTxBytes(other.getNetTxBytes()); | |
} | |
if (other.hasNetTxErrors()) { | |
setNetTxErrors(other.getNetTxErrors()); | |
} | |
if (other.hasNetTxDropped()) { | |
setNetTxDropped(other.getNetTxDropped()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasTimestamp()) { | |
return false; | |
} | |
if (hasPerf()) { | |
if (!getPerf().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.Protos.ResourceStatistics parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.ResourceStatistics) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private double timestamp_ ; | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Snapshot time, in seconds since the Epoch. | |
* </pre> | |
*/ | |
public boolean hasTimestamp() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Snapshot time, in seconds since the Epoch. | |
* </pre> | |
*/ | |
public double getTimestamp() { | |
return timestamp_; | |
} | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Snapshot time, in seconds since the Epoch. | |
* </pre> | |
*/ | |
public Builder setTimestamp(double value) { | |
bitField0_ |= 0x00000001; | |
timestamp_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Snapshot time, in seconds since the Epoch. | |
* </pre> | |
*/ | |
public Builder clearTimestamp() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
timestamp_ = 0D; | |
onChanged(); | |
return this; | |
} | |
private double cpusUserTimeSecs_ ; | |
/** | |
* <code>optional double cpus_user_time_secs = 2;</code> | |
* | |
* <pre> | |
* CPU Usage Information: | |
* Total CPU time spent in user mode, and kernel mode. | |
* </pre> | |
*/ | |
public boolean hasCpusUserTimeSecs() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional double cpus_user_time_secs = 2;</code> | |
* | |
* <pre> | |
* CPU Usage Information: | |
* Total CPU time spent in user mode, and kernel mode. | |
* </pre> | |
*/ | |
public double getCpusUserTimeSecs() { | |
return cpusUserTimeSecs_; | |
} | |
/** | |
* <code>optional double cpus_user_time_secs = 2;</code> | |
* | |
* <pre> | |
* CPU Usage Information: | |
* Total CPU time spent in user mode, and kernel mode. | |
* </pre> | |
*/ | |
public Builder setCpusUserTimeSecs(double value) { | |
bitField0_ |= 0x00000002; | |
cpusUserTimeSecs_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double cpus_user_time_secs = 2;</code> | |
* | |
* <pre> | |
* CPU Usage Information: | |
* Total CPU time spent in user mode, and kernel mode. | |
* </pre> | |
*/ | |
public Builder clearCpusUserTimeSecs() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
cpusUserTimeSecs_ = 0D; | |
onChanged(); | |
return this; | |
} | |
private double cpusSystemTimeSecs_ ; | |
/** | |
* <code>optional double cpus_system_time_secs = 3;</code> | |
*/ | |
public boolean hasCpusSystemTimeSecs() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional double cpus_system_time_secs = 3;</code> | |
*/ | |
public double getCpusSystemTimeSecs() { | |
return cpusSystemTimeSecs_; | |
} | |
/** | |
* <code>optional double cpus_system_time_secs = 3;</code> | |
*/ | |
public Builder setCpusSystemTimeSecs(double value) { | |
bitField0_ |= 0x00000004; | |
cpusSystemTimeSecs_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double cpus_system_time_secs = 3;</code> | |
*/ | |
public Builder clearCpusSystemTimeSecs() { | |
bitField0_ = (bitField0_ & ~0x00000004); | |
cpusSystemTimeSecs_ = 0D; | |
onChanged(); | |
return this; | |
} | |
private double cpusLimit_ ; | |
/** | |
* <code>optional double cpus_limit = 4;</code> | |
* | |
* <pre> | |
* Number of CPUs allocated. | |
* </pre> | |
*/ | |
public boolean hasCpusLimit() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional double cpus_limit = 4;</code> | |
* | |
* <pre> | |
* Number of CPUs allocated. | |
* </pre> | |
*/ | |
public double getCpusLimit() { | |
return cpusLimit_; | |
} | |
/** | |
* <code>optional double cpus_limit = 4;</code> | |
* | |
* <pre> | |
* Number of CPUs allocated. | |
* </pre> | |
*/ | |
public Builder setCpusLimit(double value) { | |
bitField0_ |= 0x00000008; | |
cpusLimit_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double cpus_limit = 4;</code> | |
* | |
* <pre> | |
* Number of CPUs allocated. | |
* </pre> | |
*/ | |
public Builder clearCpusLimit() { | |
bitField0_ = (bitField0_ & ~0x00000008); | |
cpusLimit_ = 0D; | |
onChanged(); | |
return this; | |
} | |
private int cpusNrPeriods_ ; | |
/** | |
* <code>optional uint32 cpus_nr_periods = 7;</code> | |
* | |
* <pre> | |
* cpu.stat on process throttling (for contention issues). | |
* </pre> | |
*/ | |
public boolean hasCpusNrPeriods() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional uint32 cpus_nr_periods = 7;</code> | |
* | |
* <pre> | |
* cpu.stat on process throttling (for contention issues). | |
* </pre> | |
*/ | |
public int getCpusNrPeriods() { | |
return cpusNrPeriods_; | |
} | |
/** | |
* <code>optional uint32 cpus_nr_periods = 7;</code> | |
* | |
* <pre> | |
* cpu.stat on process throttling (for contention issues). | |
* </pre> | |
*/ | |
public Builder setCpusNrPeriods(int value) { | |
bitField0_ |= 0x00000010; | |
cpusNrPeriods_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint32 cpus_nr_periods = 7;</code> | |
* | |
* <pre> | |
* cpu.stat on process throttling (for contention issues). | |
* </pre> | |
*/ | |
public Builder clearCpusNrPeriods() { | |
bitField0_ = (bitField0_ & ~0x00000010); | |
cpusNrPeriods_ = 0; | |
onChanged(); | |
return this; | |
} | |
private int cpusNrThrottled_ ; | |
/** | |
* <code>optional uint32 cpus_nr_throttled = 8;</code> | |
*/ | |
public boolean hasCpusNrThrottled() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional uint32 cpus_nr_throttled = 8;</code> | |
*/ | |
public int getCpusNrThrottled() { | |
return cpusNrThrottled_; | |
} | |
/** | |
* <code>optional uint32 cpus_nr_throttled = 8;</code> | |
*/ | |
public Builder setCpusNrThrottled(int value) { | |
bitField0_ |= 0x00000020; | |
cpusNrThrottled_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint32 cpus_nr_throttled = 8;</code> | |
*/ | |
public Builder clearCpusNrThrottled() { | |
bitField0_ = (bitField0_ & ~0x00000020); | |
cpusNrThrottled_ = 0; | |
onChanged(); | |
return this; | |
} | |
private double cpusThrottledTimeSecs_ ; | |
/** | |
* <code>optional double cpus_throttled_time_secs = 9;</code> | |
*/ | |
public boolean hasCpusThrottledTimeSecs() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional double cpus_throttled_time_secs = 9;</code> | |
*/ | |
public double getCpusThrottledTimeSecs() { | |
return cpusThrottledTimeSecs_; | |
} | |
/** | |
* <code>optional double cpus_throttled_time_secs = 9;</code> | |
*/ | |
public Builder setCpusThrottledTimeSecs(double value) { | |
bitField0_ |= 0x00000040; | |
cpusThrottledTimeSecs_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional double cpus_throttled_time_secs = 9;</code> | |
*/ | |
public Builder clearCpusThrottledTimeSecs() { | |
bitField0_ = (bitField0_ & ~0x00000040); | |
cpusThrottledTimeSecs_ = 0D; | |
onChanged(); | |
return this; | |
} | |
private long memRssBytes_ ; | |
/** | |
* <code>optional uint64 mem_rss_bytes = 5;</code> | |
* | |
* <pre> | |
* Memory Usage Information: | |
* </pre> | |
*/ | |
public boolean hasMemRssBytes() { | |
return ((bitField0_ & 0x00000080) == 0x00000080); | |
} | |
/** | |
* <code>optional uint64 mem_rss_bytes = 5;</code> | |
* | |
* <pre> | |
* Memory Usage Information: | |
* </pre> | |
*/ | |
public long getMemRssBytes() { | |
return memRssBytes_; | |
} | |
/** | |
* <code>optional uint64 mem_rss_bytes = 5;</code> | |
* | |
* <pre> | |
* Memory Usage Information: | |
* </pre> | |
*/ | |
public Builder setMemRssBytes(long value) { | |
bitField0_ |= 0x00000080; | |
memRssBytes_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 mem_rss_bytes = 5;</code> | |
* | |
* <pre> | |
* Memory Usage Information: | |
* </pre> | |
*/ | |
public Builder clearMemRssBytes() { | |
bitField0_ = (bitField0_ & ~0x00000080); | |
memRssBytes_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long memLimitBytes_ ; | |
/** | |
* <code>optional uint64 mem_limit_bytes = 6;</code> | |
* | |
* <pre> | |
* Amount of memory resources allocated. | |
* </pre> | |
*/ | |
public boolean hasMemLimitBytes() { | |
return ((bitField0_ & 0x00000100) == 0x00000100); | |
} | |
/** | |
* <code>optional uint64 mem_limit_bytes = 6;</code> | |
* | |
* <pre> | |
* Amount of memory resources allocated. | |
* </pre> | |
*/ | |
public long getMemLimitBytes() { | |
return memLimitBytes_; | |
} | |
/** | |
* <code>optional uint64 mem_limit_bytes = 6;</code> | |
* | |
* <pre> | |
* Amount of memory resources allocated. | |
* </pre> | |
*/ | |
public Builder setMemLimitBytes(long value) { | |
bitField0_ |= 0x00000100; | |
memLimitBytes_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 mem_limit_bytes = 6;</code> | |
* | |
* <pre> | |
* Amount of memory resources allocated. | |
* </pre> | |
*/ | |
public Builder clearMemLimitBytes() { | |
bitField0_ = (bitField0_ & ~0x00000100); | |
memLimitBytes_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long memFileBytes_ ; | |
/** | |
* <code>optional uint64 mem_file_bytes = 10;</code> | |
* | |
* <pre> | |
* Broken out memory usage information (files, anonymous, and mmaped files) | |
* </pre> | |
*/ | |
public boolean hasMemFileBytes() { | |
return ((bitField0_ & 0x00000200) == 0x00000200); | |
} | |
/** | |
* <code>optional uint64 mem_file_bytes = 10;</code> | |
* | |
* <pre> | |
* Broken out memory usage information (files, anonymous, and mmaped files) | |
* </pre> | |
*/ | |
public long getMemFileBytes() { | |
return memFileBytes_; | |
} | |
/** | |
* <code>optional uint64 mem_file_bytes = 10;</code> | |
* | |
* <pre> | |
* Broken out memory usage information (files, anonymous, and mmaped files) | |
* </pre> | |
*/ | |
public Builder setMemFileBytes(long value) { | |
bitField0_ |= 0x00000200; | |
memFileBytes_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 mem_file_bytes = 10;</code> | |
* | |
* <pre> | |
* Broken out memory usage information (files, anonymous, and mmaped files) | |
* </pre> | |
*/ | |
public Builder clearMemFileBytes() { | |
bitField0_ = (bitField0_ & ~0x00000200); | |
memFileBytes_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long memAnonBytes_ ; | |
/** | |
* <code>optional uint64 mem_anon_bytes = 11;</code> | |
*/ | |
public boolean hasMemAnonBytes() { | |
return ((bitField0_ & 0x00000400) == 0x00000400); | |
} | |
/** | |
* <code>optional uint64 mem_anon_bytes = 11;</code> | |
*/ | |
public long getMemAnonBytes() { | |
return memAnonBytes_; | |
} | |
/** | |
* <code>optional uint64 mem_anon_bytes = 11;</code> | |
*/ | |
public Builder setMemAnonBytes(long value) { | |
bitField0_ |= 0x00000400; | |
memAnonBytes_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 mem_anon_bytes = 11;</code> | |
*/ | |
public Builder clearMemAnonBytes() { | |
bitField0_ = (bitField0_ & ~0x00000400); | |
memAnonBytes_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long memMappedFileBytes_ ; | |
/** | |
* <code>optional uint64 mem_mapped_file_bytes = 12;</code> | |
*/ | |
public boolean hasMemMappedFileBytes() { | |
return ((bitField0_ & 0x00000800) == 0x00000800); | |
} | |
/** | |
* <code>optional uint64 mem_mapped_file_bytes = 12;</code> | |
*/ | |
public long getMemMappedFileBytes() { | |
return memMappedFileBytes_; | |
} | |
/** | |
* <code>optional uint64 mem_mapped_file_bytes = 12;</code> | |
*/ | |
public Builder setMemMappedFileBytes(long value) { | |
bitField0_ |= 0x00000800; | |
memMappedFileBytes_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 mem_mapped_file_bytes = 12;</code> | |
*/ | |
public Builder clearMemMappedFileBytes() { | |
bitField0_ = (bitField0_ & ~0x00000800); | |
memMappedFileBytes_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.PerfStatistics perf_ = org.apache.mesos.Protos.PerfStatistics.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.PerfStatistics, org.apache.mesos.Protos.PerfStatistics.Builder, org.apache.mesos.Protos.PerfStatisticsOrBuilder> perfBuilder_; | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public boolean hasPerf() { | |
return ((bitField0_ & 0x00001000) == 0x00001000); | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.PerfStatistics getPerf() { | |
if (perfBuilder_ == null) { | |
return perf_; | |
} else { | |
return perfBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public Builder setPerf(org.apache.mesos.Protos.PerfStatistics value) { | |
if (perfBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
perf_ = value; | |
onChanged(); | |
} else { | |
perfBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00001000; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public Builder setPerf( | |
org.apache.mesos.Protos.PerfStatistics.Builder builderForValue) { | |
if (perfBuilder_ == null) { | |
perf_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
perfBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00001000; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public Builder mergePerf(org.apache.mesos.Protos.PerfStatistics value) { | |
if (perfBuilder_ == null) { | |
if (((bitField0_ & 0x00001000) == 0x00001000) && | |
perf_ != org.apache.mesos.Protos.PerfStatistics.getDefaultInstance()) { | |
perf_ = | |
org.apache.mesos.Protos.PerfStatistics.newBuilder(perf_).mergeFrom(value).buildPartial(); | |
} else { | |
perf_ = value; | |
} | |
onChanged(); | |
} else { | |
perfBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00001000; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public Builder clearPerf() { | |
if (perfBuilder_ == null) { | |
perf_ = org.apache.mesos.Protos.PerfStatistics.getDefaultInstance(); | |
onChanged(); | |
} else { | |
perfBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00001000); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.PerfStatistics.Builder getPerfBuilder() { | |
bitField0_ |= 0x00001000; | |
onChanged(); | |
return getPerfFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.PerfStatisticsOrBuilder getPerfOrBuilder() { | |
if (perfBuilder_ != null) { | |
return perfBuilder_.getMessageOrBuilder(); | |
} else { | |
return perf_; | |
} | |
} | |
/** | |
* <code>optional .mesos.PerfStatistics perf = 13;</code> | |
* | |
* <pre> | |
* Perf statistics. | |
* </pre> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.PerfStatistics, org.apache.mesos.Protos.PerfStatistics.Builder, org.apache.mesos.Protos.PerfStatisticsOrBuilder> | |
getPerfFieldBuilder() { | |
if (perfBuilder_ == null) { | |
perfBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.PerfStatistics, org.apache.mesos.Protos.PerfStatistics.Builder, org.apache.mesos.Protos.PerfStatisticsOrBuilder>( | |
getPerf(), | |
getParentForChildren(), | |
isClean()); | |
perf_ = null; | |
} | |
return perfBuilder_; | |
} | |
private long netRxPackets_ ; | |
/** | |
* <code>optional uint64 net_rx_packets = 14;</code> | |
* | |
* <pre> | |
* Network Usage Information: | |
* </pre> | |
*/ | |
public boolean hasNetRxPackets() { | |
return ((bitField0_ & 0x00002000) == 0x00002000); | |
} | |
/** | |
* <code>optional uint64 net_rx_packets = 14;</code> | |
* | |
* <pre> | |
* Network Usage Information: | |
* </pre> | |
*/ | |
public long getNetRxPackets() { | |
return netRxPackets_; | |
} | |
/** | |
* <code>optional uint64 net_rx_packets = 14;</code> | |
* | |
* <pre> | |
* Network Usage Information: | |
* </pre> | |
*/ | |
public Builder setNetRxPackets(long value) { | |
bitField0_ |= 0x00002000; | |
netRxPackets_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 net_rx_packets = 14;</code> | |
* | |
* <pre> | |
* Network Usage Information: | |
* </pre> | |
*/ | |
public Builder clearNetRxPackets() { | |
bitField0_ = (bitField0_ & ~0x00002000); | |
netRxPackets_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long netRxBytes_ ; | |
/** | |
* <code>optional uint64 net_rx_bytes = 15;</code> | |
*/ | |
public boolean hasNetRxBytes() { | |
return ((bitField0_ & 0x00004000) == 0x00004000); | |
} | |
/** | |
* <code>optional uint64 net_rx_bytes = 15;</code> | |
*/ | |
public long getNetRxBytes() { | |
return netRxBytes_; | |
} | |
/** | |
* <code>optional uint64 net_rx_bytes = 15;</code> | |
*/ | |
public Builder setNetRxBytes(long value) { | |
bitField0_ |= 0x00004000; | |
netRxBytes_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 net_rx_bytes = 15;</code> | |
*/ | |
public Builder clearNetRxBytes() { | |
bitField0_ = (bitField0_ & ~0x00004000); | |
netRxBytes_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long netRxErrors_ ; | |
/** | |
* <code>optional uint64 net_rx_errors = 16;</code> | |
*/ | |
public boolean hasNetRxErrors() { | |
return ((bitField0_ & 0x00008000) == 0x00008000); | |
} | |
/** | |
* <code>optional uint64 net_rx_errors = 16;</code> | |
*/ | |
public long getNetRxErrors() { | |
return netRxErrors_; | |
} | |
/** | |
* <code>optional uint64 net_rx_errors = 16;</code> | |
*/ | |
public Builder setNetRxErrors(long value) { | |
bitField0_ |= 0x00008000; | |
netRxErrors_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 net_rx_errors = 16;</code> | |
*/ | |
public Builder clearNetRxErrors() { | |
bitField0_ = (bitField0_ & ~0x00008000); | |
netRxErrors_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long netRxDropped_ ; | |
/** | |
* <code>optional uint64 net_rx_dropped = 17;</code> | |
*/ | |
public boolean hasNetRxDropped() { | |
return ((bitField0_ & 0x00010000) == 0x00010000); | |
} | |
/** | |
* <code>optional uint64 net_rx_dropped = 17;</code> | |
*/ | |
public long getNetRxDropped() { | |
return netRxDropped_; | |
} | |
/** | |
* <code>optional uint64 net_rx_dropped = 17;</code> | |
*/ | |
public Builder setNetRxDropped(long value) { | |
bitField0_ |= 0x00010000; | |
netRxDropped_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 net_rx_dropped = 17;</code> | |
*/ | |
public Builder clearNetRxDropped() { | |
bitField0_ = (bitField0_ & ~0x00010000); | |
netRxDropped_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long netTxPackets_ ; | |
/** | |
* <code>optional uint64 net_tx_packets = 18;</code> | |
*/ | |
public boolean hasNetTxPackets() { | |
return ((bitField0_ & 0x00020000) == 0x00020000); | |
} | |
/** | |
* <code>optional uint64 net_tx_packets = 18;</code> | |
*/ | |
public long getNetTxPackets() { | |
return netTxPackets_; | |
} | |
/** | |
* <code>optional uint64 net_tx_packets = 18;</code> | |
*/ | |
public Builder setNetTxPackets(long value) { | |
bitField0_ |= 0x00020000; | |
netTxPackets_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 net_tx_packets = 18;</code> | |
*/ | |
public Builder clearNetTxPackets() { | |
bitField0_ = (bitField0_ & ~0x00020000); | |
netTxPackets_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long netTxBytes_ ; | |
/** | |
* <code>optional uint64 net_tx_bytes = 19;</code> | |
*/ | |
public boolean hasNetTxBytes() { | |
return ((bitField0_ & 0x00040000) == 0x00040000); | |
} | |
/** | |
* <code>optional uint64 net_tx_bytes = 19;</code> | |
*/ | |
public long getNetTxBytes() { | |
return netTxBytes_; | |
} | |
/** | |
* <code>optional uint64 net_tx_bytes = 19;</code> | |
*/ | |
public Builder setNetTxBytes(long value) { | |
bitField0_ |= 0x00040000; | |
netTxBytes_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 net_tx_bytes = 19;</code> | |
*/ | |
public Builder clearNetTxBytes() { | |
bitField0_ = (bitField0_ & ~0x00040000); | |
netTxBytes_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long netTxErrors_ ; | |
/** | |
* <code>optional uint64 net_tx_errors = 20;</code> | |
*/ | |
public boolean hasNetTxErrors() { | |
return ((bitField0_ & 0x00080000) == 0x00080000); | |
} | |
/** | |
* <code>optional uint64 net_tx_errors = 20;</code> | |
*/ | |
public long getNetTxErrors() { | |
return netTxErrors_; | |
} | |
/** | |
* <code>optional uint64 net_tx_errors = 20;</code> | |
*/ | |
public Builder setNetTxErrors(long value) { | |
bitField0_ |= 0x00080000; | |
netTxErrors_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 net_tx_errors = 20;</code> | |
*/ | |
public Builder clearNetTxErrors() { | |
bitField0_ = (bitField0_ & ~0x00080000); | |
netTxErrors_ = 0L; | |
onChanged(); | |
return this; | |
} | |
private long netTxDropped_ ; | |
/** | |
* <code>optional uint64 net_tx_dropped = 21;</code> | |
*/ | |
public boolean hasNetTxDropped() { | |
return ((bitField0_ & 0x00100000) == 0x00100000); | |
} | |
/** | |
* <code>optional uint64 net_tx_dropped = 21;</code> | |
*/ | |
public long getNetTxDropped() { | |
return netTxDropped_; | |
} | |
/** | |
* <code>optional uint64 net_tx_dropped = 21;</code> | |
*/ | |
public Builder setNetTxDropped(long value) { | |
bitField0_ |= 0x00100000; | |
netTxDropped_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional uint64 net_tx_dropped = 21;</code> | |
*/ | |
public Builder clearNetTxDropped() { | |
bitField0_ = (bitField0_ & ~0x00100000); | |
netTxDropped_ = 0L; | |
onChanged(); | |
return this; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.ResourceStatistics) | |
} | |
static { | |
defaultInstance = new ResourceStatistics(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.ResourceStatistics) | |
} | |
public interface ResourceUsageOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.ResourceUsage) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
boolean hasSlaveId(); | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
org.apache.mesos.Protos.SlaveID getSlaveId(); | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
org.apache.mesos.Protos.SlaveIDOrBuilder getSlaveIdOrBuilder(); | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
boolean hasFrameworkId(); | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
org.apache.mesos.Protos.FrameworkID getFrameworkId(); | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
org.apache.mesos.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder(); | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
boolean hasExecutorId(); | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.ExecutorID getExecutorId(); | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder(); | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
boolean hasExecutorName(); | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
java.lang.String getExecutorName(); | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
com.google.protobuf.ByteString | |
getExecutorNameBytes(); | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
boolean hasTaskId(); | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.TaskID getTaskId(); | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.TaskIDOrBuilder getTaskIdOrBuilder(); | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
boolean hasStatistics(); | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.ResourceStatistics getStatistics(); | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
org.apache.mesos.Protos.ResourceStatisticsOrBuilder getStatisticsOrBuilder(); | |
} | |
/** | |
* Protobuf type {@code mesos.ResourceUsage} | |
* | |
* <pre> | |
** | |
* Describes a snapshot of the resource usage for an executor. | |
* TODO(bmahler): Note that we want to be sending this information | |
* to the master, and subsequently to the relevant scheduler. So | |
* this proto is designed to be easy for the scheduler to use, this | |
* is why we provide the slave id, executor info / task info. | |
* </pre> | |
*/ | |
public static final class ResourceUsage extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.ResourceUsage) | |
ResourceUsageOrBuilder { | |
// Use ResourceUsage.newBuilder() to construct. | |
private ResourceUsage(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private ResourceUsage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final ResourceUsage defaultInstance; | |
public static ResourceUsage getDefaultInstance() { | |
return defaultInstance; | |
} | |
public ResourceUsage getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private ResourceUsage( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
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.Protos.SlaveID.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000001) == 0x00000001)) { | |
subBuilder = slaveId_.toBuilder(); | |
} | |
slaveId_ = input.readMessage(org.apache.mesos.Protos.SlaveID.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(slaveId_); | |
slaveId_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000001; | |
break; | |
} | |
case 18: { | |
org.apache.mesos.Protos.FrameworkID.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
subBuilder = frameworkId_.toBuilder(); | |
} | |
frameworkId_ = input.readMessage(org.apache.mesos.Protos.FrameworkID.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(frameworkId_); | |
frameworkId_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000002; | |
break; | |
} | |
case 26: { | |
org.apache.mesos.Protos.ExecutorID.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
subBuilder = executorId_.toBuilder(); | |
} | |
executorId_ = input.readMessage(org.apache.mesos.Protos.ExecutorID.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(executorId_); | |
executorId_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000004; | |
break; | |
} | |
case 34: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000008; | |
executorName_ = bs; | |
break; | |
} | |
case 42: { | |
org.apache.mesos.Protos.TaskID.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
subBuilder = taskId_.toBuilder(); | |
} | |
taskId_ = input.readMessage(org.apache.mesos.Protos.TaskID.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(taskId_); | |
taskId_ = subBuilder.buildPartial(); | |
} | |
bitField0_ |= 0x00000010; | |
break; | |
} | |
case 50: { | |
org.apache.mesos.Protos.ResourceStatistics.Builder subBuilder = null; | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
subBuilder = statistics_.toBuilder(); | |
} | |
statistics_ = input.readMessage(org.apache.mesos.Protos.ResourceStatistics.PARSER, extensionRegistry); | |
if (subBuilder != null) { | |
subBuilder.mergeFrom(statistics_); | |
statistics_ = 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.Protos.internal_static_mesos_ResourceUsage_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceUsage_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ResourceUsage.class, org.apache.mesos.Protos.ResourceUsage.Builder.class); | |
} | |
public static com.google.protobuf.Parser<ResourceUsage> PARSER = | |
new com.google.protobuf.AbstractParser<ResourceUsage>() { | |
public ResourceUsage parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new ResourceUsage(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<ResourceUsage> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
public static final int SLAVE_ID_FIELD_NUMBER = 1; | |
private org.apache.mesos.Protos.SlaveID slaveId_; | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public boolean hasSlaveId() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveID getSlaveId() { | |
return slaveId_; | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveIDOrBuilder getSlaveIdOrBuilder() { | |
return slaveId_; | |
} | |
public static final int FRAMEWORK_ID_FIELD_NUMBER = 2; | |
private org.apache.mesos.Protos.FrameworkID frameworkId_; | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public boolean hasFrameworkId() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID getFrameworkId() { | |
return frameworkId_; | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { | |
return frameworkId_; | |
} | |
public static final int EXECUTOR_ID_FIELD_NUMBER = 3; | |
private org.apache.mesos.Protos.ExecutorID executorId_; | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public boolean hasExecutorId() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ExecutorID getExecutorId() { | |
return executorId_; | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { | |
return executorId_; | |
} | |
public static final int EXECUTOR_NAME_FIELD_NUMBER = 4; | |
private java.lang.Object executorName_; | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public boolean hasExecutorName() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public java.lang.String getExecutorName() { | |
java.lang.Object ref = executorName_; | |
if (ref instanceof java.lang.String) { | |
return (java.lang.String) ref; | |
} else { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
executorName_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getExecutorNameBytes() { | |
java.lang.Object ref = executorName_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
executorName_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
public static final int TASK_ID_FIELD_NUMBER = 5; | |
private org.apache.mesos.Protos.TaskID taskId_; | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public boolean hasTaskId() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.TaskID getTaskId() { | |
return taskId_; | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { | |
return taskId_; | |
} | |
public static final int STATISTICS_FIELD_NUMBER = 6; | |
private org.apache.mesos.Protos.ResourceStatistics statistics_; | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public boolean hasStatistics() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ResourceStatistics getStatistics() { | |
return statistics_; | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ResourceStatisticsOrBuilder getStatisticsOrBuilder() { | |
return statistics_; | |
} | |
private void initFields() { | |
slaveId_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
frameworkId_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
executorId_ = org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
executorName_ = ""; | |
taskId_ = org.apache.mesos.Protos.TaskID.getDefaultInstance(); | |
statistics_ = org.apache.mesos.Protos.ResourceStatistics.getDefaultInstance(); | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
byte isInitialized = memoizedIsInitialized; | |
if (isInitialized == 1) return true; | |
if (isInitialized == 0) return false; | |
if (!hasSlaveId()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasFrameworkId()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!getSlaveId().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!getFrameworkId().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (hasExecutorId()) { | |
if (!getExecutorId().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasTaskId()) { | |
if (!getTaskId().isInitialized()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
} | |
if (hasStatistics()) { | |
if (!getStatistics().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, slaveId_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
output.writeMessage(2, frameworkId_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
output.writeMessage(3, executorId_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
output.writeBytes(4, getExecutorNameBytes()); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
output.writeMessage(5, taskId_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
output.writeMessage(6, statistics_); | |
} | |
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, slaveId_); | |
} | |
if (((bitField0_ & 0x00000002) == 0x00000002)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(2, frameworkId_); | |
} | |
if (((bitField0_ & 0x00000004) == 0x00000004)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(3, executorId_); | |
} | |
if (((bitField0_ & 0x00000008) == 0x00000008)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeBytesSize(4, getExecutorNameBytes()); | |
} | |
if (((bitField0_ & 0x00000010) == 0x00000010)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(5, taskId_); | |
} | |
if (((bitField0_ & 0x00000020) == 0x00000020)) { | |
size += com.google.protobuf.CodedOutputStream | |
.computeMessageSize(6, statistics_); | |
} | |
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.Protos.ResourceUsage parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage parseFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage parseDelimitedFrom( | |
java.io.InputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
return PARSER.parseDelimitedFrom(input, extensionRegistry); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return PARSER.parseFrom(input); | |
} | |
public static org.apache.mesos.Protos.ResourceUsage 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.Protos.ResourceUsage 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.ResourceUsage} | |
* | |
* <pre> | |
** | |
* Describes a snapshot of the resource usage for an executor. | |
* TODO(bmahler): Note that we want to be sending this information | |
* to the master, and subsequently to the relevant scheduler. So | |
* this proto is designed to be easy for the scheduler to use, this | |
* is why we provide the slave id, executor info / task info. | |
* </pre> | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessage.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:mesos.ResourceUsage) | |
org.apache.mesos.Protos.ResourceUsageOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceUsage_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceUsage_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.ResourceUsage.class, org.apache.mesos.Protos.ResourceUsage.Builder.class); | |
} | |
// Construct using org.apache.mesos.Protos.ResourceUsage.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessage.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { | |
getSlaveIdFieldBuilder(); | |
getFrameworkIdFieldBuilder(); | |
getExecutorIdFieldBuilder(); | |
getTaskIdFieldBuilder(); | |
getStatisticsFieldBuilder(); | |
} | |
} | |
private static Builder create() { | |
return new Builder(); | |
} | |
public Builder clear() { | |
super.clear(); | |
if (slaveIdBuilder_ == null) { | |
slaveId_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
} else { | |
slaveIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000001); | |
if (frameworkIdBuilder_ == null) { | |
frameworkId_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
} else { | |
frameworkIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000002); | |
if (executorIdBuilder_ == null) { | |
executorId_ = org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
} else { | |
executorIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
executorName_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000008); | |
if (taskIdBuilder_ == null) { | |
taskId_ = org.apache.mesos.Protos.TaskID.getDefaultInstance(); | |
} else { | |
taskIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
if (statisticsBuilder_ == null) { | |
statistics_ = org.apache.mesos.Protos.ResourceStatistics.getDefaultInstance(); | |
} else { | |
statisticsBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000020); | |
return this; | |
} | |
public Builder clone() { | |
return create().mergeFrom(buildPartial()); | |
} | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return org.apache.mesos.Protos.internal_static_mesos_ResourceUsage_descriptor; | |
} | |
public org.apache.mesos.Protos.ResourceUsage getDefaultInstanceForType() { | |
return org.apache.mesos.Protos.ResourceUsage.getDefaultInstance(); | |
} | |
public org.apache.mesos.Protos.ResourceUsage build() { | |
org.apache.mesos.Protos.ResourceUsage result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
public org.apache.mesos.Protos.ResourceUsage buildPartial() { | |
org.apache.mesos.Protos.ResourceUsage result = new org.apache.mesos.Protos.ResourceUsage(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) == 0x00000001)) { | |
to_bitField0_ |= 0x00000001; | |
} | |
if (slaveIdBuilder_ == null) { | |
result.slaveId_ = slaveId_; | |
} else { | |
result.slaveId_ = slaveIdBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000002) == 0x00000002)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
if (frameworkIdBuilder_ == null) { | |
result.frameworkId_ = frameworkId_; | |
} else { | |
result.frameworkId_ = frameworkIdBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000004) == 0x00000004)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
if (executorIdBuilder_ == null) { | |
result.executorId_ = executorId_; | |
} else { | |
result.executorId_ = executorIdBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000008) == 0x00000008)) { | |
to_bitField0_ |= 0x00000008; | |
} | |
result.executorName_ = executorName_; | |
if (((from_bitField0_ & 0x00000010) == 0x00000010)) { | |
to_bitField0_ |= 0x00000010; | |
} | |
if (taskIdBuilder_ == null) { | |
result.taskId_ = taskId_; | |
} else { | |
result.taskId_ = taskIdBuilder_.build(); | |
} | |
if (((from_bitField0_ & 0x00000020) == 0x00000020)) { | |
to_bitField0_ |= 0x00000020; | |
} | |
if (statisticsBuilder_ == null) { | |
result.statistics_ = statistics_; | |
} else { | |
result.statistics_ = statisticsBuilder_.build(); | |
} | |
result.bitField0_ = to_bitField0_; | |
onBuilt(); | |
return result; | |
} | |
public Builder mergeFrom(com.google.protobuf.Message other) { | |
if (other instanceof org.apache.mesos.Protos.ResourceUsage) { | |
return mergeFrom((org.apache.mesos.Protos.ResourceUsage)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(org.apache.mesos.Protos.ResourceUsage other) { | |
if (other == org.apache.mesos.Protos.ResourceUsage.getDefaultInstance()) return this; | |
if (other.hasSlaveId()) { | |
mergeSlaveId(other.getSlaveId()); | |
} | |
if (other.hasFrameworkId()) { | |
mergeFrameworkId(other.getFrameworkId()); | |
} | |
if (other.hasExecutorId()) { | |
mergeExecutorId(other.getExecutorId()); | |
} | |
if (other.hasExecutorName()) { | |
bitField0_ |= 0x00000008; | |
executorName_ = other.executorName_; | |
onChanged(); | |
} | |
if (other.hasTaskId()) { | |
mergeTaskId(other.getTaskId()); | |
} | |
if (other.hasStatistics()) { | |
mergeStatistics(other.getStatistics()); | |
} | |
this.mergeUnknownFields(other.getUnknownFields()); | |
return this; | |
} | |
public final boolean isInitialized() { | |
if (!hasSlaveId()) { | |
return false; | |
} | |
if (!hasFrameworkId()) { | |
return false; | |
} | |
if (!getSlaveId().isInitialized()) { | |
return false; | |
} | |
if (!getFrameworkId().isInitialized()) { | |
return false; | |
} | |
if (hasExecutorId()) { | |
if (!getExecutorId().isInitialized()) { | |
return false; | |
} | |
} | |
if (hasTaskId()) { | |
if (!getTaskId().isInitialized()) { | |
return false; | |
} | |
} | |
if (hasStatistics()) { | |
if (!getStatistics().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.Protos.ResourceUsage parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (org.apache.mesos.Protos.ResourceUsage) e.getUnfinishedMessage(); | |
throw e; | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private org.apache.mesos.Protos.SlaveID slaveId_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder> slaveIdBuilder_; | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public boolean hasSlaveId() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveID getSlaveId() { | |
if (slaveIdBuilder_ == null) { | |
return slaveId_; | |
} else { | |
return slaveIdBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public Builder setSlaveId(org.apache.mesos.Protos.SlaveID value) { | |
if (slaveIdBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
slaveId_ = value; | |
onChanged(); | |
} else { | |
slaveIdBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public Builder setSlaveId( | |
org.apache.mesos.Protos.SlaveID.Builder builderForValue) { | |
if (slaveIdBuilder_ == null) { | |
slaveId_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
slaveIdBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public Builder mergeSlaveId(org.apache.mesos.Protos.SlaveID value) { | |
if (slaveIdBuilder_ == null) { | |
if (((bitField0_ & 0x00000001) == 0x00000001) && | |
slaveId_ != org.apache.mesos.Protos.SlaveID.getDefaultInstance()) { | |
slaveId_ = | |
org.apache.mesos.Protos.SlaveID.newBuilder(slaveId_).mergeFrom(value).buildPartial(); | |
} else { | |
slaveId_ = value; | |
} | |
onChanged(); | |
} else { | |
slaveIdBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000001; | |
return this; | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public Builder clearSlaveId() { | |
if (slaveIdBuilder_ == null) { | |
slaveId_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance(); | |
onChanged(); | |
} else { | |
slaveIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000001); | |
return this; | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveID.Builder getSlaveIdBuilder() { | |
bitField0_ |= 0x00000001; | |
onChanged(); | |
return getSlaveIdFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
public org.apache.mesos.Protos.SlaveIDOrBuilder getSlaveIdOrBuilder() { | |
if (slaveIdBuilder_ != null) { | |
return slaveIdBuilder_.getMessageOrBuilder(); | |
} else { | |
return slaveId_; | |
} | |
} | |
/** | |
* <code>required .mesos.SlaveID slave_id = 1;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder> | |
getSlaveIdFieldBuilder() { | |
if (slaveIdBuilder_ == null) { | |
slaveIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder>( | |
getSlaveId(), | |
getParentForChildren(), | |
isClean()); | |
slaveId_ = null; | |
} | |
return slaveIdBuilder_; | |
} | |
private org.apache.mesos.Protos.FrameworkID frameworkId_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_; | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public boolean hasFrameworkId() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID getFrameworkId() { | |
if (frameworkIdBuilder_ == null) { | |
return frameworkId_; | |
} else { | |
return frameworkIdBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public Builder setFrameworkId(org.apache.mesos.Protos.FrameworkID value) { | |
if (frameworkIdBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
frameworkId_ = value; | |
onChanged(); | |
} else { | |
frameworkIdBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public Builder setFrameworkId( | |
org.apache.mesos.Protos.FrameworkID.Builder builderForValue) { | |
if (frameworkIdBuilder_ == null) { | |
frameworkId_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
frameworkIdBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public Builder mergeFrameworkId(org.apache.mesos.Protos.FrameworkID value) { | |
if (frameworkIdBuilder_ == null) { | |
if (((bitField0_ & 0x00000002) == 0x00000002) && | |
frameworkId_ != org.apache.mesos.Protos.FrameworkID.getDefaultInstance()) { | |
frameworkId_ = | |
org.apache.mesos.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial(); | |
} else { | |
frameworkId_ = value; | |
} | |
onChanged(); | |
} else { | |
frameworkIdBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000002; | |
return this; | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public Builder clearFrameworkId() { | |
if (frameworkIdBuilder_ == null) { | |
frameworkId_ = org.apache.mesos.Protos.FrameworkID.getDefaultInstance(); | |
onChanged(); | |
} else { | |
frameworkIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000002); | |
return this; | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkID.Builder getFrameworkIdBuilder() { | |
bitField0_ |= 0x00000002; | |
onChanged(); | |
return getFrameworkIdFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
public org.apache.mesos.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { | |
if (frameworkIdBuilder_ != null) { | |
return frameworkIdBuilder_.getMessageOrBuilder(); | |
} else { | |
return frameworkId_; | |
} | |
} | |
/** | |
* <code>required .mesos.FrameworkID framework_id = 2;</code> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder> | |
getFrameworkIdFieldBuilder() { | |
if (frameworkIdBuilder_ == null) { | |
frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.FrameworkID, org.apache.mesos.Protos.FrameworkID.Builder, org.apache.mesos.Protos.FrameworkIDOrBuilder>( | |
getFrameworkId(), | |
getParentForChildren(), | |
isClean()); | |
frameworkId_ = null; | |
} | |
return frameworkIdBuilder_; | |
} | |
private org.apache.mesos.Protos.ExecutorID executorId_ = org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ExecutorID, org.apache.mesos.Protos.ExecutorID.Builder, org.apache.mesos.Protos.ExecutorIDOrBuilder> executorIdBuilder_; | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public boolean hasExecutorId() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ExecutorID getExecutorId() { | |
if (executorIdBuilder_ == null) { | |
return executorId_; | |
} else { | |
return executorIdBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public Builder setExecutorId(org.apache.mesos.Protos.ExecutorID value) { | |
if (executorIdBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
executorId_ = value; | |
onChanged(); | |
} else { | |
executorIdBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public Builder setExecutorId( | |
org.apache.mesos.Protos.ExecutorID.Builder builderForValue) { | |
if (executorIdBuilder_ == null) { | |
executorId_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
executorIdBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public Builder mergeExecutorId(org.apache.mesos.Protos.ExecutorID value) { | |
if (executorIdBuilder_ == null) { | |
if (((bitField0_ & 0x00000004) == 0x00000004) && | |
executorId_ != org.apache.mesos.Protos.ExecutorID.getDefaultInstance()) { | |
executorId_ = | |
org.apache.mesos.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial(); | |
} else { | |
executorId_ = value; | |
} | |
onChanged(); | |
} else { | |
executorIdBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000004; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public Builder clearExecutorId() { | |
if (executorIdBuilder_ == null) { | |
executorId_ = org.apache.mesos.Protos.ExecutorID.getDefaultInstance(); | |
onChanged(); | |
} else { | |
executorIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ExecutorID.Builder getExecutorIdBuilder() { | |
bitField0_ |= 0x00000004; | |
onChanged(); | |
return getExecutorIdFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { | |
if (executorIdBuilder_ != null) { | |
return executorIdBuilder_.getMessageOrBuilder(); | |
} else { | |
return executorId_; | |
} | |
} | |
/** | |
* <code>optional .mesos.ExecutorID executor_id = 3;</code> | |
* | |
* <pre> | |
* If present, this executor was | |
* </pre> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ExecutorID, org.apache.mesos.Protos.ExecutorID.Builder, org.apache.mesos.Protos.ExecutorIDOrBuilder> | |
getExecutorIdFieldBuilder() { | |
if (executorIdBuilder_ == null) { | |
executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ExecutorID, org.apache.mesos.Protos.ExecutorID.Builder, org.apache.mesos.Protos.ExecutorIDOrBuilder>( | |
getExecutorId(), | |
getParentForChildren(), | |
isClean()); | |
executorId_ = null; | |
} | |
return executorIdBuilder_; | |
} | |
private java.lang.Object executorName_ = ""; | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public boolean hasExecutorName() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public java.lang.String getExecutorName() { | |
java.lang.Object ref = executorName_; | |
if (!(ref instanceof java.lang.String)) { | |
com.google.protobuf.ByteString bs = | |
(com.google.protobuf.ByteString) ref; | |
java.lang.String s = bs.toStringUtf8(); | |
if (bs.isValidUtf8()) { | |
executorName_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public com.google.protobuf.ByteString | |
getExecutorNameBytes() { | |
java.lang.Object ref = executorName_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
executorName_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public Builder setExecutorName( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000008; | |
executorName_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public Builder clearExecutorName() { | |
bitField0_ = (bitField0_ & ~0x00000008); | |
executorName_ = getDefaultInstance().getExecutorName(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string executor_name = 4;</code> | |
* | |
* <pre> | |
* explicitly specified. | |
* </pre> | |
*/ | |
public Builder setExecutorNameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000008; | |
executorName_ = value; | |
onChanged(); | |
return this; | |
} | |
private org.apache.mesos.Protos.TaskID taskId_ = org.apache.mesos.Protos.TaskID.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.TaskID, org.apache.mesos.Protos.TaskID.Builder, org.apache.mesos.Protos.TaskIDOrBuilder> taskIdBuilder_; | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public boolean hasTaskId() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.TaskID getTaskId() { | |
if (taskIdBuilder_ == null) { | |
return taskId_; | |
} else { | |
return taskIdBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public Builder setTaskId(org.apache.mesos.Protos.TaskID value) { | |
if (taskIdBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
taskId_ = value; | |
onChanged(); | |
} else { | |
taskIdBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public Builder setTaskId( | |
org.apache.mesos.Protos.TaskID.Builder builderForValue) { | |
if (taskIdBuilder_ == null) { | |
taskId_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
taskIdBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public Builder mergeTaskId(org.apache.mesos.Protos.TaskID value) { | |
if (taskIdBuilder_ == null) { | |
if (((bitField0_ & 0x00000010) == 0x00000010) && | |
taskId_ != org.apache.mesos.Protos.TaskID.getDefaultInstance()) { | |
taskId_ = | |
org.apache.mesos.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial(); | |
} else { | |
taskId_ = value; | |
} | |
onChanged(); | |
} else { | |
taskIdBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000010; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public Builder clearTaskId() { | |
if (taskIdBuilder_ == null) { | |
taskId_ = org.apache.mesos.Protos.TaskID.getDefaultInstance(); | |
onChanged(); | |
} else { | |
taskIdBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000010); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.TaskID.Builder getTaskIdBuilder() { | |
bitField0_ |= 0x00000010; | |
onChanged(); | |
return getTaskIdFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { | |
if (taskIdBuilder_ != null) { | |
return taskIdBuilder_.getMessageOrBuilder(); | |
} else { | |
return taskId_; | |
} | |
} | |
/** | |
* <code>optional .mesos.TaskID task_id = 5;</code> | |
* | |
* <pre> | |
* If present, the task did not have an executor. | |
* </pre> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.TaskID, org.apache.mesos.Protos.TaskID.Builder, org.apache.mesos.Protos.TaskIDOrBuilder> | |
getTaskIdFieldBuilder() { | |
if (taskIdBuilder_ == null) { | |
taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.TaskID, org.apache.mesos.Protos.TaskID.Builder, org.apache.mesos.Protos.TaskIDOrBuilder>( | |
getTaskId(), | |
getParentForChildren(), | |
isClean()); | |
taskId_ = null; | |
} | |
return taskIdBuilder_; | |
} | |
private org.apache.mesos.Protos.ResourceStatistics statistics_ = org.apache.mesos.Protos.ResourceStatistics.getDefaultInstance(); | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ResourceStatistics, org.apache.mesos.Protos.ResourceStatistics.Builder, org.apache.mesos.Protos.ResourceStatisticsOrBuilder> statisticsBuilder_; | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public boolean hasStatistics() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ResourceStatistics getStatistics() { | |
if (statisticsBuilder_ == null) { | |
return statistics_; | |
} else { | |
return statisticsBuilder_.getMessage(); | |
} | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public Builder setStatistics(org.apache.mesos.Protos.ResourceStatistics value) { | |
if (statisticsBuilder_ == null) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
statistics_ = value; | |
onChanged(); | |
} else { | |
statisticsBuilder_.setMessage(value); | |
} | |
bitField0_ |= 0x00000020; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public Builder setStatistics( | |
org.apache.mesos.Protos.ResourceStatistics.Builder builderForValue) { | |
if (statisticsBuilder_ == null) { | |
statistics_ = builderForValue.build(); | |
onChanged(); | |
} else { | |
statisticsBuilder_.setMessage(builderForValue.build()); | |
} | |
bitField0_ |= 0x00000020; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public Builder mergeStatistics(org.apache.mesos.Protos.ResourceStatistics value) { | |
if (statisticsBuilder_ == null) { | |
if (((bitField0_ & 0x00000020) == 0x00000020) && | |
statistics_ != org.apache.mesos.Protos.ResourceStatistics.getDefaultInstance()) { | |
statistics_ = | |
org.apache.mesos.Protos.ResourceStatistics.newBuilder(statistics_).mergeFrom(value).buildPartial(); | |
} else { | |
statistics_ = value; | |
} | |
onChanged(); | |
} else { | |
statisticsBuilder_.mergeFrom(value); | |
} | |
bitField0_ |= 0x00000020; | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public Builder clearStatistics() { | |
if (statisticsBuilder_ == null) { | |
statistics_ = org.apache.mesos.Protos.ResourceStatistics.getDefaultInstance(); | |
onChanged(); | |
} else { | |
statisticsBuilder_.clear(); | |
} | |
bitField0_ = (bitField0_ & ~0x00000020); | |
return this; | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ResourceStatistics.Builder getStatisticsBuilder() { | |
bitField0_ |= 0x00000020; | |
onChanged(); | |
return getStatisticsFieldBuilder().getBuilder(); | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
public org.apache.mesos.Protos.ResourceStatisticsOrBuilder getStatisticsOrBuilder() { | |
if (statisticsBuilder_ != null) { | |
return statisticsBuilder_.getMessageOrBuilder(); | |
} else { | |
return statistics_; | |
} | |
} | |
/** | |
* <code>optional .mesos.ResourceStatistics statistics = 6;</code> | |
* | |
* <pre> | |
* If missing, the isolation module cannot provide resource usage. | |
* </pre> | |
*/ | |
private com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ResourceStatistics, org.apache.mesos.Protos.ResourceStatistics.Builder, org.apache.mesos.Protos.ResourceStatisticsOrBuilder> | |
getStatisticsFieldBuilder() { | |
if (statisticsBuilder_ == null) { | |
statisticsBuilder_ = new com.google.protobuf.SingleFieldBuilder< | |
org.apache.mesos.Protos.ResourceStatistics, org.apache.mesos.Protos.ResourceStatistics.Builder, org.apache.mesos.Protos.ResourceStatisticsOrBuilder>( | |
getStatistics(), | |
getParentForChildren(), | |
isClean()); | |
statistics_ = null; | |
} | |
return statisticsBuilder_; | |
} | |
// @@protoc_insertion_point(builder_scope:mesos.ResourceUsage) | |
} | |
static { | |
defaultInstance = new ResourceUsage(true); | |
defaultInstance.initFields(); | |
} | |
// @@protoc_insertion_point(class_scope:mesos.ResourceUsage) | |
} | |
public interface PerfStatisticsOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:mesos.PerfStatistics) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Start of sample interval, in seconds since the Epoch. | |
* </pre> | |
*/ | |
boolean hasTimestamp(); | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Start of sample interval, in seconds since the Epoch. | |
* </pre> | |
*/ | |
double getTimestamp(); | |
/** | |
* <code>required double duration = 2;</code> | |
* | |
* <pre> | |
* Duration of sample interval, in seconds. | |
* </pre> | |
*/ | |
boolean hasDuration(); | |
/** | |
* <code>required double duration = 2;</code> | |
* | |
* <pre> | |
* Duration of sample interval, in seconds. | |
* </pre> | |
*/ | |
double getDuration(); | |
/** | |
* <code>optional uint64 cycles = 3;</code> | |
* | |
* <pre> | |
* Hardware event. | |
* </pre> | |
*/ | |
boolean hasCycles(); | |
/** | |
* <code>optional uint64 cycles = 3;</code> | |
* | |
* <pre> | |
* Hardware event. | |
* </pre> | |
*/ | |
long getCycles(); | |
/** | |
* <code>optional uint64 stalled_cycles_frontend = 4;</code> | |
*/ | |
boolean hasStalledCyclesFrontend(); | |
/** | |
* <code>optional uint64 stalled_cycles_frontend = 4;</code> | |
*/ | |
long getStalledCyclesFrontend(); | |
/** | |
* <code>optional uint64 stalled_cycles_backend = 5;</code> | |
*/ | |
boolean hasStalledCyclesBackend(); | |
/** | |
* <code>optional uint64 stalled_cycles_backend = 5;</code> | |
*/ | |
long getStalledCyclesBackend(); | |
/** | |
* <code>optional uint64 instructions = 6;</code> | |
*/ | |
boolean hasInstructions(); | |
/** | |
* <code>optional uint64 instructions = 6;</code> | |
*/ | |
long getInstructions(); | |
/** | |
* <code>optional uint64 cache_references = 7;</code> | |
*/ | |
boolean hasCacheReferences(); | |
/** | |
* <code>optional uint64 cache_references = 7;</code> | |
*/ | |
long getCacheReferences(); | |
/** | |
* <code>optional uint64 cache_misses = 8;</code> | |
*/ | |
boolean hasCacheMisses(); | |
/** | |
* <code>optional uint64 cache_misses = 8;</code> | |
*/ | |
long getCacheMisses(); | |
/** | |
* <code>optional uint64 branches = 9;</code> | |
*/ | |
boolean hasBranches(); | |
/** | |
* <code>optional uint64 branches = 9;</code> | |
*/ | |
long getBranches(); | |
/** | |
* <code>optional uint64 branch_misses = 10;</code> | |
*/ | |
boolean hasBranchMisses(); | |
/** | |
* <code>optional uint64 branch_misses = 10;</code> | |
*/ | |
long getBranchMisses(); | |
/** | |
* <code>optional uint64 bus_cycles = 11;</code> | |
*/ | |
boolean hasBusCycles(); | |
/** | |
* <code>optional uint64 bus_cycles = 11;</code> | |
*/ | |
long getBusCycles(); | |
/** | |
* <code>optional uint64 ref_cycles = 12;</code> | |
*/ | |
boolean hasRefCycles(); | |
/** | |
* <code>optional uint64 ref_cycles = 12;</code> | |
*/ | |
long getRefCycles(); | |
/** | |
* <code>optional double cpu_clock = 13;</code> | |
* | |
* <pre> | |
* Software event. | |
* </pre> | |
*/ | |
boolean hasCpuClock(); | |
/** | |
* <code>optional double cpu_clock = 13;</code> | |
* | |
* <pre> | |
* Software event. | |
* </pre> | |
*/ | |
double getCpuClock(); | |
/** | |
* <code>optional double task_clock = 14;</code> | |
*/ | |
boolean hasTaskClock(); | |
/** | |
* <code>optional double task_clock = 14;</code> | |
*/ | |
double getTaskClock(); | |
/** | |
* <code>optional uint64 page_faults = 15;</code> | |
*/ | |
boolean hasPageFaults(); | |
/** | |
* <code>optional uint64 page_faults = 15;</code> | |
*/ | |
long getPageFaults(); | |
/** | |
* <code>optional uint64 minor_faults = 16;</code> | |
*/ | |
boolean hasMinorFaults(); | |
/** | |
* <code>optional uint64 minor_faults = 16;</code> | |
*/ | |
long getMinorFaults(); | |
/** | |
* <code>optional uint64 major_faults = 17;</code> | |
*/ | |
boolean hasMajorFaults(); | |
/** | |
* <code>optional uint64 major_faults = 17;</code> | |
*/ | |
long getMajorFaults(); | |
/** | |
* <code>optional uint64 context_switches = 18;</code> | |
*/ | |
boolean hasContextSwitches(); | |
/** | |
* <code>optional uint64 context_switches = 18;</code> | |
*/ | |
long getContextSwitches(); | |
/** | |
* <code>optional uint64 cpu_migrations = 19;</code> | |
*/ | |
boolean hasCpuMigrations(); | |
/** | |
* <code>optional uint64 cpu_migrations = 19;</code> | |
*/ | |
long getCpuMigrations(); | |
/** | |
* <code>optional uint64 alignment_faults = 20;</code> | |
*/ | |
boolean hasAlignmentFaults(); | |
/** | |
* <code>optional uint64 alignment_faults = 20;</code> | |
*/ | |
long getAlignmentFaults(); | |
/** | |
* <code>optional uint64 emulation_faults = 21;</code> | |
*/ | |
boolean hasEmulationFaults(); | |
/** | |
* <code>optional uint64 emulation_faults = 21;</code> | |
*/ | |
long getEmulationFaults(); | |
/** | |
* <code>optional uint64 l1_dcache_loads = 22;</code> | |
* | |
* <pre> | |
* Hardware cache event. | |
* </pre> | |
*/ | |
boolean hasL1DcacheLoads(); | |
/** | |
* <code>optional uint64 l1_dcache_loads = 22;</code> | |
* | |
* <pre> | |
* Hardware cache event. | |
* </pre> | |
*/ | |
long getL1DcacheLoads(); | |
/** | |
* <code>optional uint64 l1_dcache_load_misses = 23;</code> | |
*/ | |
boolean hasL1DcacheLoadMisses(); | |
/** | |
* <code>optional uint64 l1_dcache_load_misses = 23;</code> | |
*/ | |
long getL1DcacheLoadMisses(); | |
/** | |
* <code>optional uint64 l1_dcache_stores = 24;</code> | |
*/ | |
boolean hasL1DcacheStores(); | |
/** | |
* <code>optional uint64 l1_dcache_stores = 24;</code> | |
*/ | |
long getL1DcacheStores(); | |
/** | |
* <code>optional uint64 l1_dcache_store_misses = 25;</code> | |
*/ | |
boolean hasL1DcacheStoreMisses(); | |
/** | |
* <code>optional uint64 l1_dcache_store_misses = 25;</code> | |
*/ | |
long getL1DcacheStoreMisses(); | |
/** | |
* <code>optional uint64 l1_dcache_prefetches = 26;</code> | |
*/ | |
boolean hasL1DcachePrefetches(); | |
/** | |
* <code>optional uint64 l1_dcache_prefetches = 26;</code> | |
*/ | |
long getL1DcachePrefetches(); | |
/** | |
* <code>optional uint64 l1_dcache_prefetch_misses = 27;</code> | |
*/ | |
boolean hasL1DcachePrefetchMisses(); | |
/** | |
* <code>optional uint64 l1_dcache_prefetch_misses = 27;</code> | |
*/ | |
long getL1DcachePrefetchMisses(); | |
/** | |
* <code>optional uint64 l1_icache_loads = 28;</code> | |
*/ | |
boolean hasL1IcacheLoads(); | |
/** | |
* <code>optional uint64 l1_icache_loads = 28;</code> | |
*/ | |
long getL1IcacheLoads(); | |
/** | |
* <code>optional uint64 l1_icache_load_misses = 29;</code> | |
*/ | |
boolean hasL1IcacheLoadMisses(); | |
/** | |
* <code>optional uint64 l1_icache_load_misses = 29;</code> | |
*/ | |
long getL1IcacheLoadMisses(); | |
/** | |
* <code>optional uint64 l1_icache_prefetches = 30;</code> | |
*/ | |
boolean hasL1IcachePrefetches(); | |
/** | |
* <code>optional uint64 l1_icache_prefetches = 30;</code> | |
*/ | |
long getL1IcachePrefetches(); | |
/** | |
* <code>optional uint64 l1_icache_prefetch_misses = 31;</code> | |
*/ | |
boolean hasL1IcachePrefetchMisses(); | |
/** | |
* <code>optional uint64 l1_icache_prefetch_misses = 31;</code> | |
*/ | |
long getL1IcachePrefetchMisses(); | |
/** | |
* <code>optional uint64 llc_loads = 32;</code> | |
*/ | |
boolean hasLlcLoads(); | |
/** | |
* <code>optional uint64 llc_loads = 32;</code> | |
*/ | |
long getLlcLoads(); | |
/** | |
* <code>optional uint64 llc_load_misses = 33;</code> | |
*/ | |
boolean hasLlcLoadMisses(); | |
/** | |
* <code>optional uint64 llc_load_misses = 33;</code> | |
*/ | |
long getLlcLoadMisses(); | |
/** | |
* <code>optional uint64 llc_stores = 34;</code> | |
*/ | |
boolean hasLlcStores(); | |
/** | |
* <code>optional uint64 llc_stores = 34;</code> | |
*/ | |
long getLlcStores(); | |
/** | |
* <code>optional uint64 llc_store_misses = 35;</code> | |
*/ | |
boolean hasLlcStoreMisses(); | |
/** | |
* <code>optional uint64 llc_store_misses = 35;</code> | |
*/ | |
long getLlcStoreMisses(); | |
/** | |
* <code>optional uint64 llc_prefetches = 36;</code> | |
*/ | |
boolean hasLlcPrefetches(); | |
/** | |
* <code>optional uint64 llc_prefetches = 36;</code> | |
*/ | |
long getLlcPrefetches(); | |
/** | |
* <code>optional uint64 llc_prefetch_misses = 37;</code> | |
*/ | |
boolean hasLlcPrefetchMisses(); | |
/** | |
* <code>optional uint64 llc_prefetch_misses = 37;</code> | |
*/ | |
long getLlcPrefetchMisses(); | |
/** | |
* <code>optional uint64 dtlb_loads = 38;</code> | |
*/ | |
boolean hasDtlbLoads(); | |
/** | |
* <code>optional uint64 dtlb_loads = 38;</code> | |
*/ | |
long getDtlbLoads(); | |
/** | |
* <code>optional uint64 dtlb_load_misses = 39;</code> | |
*/ | |
boolean hasDtlbLoadMisses(); | |
/** | |
* <code>optional uint64 dtlb_load_misses = 39;</code> | |
*/ | |
long getDtlbLoadMisses(); | |
/** | |
* <code>optional uint64 dtlb_stores = 40;</code> | |
*/ | |
boolean hasDtlbStores(); | |
/** | |
* <code>optional uint64 dtlb_stores = 40;</code> | |
*/ | |
long getDtlbStores(); | |
/** | |
* <code>optional uint64 dtlb_store_misses = 41;</code> | |
*/ | |
boolean hasDtlbStoreMisses(); | |
/** | |
* <code>optional uint64 dtlb_store_misses = 41;</code> | |
*/ | |
long getDtlbStoreMisses(); | |
/** | |
* <code>optional uint64 dtlb_prefetches = 42;</code> | |
*/ | |
boolean hasDtlbPrefetches(); | |
/** | |
* <code>optional uint64 dtlb_prefetches = 42;</code> | |
*/ | |
long getDtlbPrefetches(); | |
/** | |
* <code>optional uint64 dtlb_prefetch_misses = 43;</code> | |
*/ | |
boolean hasDtlbPrefetchMisses(); | |
/** | |
* <code>optional uint64 dtlb_prefetch_misses = 43;</code> | |
*/ | |
long getDtlbPrefetchMisses(); | |
/** | |
* <code>optional uint64 itlb_loads = 44;</code> | |
*/ | |
boolean hasItlbLoads(); | |
/** | |
* <code>optional uint64 itlb_loads = 44;</code> | |
*/ | |
long getItlbLoads(); | |
/** | |
* <code>optional uint64 itlb_load_misses = 45;</code> | |
*/ | |
boolean hasItlbLoadMisses(); | |
/** | |
* <code>optional uint64 itlb_load_misses = 45;</code> | |
*/ | |
long getItlbLoadMisses(); | |
/** | |
* <code>optional uint64 branch_loads = 46;</code> | |
*/ | |
boolean hasBranchLoads(); | |
/** | |
* <code>optional uint64 branch_loads = 46;</code> | |
*/ | |
long getBranchLoads(); | |
/** | |
* <code>optional uint64 branch_load_misses = 47;</code> | |
*/ | |
boolean hasBranchLoadMisses(); | |
/** | |
* <code>optional uint64 branch_load_misses = 47;</code> | |
*/ | |
long getBranchLoadMisses(); | |
/** | |
* <code>optional uint64 node_loads = 48;</code> | |
*/ | |
boolean hasNodeLoads(); | |
/** | |
* <code>optional uint64 node_loads = 48;</code> | |
*/ | |
long getNodeLoads(); | |
/** | |
* <code>optional uint64 node_load_misses = 49;</code> | |
*/ | |
boolean hasNodeLoadMisses(); | |
/** | |
* <code>optional uint64 node_load_misses = 49;</code> | |
*/ | |
long getNodeLoadMisses(); | |
/** | |
* <code>optional uint64 node_stores = 50;</code> | |
*/ | |
boolean hasNodeStores(); | |
/** | |
* <code>optional uint64 node_stores = 50;</code> | |
*/ | |
long getNodeStores(); | |
/** | |
* <code>optional uint64 node_store_misses = 51;</code> | |
*/ | |
boolean hasNodeStoreMisses(); | |
/** | |
* <code>optional uint64 node_store_misses = 51;</code> | |
*/ | |
long getNodeStoreMisses(); | |
/** | |
* <code>optional uint64 node_prefetches = 52;</code> | |
*/ | |
boolean hasNodePrefetches(); | |
/** | |
* <code>optional uint64 node_prefetches = 52;</code> | |
*/ | |
long getNodePrefetches(); | |
/** | |
* <code>optional uint64 node_prefetch_misses = 53;</code> | |
*/ | |
boolean hasNodePrefetchMisses(); | |
/** | |
* <code>optional uint64 node_prefetch_misses = 53;</code> | |
*/ | |
long getNodePrefetchMisses(); | |
} | |
/** | |
* Protobuf type {@code mesos.PerfStatistics} | |
* | |
* <pre> | |
** | |
* Describes a sample of events from "perf stat". Only available on | |
* Linux. | |
* NOTE: Each optional field matches the name of a perf event (see | |
* "perf list") with the following changes: | |
* 1. Names are downcased. | |
* 2. Hyphens ('-') are replaced with underscores ('_'). | |
* 3. Events with alternate names use the name "perf stat" returns, | |
* e.g., for the event "cycles OR cpu-cycles" perf always returns | |
* cycles. | |
* </pre> | |
*/ | |
public static final class PerfStatistics extends | |
com.google.protobuf.GeneratedMessage implements | |
// @@protoc_insertion_point(message_implements:mesos.PerfStatistics) | |
PerfStatisticsOrBuilder { | |
// Use PerfStatistics.newBuilder() to construct. | |
private PerfStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) { | |
super(builder); | |
this.unknownFields = builder.getUnknownFields(); | |
} | |
private PerfStatistics(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } | |
private static final PerfStatistics defaultInstance; | |
public static PerfStatistics getDefaultInstance() { | |
return defaultInstance; | |
} | |
public PerfStatistics getDefaultInstanceForType() { | |
return defaultInstance; | |
} | |
private final com.google.protobuf.UnknownFieldSet unknownFields; | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private PerfStatistics( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
initFields(); | |
int mutable_bitField0_ = 0; | |
int mutable_bitField1_ = 0; | |
com.google.protobuf.UnknownFieldSet.Builder unknownFields = | |
com.google.protobuf.UnknownFieldSet.newBuilder(); | |
try { | |
boolean done = false; | |
while (!done) { | |
int tag = input.readTag(); | |
switch (tag) { | |
case 0: | |
done = true; | |
break; | |
default: { | |
if (!parseUnknownField(input, unknownFields, | |
extensionRegistry, tag)) { | |
done = true; | |
} | |
break; | |
} | |
case 9: { | |
bitField0_ |= 0x00000001; | |
timestamp_ = input.readDouble(); | |
break; | |
} | |
case 17: { | |
bitField0_ |= 0x00000002; | |
duration_ = input.readDouble(); | |
break; | |
} | |
case 24: { | |
bitField0_ |= 0x00000004; | |
cycles_ = input.readUInt64(); | |
break; | |
} | |
case 32: { | |
bitField0_ |= 0x00000008; | |
stalledCyclesFrontend_ = input.readUInt64(); | |
break; | |
} | |
case 40: { | |
bitField0_ |= 0x00000010; | |
stalledCyclesBackend_ = input.readUInt64(); | |
break; | |
} | |
case 48: { | |
bitField0_ |= 0x00000020; | |
instructions_ = input.readUInt64(); | |
break; | |
} | |
case 56: { | |
bitField0_ |= 0x00000040; | |
cacheReferences_ = input.readUInt64(); | |
break; | |
} | |
case 64: { | |
bitField0_ |= 0x00000080; | |
cacheMisses_ = input.readUInt64(); | |
break; | |
} | |
case 72: { | |
bitField0_ |= 0x00000100; | |
branches_ = input.readUInt64(); | |
break; | |
} | |
case 80: { | |
bitField0_ |= 0x00000200; | |
branchMisses_ = input.readUInt64(); | |
break; | |
} | |
case 88: { | |
bitField0_ |= 0x00000400; | |
busCycles_ = input.readUInt64(); | |
break; | |
} | |
case 96: { | |
bitField0_ |= 0x00000800; | |
refCycles_ = input.readUInt64(); | |
break; | |
} | |
case 105: { | |
bitField0_ |= 0x00001000; | |
cpuClock_ = input.readDouble(); | |
break; | |
} | |
case 113: { | |
bitField0_ |= 0x00002000; | |
taskClock_ = input.readDouble(); | |
break; | |
} | |
case 120: { | |
bitField0_ |= 0x00004000; | |
pageFaults_ = input.readUInt64(); | |
break; | |
} | |
case 128: { | |
bitField0_ |= 0x00008000; | |
minorFaults_ = input.readUInt64(); | |
break; | |
} | |
case 136: { | |
bitField0_ |= 0x00010000; | |
majorFaults_ = input.readUInt64(); | |
break; | |
} | |
case 144: { | |
bitField0_ |= 0x00020000; | |
contextSwitches_ = input.readUInt64(); | |
break; | |
} | |
case 152: { | |
bitField0_ |= 0x00040000; | |
cpuMigrations_ = input.readUInt64(); | |
break; | |
} | |
case 160: { | |
bitField0_ |= 0x00080000; | |
alignmentFaults_ = input.readUInt64(); | |
break; | |
} | |
case 168: { | |
bitField0_ |= 0x00100000; | |
emulationFaults_ = input.readUInt64(); | |
break; | |
} | |
case 176: { | |
bitField0_ |= 0x00200000; | |
l1DcacheLoads_ = input.readUInt64(); | |
break; | |
} | |
case 184: { | |
bitField0_ |= 0x00400000; | |
l1DcacheLoadMisses_ = input.readUInt64(); | |
break; | |
} | |
case 192: { | |
bitField0_ |= 0x00800000; | |
l1DcacheStores_ = input.readUInt64(); | |
break; | |
} | |
case 200: { | |
bitField0_ |= 0x01000000; | |
l1DcacheStoreMisses_ = input.readUInt64(); | |
break; | |
} | |
case 208: { | |
bitField0_ |= 0x02000000; | |
l1DcachePrefetches_ = input.readUInt64(); | |
break; | |
} | |
case 216: { | |
bitField0_ |= 0x04000000; | |
l1DcachePrefetchMisses_ = input.readUInt64(); | |
break; | |
} | |
case 224: { | |
bitField0_ |= 0x08000000; | |
l1IcacheLoads_ = input.readUInt64(); | |
break; | |
} | |
case 232: { | |
bitField0_ |= 0x10000000; | |
l1IcacheLoadMisses_ = input.readUInt64(); | |
break; | |
} | |
case 240: { | |
bitField0_ |= 0x20000000; | |
l1IcachePrefetches_ = input.readUInt64(); | |
break; | |
} | |
case 248: { | |
bitField0_ |= 0x40000000; | |
l1IcachePrefetchMisses_ = input.readUInt64(); | |
break; | |
} | |
case 256: { | |
bitField0_ |= 0x80000000; | |
llcLoads_ = input.readUInt64(); | |
break; | |
} | |
case 264: { | |
bitField1_ |= 0x00000001; | |
llcLoadMisses_ = input.readUInt64(); | |
break; | |
} | |
case 272: { | |
bitField1_ |= 0x00000002; | |
llcStores_ = input.readUInt64(); | |
break; | |
} | |
case 280: { | |
bitField1_ |= 0x00000004; | |
llcStoreMisses_ = input.readUInt64(); | |
break; | |
} | |
case 288: { | |
bitField1_ |= 0x00000008; | |
llcPrefetches_ = input.readUInt64(); | |
break; | |
} | |
case 296: { | |
bitField1_ |= 0x00000010; | |
llcPrefetchMisses_ = input.readUInt64(); | |
break; | |
} | |
case 304: { | |
bitField1_ |= 0x00000020; | |
dtlbLoads_ = input.readUInt64(); | |
break; | |
} | |
case 312: { | |
bitField1_ |= 0x00000040; | |
dtlbLoadMisses_ = input.readUInt64(); | |
break; | |
} | |
case 320: { | |
bitField1_ |= 0x00000080; | |
dtlbStores_ = input.readUInt64(); | |
break; | |
} | |
case 328: { | |
bitField1_ |= 0x00000100; | |
dtlbStoreMisses_ = input.readUInt64(); | |
break; | |
} | |
case 336: { | |
bitField1_ |= 0x00000200; | |
dtlbPrefetches_ = input.readUInt64(); | |
break; | |
} | |
case 344: { | |
bitField1_ |= 0x00000400; | |
dtlbPrefetchMisses_ = input.readUInt64(); | |
break; | |
} | |
case 352: { | |
bitField1_ |= 0x00000800; | |
itlbLoads_ = input.readUInt64(); | |
break; | |
} | |
case 360: { | |
bitField1_ |= 0x00001000; | |
itlbLoadMisses_ = input.readUInt64(); | |
break; | |
} | |
case 368: { | |
bitField1_ |= 0x00002000; | |
branchLoads_ = input.readUInt64(); | |
break; | |
} | |
case 376: { | |
bitField1_ |= 0x00004000; | |
branchLoadMisses_ = input.readUInt64(); | |
break; | |
} | |
case 384: { | |
bitField1_ |= 0x00008000; | |
nodeLoads_ = input.readUInt64(); | |
break; | |
} | |
case 392: { | |
bitField1_ |= 0x00010000; | |
nodeLoadMisses_ = input.readUInt64(); | |
break; | |
} | |
case 400: { | |
bitField1_ |= 0x00020000; | |
nodeStores_ = input.readUInt64(); | |
break; | |
} | |
case 408: { | |
bitField1_ |= 0x00040000; | |
nodeStoreMisses_ = input.readUInt64(); | |
break; | |
} | |
case 416: { | |
bitField1_ |= 0x00080000; | |
nodePrefetches_ = input.readUInt64(); | |
break; | |
} | |
case 424: { | |
bitField1_ |= 0x00100000; | |
nodePrefetchMisses_ = input.readUInt64(); | |
break; | |
} | |
} | |
} | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
throw e.setUnfinishedMessage(this); | |
} catch (java.io.IOException e) { | |
throw new com.google.protobuf.InvalidProtocolBufferException( | |
e.getMessage()).setUnfinishedMessage(this); | |
} finally { | |
this.unknownFields = unknownFields.build(); | |
makeExtensionsImmutable(); | |
} | |
} | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return org.apache.mesos.Protos.internal_static_mesos_PerfStatistics_descriptor; | |
} | |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return org.apache.mesos.Protos.internal_static_mesos_PerfStatistics_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
org.apache.mesos.Protos.PerfStatistics.class, org.apache.mesos.Protos.PerfStatistics.Builder.class); | |
} | |
public static com.google.protobuf.Parser<PerfStatistics> PARSER = | |
new com.google.protobuf.AbstractParser<PerfStatistics>() { | |
public PerfStatistics parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new PerfStatistics(input, extensionRegistry); | |
} | |
}; | |
@java.lang.Override | |
public com.google.protobuf.Parser<PerfStatistics> getParserForType() { | |
return PARSER; | |
} | |
private int bitField0_; | |
private int bitField1_; | |
public static final int TIMESTAMP_FIELD_NUMBER = 1; | |
private double timestamp_; | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Start of sample interval, in seconds since the Epoch. | |
* </pre> | |
*/ | |
public boolean hasTimestamp() { | |
return ((bitField0_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>required double timestamp = 1;</code> | |
* | |
* <pre> | |
* Start of sample interval, in seconds since the Epoch. | |
* </pre> | |
*/ | |
public double getTimestamp() { | |
return timestamp_; | |
} | |
public static final int DURATION_FIELD_NUMBER = 2; | |
private double duration_; | |
/** | |
* <code>required double duration = 2;</code> | |
* | |
* <pre> | |
* Duration of sample interval, in seconds. | |
* </pre> | |
*/ | |
public boolean hasDuration() { | |
return ((bitField0_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>required double duration = 2;</code> | |
* | |
* <pre> | |
* Duration of sample interval, in seconds. | |
* </pre> | |
*/ | |
public double getDuration() { | |
return duration_; | |
} | |
public static final int CYCLES_FIELD_NUMBER = 3; | |
private long cycles_; | |
/** | |
* <code>optional uint64 cycles = 3;</code> | |
* | |
* <pre> | |
* Hardware event. | |
* </pre> | |
*/ | |
public boolean hasCycles() { | |
return ((bitField0_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional uint64 cycles = 3;</code> | |
* | |
* <pre> | |
* Hardware event. | |
* </pre> | |
*/ | |
public long getCycles() { | |
return cycles_; | |
} | |
public static final int STALLED_CYCLES_FRONTEND_FIELD_NUMBER = 4; | |
private long stalledCyclesFrontend_; | |
/** | |
* <code>optional uint64 stalled_cycles_frontend = 4;</code> | |
*/ | |
public boolean hasStalledCyclesFrontend() { | |
return ((bitField0_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional uint64 stalled_cycles_frontend = 4;</code> | |
*/ | |
public long getStalledCyclesFrontend() { | |
return stalledCyclesFrontend_; | |
} | |
public static final int STALLED_CYCLES_BACKEND_FIELD_NUMBER = 5; | |
private long stalledCyclesBackend_; | |
/** | |
* <code>optional uint64 stalled_cycles_backend = 5;</code> | |
*/ | |
public boolean hasStalledCyclesBackend() { | |
return ((bitField0_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional uint64 stalled_cycles_backend = 5;</code> | |
*/ | |
public long getStalledCyclesBackend() { | |
return stalledCyclesBackend_; | |
} | |
public static final int INSTRUCTIONS_FIELD_NUMBER = 6; | |
private long instructions_; | |
/** | |
* <code>optional uint64 instructions = 6;</code> | |
*/ | |
public boolean hasInstructions() { | |
return ((bitField0_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional uint64 instructions = 6;</code> | |
*/ | |
public long getInstructions() { | |
return instructions_; | |
} | |
public static final int CACHE_REFERENCES_FIELD_NUMBER = 7; | |
private long cacheReferences_; | |
/** | |
* <code>optional uint64 cache_references = 7;</code> | |
*/ | |
public boolean hasCacheReferences() { | |
return ((bitField0_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional uint64 cache_references = 7;</code> | |
*/ | |
public long getCacheReferences() { | |
return cacheReferences_; | |
} | |
public static final int CACHE_MISSES_FIELD_NUMBER = 8; | |
private long cacheMisses_; | |
/** | |
* <code>optional uint64 cache_misses = 8;</code> | |
*/ | |
public boolean hasCacheMisses() { | |
return ((bitField0_ & 0x00000080) == 0x00000080); | |
} | |
/** | |
* <code>optional uint64 cache_misses = 8;</code> | |
*/ | |
public long getCacheMisses() { | |
return cacheMisses_; | |
} | |
public static final int BRANCHES_FIELD_NUMBER = 9; | |
private long branches_; | |
/** | |
* <code>optional uint64 branches = 9;</code> | |
*/ | |
public boolean hasBranches() { | |
return ((bitField0_ & 0x00000100) == 0x00000100); | |
} | |
/** | |
* <code>optional uint64 branches = 9;</code> | |
*/ | |
public long getBranches() { | |
return branches_; | |
} | |
public static final int BRANCH_MISSES_FIELD_NUMBER = 10; | |
private long branchMisses_; | |
/** | |
* <code>optional uint64 branch_misses = 10;</code> | |
*/ | |
public boolean hasBranchMisses() { | |
return ((bitField0_ & 0x00000200) == 0x00000200); | |
} | |
/** | |
* <code>optional uint64 branch_misses = 10;</code> | |
*/ | |
public long getBranchMisses() { | |
return branchMisses_; | |
} | |
public static final int BUS_CYCLES_FIELD_NUMBER = 11; | |
private long busCycles_; | |
/** | |
* <code>optional uint64 bus_cycles = 11;</code> | |
*/ | |
public boolean hasBusCycles() { | |
return ((bitField0_ & 0x00000400) == 0x00000400); | |
} | |
/** | |
* <code>optional uint64 bus_cycles = 11;</code> | |
*/ | |
public long getBusCycles() { | |
return busCycles_; | |
} | |
public static final int REF_CYCLES_FIELD_NUMBER = 12; | |
private long refCycles_; | |
/** | |
* <code>optional uint64 ref_cycles = 12;</code> | |
*/ | |
public boolean hasRefCycles() { | |
return ((bitField0_ & 0x00000800) == 0x00000800); | |
} | |
/** | |
* <code>optional uint64 ref_cycles = 12;</code> | |
*/ | |
public long getRefCycles() { | |
return refCycles_; | |
} | |
public static final int CPU_CLOCK_FIELD_NUMBER = 13; | |
private double cpuClock_; | |
/** | |
* <code>optional double cpu_clock = 13;</code> | |
* | |
* <pre> | |
* Software event. | |
* </pre> | |
*/ | |
public boolean hasCpuClock() { | |
return ((bitField0_ & 0x00001000) == 0x00001000); | |
} | |
/** | |
* <code>optional double cpu_clock = 13;</code> | |
* | |
* <pre> | |
* Software event. | |
* </pre> | |
*/ | |
public double getCpuClock() { | |
return cpuClock_; | |
} | |
public static final int TASK_CLOCK_FIELD_NUMBER = 14; | |
private double taskClock_; | |
/** | |
* <code>optional double task_clock = 14;</code> | |
*/ | |
public boolean hasTaskClock() { | |
return ((bitField0_ & 0x00002000) == 0x00002000); | |
} | |
/** | |
* <code>optional double task_clock = 14;</code> | |
*/ | |
public double getTaskClock() { | |
return taskClock_; | |
} | |
public static final int PAGE_FAULTS_FIELD_NUMBER = 15; | |
private long pageFaults_; | |
/** | |
* <code>optional uint64 page_faults = 15;</code> | |
*/ | |
public boolean hasPageFaults() { | |
return ((bitField0_ & 0x00004000) == 0x00004000); | |
} | |
/** | |
* <code>optional uint64 page_faults = 15;</code> | |
*/ | |
public long getPageFaults() { | |
return pageFaults_; | |
} | |
public static final int MINOR_FAULTS_FIELD_NUMBER = 16; | |
private long minorFaults_; | |
/** | |
* <code>optional uint64 minor_faults = 16;</code> | |
*/ | |
public boolean hasMinorFaults() { | |
return ((bitField0_ & 0x00008000) == 0x00008000); | |
} | |
/** | |
* <code>optional uint64 minor_faults = 16;</code> | |
*/ | |
public long getMinorFaults() { | |
return minorFaults_; | |
} | |
public static final int MAJOR_FAULTS_FIELD_NUMBER = 17; | |
private long majorFaults_; | |
/** | |
* <code>optional uint64 major_faults = 17;</code> | |
*/ | |
public boolean hasMajorFaults() { | |
return ((bitField0_ & 0x00010000) == 0x00010000); | |
} | |
/** | |
* <code>optional uint64 major_faults = 17;</code> | |
*/ | |
public long getMajorFaults() { | |
return majorFaults_; | |
} | |
public static final int CONTEXT_SWITCHES_FIELD_NUMBER = 18; | |
private long contextSwitches_; | |
/** | |
* <code>optional uint64 context_switches = 18;</code> | |
*/ | |
public boolean hasContextSwitches() { | |
return ((bitField0_ & 0x00020000) == 0x00020000); | |
} | |
/** | |
* <code>optional uint64 context_switches = 18;</code> | |
*/ | |
public long getContextSwitches() { | |
return contextSwitches_; | |
} | |
public static final int CPU_MIGRATIONS_FIELD_NUMBER = 19; | |
private long cpuMigrations_; | |
/** | |
* <code>optional uint64 cpu_migrations = 19;</code> | |
*/ | |
public boolean hasCpuMigrations() { | |
return ((bitField0_ & 0x00040000) == 0x00040000); | |
} | |
/** | |
* <code>optional uint64 cpu_migrations = 19;</code> | |
*/ | |
public long getCpuMigrations() { | |
return cpuMigrations_; | |
} | |
public static final int ALIGNMENT_FAULTS_FIELD_NUMBER = 20; | |
private long alignmentFaults_; | |
/** | |
* <code>optional uint64 alignment_faults = 20;</code> | |
*/ | |
public boolean hasAlignmentFaults() { | |
return ((bitField0_ & 0x00080000) == 0x00080000); | |
} | |
/** | |
* <code>optional uint64 alignment_faults = 20;</code> | |
*/ | |
public long getAlignmentFaults() { | |
return alignmentFaults_; | |
} | |
public static final int EMULATION_FAULTS_FIELD_NUMBER = 21; | |
private long emulationFaults_; | |
/** | |
* <code>optional uint64 emulation_faults = 21;</code> | |
*/ | |
public boolean hasEmulationFaults() { | |
return ((bitField0_ & 0x00100000) == 0x00100000); | |
} | |
/** | |
* <code>optional uint64 emulation_faults = 21;</code> | |
*/ | |
public long getEmulationFaults() { | |
return emulationFaults_; | |
} | |
public static final int L1_DCACHE_LOADS_FIELD_NUMBER = 22; | |
private long l1DcacheLoads_; | |
/** | |
* <code>optional uint64 l1_dcache_loads = 22;</code> | |
* | |
* <pre> | |
* Hardware cache event. | |
* </pre> | |
*/ | |
public boolean hasL1DcacheLoads() { | |
return ((bitField0_ & 0x00200000) == 0x00200000); | |
} | |
/** | |
* <code>optional uint64 l1_dcache_loads = 22;</code> | |
* | |
* <pre> | |
* Hardware cache event. | |
* </pre> | |
*/ | |
public long getL1DcacheLoads() { | |
return l1DcacheLoads_; | |
} | |
public static final int L1_DCACHE_LOAD_MISSES_FIELD_NUMBER = 23; | |
private long l1DcacheLoadMisses_; | |
/** | |
* <code>optional uint64 l1_dcache_load_misses = 23;</code> | |
*/ | |
public boolean hasL1DcacheLoadMisses() { | |
return ((bitField0_ & 0x00400000) == 0x00400000); | |
} | |
/** | |
* <code>optional uint64 l1_dcache_load_misses = 23;</code> | |
*/ | |
public long getL1DcacheLoadMisses() { | |
return l1DcacheLoadMisses_; | |
} | |
public static final int L1_DCACHE_STORES_FIELD_NUMBER = 24; | |
private long l1DcacheStores_; | |
/** | |
* <code>optional uint64 l1_dcache_stores = 24;</code> | |
*/ | |
public boolean hasL1DcacheStores() { | |
return ((bitField0_ & 0x00800000) == 0x00800000); | |
} | |
/** | |
* <code>optional uint64 l1_dcache_stores = 24;</code> | |
*/ | |
public long getL1DcacheStores() { | |
return l1DcacheStores_; | |
} | |
public static final int L1_DCACHE_STORE_MISSES_FIELD_NUMBER = 25; | |
private long l1DcacheStoreMisses_; | |
/** | |
* <code>optional uint64 l1_dcache_store_misses = 25;</code> | |
*/ | |
public boolean hasL1DcacheStoreMisses() { | |
return ((bitField0_ & 0x01000000) == 0x01000000); | |
} | |
/** | |
* <code>optional uint64 l1_dcache_store_misses = 25;</code> | |
*/ | |
public long getL1DcacheStoreMisses() { | |
return l1DcacheStoreMisses_; | |
} | |
public static final int L1_DCACHE_PREFETCHES_FIELD_NUMBER = 26; | |
private long l1DcachePrefetches_; | |
/** | |
* <code>optional uint64 l1_dcache_prefetches = 26;</code> | |
*/ | |
public boolean hasL1DcachePrefetches() { | |
return ((bitField0_ & 0x02000000) == 0x02000000); | |
} | |
/** | |
* <code>optional uint64 l1_dcache_prefetches = 26;</code> | |
*/ | |
public long getL1DcachePrefetches() { | |
return l1DcachePrefetches_; | |
} | |
public static final int L1_DCACHE_PREFETCH_MISSES_FIELD_NUMBER = 27; | |
private long l1DcachePrefetchMisses_; | |
/** | |
* <code>optional uint64 l1_dcache_prefetch_misses = 27;</code> | |
*/ | |
public boolean hasL1DcachePrefetchMisses() { | |
return ((bitField0_ & 0x04000000) == 0x04000000); | |
} | |
/** | |
* <code>optional uint64 l1_dcache_prefetch_misses = 27;</code> | |
*/ | |
public long getL1DcachePrefetchMisses() { | |
return l1DcachePrefetchMisses_; | |
} | |
public static final int L1_ICACHE_LOADS_FIELD_NUMBER = 28; | |
private long l1IcacheLoads_; | |
/** | |
* <code>optional uint64 l1_icache_loads = 28;</code> | |
*/ | |
public boolean hasL1IcacheLoads() { | |
return ((bitField0_ & 0x08000000) == 0x08000000); | |
} | |
/** | |
* <code>optional uint64 l1_icache_loads = 28;</code> | |
*/ | |
public long getL1IcacheLoads() { | |
return l1IcacheLoads_; | |
} | |
public static final int L1_ICACHE_LOAD_MISSES_FIELD_NUMBER = 29; | |
private long l1IcacheLoadMisses_; | |
/** | |
* <code>optional uint64 l1_icache_load_misses = 29;</code> | |
*/ | |
public boolean hasL1IcacheLoadMisses() { | |
return ((bitField0_ & 0x10000000) == 0x10000000); | |
} | |
/** | |
* <code>optional uint64 l1_icache_load_misses = 29;</code> | |
*/ | |
public long getL1IcacheLoadMisses() { | |
return l1IcacheLoadMisses_; | |
} | |
public static final int L1_ICACHE_PREFETCHES_FIELD_NUMBER = 30; | |
private long l1IcachePrefetches_; | |
/** | |
* <code>optional uint64 l1_icache_prefetches = 30;</code> | |
*/ | |
public boolean hasL1IcachePrefetches() { | |
return ((bitField0_ & 0x20000000) == 0x20000000); | |
} | |
/** | |
* <code>optional uint64 l1_icache_prefetches = 30;</code> | |
*/ | |
public long getL1IcachePrefetches() { | |
return l1IcachePrefetches_; | |
} | |
public static final int L1_ICACHE_PREFETCH_MISSES_FIELD_NUMBER = 31; | |
private long l1IcachePrefetchMisses_; | |
/** | |
* <code>optional uint64 l1_icache_prefetch_misses = 31;</code> | |
*/ | |
public boolean hasL1IcachePrefetchMisses() { | |
return ((bitField0_ & 0x40000000) == 0x40000000); | |
} | |
/** | |
* <code>optional uint64 l1_icache_prefetch_misses = 31;</code> | |
*/ | |
public long getL1IcachePrefetchMisses() { | |
return l1IcachePrefetchMisses_; | |
} | |
public static final int LLC_LOADS_FIELD_NUMBER = 32; | |
private long llcLoads_; | |
/** | |
* <code>optional uint64 llc_loads = 32;</code> | |
*/ | |
public boolean hasLlcLoads() { | |
return ((bitField0_ & 0x80000000) == 0x80000000); | |
} | |
/** | |
* <code>optional uint64 llc_loads = 32;</code> | |
*/ | |
public long getLlcLoads() { | |
return llcLoads_; | |
} | |
public static final int LLC_LOAD_MISSES_FIELD_NUMBER = 33; | |
private long llcLoadMisses_; | |
/** | |
* <code>optional uint64 llc_load_misses = 33;</code> | |
*/ | |
public boolean hasLlcLoadMisses() { | |
return ((bitField1_ & 0x00000001) == 0x00000001); | |
} | |
/** | |
* <code>optional uint64 llc_load_misses = 33;</code> | |
*/ | |
public long getLlcLoadMisses() { | |
return llcLoadMisses_; | |
} | |
public static final int LLC_STORES_FIELD_NUMBER = 34; | |
private long llcStores_; | |
/** | |
* <code>optional uint64 llc_stores = 34;</code> | |
*/ | |
public boolean hasLlcStores() { | |
return ((bitField1_ & 0x00000002) == 0x00000002); | |
} | |
/** | |
* <code>optional uint64 llc_stores = 34;</code> | |
*/ | |
public long getLlcStores() { | |
return llcStores_; | |
} | |
public static final int LLC_STORE_MISSES_FIELD_NUMBER = 35; | |
private long llcStoreMisses_; | |
/** | |
* <code>optional uint64 llc_store_misses = 35;</code> | |
*/ | |
public boolean hasLlcStoreMisses() { | |
return ((bitField1_ & 0x00000004) == 0x00000004); | |
} | |
/** | |
* <code>optional uint64 llc_store_misses = 35;</code> | |
*/ | |
public long getLlcStoreMisses() { | |
return llcStoreMisses_; | |
} | |
public static final int LLC_PREFETCHES_FIELD_NUMBER = 36; | |
private long llcPrefetches_; | |
/** | |
* <code>optional uint64 llc_prefetches = 36;</code> | |
*/ | |
public boolean hasLlcPrefetches() { | |
return ((bitField1_ & 0x00000008) == 0x00000008); | |
} | |
/** | |
* <code>optional uint64 llc_prefetches = 36;</code> | |
*/ | |
public long getLlcPrefetches() { | |
return llcPrefetches_; | |
} | |
public static final int LLC_PREFETCH_MISSES_FIELD_NUMBER = 37; | |
private long llcPrefetchMisses_; | |
/** | |
* <code>optional uint64 llc_prefetch_misses = 37;</code> | |
*/ | |
public boolean hasLlcPrefetchMisses() { | |
return ((bitField1_ & 0x00000010) == 0x00000010); | |
} | |
/** | |
* <code>optional uint64 llc_prefetch_misses = 37;</code> | |
*/ | |
public long getLlcPrefetchMisses() { | |
return llcPrefetchMisses_; | |
} | |
public static final int DTLB_LOADS_FIELD_NUMBER = 38; | |
private long dtlbLoads_; | |
/** | |
* <code>optional uint64 dtlb_loads = 38;</code> | |
*/ | |
public boolean hasDtlbLoads() { | |
return ((bitField1_ & 0x00000020) == 0x00000020); | |
} | |
/** | |
* <code>optional uint64 dtlb_loads = 38;</code> | |
*/ | |
public long getDtlbLoads() { | |
return dtlbLoads_; | |
} | |
public static final int DTLB_LOAD_MISSES_FIELD_NUMBER = 39; | |
private long dtlbLoadMisses_; | |
/** | |
* <code>optional uint64 dtlb_load_misses = 39;</code> | |
*/ | |
public boolean hasDtlbLoadMisses() { | |
return ((bitField1_ & 0x00000040) == 0x00000040); | |
} | |
/** | |
* <code>optional uint64 dtlb_load_misses = 39;</code> | |
*/ | |
public long getDtlbLoadMisses() { | |
return dtlbLoadMisses_; | |
} | |
public static final int DTLB_STORES_FIELD_NUMBER = 40; | |
private long dtlbStores_; | |
/** | |
* <code>optional uint64 dtlb_stores = 40;</code> | |
*/ | |
public boolean hasDtlbStores() { | |
return ((bitField1_ & 0x00000080) == 0x00000080); | |
} | |
/** | |
* <code>optional uint64 dtlb_stores = 40;</code> | |
*/ | |
public long getDtlbStores() { | |
return dtlbStores_; | |
} | |
public static final int DTLB_STORE_MISSES_FIELD_NUMBER = 41; | |
private long dtlbStoreMisses_; | |
/** | |
* <code>optional uint64 dtlb_store_misses = 41;</code> | |
*/ | |
public boolean hasDtlbStoreMisses() { | |
return ((bitField1_ & 0x00000100) == 0x00000100); | |
} | |
/** | |
* <code>optional uint64 dtlb_store_misses = 41;</code> | |
*/ | |
public long getDtlbStoreMisses() { | |
return dtlbStoreMisses_; | |
} | |
public static final int DTLB_PREFETCHES_FIELD_NUMBER = 42; | |
private long dtlbPrefetches_; | |
/** | |
* <code>optional uint64 dtlb_prefetches = 42;</code> | |
*/ | |
public boolean hasDtlbPrefetches() { | |
return ((bitField1_ & 0x00000200) == 0x00000200); | |
} | |
/** | |
* <code>optional uint64 dtlb_prefetches = 42;</code> | |
*/ | |
public long getDtlbPrefetches() { | |
return dtlbPrefetches_; | |
} | |
public static final int DTLB_PREFETCH_MISSES_FIELD_NUMBER = 43; | |
private long dtlbPrefetchMisses_; | |
/** | |
* <code>optional uint64 dtlb_prefetch_misses = 43;</code> | |
*/ | |
public boolean hasDtlbPrefetchMisses() { | |
return ((bitField1_ & 0x00000400) == 0x00000400); | |
} | |
/** | |
* <code>optional uint64 dtlb_prefetch_misses = 43;</code> | |
*/ | |
public long getDtlbPrefetchMisses() { | |
return dtlbPrefetchMisses_; | |
} | |
public static final int ITLB_LOADS_FIELD_NUMBER = 44; | |
private long itlbLoads_; | |
/** | |
* <code>optional uint64 itlb_loads = 44;</code> | |
*/ | |
public boolean hasItlbLoads() { | |
return ((bitField1_ & 0x00000800) == 0x00000800); | |
} | |
/** | |
* <code>optional uint64 itlb_loads = 44;</code> | |
*/ | |
public long getItlbLoads() { | |
return itlbLoads_; | |
} | |
public static final int ITLB_LOAD_MISSES_FIELD_NUMBER = 45; | |
private long itlbLoadMisses_; | |
/** | |
* <code>optional uint64 itlb_load_misses = 45;</code> | |
*/ | |
public boolean hasItlbLoadMisses() { | |
return ((bitField1_ & 0x00001000) == 0x00001000); | |
} | |
/** | |
* <code>optional uint64 itlb_load_misses = 45;</code> | |
*/ | |
public long getItlbLoadMisses() { | |
return itlbLoadMisses_; | |
} | |
public static final int BRANCH_LOADS_FIELD_NUMBER = 46; | |
private long branchLoads_; | |
/** | |
* <code>optional uint64 branch_loads = 46;</code> | |
*/ | |
public boolean hasBranchLoads() { | |
return ((bitField1_ & 0x00002000) == 0x00002000); | |
} | |
/** | |
* <code>optional uint64 branch_loads = 46;</code> | |
*/ | |
public long getBranchLoads() { | |
return branchLoads_; | |
} | |
public static final int BRANCH_LOAD_MISSES_FIELD_NUMBER = 47; | |
private long branchLoadMisses_; | |
/** | |
* <code>optional uint64 branch_load_misses = 47;</code> | |
*/ | |
public boolean hasBranchLoadMisses() { | |
return ((bitField1_ & 0x00004000) == 0x00004000); | |
} | |
/** | |
* <code>optional uint64 branch_load_misses = 47;</code> | |
*/ | |
public long getBranchLoadMisses() { | |
return branchLoadMisses_; | |
} | |
public static final int NODE_LOADS_FIELD_NUMBER = 48; | |
private long nodeLoads_; | |
/** | |
* <code>optional uint64 node_loads = 48;</code> | |
*/ | |
public boolean hasNodeLoads() { | |
return ((bitField1_ & 0x00008000) == 0x00008000); | |
} | |
/** | |
* <code>optional uint64 node_loads = 48;</code> | |
*/ | |
public long getNodeLoads() { | |
return nodeLoads_; | |
} | |
public static final int NODE_LOAD_MISSES_FIELD_NUMBER = 49; | |
private long nodeLoadMisses_; | |
/** | |
* <code>optional uint64 node_load_misses = 49;</code> | |
*/ | |
public boolean hasNodeLoadMisses() { | |
return ((bitField1_ & 0x00010000) == 0x00010000); | |
} | |
/** | |
* <code>optional uint64 node_load_misses = 49;</code> | |
*/ | |
public long getNodeLoadMisses() { | |
return nodeLoadMisses_; | |
} | |
public static final int NODE_STORES_FIELD_NUMBER = 50; | |
private long nodeStores_; | |
/** | |
* <code>optional uint64 node_stores = 50;</code> | |
*/ | |
public boolean hasNodeStores() { | |
return ((bitField1_ & 0x00020000) == 0x00020000); | |
} | |
/** | |
* <code>optional uint64 node_stores = 50;</code> | |
*/ | |
public long getNodeStores() { | |
return nodeStores_; | |
} | |
public static final int NODE_STORE_MISSES_FIELD_NUMBER = 51; | |
private long nodeStoreMisses_; | |
/** | |
* <code>optional uint64 node_store_misses = 51;</code> | |
*/ | |
public boolean hasNodeStoreMisses() { | |
return ((bitField1_ & 0x00040000) == 0x00040000); | |
} | |
/** | |
* <code>optional uint64 node_store_misses = 51;</code> | |
*/ | |
public long getNodeStoreMisses() { | |
return nodeStoreMisses_; | |
} | |
public static final int NODE_PREFETCHES_FIELD_NUMBER = 52; | |
private long nodePrefetches_; | |
/** | |
* <code>optional uint64 node_prefetches = 52;</code> | |
*/ | |
public boolean hasNodePrefetches() { | |
return ((bitField1_ & 0x00080000) == 0x00080000); | |
} | |
/** | |
* <code>optional uint64 node_prefetches = 52;</code> | |
*/ | |
public long getNodePrefetches() { | |
return nodePrefetches_; | |
} | |
public static final int NODE_PREFETCH_MISSES_FIELD_NUMBER = 53; | |
private long nodePrefetchMisses_; | |
/** | |
* <code>optional uint64 node_prefetch_misses = 53;</code> | |
*/ | |
public boolean hasNodePrefetchMisses() { | |
return ((bitField1_ & 0x00100000) == 0x00100000); | |
} | |
/** | |
* <code>optional uint64 node_prefetch_misses = 53;</code> | |
*/ | |
public long getNodePrefetchMisses() { | |
return nodePrefetchMisses_; | |
} | |
private void initFields() { | |
timestamp_ = 0D; | |
duration_ = 0D; | |
cycles_ = 0L; | |
stalledCyclesFrontend_ = 0L; | |
stalledCyclesBackend_ = 0L; | |
instructions_ = 0L; | |
cacheReferences_ = 0L; | |
cacheMisses_ = 0L; | |
branches_ = 0L; | |
branchMisses_ = 0L; | |
busCycles_ = 0L; | |
refCycles_ = 0L; | |
cpuClock_ = 0D; | |
taskClock_ = 0D; | |
pageFaults_ = 0L; | |
minorFaults_ = 0L; | |
majorFaults_ = 0L; | |
contextSwitches_ = 0L; | |
cpuMigrations_ = 0L; | |
alignmentFaults_ = 0L; | |
emulationFaults_ = 0L; | |
l1DcacheLoads_ = 0L; | |
l1DcacheLoadMisses_ = 0L; | |
l1DcacheStores_ = 0L; | |
l1DcacheStoreMisses_ = 0L; | |
l1DcachePrefetches_ = 0L; | |
l1DcachePrefetchMisses_ = 0L; | |
l1IcacheLoads_ = 0L; | |
l1IcacheLoadMisses_ = 0L; | |
l1IcachePrefetches_ = 0L; | |
l1IcachePrefetchMisses_ = 0L; | |
llcLoads_ = 0L; | |
llcLoadMisses_ = 0L; | |
llcStores_ = 0L; | |
llcStoreMisses_ = 0L; | |
llcPrefetches_ = 0L; | |
llcPrefetchMisses_ = 0L; | |
dtlbLoads_ = 0L; | |
dtlbLoadMisses_ = 0L; | |
dtlbStores_ = 0L; | |
dtlbStoreMisses_ = 0L; | |
dtlbPrefetches_ = 0L; | |
dtlbPrefetchMisses_ = 0L; | |
itlbLoads_ = 0L; | |
itlbLoadMisses_ = 0L; | |
branchLoads_ = 0L; | |
branchLoadMisses_ = 0L; | |
nodeLoads_ = 0L; | |
nodeLoadMisses_ = 0L; | |
nodeStores_ = 0L; | |
nodeStoreMisses_ = 0L; | |
nodePrefetches_ = 0L; | |
nodePrefetchMisses_ = 0L; | |
} | |
private byte memoizedIsInitialized = -1; | |
public final boolean isInitialized() { | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment