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 classRunnable.Container.BuilderContainer 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 intBLOCK_EXTERNAL_NETWORK_FIELD_NUMBERstatic intCOMMANDS_FIELD_NUMBERstatic intENTRYPOINT_FIELD_NUMBERstatic intIMAGE_URI_FIELD_NUMBERstatic intOPTIONS_FIELD_NUMBERstatic intPASSWORD_FIELD_NUMBERstatic intUSERNAME_FIELD_NUMBERstatic intVOLUMES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetBlockExternalNetwork()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.StringgetCommands(int index)Overrides the `CMD` specified in the container.com.google.protobuf.ByteStringgetCommandsBytes(int index)Overrides the `CMD` specified in the container.intgetCommandsCount()Overrides the `CMD` specified in the container.com.google.protobuf.ProtocolStringListgetCommandsList()Overrides the `CMD` specified in the container.static Runnable.ContainergetDefaultInstance()Runnable.ContainergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetEntrypoint()Overrides the `ENTRYPOINT` specified in the container.com.google.protobuf.ByteStringgetEntrypointBytes()Overrides the `ENTRYPOINT` specified in the container.StringgetImageUri()The URI to pull the container image from.com.google.protobuf.ByteStringgetImageUriBytes()The URI to pull the container image from.StringgetOptions()Arbitrary additional options to include in the "docker run" command when running this container, e.g.com.google.protobuf.ByteStringgetOptionsBytes()Arbitrary additional options to include in the "docker run" command when running this container, e.g.com.google.protobuf.Parser<Runnable.Container>getParserForType()StringgetPassword()Optional password for logging in to a docker registry.com.google.protobuf.ByteStringgetPasswordBytes()Optional password for logging in to a docker registry.intgetSerializedSize()StringgetUsername()Optional username for logging in to a docker registry.com.google.protobuf.ByteStringgetUsernameBytes()Optional username for logging in to a docker registry.StringgetVolumes(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.ByteStringgetVolumesBytes(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.intgetVolumesCount()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.ProtocolStringListgetVolumesList()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.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Runnable.Container.BuildernewBuilder()static Runnable.Container.BuildernewBuilder(Runnable.Container prototype)Runnable.Container.BuildernewBuilderForType()protected Runnable.Container.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Runnable.ContainerparseDelimitedFrom(InputStream input)static Runnable.ContainerparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Runnable.ContainerparseFrom(byte[] data)static Runnable.ContainerparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Runnable.ContainerparseFrom(com.google.protobuf.ByteString data)static Runnable.ContainerparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Runnable.ContainerparseFrom(com.google.protobuf.CodedInputStream input)static Runnable.ContainerparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Runnable.ContainerparseFrom(InputStream input)static Runnable.ContainerparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Runnable.ContainerparseFrom(ByteBuffer data)static Runnable.ContainerparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Runnable.Container>parser()Runnable.Container.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getImageUri
public String getImageUri()
The URI to pull the container image from.
string image_uri = 1;- Specified by:
getImageUriin 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:
getImageUriBytesin 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:
getCommandsListin 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:
getCommandsCountin 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:
getCommandsin 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:
getCommandsBytesin 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:
getEntrypointin interfaceRunnable.ContainerOrBuilder- Returns:
- The entrypoint.
-
getEntrypointBytes
public com.google.protobuf.ByteString getEntrypointBytes()
Overrides the `ENTRYPOINT` specified in the container.
string entrypoint = 3;- Specified by:
getEntrypointBytesin 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:
getVolumesListin 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:
getVolumesCountin 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:
getVolumesin 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:
getVolumesBytesin 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:
getOptionsin 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:
getOptionsBytesin 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:
getBlockExternalNetworkin 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:
getUsernamein 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:
getUsernameBytesin 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:
getPasswordin 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:
getPasswordBytesin interfaceRunnable.ContainerOrBuilder- Returns:
- The bytes for password.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Runnable.Container.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Runnable.Container getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-