public static final class Protos.Offer.Operation.CreateDisk.Builder extends <any> implements Protos.Offer.Operation.CreateDiskOrBuilder
Create a `MOUNT` or `BLOCK` disk resource backed by a CSI volume from a `RAW` disk resource. In the typical case where the `RAW` disk resource has a profile and no source ID, a new CSI volume will be provisioned by Mesos to back the returned `MOUNT` or `BLOCK` disk resource. However, the `RAW` disk resource can instead have no profile but a source ID, indicating that it is already backed by a CSI volume in one of the following scenarios: (1) The CSI volume is preprovisioned out-of-band. (2) The CSI volume is provisioned by Mesos, but Mesos has lost the corresponding `MOUNT` or `BLOCK` resource metadata. This could happen if there has been a change in the agent ID or resource provider ID where the volume belongs. In the above cases, Mesos won't provision a new CSI volume, but instead will simply return a `MOUNT` or `BLOCK` disk resource backed by the same CSI volume, with the profile specified in this call. NOTE: For the time being, this API is subject to change and the related feature is experimental.Protobuf type
mesos.Offer.Operation.CreateDisk| Modifier and Type | Method and Description |
|---|---|
Protos.Offer.Operation.CreateDisk.Builder |
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Offer.Operation.CreateDisk |
build () |
Protos.Offer.Operation.CreateDisk |
buildPartial () |
Protos.Offer.Operation.CreateDisk.Builder |
clear () |
Protos.Offer.Operation.CreateDisk.Builder |
clearField (com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Offer.Operation.CreateDisk.Builder |
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Offer.Operation.CreateDisk.Builder |
clearSource ()
required .mesos.Resource source = 1; |
Protos.Offer.Operation.CreateDisk.Builder |
clearTargetProfile ()
Apply the specified profile to the created disk.
|
Protos.Offer.Operation.CreateDisk.Builder |
clearTargetType ()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
|
Protos.Offer.Operation.CreateDisk.Builder |
clone () |
Protos.Offer.Operation.CreateDisk |
getDefaultInstanceForType () |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor () |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType () |
Protos.Resource |
getSource ()
required .mesos.Resource source = 1; |
Protos.Resource.Builder |
getSourceBuilder ()
required .mesos.Resource source = 1; |
Protos.ResourceOrBuilder |
getSourceOrBuilder ()
required .mesos.Resource source = 1; |
java.lang.String |
getTargetProfile ()
Apply the specified profile to the created disk.
|
com.google.protobuf.ByteString |
getTargetProfileBytes ()
Apply the specified profile to the created disk.
|
Protos.Resource.DiskInfo.Source.Type |
getTargetType ()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
|
boolean |
hasSource ()
required .mesos.Resource source = 1; |
boolean |
hasTargetProfile ()
Apply the specified profile to the created disk.
|
boolean |
hasTargetType ()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable () |
boolean |
isInitialized () |
Protos.Offer.Operation.CreateDisk.Builder |
mergeFrom (com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Offer.Operation.CreateDisk.Builder |
mergeFrom (com.google.protobuf.Message other) |
Protos.Offer.Operation.CreateDisk.Builder |
mergeSource (Protos.Resource value)
required .mesos.Resource source = 1; |
Protos.Offer.Operation.CreateDisk.Builder |
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Offer.Operation.CreateDisk.Builder |
setField (com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Offer.Operation.CreateDisk.Builder |
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Offer.Operation.CreateDisk.Builder |
setSource (Protos.Resource.Builder builderForValue)
required .mesos.Resource source = 1; |
Protos.Offer.Operation.CreateDisk.Builder |
setSource (Protos.Resource value)
required .mesos.Resource source = 1; |
Protos.Offer.Operation.CreateDisk.Builder |
setTargetProfile (java.lang.String value)
Apply the specified profile to the created disk.
|
Protos.Offer.Operation.CreateDisk.Builder |
setTargetProfileBytes (com.google.protobuf.ByteString value)
Apply the specified profile to the created disk.
|
Protos.Offer.Operation.CreateDisk.Builder |
setTargetType (Protos.Resource.DiskInfo.Source.Type value)
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
|
Protos.Offer.Operation.CreateDisk.Builder |
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Offer.Operation.CreateDisk.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Offer.Operation.CreateDisk getDefaultInstanceForType()
public Protos.Offer.Operation.CreateDisk build()
public Protos.Offer.Operation.CreateDisk buildPartial()
public Protos.Offer.Operation.CreateDisk.Builder clone()
public Protos.Offer.Operation.CreateDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Offer.Operation.CreateDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Offer.Operation.CreateDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Offer.Operation.CreateDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Offer.Operation.CreateDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Offer.Operation.CreateDisk.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Offer.Operation.CreateDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic boolean hasSource()
required .mesos.Resource source = 1;hasSource in interface Protos.Offer.Operation.CreateDiskOrBuilder public Protos.Resource getSource()
required .mesos.Resource source = 1;getSource in interface Protos.Offer.Operation.CreateDiskOrBuilder public Protos.Offer.Operation.CreateDisk.Builder setSource(Protos.Resource value)
required .mesos.Resource source = 1;public Protos.Offer.Operation.CreateDisk.Builder setSource(Protos.Resource.Builder builderForValue)
required .mesos.Resource source = 1;public Protos.Offer.Operation.CreateDisk.Builder mergeSource(Protos.Resource value)
required .mesos.Resource source = 1;public Protos.Offer.Operation.CreateDisk.Builder clearSource()
required .mesos.Resource source = 1;public Protos.Resource.Builder getSourceBuilder()
required .mesos.Resource source = 1;public Protos.ResourceOrBuilder getSourceOrBuilder()
required .mesos.Resource source = 1;getSourceOrBuilder in interface Protos.Offer.Operation.CreateDiskOrBuilder public boolean hasTargetType()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
required .mesos.Resource.DiskInfo.Source.Type target_type = 2;hasTargetType in interface Protos.Offer.Operation.CreateDiskOrBuilder public Protos.Resource.DiskInfo.Source.Type getTargetType()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
required .mesos.Resource.DiskInfo.Source.Type target_type = 2;getTargetType in interface Protos.Offer.Operation.CreateDiskOrBuilder public Protos.Offer.Operation.CreateDisk.Builder setTargetType(Protos.Resource.DiskInfo.Source.Type value)
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
required .mesos.Resource.DiskInfo.Source.Type target_type = 2;public Protos.Offer.Operation.CreateDisk.Builder clearTargetType()
NOTE: Only `MOUNT` or `BLOCK` is allowed in this field.
required .mesos.Resource.DiskInfo.Source.Type target_type = 2;public boolean hasTargetProfile()
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;hasTargetProfile in interface Protos.Offer.Operation.CreateDiskOrBuilder public java.lang.String getTargetProfile()
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;getTargetProfile in interface Protos.Offer.Operation.CreateDiskOrBuilder public com.google.protobuf.ByteString getTargetProfileBytes()
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;getTargetProfileBytes in interface Protos.Offer.Operation.CreateDiskOrBuilder public Protos.Offer.Operation.CreateDisk.Builder setTargetProfile(java.lang.String value)
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;public Protos.Offer.Operation.CreateDisk.Builder clearTargetProfile()
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;public Protos.Offer.Operation.CreateDisk.Builder setTargetProfileBytes(com.google.protobuf.ByteString value)
Apply the specified profile to the created disk. This field must be set if `source` does not have a profile, and must not be set if it has one. NOTE: The operation will fail If the specified profile is unknown to Mesos, i.e., not reported by the disk profile adaptor.
optional string target_profile = 3;public final Protos.Offer.Operation.CreateDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Offer.Operation.CreateDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)