public static final class Protos.Offer.Operation.DestroyDisk extends com.google.protobuf.GeneratedMessageV3 implements Protos.Offer.Operation.DestroyDiskOrBuilder
Destroy a disk resource backed by a CSI volume. In the typical case where the CSI plugin of the volume supports volume deprovisioning and the disk resource is a `MOUNT` or `BLOCK` disk with a profile known to Mesos, the volume will be deprovisioned and a `RAW` disk resource with the same profile but no source ID will be returned. However, the following scenarios could lead to different outcomes: (1) If the CSI plugin supports volume deprovisioning but the profile of the disk resource is unknown to the disk profile adaptor, or the disk resource is a `RAW` disk with no profile but a source ID (see above for possible scenarios), the volume will be deprovisioned but no resource will be returned. (2) If the CSI plugin does not support volume deprovisioning, the volume won't be deprovisioned and a `RAW` disk resource with no profile but the same source ID will be returned. NOTE: For the time being, this API is subject to change and the related feature is experimental.Protobuf type
mesos.Offer.Operation.DestroyDisk
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Offer.Operation.DestroyDisk.Builder
Destroy a disk resource backed by a CSI volume.
|
Modifier and Type | Field and Description |
---|---|
static <any> |
PARSER
Deprecated.
|
static int |
SOURCE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Offer.Operation.DestroyDisk |
getDefaultInstance() |
Protos.Offer.Operation.DestroyDisk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
<any> |
getParserForType() |
int |
getSerializedSize() |
Protos.Resource |
getSource()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
Protos.ResourceOrBuilder |
getSourceOrBuilder()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasSource()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Offer.Operation.DestroyDisk.Builder |
newBuilder() |
static Protos.Offer.Operation.DestroyDisk.Builder |
newBuilder(Protos.Offer.Operation.DestroyDisk prototype) |
Protos.Offer.Operation.DestroyDisk.Builder |
newBuilderForType() |
protected Protos.Offer.Operation.DestroyDisk.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Offer.Operation.DestroyDisk |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Offer.Operation.DestroyDisk |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.DestroyDisk |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.DestroyDisk |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Offer.Operation.DestroyDisk |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.DestroyDisk |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Offer.Operation.DestroyDisk |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.DestroyDisk |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Offer.Operation.DestroyDisk |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer.Operation.DestroyDisk |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Offer.Operation.DestroyDisk.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int SOURCE_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 hasSource()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
required .mesos.Resource source = 1;
hasSource
in interface Protos.Offer.Operation.DestroyDiskOrBuilder
public Protos.Resource getSource()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
required .mesos.Resource source = 1;
getSource
in interface Protos.Offer.Operation.DestroyDiskOrBuilder
public Protos.ResourceOrBuilder getSourceOrBuilder()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
required .mesos.Resource source = 1;
getSourceOrBuilder
in interface Protos.Offer.Operation.DestroyDiskOrBuilder
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.Offer.Operation.DestroyDisk parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.DestroyDisk parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.DestroyDisk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.DestroyDisk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.DestroyDisk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer.Operation.DestroyDisk parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Offer.Operation.DestroyDisk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Offer.Operation.DestroyDisk parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Offer.Operation.DestroyDisk parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Offer.Operation.DestroyDisk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Offer.Operation.DestroyDisk.Builder newBuilderForType()
public static Protos.Offer.Operation.DestroyDisk.Builder newBuilder()
public static Protos.Offer.Operation.DestroyDisk.Builder newBuilder(Protos.Offer.Operation.DestroyDisk prototype)
public Protos.Offer.Operation.DestroyDisk.Builder toBuilder()
protected Protos.Offer.Operation.DestroyDisk.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Offer.Operation.DestroyDisk getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Offer.Operation.DestroyDisk getDefaultInstanceForType()