public static final class Protos.Resource.DiskInfo.Persistence.Builder extends <any> implements Protos.Resource.DiskInfo.PersistenceOrBuilder
Describes a persistent disk volume. A persistent disk volume will not be automatically garbage collected if the task/executor/slave terminates, but will be re-offered to the framework(s) belonging to the 'role'. NOTE: Currently, we do not allow persistent disk volumes without a reservation (i.e., 'role' cannot be '*').Protobuf type
mesos.Resource.DiskInfo.Persistence| Modifier and Type | Method and Description |
|---|---|
Protos.Resource.DiskInfo.Persistence.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Resource.DiskInfo.Persistence |
build() |
Protos.Resource.DiskInfo.Persistence |
buildPartial() |
Protos.Resource.DiskInfo.Persistence.Builder |
clear() |
Protos.Resource.DiskInfo.Persistence.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Resource.DiskInfo.Persistence.Builder |
clearId()
A unique ID for the persistent disk volume.
|
Protos.Resource.DiskInfo.Persistence.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Resource.DiskInfo.Persistence.Builder |
clearPrincipal()
This field indicates the principal of the operator or
framework that created this volume.
|
Protos.Resource.DiskInfo.Persistence.Builder |
clone() |
Protos.Resource.DiskInfo.Persistence |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getId()
A unique ID for the persistent disk volume.
|
com.google.protobuf.ByteString |
getIdBytes()
A unique ID for the persistent disk volume.
|
java.lang.String |
getPrincipal()
This field indicates the principal of the operator or
framework that created this volume.
|
com.google.protobuf.ByteString |
getPrincipalBytes()
This field indicates the principal of the operator or
framework that created this volume.
|
boolean |
hasId()
A unique ID for the persistent disk volume.
|
boolean |
hasPrincipal()
This field indicates the principal of the operator or
framework that created this volume.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Resource.DiskInfo.Persistence.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Resource.DiskInfo.Persistence.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Resource.DiskInfo.Persistence.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Resource.DiskInfo.Persistence.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Resource.DiskInfo.Persistence.Builder |
setId(java.lang.String value)
A unique ID for the persistent disk volume.
|
Protos.Resource.DiskInfo.Persistence.Builder |
setIdBytes(com.google.protobuf.ByteString value)
A unique ID for the persistent disk volume.
|
Protos.Resource.DiskInfo.Persistence.Builder |
setPrincipal(java.lang.String value)
This field indicates the principal of the operator or
framework that created this volume.
|
Protos.Resource.DiskInfo.Persistence.Builder |
setPrincipalBytes(com.google.protobuf.ByteString value)
This field indicates the principal of the operator or
framework that created this volume.
|
Protos.Resource.DiskInfo.Persistence.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Resource.DiskInfo.Persistence.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.Resource.DiskInfo.Persistence.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Resource.DiskInfo.Persistence getDefaultInstanceForType()
public Protos.Resource.DiskInfo.Persistence build()
public Protos.Resource.DiskInfo.Persistence buildPartial()
public Protos.Resource.DiskInfo.Persistence.Builder clone()
public Protos.Resource.DiskInfo.Persistence.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Resource.DiskInfo.Persistence.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Resource.DiskInfo.Persistence.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Resource.DiskInfo.Persistence.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Resource.DiskInfo.Persistence.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Resource.DiskInfo.Persistence.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Resource.DiskInfo.Persistence.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic boolean hasId()
A unique ID for the persistent disk volume. This ID must be unique per role on each slave. Although it is possible to use the same ID on different slaves in the cluster and to reuse IDs after a volume with that ID has been destroyed, both practices are discouraged.
required string id = 1;hasId in interface Protos.Resource.DiskInfo.PersistenceOrBuilderpublic java.lang.String getId()
A unique ID for the persistent disk volume. This ID must be unique per role on each slave. Although it is possible to use the same ID on different slaves in the cluster and to reuse IDs after a volume with that ID has been destroyed, both practices are discouraged.
required string id = 1;getId in interface Protos.Resource.DiskInfo.PersistenceOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
A unique ID for the persistent disk volume. This ID must be unique per role on each slave. Although it is possible to use the same ID on different slaves in the cluster and to reuse IDs after a volume with that ID has been destroyed, both practices are discouraged.
required string id = 1;getIdBytes in interface Protos.Resource.DiskInfo.PersistenceOrBuilderpublic Protos.Resource.DiskInfo.Persistence.Builder setId(java.lang.String value)
A unique ID for the persistent disk volume. This ID must be unique per role on each slave. Although it is possible to use the same ID on different slaves in the cluster and to reuse IDs after a volume with that ID has been destroyed, both practices are discouraged.
required string id = 1;public Protos.Resource.DiskInfo.Persistence.Builder clearId()
A unique ID for the persistent disk volume. This ID must be unique per role on each slave. Although it is possible to use the same ID on different slaves in the cluster and to reuse IDs after a volume with that ID has been destroyed, both practices are discouraged.
required string id = 1;public Protos.Resource.DiskInfo.Persistence.Builder setIdBytes(com.google.protobuf.ByteString value)
A unique ID for the persistent disk volume. This ID must be unique per role on each slave. Although it is possible to use the same ID on different slaves in the cluster and to reuse IDs after a volume with that ID has been destroyed, both practices are discouraged.
required string id = 1;public boolean hasPrincipal()
This field indicates the principal of the operator or framework that created this volume. It is used in conjunction with the "destroy" ACL to determine whether an entity attempting to destroy the volume is permitted to do so. NOTE: This field should match the FrameworkInfo.principal of the framework that created the volume.
optional string principal = 2;hasPrincipal in interface Protos.Resource.DiskInfo.PersistenceOrBuilderpublic java.lang.String getPrincipal()
This field indicates the principal of the operator or framework that created this volume. It is used in conjunction with the "destroy" ACL to determine whether an entity attempting to destroy the volume is permitted to do so. NOTE: This field should match the FrameworkInfo.principal of the framework that created the volume.
optional string principal = 2;getPrincipal in interface Protos.Resource.DiskInfo.PersistenceOrBuilderpublic com.google.protobuf.ByteString getPrincipalBytes()
This field indicates the principal of the operator or framework that created this volume. It is used in conjunction with the "destroy" ACL to determine whether an entity attempting to destroy the volume is permitted to do so. NOTE: This field should match the FrameworkInfo.principal of the framework that created the volume.
optional string principal = 2;getPrincipalBytes in interface Protos.Resource.DiskInfo.PersistenceOrBuilderpublic Protos.Resource.DiskInfo.Persistence.Builder setPrincipal(java.lang.String value)
This field indicates the principal of the operator or framework that created this volume. It is used in conjunction with the "destroy" ACL to determine whether an entity attempting to destroy the volume is permitted to do so. NOTE: This field should match the FrameworkInfo.principal of the framework that created the volume.
optional string principal = 2;public Protos.Resource.DiskInfo.Persistence.Builder clearPrincipal()
This field indicates the principal of the operator or framework that created this volume. It is used in conjunction with the "destroy" ACL to determine whether an entity attempting to destroy the volume is permitted to do so. NOTE: This field should match the FrameworkInfo.principal of the framework that created the volume.
optional string principal = 2;public Protos.Resource.DiskInfo.Persistence.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
This field indicates the principal of the operator or framework that created this volume. It is used in conjunction with the "destroy" ACL to determine whether an entity attempting to destroy the volume is permitted to do so. NOTE: This field should match the FrameworkInfo.principal of the framework that created the volume.
optional string principal = 2;public final Protos.Resource.DiskInfo.Persistence.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Resource.DiskInfo.Persistence.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)