public static final class Protos.OperationStatus extends com.google.protobuf.GeneratedMessageV3 implements Protos.OperationStatusOrBuilder
Describes the current status of an operation.Protobuf type
mesos.OperationStatus
Modifier and Type | Class and Description |
---|---|
static class |
Protos.OperationStatus.Builder
Describes the current status of an operation.
|
Modifier and Type | Field and Description |
---|---|
static int |
CONVERTED_RESOURCES_FIELD_NUMBER |
static int |
MESSAGE_FIELD_NUMBER |
static int |
OPERATION_ID_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
RESOURCE_PROVIDER_ID_FIELD_NUMBER |
static int |
SLAVE_ID_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
UUID_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Protos.Resource |
getConvertedResources(int index)
Converted resources after applying the operation.
|
int |
getConvertedResourcesCount()
Converted resources after applying the operation.
|
java.util.List<Protos.Resource> |
getConvertedResourcesList()
Converted resources after applying the operation.
|
Protos.ResourceOrBuilder |
getConvertedResourcesOrBuilder(int index)
Converted resources after applying the operation.
|
java.util.List<? extends Protos.ResourceOrBuilder> |
getConvertedResourcesOrBuilderList()
Converted resources after applying the operation.
|
static Protos.OperationStatus |
getDefaultInstance() |
Protos.OperationStatus |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getMessage()
optional string message = 3; |
com.google.protobuf.ByteString |
getMessageBytes()
optional string message = 3; |
Protos.OperationID |
getOperationId()
While frameworks will only receive status updates for operations on which
they have set an ID, this field is optional because this message is also
used internally by Mesos components when the operation's ID has not been
set.
|
Protos.OperationIDOrBuilder |
getOperationIdOrBuilder()
While frameworks will only receive status updates for operations on which
they have set an ID, this field is optional because this message is also
used internally by Mesos components when the operation's ID has not been
set.
|
<any> |
getParserForType() |
Protos.ResourceProviderID |
getResourceProviderId()
optional .mesos.ResourceProviderID resource_provider_id = 7; |
Protos.ResourceProviderIDOrBuilder |
getResourceProviderIdOrBuilder()
optional .mesos.ResourceProviderID resource_provider_id = 7; |
int |
getSerializedSize() |
Protos.SlaveID |
getSlaveId()
If the operation affects resources from a local resource provider,
both `slave_id` and `resource_provider_id` will be set.
|
Protos.SlaveIDOrBuilder |
getSlaveIdOrBuilder()
If the operation affects resources from a local resource provider,
both `slave_id` and `resource_provider_id` will be set.
|
Protos.OperationState |
getState()
required .mesos.OperationState state = 2; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Protos.UUID |
getUuid()
Statuses that are delivered reliably to the scheduler will
include a `uuid`.
|
Protos.UUIDOrBuilder |
getUuidOrBuilder()
Statuses that are delivered reliably to the scheduler will
include a `uuid`.
|
int |
hashCode() |
boolean |
hasMessage()
optional string message = 3; |
boolean |
hasOperationId()
While frameworks will only receive status updates for operations on which
they have set an ID, this field is optional because this message is also
used internally by Mesos components when the operation's ID has not been
set.
|
boolean |
hasResourceProviderId()
optional .mesos.ResourceProviderID resource_provider_id = 7; |
boolean |
hasSlaveId()
If the operation affects resources from a local resource provider,
both `slave_id` and `resource_provider_id` will be set.
|
boolean |
hasState()
required .mesos.OperationState state = 2; |
boolean |
hasUuid()
Statuses that are delivered reliably to the scheduler will
include a `uuid`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.OperationStatus.Builder |
newBuilder() |
static Protos.OperationStatus.Builder |
newBuilder(Protos.OperationStatus prototype) |
Protos.OperationStatus.Builder |
newBuilderForType() |
protected Protos.OperationStatus.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.OperationStatus |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.OperationStatus |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.OperationStatus |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.OperationStatus |
parseFrom(java.nio.ByteBuffer data) |
static Protos.OperationStatus |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.OperationStatus |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.OperationStatus |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.OperationStatus |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.OperationStatus |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.OperationStatus |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.OperationStatus.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int OPERATION_ID_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
public static final int CONVERTED_RESOURCES_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER
public static final int SLAVE_ID_FIELD_NUMBER
public static final int RESOURCE_PROVIDER_ID_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public boolean hasOperationId()
While frameworks will only receive status updates for operations on which they have set an ID, this field is optional because this message is also used internally by Mesos components when the operation's ID has not been set.
optional .mesos.OperationID operation_id = 1;
hasOperationId
in interface Protos.OperationStatusOrBuilder
public Protos.OperationID getOperationId()
While frameworks will only receive status updates for operations on which they have set an ID, this field is optional because this message is also used internally by Mesos components when the operation's ID has not been set.
optional .mesos.OperationID operation_id = 1;
getOperationId
in interface Protos.OperationStatusOrBuilder
public Protos.OperationIDOrBuilder getOperationIdOrBuilder()
While frameworks will only receive status updates for operations on which they have set an ID, this field is optional because this message is also used internally by Mesos components when the operation's ID has not been set.
optional .mesos.OperationID operation_id = 1;
getOperationIdOrBuilder
in interface Protos.OperationStatusOrBuilder
public boolean hasState()
required .mesos.OperationState state = 2;
hasState
in interface Protos.OperationStatusOrBuilder
public Protos.OperationState getState()
required .mesos.OperationState state = 2;
getState
in interface Protos.OperationStatusOrBuilder
public boolean hasMessage()
optional string message = 3;
hasMessage
in interface Protos.OperationStatusOrBuilder
public java.lang.String getMessage()
optional string message = 3;
getMessage
in interface Protos.OperationStatusOrBuilder
public com.google.protobuf.ByteString getMessageBytes()
optional string message = 3;
getMessageBytes
in interface Protos.OperationStatusOrBuilder
public java.util.List<Protos.Resource> getConvertedResourcesList()
Converted resources after applying the operation. This only applies if the `state` is `OPERATION_FINISHED`.
repeated .mesos.Resource converted_resources = 4;
getConvertedResourcesList
in interface Protos.OperationStatusOrBuilder
public java.util.List<? extends Protos.ResourceOrBuilder> getConvertedResourcesOrBuilderList()
Converted resources after applying the operation. This only applies if the `state` is `OPERATION_FINISHED`.
repeated .mesos.Resource converted_resources = 4;
getConvertedResourcesOrBuilderList
in interface Protos.OperationStatusOrBuilder
public int getConvertedResourcesCount()
Converted resources after applying the operation. This only applies if the `state` is `OPERATION_FINISHED`.
repeated .mesos.Resource converted_resources = 4;
getConvertedResourcesCount
in interface Protos.OperationStatusOrBuilder
public Protos.Resource getConvertedResources(int index)
Converted resources after applying the operation. This only applies if the `state` is `OPERATION_FINISHED`.
repeated .mesos.Resource converted_resources = 4;
getConvertedResources
in interface Protos.OperationStatusOrBuilder
public Protos.ResourceOrBuilder getConvertedResourcesOrBuilder(int index)
Converted resources after applying the operation. This only applies if the `state` is `OPERATION_FINISHED`.
repeated .mesos.Resource converted_resources = 4;
getConvertedResourcesOrBuilder
in interface Protos.OperationStatusOrBuilder
public boolean hasUuid()
Statuses that are delivered reliably to the scheduler will include a `uuid`. The status is considered delivered once it is acknowledged by the scheduler.
optional .mesos.UUID uuid = 5;
hasUuid
in interface Protos.OperationStatusOrBuilder
public Protos.UUID getUuid()
Statuses that are delivered reliably to the scheduler will include a `uuid`. The status is considered delivered once it is acknowledged by the scheduler.
optional .mesos.UUID uuid = 5;
getUuid
in interface Protos.OperationStatusOrBuilder
public Protos.UUIDOrBuilder getUuidOrBuilder()
Statuses that are delivered reliably to the scheduler will include a `uuid`. The status is considered delivered once it is acknowledged by the scheduler.
optional .mesos.UUID uuid = 5;
getUuidOrBuilder
in interface Protos.OperationStatusOrBuilder
public boolean hasSlaveId()
If the operation affects resources from a local resource provider, both `slave_id` and `resource_provider_id` will be set. If the operation affects resources that belong to an external resource provider, only `resource_provider_id` will be set. In certain cases, e.g., invalid operations, neither `uuid`, `slave_id` nor `resource_provider_id` will be set, and the scheduler does not need to acknowledge this status update.
optional .mesos.SlaveID slave_id = 6;
hasSlaveId
in interface Protos.OperationStatusOrBuilder
public Protos.SlaveID getSlaveId()
If the operation affects resources from a local resource provider, both `slave_id` and `resource_provider_id` will be set. If the operation affects resources that belong to an external resource provider, only `resource_provider_id` will be set. In certain cases, e.g., invalid operations, neither `uuid`, `slave_id` nor `resource_provider_id` will be set, and the scheduler does not need to acknowledge this status update.
optional .mesos.SlaveID slave_id = 6;
getSlaveId
in interface Protos.OperationStatusOrBuilder
public Protos.SlaveIDOrBuilder getSlaveIdOrBuilder()
If the operation affects resources from a local resource provider, both `slave_id` and `resource_provider_id` will be set. If the operation affects resources that belong to an external resource provider, only `resource_provider_id` will be set. In certain cases, e.g., invalid operations, neither `uuid`, `slave_id` nor `resource_provider_id` will be set, and the scheduler does not need to acknowledge this status update.
optional .mesos.SlaveID slave_id = 6;
getSlaveIdOrBuilder
in interface Protos.OperationStatusOrBuilder
public boolean hasResourceProviderId()
optional .mesos.ResourceProviderID resource_provider_id = 7;
hasResourceProviderId
in interface Protos.OperationStatusOrBuilder
public Protos.ResourceProviderID getResourceProviderId()
optional .mesos.ResourceProviderID resource_provider_id = 7;
getResourceProviderId
in interface Protos.OperationStatusOrBuilder
public Protos.ResourceProviderIDOrBuilder getResourceProviderIdOrBuilder()
optional .mesos.ResourceProviderID resource_provider_id = 7;
getResourceProviderIdOrBuilder
in interface Protos.OperationStatusOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.OperationStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.OperationStatus parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.OperationStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.OperationStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.OperationStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.OperationStatus parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.OperationStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.OperationStatus parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.OperationStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.OperationStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.OperationStatus.Builder newBuilderForType()
public static Protos.OperationStatus.Builder newBuilder()
public static Protos.OperationStatus.Builder newBuilder(Protos.OperationStatus prototype)
public Protos.OperationStatus.Builder toBuilder()
protected Protos.OperationStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.OperationStatus getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.OperationStatus getDefaultInstanceForType()