public static final class Protos.Volume.Builder extends <any> 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 | Method and Description |
---|---|
Protos.Volume.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Volume |
build() |
Protos.Volume |
buildPartial() |
Protos.Volume.Builder |
clear() |
Protos.Volume.Builder |
clearContainerPath()
Path pointing to a directory or file in the container.
|
Protos.Volume.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Volume.Builder |
clearHostPath()
Absolute path pointing to a directory or file on the host or a
path relative to the container work directory.
|
Protos.Volume.Builder |
clearImage()
The source of the volume is an Image which describes a root
filesystem which will be provisioned by Mesos.
|
Protos.Volume.Builder |
clearMode()
TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
|
Protos.Volume.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Volume.Builder |
clearSource()
optional .mesos.Volume.Source source = 5; |
Protos.Volume.Builder |
clone() |
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.
|
Protos.Volume |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.Image.Builder |
getImageBuilder()
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.
|
Protos.Volume.Source |
getSource()
optional .mesos.Volume.Source source = 5; |
Protos.Volume.Source.Builder |
getSourceBuilder()
optional .mesos.Volume.Source source = 5; |
Protos.Volume.SourceOrBuilder |
getSourceOrBuilder()
optional .mesos.Volume.Source source = 5; |
boolean |
hasContainerPath()
Path pointing to a directory or file in the container.
|
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() |
Protos.Volume.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Volume.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Volume.Builder |
mergeImage(Protos.Image value)
The source of the volume is an Image which describes a root
filesystem which will be provisioned by Mesos.
|
Protos.Volume.Builder |
mergeSource(Protos.Volume.Source value)
optional .mesos.Volume.Source source = 5; |
Protos.Volume.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Volume.Builder |
setContainerPath(java.lang.String value)
Path pointing to a directory or file in the container.
|
Protos.Volume.Builder |
setContainerPathBytes(com.google.protobuf.ByteString value)
Path pointing to a directory or file in the container.
|
Protos.Volume.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Volume.Builder |
setHostPath(java.lang.String value)
Absolute path pointing to a directory or file on the host or a
path relative to the container work directory.
|
Protos.Volume.Builder |
setHostPathBytes(com.google.protobuf.ByteString value)
Absolute path pointing to a directory or file on the host or a
path relative to the container work directory.
|
Protos.Volume.Builder |
setImage(Protos.Image.Builder builderForValue)
The source of the volume is an Image which describes a root
filesystem which will be provisioned by Mesos.
|
Protos.Volume.Builder |
setImage(Protos.Image value)
The source of the volume is an Image which describes a root
filesystem which will be provisioned by Mesos.
|
Protos.Volume.Builder |
setMode(Protos.Volume.Mode value)
TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
|
Protos.Volume.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Volume.Builder |
setSource(Protos.Volume.Source.Builder builderForValue)
optional .mesos.Volume.Source source = 5; |
Protos.Volume.Builder |
setSource(Protos.Volume.Source value)
optional .mesos.Volume.Source source = 5; |
Protos.Volume.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.Volume.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Volume getDefaultInstanceForType()
public Protos.Volume build()
public Protos.Volume buildPartial()
public Protos.Volume.Builder clone()
public Protos.Volume.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Volume.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Volume.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Volume.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Volume.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Volume.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Volume.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
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.VolumeOrBuilder
public 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.VolumeOrBuilder
public Protos.Volume.Builder setMode(Protos.Volume.Mode value)
TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
required .mesos.Volume.Mode mode = 3;
public Protos.Volume.Builder clearMode()
TODO(gyliu513): Make this as `optional` after deprecation cycle of 1.0.
required .mesos.Volume.Mode mode = 3;
public 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.VolumeOrBuilder
public 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.VolumeOrBuilder
public 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.VolumeOrBuilder
public Protos.Volume.Builder setContainerPath(java.lang.String value)
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;
public Protos.Volume.Builder clearContainerPath()
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;
public Protos.Volume.Builder setContainerPathBytes(com.google.protobuf.ByteString value)
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;
public 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.VolumeOrBuilder
public 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.VolumeOrBuilder
public 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.VolumeOrBuilder
public Protos.Volume.Builder setHostPath(java.lang.String value)
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;
public Protos.Volume.Builder clearHostPath()
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;
public Protos.Volume.Builder setHostPathBytes(com.google.protobuf.ByteString value)
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;
public 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.VolumeOrBuilder
public 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.VolumeOrBuilder
public Protos.Volume.Builder setImage(Protos.Image value)
The source of the volume is an Image which describes a root filesystem which will be provisioned by Mesos.
optional .mesos.Image image = 4;
public Protos.Volume.Builder setImage(Protos.Image.Builder builderForValue)
The source of the volume is an Image which describes a root filesystem which will be provisioned by Mesos.
optional .mesos.Image image = 4;
public Protos.Volume.Builder mergeImage(Protos.Image value)
The source of the volume is an Image which describes a root filesystem which will be provisioned by Mesos.
optional .mesos.Image image = 4;
public Protos.Volume.Builder clearImage()
The source of the volume is an Image which describes a root filesystem which will be provisioned by Mesos.
optional .mesos.Image image = 4;
public Protos.Image.Builder getImageBuilder()
The source of the volume is an Image which describes a root filesystem which will be provisioned by Mesos.
optional .mesos.Image image = 4;
public 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.VolumeOrBuilder
public boolean hasSource()
optional .mesos.Volume.Source source = 5;
hasSource
in interface Protos.VolumeOrBuilder
public Protos.Volume.Source getSource()
optional .mesos.Volume.Source source = 5;
getSource
in interface Protos.VolumeOrBuilder
public Protos.Volume.Builder setSource(Protos.Volume.Source value)
optional .mesos.Volume.Source source = 5;
public Protos.Volume.Builder setSource(Protos.Volume.Source.Builder builderForValue)
optional .mesos.Volume.Source source = 5;
public Protos.Volume.Builder mergeSource(Protos.Volume.Source value)
optional .mesos.Volume.Source source = 5;
public Protos.Volume.Builder clearSource()
optional .mesos.Volume.Source source = 5;
public Protos.Volume.Source.Builder getSourceBuilder()
optional .mesos.Volume.Source source = 5;
public Protos.Volume.SourceOrBuilder getSourceOrBuilder()
optional .mesos.Volume.Source source = 5;
getSourceOrBuilder
in interface Protos.VolumeOrBuilder
public final Protos.Volume.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Volume.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)