public static final class Protos.Volume extends com.google.protobuf.GeneratedMessageV3 implements Protos.VolumeOrBuilder
Describes a volume mapping either from host to container or vice versa. Both paths can either refer to a directory or a file.Protobuf type
mesos.Volume| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.Volume.Builder
Describes a volume mapping either from host to container or vice
versa.
|
static class |
Protos.Volume.Mode
Protobuf enum
mesos.Volume.Mode |
static class |
Protos.Volume.Source
Describes where a volume originates from.
|
static interface |
Protos.Volume.SourceOrBuilder |
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINER_PATH_FIELD_NUMBER |
static int |
HOST_PATH_FIELD_NUMBER |
static int |
IMAGE_FIELD_NUMBER |
static int |
MODE_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
SOURCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContainerPath()
Path pointing to a directory or file in the container.
|
com.google.protobuf.ByteString |
getContainerPathBytes()
Path pointing to a directory or file in the container.
|
static Protos.Volume |
getDefaultInstance() |
Protos.Volume |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getHostPath()
Absolute path pointing to a directory or file on the host or a
path relative to the container work directory.
|
com.google.protobuf.ByteString |
getHostPathBytes()
Absolute path pointing to a directory or file on the host or a
path relative to the container work directory.
|
Protos.Image |
getImage()
The source of the volume is an Image which describes a root
filesystem which will be provisioned by Mesos.
|
Protos.ImageOrBuilder |
getImageOrBuilder()
The source of the volume is an Image which describes a root
filesystem which will be provisioned by Mesos.
|
Protos.Volume.Mode |
getMode()
TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
|
<any> |
getParserForType() |
int |
getSerializedSize() |
Protos.Volume.Source |
getSource()
optional .mesos.Volume.Source source = 5; |
Protos.Volume.SourceOrBuilder |
getSourceOrBuilder()
optional .mesos.Volume.Source source = 5; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasContainerPath()
Path pointing to a directory or file in the container.
|
int |
hashCode() |
boolean |
hasHostPath()
Absolute path pointing to a directory or file on the host or a
path relative to the container work directory.
|
boolean |
hasImage()
The source of the volume is an Image which describes a root
filesystem which will be provisioned by Mesos.
|
boolean |
hasMode()
TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
|
boolean |
hasSource()
optional .mesos.Volume.Source source = 5; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Volume.Builder |
newBuilder() |
static Protos.Volume.Builder |
newBuilder(Protos.Volume prototype) |
Protos.Volume.Builder |
newBuilderForType() |
protected Protos.Volume.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Volume |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Volume |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Volume |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Volume |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Volume |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Volume |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Volume |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Volume |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Volume |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Volume |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Volume.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int MODE_FIELD_NUMBER
public static final int CONTAINER_PATH_FIELD_NUMBER
public static final int HOST_PATH_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
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 hasMode()
TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
required .mesos.Volume.Mode mode = 3;hasMode in interface Protos.VolumeOrBuilderpublic Protos.Volume.Mode getMode()
TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
required .mesos.Volume.Mode mode = 3;getMode in interface Protos.VolumeOrBuilderpublic boolean hasContainerPath()
Path pointing to a directory or file in the container. If the path is a relative path, it is relative to the container work directory. If the path is an absolute path and the container does not have its own rootfs, that path must already exist in the agent host rootfs.
required string container_path = 1;hasContainerPath in interface Protos.VolumeOrBuilderpublic java.lang.String getContainerPath()
Path pointing to a directory or file in the container. If the path is a relative path, it is relative to the container work directory. If the path is an absolute path and the container does not have its own rootfs, that path must already exist in the agent host rootfs.
required string container_path = 1;getContainerPath in interface Protos.VolumeOrBuilderpublic com.google.protobuf.ByteString getContainerPathBytes()
Path pointing to a directory or file in the container. If the path is a relative path, it is relative to the container work directory. If the path is an absolute path and the container does not have its own rootfs, that path must already exist in the agent host rootfs.
required string container_path = 1;getContainerPathBytes in interface Protos.VolumeOrBuilderpublic boolean hasHostPath()
Absolute path pointing to a directory or file on the host or a path relative to the container work directory.
optional string host_path = 2;hasHostPath in interface Protos.VolumeOrBuilderpublic java.lang.String getHostPath()
Absolute path pointing to a directory or file on the host or a path relative to the container work directory.
optional string host_path = 2;getHostPath in interface Protos.VolumeOrBuilderpublic com.google.protobuf.ByteString getHostPathBytes()
Absolute path pointing to a directory or file on the host or a path relative to the container work directory.
optional string host_path = 2;getHostPathBytes in interface Protos.VolumeOrBuilderpublic boolean hasImage()
The source of the volume is an Image which describes a root filesystem which will be provisioned by Mesos.
optional .mesos.Image image = 4;hasImage in interface Protos.VolumeOrBuilderpublic Protos.Image getImage()
The source of the volume is an Image which describes a root filesystem which will be provisioned by Mesos.
optional .mesos.Image image = 4;getImage in interface Protos.VolumeOrBuilderpublic Protos.ImageOrBuilder getImageOrBuilder()
The source of the volume is an Image which describes a root filesystem which will be provisioned by Mesos.
optional .mesos.Image image = 4;getImageOrBuilder in interface Protos.VolumeOrBuilderpublic boolean hasSource()
optional .mesos.Volume.Source source = 5;hasSource in interface Protos.VolumeOrBuilderpublic Protos.Volume.Source getSource()
optional .mesos.Volume.Source source = 5;getSource in interface Protos.VolumeOrBuilderpublic Protos.Volume.SourceOrBuilder getSourceOrBuilder()
optional .mesos.Volume.Source source = 5;getSourceOrBuilder in interface Protos.VolumeOrBuilderpublic final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.Volume parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Volume parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Volume parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Volume parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Volume parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Volume parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Volume parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Volume parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Volume parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Volume parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.Volume.Builder newBuilderForType()
public static Protos.Volume.Builder newBuilder()
public static Protos.Volume.Builder newBuilder(Protos.Volume prototype)
public Protos.Volume.Builder toBuilder()
protected Protos.Volume.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Volume getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Volume getDefaultInstanceForType()