public static final class Runnable.Container.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder> implements Runnable.ContainerOrBuilder
Container runnable.Protobuf type
google.cloud.batch.v1.Runnable.Container| Modifier and Type | Method and Description |
|---|---|
Runnable.Container.Builder |
addAllCommands(Iterable<String> values)
Required for some container images.
|
Runnable.Container.Builder |
addAllVolumes(Iterable<String> values)
Volumes to mount (bind mount) from the host machine files or directories
into the container, formatted to match `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
Runnable.Container.Builder |
addCommands(String value)
Required for some container images.
|
Runnable.Container.Builder |
addCommandsBytes(com.google.protobuf.ByteString value)
Required for some container images.
|
Runnable.Container.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Runnable.Container.Builder |
addVolumes(String value)
Volumes to mount (bind mount) from the host machine files or directories
into the container, formatted to match `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
Runnable.Container.Builder |
addVolumesBytes(com.google.protobuf.ByteString value)
Volumes to mount (bind mount) from the host machine files or directories
into the container, formatted to match `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
Runnable.Container |
build() |
Runnable.Container |
buildPartial() |
Runnable.Container.Builder |
clear() |
Runnable.Container.Builder |
clearBlockExternalNetwork()
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.
|
Runnable.Container.Builder |
clearCommands()
Required for some container images.
|
Runnable.Container.Builder |
clearEnableImageStreaming()
Optional.
|
Runnable.Container.Builder |
clearEntrypoint()
Required for some container images.
|
Runnable.Container.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Runnable.Container.Builder |
clearImageUri()
Required.
|
Runnable.Container.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Runnable.Container.Builder |
clearOptions()
Required for some container images.
|
Runnable.Container.Builder |
clearPassword()
Required if the container image is from a private Docker registry.
|
Runnable.Container.Builder |
clearUsername()
Required if the container image is from a private Docker registry.
|
Runnable.Container.Builder |
clearVolumes()
Volumes to mount (bind mount) from the host machine files or directories
into the container, formatted to match `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
Runnable.Container.Builder |
clone() |
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)
Required for some container images.
|
com.google.protobuf.ByteString |
getCommandsBytes(int index)
Required for some container images.
|
int |
getCommandsCount()
Required for some container images.
|
com.google.protobuf.ProtocolStringList |
getCommandsList()
Required for some container images.
|
Runnable.Container |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnableImageStreaming()
Optional.
|
String |
getEntrypoint()
Required for some container images.
|
com.google.protobuf.ByteString |
getEntrypointBytes()
Required for some container images.
|
String |
getImageUri()
Required.
|
com.google.protobuf.ByteString |
getImageUriBytes()
Required.
|
String |
getOptions()
Required for some container images.
|
com.google.protobuf.ByteString |
getOptionsBytes()
Required for some container images.
|
String |
getPassword()
Required if the container image is from a private Docker registry.
|
com.google.protobuf.ByteString |
getPasswordBytes()
Required if the container image is from a private Docker registry.
|
String |
getUsername()
Required if the container image is from a private Docker registry.
|
com.google.protobuf.ByteString |
getUsernameBytes()
Required if the container image is from a private Docker registry.
|
String |
getVolumes(int index)
Volumes to mount (bind mount) from the host machine files or directories
into the container, formatted to match `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
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 `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
int |
getVolumesCount()
Volumes to mount (bind mount) from the host machine files or directories
into the container, formatted to match `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
com.google.protobuf.ProtocolStringList |
getVolumesList()
Volumes to mount (bind mount) from the host machine files or directories
into the container, formatted to match `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Runnable.Container.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Runnable.Container.Builder |
mergeFrom(com.google.protobuf.Message other) |
Runnable.Container.Builder |
mergeFrom(Runnable.Container other) |
Runnable.Container.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Runnable.Container.Builder |
setBlockExternalNetwork(boolean value)
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.
|
Runnable.Container.Builder |
setCommands(int index,
String value)
Required for some container images.
|
Runnable.Container.Builder |
setEnableImageStreaming(boolean value)
Optional.
|
Runnable.Container.Builder |
setEntrypoint(String value)
Required for some container images.
|
Runnable.Container.Builder |
setEntrypointBytes(com.google.protobuf.ByteString value)
Required for some container images.
|
Runnable.Container.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Runnable.Container.Builder |
setImageUri(String value)
Required.
|
Runnable.Container.Builder |
setImageUriBytes(com.google.protobuf.ByteString value)
Required.
|
Runnable.Container.Builder |
setOptions(String value)
Required for some container images.
|
Runnable.Container.Builder |
setOptionsBytes(com.google.protobuf.ByteString value)
Required for some container images.
|
Runnable.Container.Builder |
setPassword(String value)
Required if the container image is from a private Docker registry.
|
Runnable.Container.Builder |
setPasswordBytes(com.google.protobuf.ByteString value)
Required if the container image is from a private Docker registry.
|
Runnable.Container.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Runnable.Container.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Runnable.Container.Builder |
setUsername(String value)
Required if the container image is from a private Docker registry.
|
Runnable.Container.Builder |
setUsernameBytes(com.google.protobuf.ByteString value)
Required if the container image is from a private Docker registry.
|
Runnable.Container.Builder |
setVolumes(int index,
String value)
Volumes to mount (bind mount) from the host machine files or directories
into the container, formatted to match `--volume` option for the
`docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Runnable.Container build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Runnable.Container buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Runnable.Container.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Runnable.Container.Builder>public Runnable.Container.Builder mergeFrom(Runnable.Container other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public Runnable.Container.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Runnable.Container.Builder>IOExceptionpublic String getImageUri()
Required. The URI to pull the container image from.
string image_uri = 1;getImageUri in interface Runnable.ContainerOrBuilderpublic com.google.protobuf.ByteString getImageUriBytes()
Required. The URI to pull the container image from.
string image_uri = 1;getImageUriBytes in interface Runnable.ContainerOrBuilderpublic Runnable.Container.Builder setImageUri(String value)
Required. The URI to pull the container image from.
string image_uri = 1;value - The imageUri to set.public Runnable.Container.Builder clearImageUri()
Required. The URI to pull the container image from.
string image_uri = 1;public Runnable.Container.Builder setImageUriBytes(com.google.protobuf.ByteString value)
Required. The URI to pull the container image from.
string image_uri = 1;value - The bytes for imageUri to set.public com.google.protobuf.ProtocolStringList getCommandsList()
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;getCommandsList in interface Runnable.ContainerOrBuilderpublic int getCommandsCount()
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;getCommandsCount in interface Runnable.ContainerOrBuilderpublic String getCommands(int index)
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;getCommands in interface Runnable.ContainerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getCommandsBytes(int index)
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;getCommandsBytes in interface Runnable.ContainerOrBuilderindex - The index of the value to return.public Runnable.Container.Builder setCommands(int index, String value)
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;index - The index to set the value at.value - The commands to set.public Runnable.Container.Builder addCommands(String value)
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;value - The commands to add.public Runnable.Container.Builder addAllCommands(Iterable<String> values)
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;values - The commands to add.public Runnable.Container.Builder clearCommands()
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;public Runnable.Container.Builder addCommandsBytes(com.google.protobuf.ByteString value)
Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.
repeated string commands = 2;value - The bytes of the commands to add.public String getEntrypoint()
Required for some container images. Overrides the `ENTRYPOINT` specified in the container.
string entrypoint = 3;getEntrypoint in interface Runnable.ContainerOrBuilderpublic com.google.protobuf.ByteString getEntrypointBytes()
Required for some container images. Overrides the `ENTRYPOINT` specified in the container.
string entrypoint = 3;getEntrypointBytes in interface Runnable.ContainerOrBuilderpublic Runnable.Container.Builder setEntrypoint(String value)
Required for some container images. Overrides the `ENTRYPOINT` specified in the container.
string entrypoint = 3;value - The entrypoint to set.public Runnable.Container.Builder clearEntrypoint()
Required for some container images. Overrides the `ENTRYPOINT` specified in the container.
string entrypoint = 3;public Runnable.Container.Builder setEntrypointBytes(com.google.protobuf.ByteString value)
Required for some container images. Overrides the `ENTRYPOINT` specified in the container.
string entrypoint = 3;value - The bytes for entrypoint to set.public com.google.protobuf.ProtocolStringList getVolumesList()
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;getVolumesList in interface Runnable.ContainerOrBuilderpublic int getVolumesCount()
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;getVolumesCount in interface Runnable.ContainerOrBuilderpublic String getVolumes(int index)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;getVolumes in interface Runnable.ContainerOrBuilderindex - The index of the element to return.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 `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;getVolumesBytes in interface Runnable.ContainerOrBuilderindex - The index of the value to return.public Runnable.Container.Builder setVolumes(int index, String value)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;index - The index to set the value at.value - The volumes to set.public Runnable.Container.Builder addVolumes(String value)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;value - The volumes to add.public Runnable.Container.Builder addAllVolumes(Iterable<String> values)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;values - The volumes to add.public Runnable.Container.Builder clearVolumes()
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;public Runnable.Container.Builder addVolumesBytes(com.google.protobuf.ByteString value)
Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.
repeated string volumes = 7;value - The bytes of the volumes to add.public String getOptions()
Required for some container images. Arbitrary additional options to include in the `docker run` command when running this container—for example, `--network host`. For the `--volume` option, use the `volumes` field for the container.
string options = 8;getOptions in interface Runnable.ContainerOrBuilderpublic com.google.protobuf.ByteString getOptionsBytes()
Required for some container images. Arbitrary additional options to include in the `docker run` command when running this container—for example, `--network host`. For the `--volume` option, use the `volumes` field for the container.
string options = 8;getOptionsBytes in interface Runnable.ContainerOrBuilderpublic Runnable.Container.Builder setOptions(String value)
Required for some container images. Arbitrary additional options to include in the `docker run` command when running this container—for example, `--network host`. For the `--volume` option, use the `volumes` field for the container.
string options = 8;value - The options to set.public Runnable.Container.Builder clearOptions()
Required for some container images. Arbitrary additional options to include in the `docker run` command when running this container—for example, `--network host`. For the `--volume` option, use the `volumes` field for the container.
string options = 8;public Runnable.Container.Builder setOptionsBytes(com.google.protobuf.ByteString value)
Required for some container images. Arbitrary additional options to include in the `docker run` command when running this container—for example, `--network host`. For the `--volume` option, use the `volumes` field for the container.
string options = 8;value - The bytes for options to set.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;getBlockExternalNetwork in interface Runnable.ContainerOrBuilderpublic Runnable.Container.Builder setBlockExternalNetwork(boolean value)
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;value - The blockExternalNetwork to set.public Runnable.Container.Builder clearBlockExternalNetwork()
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;public String getUsername()
Required if the container image is from a private Docker registry. The username to login to the Docker registry that contains the image. You can either specify the username directly by using plain text or specify an encrypted username by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. However, using a secret is recommended for enhanced security. Caution: If you specify the username using plain text, you risk the username being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the username instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string username = 10;getUsername in interface Runnable.ContainerOrBuilderpublic com.google.protobuf.ByteString getUsernameBytes()
Required if the container image is from a private Docker registry. The username to login to the Docker registry that contains the image. You can either specify the username directly by using plain text or specify an encrypted username by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. However, using a secret is recommended for enhanced security. Caution: If you specify the username using plain text, you risk the username being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the username instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string username = 10;getUsernameBytes in interface Runnable.ContainerOrBuilderpublic Runnable.Container.Builder setUsername(String value)
Required if the container image is from a private Docker registry. The username to login to the Docker registry that contains the image. You can either specify the username directly by using plain text or specify an encrypted username by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. However, using a secret is recommended for enhanced security. Caution: If you specify the username using plain text, you risk the username being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the username instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string username = 10;value - The username to set.public Runnable.Container.Builder clearUsername()
Required if the container image is from a private Docker registry. The username to login to the Docker registry that contains the image. You can either specify the username directly by using plain text or specify an encrypted username by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. However, using a secret is recommended for enhanced security. Caution: If you specify the username using plain text, you risk the username being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the username instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string username = 10;public Runnable.Container.Builder setUsernameBytes(com.google.protobuf.ByteString value)
Required if the container image is from a private Docker registry. The username to login to the Docker registry that contains the image. You can either specify the username directly by using plain text or specify an encrypted username by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. However, using a secret is recommended for enhanced security. Caution: If you specify the username using plain text, you risk the username being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the username instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string username = 10;value - The bytes for username to set.public String getPassword()
Required if the container image is from a private Docker registry. The password to login to the Docker registry that contains the image. For security, it is strongly recommended to specify an encrypted password by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. Warning: If you specify the password using plain text, you risk the password being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the password instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string password = 11;getPassword in interface Runnable.ContainerOrBuilderpublic com.google.protobuf.ByteString getPasswordBytes()
Required if the container image is from a private Docker registry. The password to login to the Docker registry that contains the image. For security, it is strongly recommended to specify an encrypted password by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. Warning: If you specify the password using plain text, you risk the password being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the password instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string password = 11;getPasswordBytes in interface Runnable.ContainerOrBuilderpublic Runnable.Container.Builder setPassword(String value)
Required if the container image is from a private Docker registry. The password to login to the Docker registry that contains the image. For security, it is strongly recommended to specify an encrypted password by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. Warning: If you specify the password using plain text, you risk the password being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the password instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string password = 11;value - The password to set.public Runnable.Container.Builder clearPassword()
Required if the container image is from a private Docker registry. The password to login to the Docker registry that contains the image. For security, it is strongly recommended to specify an encrypted password by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. Warning: If you specify the password using plain text, you risk the password being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the password instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string password = 11;public Runnable.Container.Builder setPasswordBytes(com.google.protobuf.ByteString value)
Required if the container image is from a private Docker registry. The password to login to the Docker registry that contains the image. For security, it is strongly recommended to specify an encrypted password by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. Warning: If you specify the password using plain text, you risk the password being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the password instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
string password = 11;value - The bytes for password to set.public boolean getEnableImageStreaming()
Optional. If set to true, this container runnable uses Image streaming. Use Image streaming to allow the runnable to initialize without waiting for the entire container image to download, which can significantly reduce startup time for large container images. When `enableImageStreaming` is set to true, the container runtime is [containerd](https://containerd.io/) instead of Docker. Additionally, this container runnable only supports the following `container` subfields: `imageUri`, `commands[]`, `entrypoint`, and `volumes[]`; any other `container` subfields are ignored. For more information about the requirements and limitations for using Image streaming with Batch, see the [`image-streaming` sample on GitHub](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming).
bool enable_image_streaming = 12 [(.google.api.field_behavior) = OPTIONAL];getEnableImageStreaming in interface Runnable.ContainerOrBuilderpublic Runnable.Container.Builder setEnableImageStreaming(boolean value)
Optional. If set to true, this container runnable uses Image streaming. Use Image streaming to allow the runnable to initialize without waiting for the entire container image to download, which can significantly reduce startup time for large container images. When `enableImageStreaming` is set to true, the container runtime is [containerd](https://containerd.io/) instead of Docker. Additionally, this container runnable only supports the following `container` subfields: `imageUri`, `commands[]`, `entrypoint`, and `volumes[]`; any other `container` subfields are ignored. For more information about the requirements and limitations for using Image streaming with Batch, see the [`image-streaming` sample on GitHub](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming).
bool enable_image_streaming = 12 [(.google.api.field_behavior) = OPTIONAL];value - The enableImageStreaming to set.public Runnable.Container.Builder clearEnableImageStreaming()
Optional. If set to true, this container runnable uses Image streaming. Use Image streaming to allow the runnable to initialize without waiting for the entire container image to download, which can significantly reduce startup time for large container images. When `enableImageStreaming` is set to true, the container runtime is [containerd](https://containerd.io/) instead of Docker. Additionally, this container runnable only supports the following `container` subfields: `imageUri`, `commands[]`, `entrypoint`, and `volumes[]`; any other `container` subfields are ignored. For more information about the requirements and limitations for using Image streaming with Batch, see the [`image-streaming` sample on GitHub](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming).
bool enable_image_streaming = 12 [(.google.api.field_behavior) = OPTIONAL];public final Runnable.Container.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>public final Runnable.Container.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Container.Builder>Copyright © 2025 Google LLC. All rights reserved.