public static final class Protos.Resource.DiskInfo.Persistence extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
Protos.Resource.DiskInfo.Persistence.Builder
Describes a persistent disk volume.
|
Modifier and Type | Field and Description |
---|---|
static int |
ID_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
PRINCIPAL_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Resource.DiskInfo.Persistence |
getDefaultInstance() |
Protos.Resource.DiskInfo.Persistence |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
<any> |
getParserForType() |
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static Protos.Resource.DiskInfo.Persistence.Builder |
newBuilder() |
static Protos.Resource.DiskInfo.Persistence.Builder |
newBuilder(Protos.Resource.DiskInfo.Persistence prototype) |
Protos.Resource.DiskInfo.Persistence.Builder |
newBuilderForType() |
protected Protos.Resource.DiskInfo.Persistence.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Resource.DiskInfo.Persistence |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Resource.DiskInfo.Persistence |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.DiskInfo.Persistence |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.DiskInfo.Persistence |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Resource.DiskInfo.Persistence |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.DiskInfo.Persistence |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Resource.DiskInfo.Persistence |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.DiskInfo.Persistence |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Resource.DiskInfo.Persistence |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.DiskInfo.Persistence |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Resource.DiskInfo.Persistence.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int ID_FIELD_NUMBER
public static final int PRINCIPAL_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 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.PersistenceOrBuilder
public 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.PersistenceOrBuilder
public 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.PersistenceOrBuilder
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.PersistenceOrBuilder
public 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.PersistenceOrBuilder
public 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.PersistenceOrBuilder
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.Resource.DiskInfo.Persistence parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.DiskInfo.Persistence parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.DiskInfo.Persistence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.DiskInfo.Persistence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.DiskInfo.Persistence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.DiskInfo.Persistence parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Resource.DiskInfo.Persistence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Resource.DiskInfo.Persistence parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Resource.DiskInfo.Persistence parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Resource.DiskInfo.Persistence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Resource.DiskInfo.Persistence.Builder newBuilderForType()
public static Protos.Resource.DiskInfo.Persistence.Builder newBuilder()
public static Protos.Resource.DiskInfo.Persistence.Builder newBuilder(Protos.Resource.DiskInfo.Persistence prototype)
public Protos.Resource.DiskInfo.Persistence.Builder toBuilder()
protected Protos.Resource.DiskInfo.Persistence.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Resource.DiskInfo.Persistence getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Resource.DiskInfo.Persistence getDefaultInstanceForType()