public static final class Protos.ContainerInfo extends com.google.protobuf.GeneratedMessageV3 implements Protos.ContainerInfoOrBuilder
Describes a container configuration and allows extensible configurations for different container implementations. NOTE: `ContainerInfo` may be specified, e.g., by a task, even if no container image is provided. In this case neither `MesosInfo` nor `DockerInfo` is set, the required `type` must be `MESOS`. This is to address a case when a task without an image, e.g., a shell script with URIs, wants to use features originally designed for containers, for example custom network isolation via `NetworkInfo`.Protobuf type
mesos.ContainerInfo
Modifier and Type | Class and Description |
---|---|
static class |
Protos.ContainerInfo.Builder
Describes a container configuration and allows extensible
configurations for different container implementations.
|
static class |
Protos.ContainerInfo.DockerInfo
Protobuf type
mesos.ContainerInfo.DockerInfo |
static interface |
Protos.ContainerInfo.DockerInfoOrBuilder |
static class |
Protos.ContainerInfo.MesosInfo
Protobuf type
mesos.ContainerInfo.MesosInfo |
static interface |
Protos.ContainerInfo.MesosInfoOrBuilder |
static class |
Protos.ContainerInfo.Type
All container implementation types.
|
Modifier and Type | Field and Description |
---|---|
static int |
DOCKER_FIELD_NUMBER |
static int |
HOSTNAME_FIELD_NUMBER |
static int |
LINUX_INFO_FIELD_NUMBER |
static int |
MESOS_FIELD_NUMBER |
static int |
NETWORK_INFOS_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
RLIMIT_INFO_FIELD_NUMBER |
static int |
TTY_INFO_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
VOLUMES_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.ContainerInfo |
getDefaultInstance() |
Protos.ContainerInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.ContainerInfo.DockerInfo |
getDocker()
At most one of the following *Info messages should be set to match
the type, i.e.
|
Protos.ContainerInfo.DockerInfoOrBuilder |
getDockerOrBuilder()
At most one of the following *Info messages should be set to match
the type, i.e.
|
java.lang.String |
getHostname()
optional string hostname = 4; |
com.google.protobuf.ByteString |
getHostnameBytes()
optional string hostname = 4; |
Protos.LinuxInfo |
getLinuxInfo()
Linux specific information for the container.
|
Protos.LinuxInfoOrBuilder |
getLinuxInfoOrBuilder()
Linux specific information for the container.
|
Protos.ContainerInfo.MesosInfo |
getMesos()
optional .mesos.ContainerInfo.MesosInfo mesos = 5; |
Protos.ContainerInfo.MesosInfoOrBuilder |
getMesosOrBuilder()
optional .mesos.ContainerInfo.MesosInfo mesos = 5; |
Protos.NetworkInfo |
getNetworkInfos(int index)
A list of network requests.
|
int |
getNetworkInfosCount()
A list of network requests.
|
java.util.List<Protos.NetworkInfo> |
getNetworkInfosList()
A list of network requests.
|
Protos.NetworkInfoOrBuilder |
getNetworkInfosOrBuilder(int index)
A list of network requests.
|
java.util.List<? extends Protos.NetworkInfoOrBuilder> |
getNetworkInfosOrBuilderList()
A list of network requests.
|
<any> |
getParserForType() |
Protos.RLimitInfo |
getRlimitInfo()
(POSIX only) rlimits of the container.
|
Protos.RLimitInfoOrBuilder |
getRlimitInfoOrBuilder()
(POSIX only) rlimits of the container.
|
int |
getSerializedSize() |
Protos.TTYInfo |
getTtyInfo()
If specified a tty will be attached to the container entrypoint.
|
Protos.TTYInfoOrBuilder |
getTtyInfoOrBuilder()
If specified a tty will be attached to the container entrypoint.
|
Protos.ContainerInfo.Type |
getType()
required .mesos.ContainerInfo.Type type = 1; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Protos.Volume |
getVolumes(int index)
repeated .mesos.Volume volumes = 2; |
int |
getVolumesCount()
repeated .mesos.Volume volumes = 2; |
java.util.List<Protos.Volume> |
getVolumesList()
repeated .mesos.Volume volumes = 2; |
Protos.VolumeOrBuilder |
getVolumesOrBuilder(int index)
repeated .mesos.Volume volumes = 2; |
java.util.List<? extends Protos.VolumeOrBuilder> |
getVolumesOrBuilderList()
repeated .mesos.Volume volumes = 2; |
boolean |
hasDocker()
At most one of the following *Info messages should be set to match
the type, i.e.
|
int |
hashCode() |
boolean |
hasHostname()
optional string hostname = 4; |
boolean |
hasLinuxInfo()
Linux specific information for the container.
|
boolean |
hasMesos()
optional .mesos.ContainerInfo.MesosInfo mesos = 5; |
boolean |
hasRlimitInfo()
(POSIX only) rlimits of the container.
|
boolean |
hasTtyInfo()
If specified a tty will be attached to the container entrypoint.
|
boolean |
hasType()
required .mesos.ContainerInfo.Type type = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.ContainerInfo.Builder |
newBuilder() |
static Protos.ContainerInfo.Builder |
newBuilder(Protos.ContainerInfo prototype) |
Protos.ContainerInfo.Builder |
newBuilderForType() |
protected Protos.ContainerInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.ContainerInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.ContainerInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ContainerInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ContainerInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.ContainerInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ContainerInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.ContainerInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ContainerInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.ContainerInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ContainerInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.ContainerInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int TYPE_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER
public static final int DOCKER_FIELD_NUMBER
public static final int MESOS_FIELD_NUMBER
public static final int NETWORK_INFOS_FIELD_NUMBER
public static final int LINUX_INFO_FIELD_NUMBER
public static final int RLIMIT_INFO_FIELD_NUMBER
public static final int TTY_INFO_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 hasType()
required .mesos.ContainerInfo.Type type = 1;
hasType
in interface Protos.ContainerInfoOrBuilder
public Protos.ContainerInfo.Type getType()
required .mesos.ContainerInfo.Type type = 1;
getType
in interface Protos.ContainerInfoOrBuilder
public java.util.List<Protos.Volume> getVolumesList()
repeated .mesos.Volume volumes = 2;
getVolumesList
in interface Protos.ContainerInfoOrBuilder
public java.util.List<? extends Protos.VolumeOrBuilder> getVolumesOrBuilderList()
repeated .mesos.Volume volumes = 2;
getVolumesOrBuilderList
in interface Protos.ContainerInfoOrBuilder
public int getVolumesCount()
repeated .mesos.Volume volumes = 2;
getVolumesCount
in interface Protos.ContainerInfoOrBuilder
public Protos.Volume getVolumes(int index)
repeated .mesos.Volume volumes = 2;
getVolumes
in interface Protos.ContainerInfoOrBuilder
public Protos.VolumeOrBuilder getVolumesOrBuilder(int index)
repeated .mesos.Volume volumes = 2;
getVolumesOrBuilder
in interface Protos.ContainerInfoOrBuilder
public boolean hasHostname()
optional string hostname = 4;
hasHostname
in interface Protos.ContainerInfoOrBuilder
public java.lang.String getHostname()
optional string hostname = 4;
getHostname
in interface Protos.ContainerInfoOrBuilder
public com.google.protobuf.ByteString getHostnameBytes()
optional string hostname = 4;
getHostnameBytes
in interface Protos.ContainerInfoOrBuilder
public boolean hasDocker()
At most one of the following *Info messages should be set to match the type, i.e. the "protobuf union" in ContainerInfo should be valid.
optional .mesos.ContainerInfo.DockerInfo docker = 3;
hasDocker
in interface Protos.ContainerInfoOrBuilder
public Protos.ContainerInfo.DockerInfo getDocker()
At most one of the following *Info messages should be set to match the type, i.e. the "protobuf union" in ContainerInfo should be valid.
optional .mesos.ContainerInfo.DockerInfo docker = 3;
getDocker
in interface Protos.ContainerInfoOrBuilder
public Protos.ContainerInfo.DockerInfoOrBuilder getDockerOrBuilder()
At most one of the following *Info messages should be set to match the type, i.e. the "protobuf union" in ContainerInfo should be valid.
optional .mesos.ContainerInfo.DockerInfo docker = 3;
getDockerOrBuilder
in interface Protos.ContainerInfoOrBuilder
public boolean hasMesos()
optional .mesos.ContainerInfo.MesosInfo mesos = 5;
hasMesos
in interface Protos.ContainerInfoOrBuilder
public Protos.ContainerInfo.MesosInfo getMesos()
optional .mesos.ContainerInfo.MesosInfo mesos = 5;
getMesos
in interface Protos.ContainerInfoOrBuilder
public Protos.ContainerInfo.MesosInfoOrBuilder getMesosOrBuilder()
optional .mesos.ContainerInfo.MesosInfo mesos = 5;
getMesosOrBuilder
in interface Protos.ContainerInfoOrBuilder
public java.util.List<Protos.NetworkInfo> getNetworkInfosList()
A list of network requests. A framework can request multiple IP addresses for the container.
repeated .mesos.NetworkInfo network_infos = 7;
getNetworkInfosList
in interface Protos.ContainerInfoOrBuilder
public java.util.List<? extends Protos.NetworkInfoOrBuilder> getNetworkInfosOrBuilderList()
A list of network requests. A framework can request multiple IP addresses for the container.
repeated .mesos.NetworkInfo network_infos = 7;
getNetworkInfosOrBuilderList
in interface Protos.ContainerInfoOrBuilder
public int getNetworkInfosCount()
A list of network requests. A framework can request multiple IP addresses for the container.
repeated .mesos.NetworkInfo network_infos = 7;
getNetworkInfosCount
in interface Protos.ContainerInfoOrBuilder
public Protos.NetworkInfo getNetworkInfos(int index)
A list of network requests. A framework can request multiple IP addresses for the container.
repeated .mesos.NetworkInfo network_infos = 7;
getNetworkInfos
in interface Protos.ContainerInfoOrBuilder
public Protos.NetworkInfoOrBuilder getNetworkInfosOrBuilder(int index)
A list of network requests. A framework can request multiple IP addresses for the container.
repeated .mesos.NetworkInfo network_infos = 7;
getNetworkInfosOrBuilder
in interface Protos.ContainerInfoOrBuilder
public boolean hasLinuxInfo()
Linux specific information for the container.
optional .mesos.LinuxInfo linux_info = 8;
hasLinuxInfo
in interface Protos.ContainerInfoOrBuilder
public Protos.LinuxInfo getLinuxInfo()
Linux specific information for the container.
optional .mesos.LinuxInfo linux_info = 8;
getLinuxInfo
in interface Protos.ContainerInfoOrBuilder
public Protos.LinuxInfoOrBuilder getLinuxInfoOrBuilder()
Linux specific information for the container.
optional .mesos.LinuxInfo linux_info = 8;
getLinuxInfoOrBuilder
in interface Protos.ContainerInfoOrBuilder
public boolean hasRlimitInfo()
(POSIX only) rlimits of the container.
optional .mesos.RLimitInfo rlimit_info = 9;
hasRlimitInfo
in interface Protos.ContainerInfoOrBuilder
public Protos.RLimitInfo getRlimitInfo()
(POSIX only) rlimits of the container.
optional .mesos.RLimitInfo rlimit_info = 9;
getRlimitInfo
in interface Protos.ContainerInfoOrBuilder
public Protos.RLimitInfoOrBuilder getRlimitInfoOrBuilder()
(POSIX only) rlimits of the container.
optional .mesos.RLimitInfo rlimit_info = 9;
getRlimitInfoOrBuilder
in interface Protos.ContainerInfoOrBuilder
public boolean hasTtyInfo()
If specified a tty will be attached to the container entrypoint.
optional .mesos.TTYInfo tty_info = 10;
hasTtyInfo
in interface Protos.ContainerInfoOrBuilder
public Protos.TTYInfo getTtyInfo()
If specified a tty will be attached to the container entrypoint.
optional .mesos.TTYInfo tty_info = 10;
getTtyInfo
in interface Protos.ContainerInfoOrBuilder
public Protos.TTYInfoOrBuilder getTtyInfoOrBuilder()
If specified a tty will be attached to the container entrypoint.
optional .mesos.TTYInfo tty_info = 10;
getTtyInfoOrBuilder
in interface Protos.ContainerInfoOrBuilder
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.ContainerInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ContainerInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ContainerInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ContainerInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ContainerInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.ContainerInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.ContainerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.ContainerInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.ContainerInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.ContainerInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.ContainerInfo.Builder newBuilderForType()
public static Protos.ContainerInfo.Builder newBuilder()
public static Protos.ContainerInfo.Builder newBuilder(Protos.ContainerInfo prototype)
public Protos.ContainerInfo.Builder toBuilder()
protected Protos.ContainerInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.ContainerInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.ContainerInfo getDefaultInstanceForType()