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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic boolean hasState()
required .mesos.OperationState state = 2;hasState in interface Protos.OperationStatusOrBuilderpublic Protos.OperationState getState()
required .mesos.OperationState state = 2;getState in interface Protos.OperationStatusOrBuilderpublic boolean hasMessage()
optional string message = 3;hasMessage in interface Protos.OperationStatusOrBuilderpublic java.lang.String getMessage()
optional string message = 3;getMessage in interface Protos.OperationStatusOrBuilderpublic com.google.protobuf.ByteString getMessageBytes()
optional string message = 3;getMessageBytes in interface Protos.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic 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.OperationStatusOrBuilderpublic boolean hasResourceProviderId()
optional .mesos.ResourceProviderID resource_provider_id = 7;hasResourceProviderId in interface Protos.OperationStatusOrBuilderpublic Protos.ResourceProviderID getResourceProviderId()
optional .mesos.ResourceProviderID resource_provider_id = 7;getResourceProviderId in interface Protos.OperationStatusOrBuilderpublic Protos.ResourceProviderIDOrBuilder getResourceProviderIdOrBuilder()
optional .mesos.ResourceProviderID resource_provider_id = 7;getResourceProviderIdOrBuilder in interface Protos.OperationStatusOrBuilderpublic final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic 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.InvalidProtocolBufferExceptionpublic static Protos.OperationStatus parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.OperationStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.OperationStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.OperationStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.OperationStatus parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.OperationStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.OperationStatus parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.OperationStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.OperationStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic 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()