Package com.google.cloud.batch.v1
Class Runnable.Container
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.batch.v1.Runnable.Container
-
- All Implemented Interfaces:
Runnable.ContainerOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- Runnable
public static final class Runnable.Container extends com.google.protobuf.GeneratedMessageV3 implements Runnable.ContainerOrBuilder
Container runnable.
Protobuf typegoogle.cloud.batch.v1.Runnable.Container
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Runnable.Container.Builder
Container runnable.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
BLOCK_EXTERNAL_NETWORK_FIELD_NUMBER
static int
COMMANDS_FIELD_NUMBER
static int
ENTRYPOINT_FIELD_NUMBER
static int
IMAGE_URI_FIELD_NUMBER
static int
OPTIONS_FIELD_NUMBER
static int
PASSWORD_FIELD_NUMBER
static int
USERNAME_FIELD_NUMBER
static int
VOLUMES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
getBlockExternalNetwork()
If set to true, external network access to and from container will be blocked, containers that are with block_external_network as true can still communicate with each other, network cannot be specified in the `container.options` field.String
getCommands(int index)
Overrides the `CMD` specified in the container.com.google.protobuf.ByteString
getCommandsBytes(int index)
Overrides the `CMD` specified in the container.int
getCommandsCount()
Overrides the `CMD` specified in the container.com.google.protobuf.ProtocolStringList
getCommandsList()
Overrides the `CMD` specified in the container.static Runnable.Container
getDefaultInstance()
Runnable.Container
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getEntrypoint()
Overrides the `ENTRYPOINT` specified in the container.com.google.protobuf.ByteString
getEntrypointBytes()
Overrides the `ENTRYPOINT` specified in the container.String
getImageUri()
The URI to pull the container image from.com.google.protobuf.ByteString
getImageUriBytes()
The URI to pull the container image from.String
getOptions()
Arbitrary additional options to include in the "docker run" command when running this container, e.g.com.google.protobuf.ByteString
getOptionsBytes()
Arbitrary additional options to include in the "docker run" command when running this container, e.g.com.google.protobuf.Parser<Runnable.Container>
getParserForType()
String
getPassword()
Optional password for logging in to a docker registry.com.google.protobuf.ByteString
getPasswordBytes()
Optional password for logging in to a docker registry.int
getSerializedSize()
String
getUsername()
Optional username for logging in to a docker registry.com.google.protobuf.ByteString
getUsernameBytes()
Optional username for logging in to a docker registry.String
getVolumes(int index)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g.com.google.protobuf.ByteString
getVolumesBytes(int index)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g.int
getVolumesCount()
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g.com.google.protobuf.ProtocolStringList
getVolumesList()
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Runnable.Container.Builder
newBuilder()
static Runnable.Container.Builder
newBuilder(Runnable.Container prototype)
Runnable.Container.Builder
newBuilderForType()
protected Runnable.Container.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Runnable.Container
parseDelimitedFrom(InputStream input)
static Runnable.Container
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Runnable.Container
parseFrom(byte[] data)
static Runnable.Container
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Runnable.Container
parseFrom(com.google.protobuf.ByteString data)
static Runnable.Container
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Runnable.Container
parseFrom(com.google.protobuf.CodedInputStream input)
static Runnable.Container
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Runnable.Container
parseFrom(InputStream input)
static Runnable.Container
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Runnable.Container
parseFrom(ByteBuffer data)
static Runnable.Container
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Runnable.Container>
parser()
Runnable.Container.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
IMAGE_URI_FIELD_NUMBER
public static final int IMAGE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMMANDS_FIELD_NUMBER
public static final int COMMANDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENTRYPOINT_FIELD_NUMBER
public static final int ENTRYPOINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOLUMES_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BLOCK_EXTERNAL_NETWORK_FIELD_NUMBER
public static final int BLOCK_EXTERNAL_NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PASSWORD_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getImageUri
public String getImageUri()
The URI to pull the container image from.
string image_uri = 1;
- Specified by:
getImageUri
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The imageUri.
-
getImageUriBytes
public com.google.protobuf.ByteString getImageUriBytes()
The URI to pull the container image from.
string image_uri = 1;
- Specified by:
getImageUriBytes
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The bytes for imageUri.
-
getCommandsList
public com.google.protobuf.ProtocolStringList getCommandsList()
Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
repeated string commands = 2;
- Specified by:
getCommandsList
in interfaceRunnable.ContainerOrBuilder
- Returns:
- A list containing the commands.
-
getCommandsCount
public int getCommandsCount()
Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
repeated string commands = 2;
- Specified by:
getCommandsCount
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The count of commands.
-
getCommands
public String getCommands(int index)
Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
repeated string commands = 2;
- Specified by:
getCommands
in interfaceRunnable.ContainerOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The commands at the given index.
-
getCommandsBytes
public com.google.protobuf.ByteString getCommandsBytes(int index)
Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.
repeated string commands = 2;
- Specified by:
getCommandsBytes
in interfaceRunnable.ContainerOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the commands at the given index.
-
getEntrypoint
public String getEntrypoint()
Overrides the `ENTRYPOINT` specified in the container.
string entrypoint = 3;
- Specified by:
getEntrypoint
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The entrypoint.
-
getEntrypointBytes
public com.google.protobuf.ByteString getEntrypointBytes()
Overrides the `ENTRYPOINT` specified in the container.
string entrypoint = 3;
- Specified by:
getEntrypointBytes
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The bytes for entrypoint.
-
getVolumesList
public com.google.protobuf.ProtocolStringList getVolumesList()
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro
repeated string volumes = 7;
- Specified by:
getVolumesList
in interfaceRunnable.ContainerOrBuilder
- Returns:
- A list containing the volumes.
-
getVolumesCount
public int getVolumesCount()
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro
repeated string volumes = 7;
- Specified by:
getVolumesCount
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The count of volumes.
-
getVolumes
public String getVolumes(int index)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro
repeated string volumes = 7;
- Specified by:
getVolumes
in interfaceRunnable.ContainerOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The volumes at the given index.
-
getVolumesBytes
public com.google.protobuf.ByteString getVolumesBytes(int index)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro
repeated string volumes = 7;
- Specified by:
getVolumesBytes
in interfaceRunnable.ContainerOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the volumes at the given index.
-
getOptions
public String getOptions()
Arbitrary additional options to include in the "docker run" command when running this container, e.g. "--network host".
string options = 8;
- Specified by:
getOptions
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The options.
-
getOptionsBytes
public com.google.protobuf.ByteString getOptionsBytes()
Arbitrary additional options to include in the "docker run" command when running this container, e.g. "--network host".
string options = 8;
- Specified by:
getOptionsBytes
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The bytes for options.
-
getBlockExternalNetwork
public boolean getBlockExternalNetwork()
If set to true, external network access to and from container will be blocked, containers that are with block_external_network as true can still communicate with each other, network cannot be specified in the `container.options` field.
bool block_external_network = 9;
- Specified by:
getBlockExternalNetwork
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The blockExternalNetwork.
-
getUsername
public String getUsername()
Optional username for logging in to a docker registry. If username matches `projects/*/secrets/*/versions/*` then Batch will read the username from the Secret Manager.
string username = 10;
- Specified by:
getUsername
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()
Optional username for logging in to a docker registry. If username matches `projects/*/secrets/*/versions/*` then Batch will read the username from the Secret Manager.
string username = 10;
- Specified by:
getUsernameBytes
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The bytes for username.
-
getPassword
public String getPassword()
Optional password for logging in to a docker registry. If password matches `projects/*/secrets/*/versions/*` then Batch will read the password from the Secret Manager;
string password = 11;
- Specified by:
getPassword
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The password.
-
getPasswordBytes
public com.google.protobuf.ByteString getPasswordBytes()
Optional password for logging in to a docker registry. If password matches `projects/*/secrets/*/versions/*` then Batch will read the password from the Secret Manager;
string password = 11;
- Specified by:
getPasswordBytes
in interfaceRunnable.ContainerOrBuilder
- Returns:
- The bytes for password.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Runnable.Container parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable.Container parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable.Container parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable.Container parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable.Container parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable.Container parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Runnable.Container parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Runnable.Container parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Runnable.Container parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Runnable.Container parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Runnable.Container parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Runnable.Container.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Runnable.Container.Builder newBuilder()
-
newBuilder
public static Runnable.Container.Builder newBuilder(Runnable.Container prototype)
-
toBuilder
public Runnable.Container.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Runnable.Container.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Runnable.Container getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Runnable.Container> parser()
-
getParserForType
public com.google.protobuf.Parser<Runnable.Container> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Runnable.Container getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-