public static final class Protos.Offer.Operation.DestroyDisk.Builder extends <any> 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 | Method and Description |
|---|---|
Protos.Offer.Operation.DestroyDisk.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Offer.Operation.DestroyDisk |
build() |
Protos.Offer.Operation.DestroyDisk |
buildPartial() |
Protos.Offer.Operation.DestroyDisk.Builder |
clear() |
Protos.Offer.Operation.DestroyDisk.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Offer.Operation.DestroyDisk.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Offer.Operation.DestroyDisk.Builder |
clearSource()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
Protos.Offer.Operation.DestroyDisk.Builder |
clone() |
Protos.Offer.Operation.DestroyDisk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.Resource |
getSource()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
Protos.Resource.Builder |
getSourceBuilder()
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.
|
boolean |
hasSource()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Offer.Operation.DestroyDisk.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Offer.Operation.DestroyDisk.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Offer.Operation.DestroyDisk.Builder |
mergeSource(Protos.Resource value)
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
Protos.Offer.Operation.DestroyDisk.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Offer.Operation.DestroyDisk.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Offer.Operation.DestroyDisk.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Offer.Operation.DestroyDisk.Builder |
setSource(Protos.Resource.Builder builderForValue)
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
Protos.Offer.Operation.DestroyDisk.Builder |
setSource(Protos.Resource value)
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
|
Protos.Offer.Operation.DestroyDisk.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Offer.Operation.DestroyDisk.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Offer.Operation.DestroyDisk getDefaultInstanceForType()
public Protos.Offer.Operation.DestroyDisk build()
public Protos.Offer.Operation.DestroyDisk buildPartial()
public Protos.Offer.Operation.DestroyDisk.Builder clone()
public Protos.Offer.Operation.DestroyDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Offer.Operation.DestroyDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Offer.Operation.DestroyDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Offer.Operation.DestroyDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Offer.Operation.DestroyDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Offer.Operation.DestroyDisk.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Offer.Operation.DestroyDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic 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.DestroyDiskOrBuilderpublic 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.DestroyDiskOrBuilderpublic Protos.Offer.Operation.DestroyDisk.Builder setSource(Protos.Resource value)
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
required .mesos.Resource source = 1;public Protos.Offer.Operation.DestroyDisk.Builder setSource(Protos.Resource.Builder builderForValue)
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
required .mesos.Resource source = 1;public Protos.Offer.Operation.DestroyDisk.Builder mergeSource(Protos.Resource value)
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
required .mesos.Resource source = 1;public Protos.Offer.Operation.DestroyDisk.Builder clearSource()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
required .mesos.Resource source = 1;public Protos.Resource.Builder getSourceBuilder()
NOTE: Only a `MOUNT`, `BLOCK` or `RAW` disk is allowed in this field.
required .mesos.Resource source = 1;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.DestroyDiskOrBuilderpublic final Protos.Offer.Operation.DestroyDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Offer.Operation.DestroyDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)