Package namespace.cloud.compute.v1beta
Class Compute.ContainerRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.ContainerRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.ContainerRequest.Builder>
namespace.cloud.compute.v1beta.Compute.ContainerRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Compute.ContainerRequestOrBuilder
- Enclosing class:
Compute.ContainerRequest
public static final class Compute.ContainerRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Compute.ContainerRequest.Builder>
implements Compute.ContainerRequestOrBuilder
Protobuf type
namespace.cloud.compute.v1beta.ContainerRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs(Iterable<String> values) A set of arguments to pass to the container's entrypoint.addAllEntrypoint(Iterable<String> values) If specified, overrides the image's entrypoint.addAllEnvVars(Iterable<? extends Compute.EnvironmentVariable> values) A set of environment values to be used as the container's environment.addAllExportPorts(Iterable<? extends Compute.ContainerPort> values) A set of container ports to make available through the public ingress.addAllSidecarVolumes(Iterable<? extends Compute.ContainerRequest.SidecarVolume> values) A set of volumes that get mounted into the container at the specified paths.addAllVolumes(Iterable<? extends Compute.VolumeRequest> values) A set of volumes to be attached to this container.A set of arguments to pass to the container's entrypoint.addArgsBytes(com.google.protobuf.ByteString value) A set of arguments to pass to the container's entrypoint.addEntrypoint(String value) If specified, overrides the image's entrypoint.addEntrypointBytes(com.google.protobuf.ByteString value) If specified, overrides the image's entrypoint.addEnvVars(int index, Compute.EnvironmentVariable value) A set of environment values to be used as the container's environment.addEnvVars(int index, Compute.EnvironmentVariable.Builder builderForValue) A set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.addEnvVars(Compute.EnvironmentVariable.Builder builderForValue) A set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.addEnvVarsBuilder(int index) A set of environment values to be used as the container's environment.addExportPorts(int index, Compute.ContainerPort value) A set of container ports to make available through the public ingress.addExportPorts(int index, Compute.ContainerPort.Builder builderForValue) A set of container ports to make available through the public ingress.A set of container ports to make available through the public ingress.addExportPorts(Compute.ContainerPort.Builder builderForValue) A set of container ports to make available through the public ingress.A set of container ports to make available through the public ingress.addExportPortsBuilder(int index) A set of container ports to make available through the public ingress.addSidecarVolumes(int index, Compute.ContainerRequest.SidecarVolume value) A set of volumes that get mounted into the container at the specified paths.addSidecarVolumes(int index, Compute.ContainerRequest.SidecarVolume.Builder builderForValue) A set of volumes that get mounted into the container at the specified paths.A set of volumes that get mounted into the container at the specified paths.addSidecarVolumes(Compute.ContainerRequest.SidecarVolume.Builder builderForValue) A set of volumes that get mounted into the container at the specified paths.A set of volumes that get mounted into the container at the specified paths.addSidecarVolumesBuilder(int index) A set of volumes that get mounted into the container at the specified paths.addVolumes(int index, Compute.VolumeRequest value) A set of volumes to be attached to this container.addVolumes(int index, Compute.VolumeRequest.Builder builderForValue) A set of volumes to be attached to this container.addVolumes(Compute.VolumeRequest value) A set of volumes to be attached to this container.addVolumes(Compute.VolumeRequest.Builder builderForValue) A set of volumes to be attached to this container.A set of volumes to be attached to this container.addVolumesBuilder(int index) A set of volumes to be attached to this container.build()clear()A set of arguments to pass to the container's entrypoint.If set, makes docker available to the container.If specified, overrides the image's entrypoint.A set of environment values to be used as the container's environment.A list of experimental features to enable in this container.A set of container ports to make available through the public ingress.An image reference to the container image used to back this container.The ID of a Namespace-managed image.A name of the container being created.By default containers run in a bridge network, with NAT.If set, exposes guest-managed nsc binaries at the specified path.If set, injects Namespace metadata and credentials into the container at the specified path.Run the container with all capabilities.If set, mounts available secrets at the specified path.A set of volumes that get mounted into the container at the specified paths.A set of volumes to be attached to this container.When a container terminates, the instance where it runs in will also terminate.booleanA set of environment values to be used as the container's environment.getArgs(int index) A set of arguments to pass to the container's entrypoint.com.google.protobuf.ByteStringgetArgsBytes(int index) A set of arguments to pass to the container's entrypoint.intA set of arguments to pass to the container's entrypoint.com.google.protobuf.ProtocolStringListA set of arguments to pass to the container's entrypoint.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf set, makes docker available to the container.com.google.protobuf.ByteStringIf set, makes docker available to the container.getEntrypoint(int index) If specified, overrides the image's entrypoint.com.google.protobuf.ByteStringgetEntrypointBytes(int index) If specified, overrides the image's entrypoint.intIf specified, overrides the image's entrypoint.com.google.protobuf.ProtocolStringListIf specified, overrides the image's entrypoint.Deprecated.intA set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.getEnvironmentOrDefault(String key, String defaultValue) A set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.getEnvVars(int index) A set of environment values to be used as the container's environment.getEnvVarsBuilder(int index) A set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.intA set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.getEnvVarsOrBuilder(int index) A set of environment values to be used as the container's environment.List<? extends Compute.EnvironmentVariableOrBuilder> A set of environment values to be used as the container's environment.A list of experimental features to enable in this container.A list of experimental features to enable in this container.A list of experimental features to enable in this container.getExportPorts(int index) A set of container ports to make available through the public ingress.getExportPortsBuilder(int index) A set of container ports to make available through the public ingress.A set of container ports to make available through the public ingress.intA set of container ports to make available through the public ingress.A set of container ports to make available through the public ingress.getExportPortsOrBuilder(int index) A set of container ports to make available through the public ingress.List<? extends Compute.ContainerPortOrBuilder> A set of container ports to make available through the public ingress.An image reference to the container image used to back this container.com.google.protobuf.ByteStringAn image reference to the container image used to back this container.The ID of a Namespace-managed image.com.google.protobuf.ByteStringThe ID of a Namespace-managed image.Deprecated.getName()A name of the container being created.com.google.protobuf.ByteStringA name of the container being created.By default containers run in a bridge network, with NAT.intBy default containers run in a bridge network, with NAT.If set, exposes guest-managed nsc binaries at the specified path.com.google.protobuf.ByteStringIf set, exposes guest-managed nsc binaries at the specified path.If set, injects Namespace metadata and credentials into the container at the specified path.com.google.protobuf.ByteStringIf set, injects Namespace metadata and credentials into the container at the specified path.booleanRun the container with all capabilities.If set, mounts available secrets at the specified path.com.google.protobuf.ByteStringIf set, mounts available secrets at the specified path.getSidecarVolumes(int index) A set of volumes that get mounted into the container at the specified paths.getSidecarVolumesBuilder(int index) A set of volumes that get mounted into the container at the specified paths.A set of volumes that get mounted into the container at the specified paths.intA set of volumes that get mounted into the container at the specified paths.A set of volumes that get mounted into the container at the specified paths.getSidecarVolumesOrBuilder(int index) A set of volumes that get mounted into the container at the specified paths.A set of volumes that get mounted into the container at the specified paths.getVolumes(int index) A set of volumes to be attached to this container.getVolumesBuilder(int index) A set of volumes to be attached to this container.A set of volumes to be attached to this container.intA set of volumes to be attached to this container.A set of volumes to be attached to this container.getVolumesOrBuilder(int index) A set of volumes to be attached to this container.List<? extends Compute.VolumeRequestOrBuilder> A set of volumes to be attached to this container.When a container terminates, the instance where it runs in will also terminate.intWhen a container terminates, the instance where it runs in will also terminate.booleanA list of experimental features to enable in this container.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanA list of experimental features to enable in this container.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllEnvironment(Map<String, String> values) A set of environment values to be used as the container's environment.putEnvironment(String key, String value) A set of environment values to be used as the container's environment.removeEnvironment(String key) A set of environment values to be used as the container's environment.removeEnvVars(int index) A set of environment values to be used as the container's environment.removeExportPorts(int index) A set of container ports to make available through the public ingress.removeSidecarVolumes(int index) A set of volumes that get mounted into the container at the specified paths.removeVolumes(int index) A set of volumes to be attached to this container.A set of arguments to pass to the container's entrypoint.setDockerSockPath(String value) If set, makes docker available to the container.setDockerSockPathBytes(com.google.protobuf.ByteString value) If set, makes docker available to the container.setEntrypoint(int index, String value) If specified, overrides the image's entrypoint.setEnvVars(int index, Compute.EnvironmentVariable value) A set of environment values to be used as the container's environment.setEnvVars(int index, Compute.EnvironmentVariable.Builder builderForValue) A set of environment values to be used as the container's environment.A list of experimental features to enable in this container.setExperimental(Compute.ContainerRequest.ExperimentalFeatures.Builder builderForValue) A list of experimental features to enable in this container.setExportPorts(int index, Compute.ContainerPort value) A set of container ports to make available through the public ingress.setExportPorts(int index, Compute.ContainerPort.Builder builderForValue) A set of container ports to make available through the public ingress.setImageRef(String value) An image reference to the container image used to back this container.setImageRefBytes(com.google.protobuf.ByteString value) An image reference to the container image used to back this container.setKnownImageId(String value) The ID of a Namespace-managed image.setKnownImageIdBytes(com.google.protobuf.ByteString value) The ID of a Namespace-managed image.A name of the container being created.setNameBytes(com.google.protobuf.ByteString value) A name of the container being created.By default containers run in a bridge network, with NAT.setNetworkValue(int value) By default containers run in a bridge network, with NAT.setNscBinsPath(String value) If set, exposes guest-managed nsc binaries at the specified path.setNscBinsPathBytes(com.google.protobuf.ByteString value) If set, exposes guest-managed nsc binaries at the specified path.setNscStatePath(String value) If set, injects Namespace metadata and credentials into the container at the specified path.setNscStatePathBytes(com.google.protobuf.ByteString value) If set, injects Namespace metadata and credentials into the container at the specified path.setPrivileged(boolean value) Run the container with all capabilities.setSecretsPath(String value) If set, mounts available secrets at the specified path.setSecretsPathBytes(com.google.protobuf.ByteString value) If set, mounts available secrets at the specified path.setSidecarVolumes(int index, Compute.ContainerRequest.SidecarVolume value) A set of volumes that get mounted into the container at the specified paths.setSidecarVolumes(int index, Compute.ContainerRequest.SidecarVolume.Builder builderForValue) A set of volumes that get mounted into the container at the specified paths.setVolumes(int index, Compute.VolumeRequest value) A set of volumes to be attached to this container.setVolumes(int index, Compute.VolumeRequest.Builder builderForValue) A set of volumes to be attached to this container.When a container terminates, the instance where it runs in will also terminate.setWorkloadTypeValue(int value) When a container terminates, the instance where it runs in will also terminate.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.ContainerRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Compute.ContainerRequest.Builder>
-
mergeFrom
public Compute.ContainerRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.ContainerRequest.Builder>- Throws:
IOException
-
getName
A name of the container being created. Must be unique within the instance. Must match the regular expression `[a-z0-9]([a-z0-9-]*[a-z0-9])?`.
string name = 1;- Specified by:
getNamein interfaceCompute.ContainerRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A name of the container being created. Must be unique within the instance. Must match the regular expression `[a-z0-9]([a-z0-9-]*[a-z0-9])?`.
string name = 1;- Specified by:
getNameBytesin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The bytes for name.
-
setName
A name of the container being created. Must be unique within the instance. Must match the regular expression `[a-z0-9]([a-z0-9-]*[a-z0-9])?`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
A name of the container being created. Must be unique within the instance. Must match the regular expression `[a-z0-9]([a-z0-9-]*[a-z0-9])?`.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
A name of the container being created. Must be unique within the instance. Must match the regular expression `[a-z0-9]([a-z0-9-]*[a-z0-9])?`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getImageRef
An image reference to the container image used to back this container. Ideally image references that are specified are fully resolved and "pinned", i.e. their digest is also specified. If no resolved image is provided, it is resolved during creation time, which may add latency to the creation request. Example: `ubuntu:22.04@sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf`
string image_ref = 2;- Specified by:
getImageRefin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The imageRef.
-
getImageRefBytes
public com.google.protobuf.ByteString getImageRefBytes()An image reference to the container image used to back this container. Ideally image references that are specified are fully resolved and "pinned", i.e. their digest is also specified. If no resolved image is provided, it is resolved during creation time, which may add latency to the creation request. Example: `ubuntu:22.04@sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf`
string image_ref = 2;- Specified by:
getImageRefBytesin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The bytes for imageRef.
-
setImageRef
An image reference to the container image used to back this container. Ideally image references that are specified are fully resolved and "pinned", i.e. their digest is also specified. If no resolved image is provided, it is resolved during creation time, which may add latency to the creation request. Example: `ubuntu:22.04@sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf`
string image_ref = 2;- Parameters:
value- The imageRef to set.- Returns:
- This builder for chaining.
-
clearImageRef
An image reference to the container image used to back this container. Ideally image references that are specified are fully resolved and "pinned", i.e. their digest is also specified. If no resolved image is provided, it is resolved during creation time, which may add latency to the creation request. Example: `ubuntu:22.04@sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf`
string image_ref = 2;- Returns:
- This builder for chaining.
-
setImageRefBytes
An image reference to the container image used to back this container. Ideally image references that are specified are fully resolved and "pinned", i.e. their digest is also specified. If no resolved image is provided, it is resolved during creation time, which may add latency to the creation request. Example: `ubuntu:22.04@sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf`
string image_ref = 2;- Parameters:
value- The bytes for imageRef to set.- Returns:
- This builder for chaining.
-
getKnownImageId
The ID of a Namespace-managed image. The ID is resolved to a pinned image reference during instance creation. Mutually exclusive with `image_ref`. Supported values: - `builtin:base` - `builtin:agents`
string known_image_id = 17;- Specified by:
getKnownImageIdin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The knownImageId.
-
getKnownImageIdBytes
public com.google.protobuf.ByteString getKnownImageIdBytes()The ID of a Namespace-managed image. The ID is resolved to a pinned image reference during instance creation. Mutually exclusive with `image_ref`. Supported values: - `builtin:base` - `builtin:agents`
string known_image_id = 17;- Specified by:
getKnownImageIdBytesin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The bytes for knownImageId.
-
setKnownImageId
The ID of a Namespace-managed image. The ID is resolved to a pinned image reference during instance creation. Mutually exclusive with `image_ref`. Supported values: - `builtin:base` - `builtin:agents`
string known_image_id = 17;- Parameters:
value- The knownImageId to set.- Returns:
- This builder for chaining.
-
clearKnownImageId
The ID of a Namespace-managed image. The ID is resolved to a pinned image reference during instance creation. Mutually exclusive with `image_ref`. Supported values: - `builtin:base` - `builtin:agents`
string known_image_id = 17;- Returns:
- This builder for chaining.
-
setKnownImageIdBytes
The ID of a Namespace-managed image. The ID is resolved to a pinned image reference during instance creation. Mutually exclusive with `image_ref`. Supported values: - `builtin:base` - `builtin:agents`
string known_image_id = 17;- Parameters:
value- The bytes for knownImageId to set.- Returns:
- This builder for chaining.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Specified by:
getArgsListin interfaceCompute.ContainerRequestOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Specified by:
getArgsCountin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The count of args.
-
getArgs
A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Specified by:
getArgsin interfaceCompute.ContainerRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Specified by:
getArgsBytesin interfaceCompute.ContainerRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Parameters:
index- The index to set the value at.value- The args to set.- Returns:
- This builder for chaining.
-
addArgs
A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Returns:
- This builder for chaining.
-
addArgsBytes
A set of arguments to pass to the container's entrypoint. If `entrypoint` is not set, these are passed to the image's default ENTRYPOINT. Example: `["--foobar"]`
repeated string args = 3;- Parameters:
value- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getEntrypointList
public com.google.protobuf.ProtocolStringList getEntrypointList()If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Specified by:
getEntrypointListin interfaceCompute.ContainerRequestOrBuilder- Returns:
- A list containing the entrypoint.
-
getEntrypointCount
public int getEntrypointCount()If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Specified by:
getEntrypointCountin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The count of entrypoint.
-
getEntrypoint
If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Specified by:
getEntrypointin interfaceCompute.ContainerRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The entrypoint at the given index.
-
getEntrypointBytes
public com.google.protobuf.ByteString getEntrypointBytes(int index) If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Specified by:
getEntrypointBytesin interfaceCompute.ContainerRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the entrypoint at the given index.
-
setEntrypoint
If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Parameters:
index- The index to set the value at.value- The entrypoint to set.- Returns:
- This builder for chaining.
-
addEntrypoint
If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Parameters:
value- The entrypoint to add.- Returns:
- This builder for chaining.
-
addAllEntrypoint
If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Parameters:
values- The entrypoint to add.- Returns:
- This builder for chaining.
-
clearEntrypoint
If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Returns:
- This builder for chaining.
-
addEntrypointBytes
If specified, overrides the image's entrypoint.
repeated string entrypoint = 15;- Parameters:
value- The bytes of the entrypoint to add.- Returns:
- This builder for chaining.
-
getEnvironmentCount
public int getEnvironmentCount()Description copied from interface:Compute.ContainerRequestOrBuilderA set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4;- Specified by:
getEnvironmentCountin interfaceCompute.ContainerRequestOrBuilder
-
containsEnvironment
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4;- Specified by:
containsEnvironmentin interfaceCompute.ContainerRequestOrBuilder
-
getEnvironment
Deprecated.UsegetEnvironmentMap()instead.- Specified by:
getEnvironmentin interfaceCompute.ContainerRequestOrBuilder
-
getEnvironmentMap
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4;- Specified by:
getEnvironmentMapin interfaceCompute.ContainerRequestOrBuilder
-
getEnvironmentOrDefault
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4;- Specified by:
getEnvironmentOrDefaultin interfaceCompute.ContainerRequestOrBuilder
-
getEnvironmentOrThrow
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4;- Specified by:
getEnvironmentOrThrowin interfaceCompute.ContainerRequestOrBuilder
-
clearEnvironment
-
removeEnvironment
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4; -
getMutableEnvironment
Deprecated.Use alternate mutation accessors instead. -
putEnvironment
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4; -
putAllEnvironment
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4; -
getEnvVarsList
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14;- Specified by:
getEnvVarsListin interfaceCompute.ContainerRequestOrBuilder
-
getEnvVarsCount
public int getEnvVarsCount()A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14;- Specified by:
getEnvVarsCountin interfaceCompute.ContainerRequestOrBuilder
-
getEnvVars
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14;- Specified by:
getEnvVarsin interfaceCompute.ContainerRequestOrBuilder
-
setEnvVars
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
setEnvVars
public Compute.ContainerRequest.Builder setEnvVars(int index, Compute.EnvironmentVariable.Builder builderForValue) A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
addEnvVars
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
addEnvVars
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
addEnvVars
public Compute.ContainerRequest.Builder addEnvVars(Compute.EnvironmentVariable.Builder builderForValue) A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
addEnvVars
public Compute.ContainerRequest.Builder addEnvVars(int index, Compute.EnvironmentVariable.Builder builderForValue) A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
addAllEnvVars
public Compute.ContainerRequest.Builder addAllEnvVars(Iterable<? extends Compute.EnvironmentVariable> values) A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
clearEnvVars
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
removeEnvVars
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
getEnvVarsBuilder
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
getEnvVarsOrBuilder
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14;- Specified by:
getEnvVarsOrBuilderin interfaceCompute.ContainerRequestOrBuilder
-
getEnvVarsOrBuilderList
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14;- Specified by:
getEnvVarsOrBuilderListin interfaceCompute.ContainerRequestOrBuilder
-
addEnvVarsBuilder
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
addEnvVarsBuilder
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
getEnvVarsBuilderList
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets. By default, no secrets are injected.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 14; -
getDockerSockPath
If set, makes docker available to the container. Any containers that are started by the container via the Docker API are then run as containers alongside this container, not as children. Bind mounts work across containers by using container-aware bind mount resolution. Example: `/var/run/docker.sock`
string docker_sock_path = 5;- Specified by:
getDockerSockPathin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The dockerSockPath.
-
getDockerSockPathBytes
public com.google.protobuf.ByteString getDockerSockPathBytes()If set, makes docker available to the container. Any containers that are started by the container via the Docker API are then run as containers alongside this container, not as children. Bind mounts work across containers by using container-aware bind mount resolution. Example: `/var/run/docker.sock`
string docker_sock_path = 5;- Specified by:
getDockerSockPathBytesin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The bytes for dockerSockPath.
-
setDockerSockPath
If set, makes docker available to the container. Any containers that are started by the container via the Docker API are then run as containers alongside this container, not as children. Bind mounts work across containers by using container-aware bind mount resolution. Example: `/var/run/docker.sock`
string docker_sock_path = 5;- Parameters:
value- The dockerSockPath to set.- Returns:
- This builder for chaining.
-
clearDockerSockPath
If set, makes docker available to the container. Any containers that are started by the container via the Docker API are then run as containers alongside this container, not as children. Bind mounts work across containers by using container-aware bind mount resolution. Example: `/var/run/docker.sock`
string docker_sock_path = 5;- Returns:
- This builder for chaining.
-
setDockerSockPathBytes
public Compute.ContainerRequest.Builder setDockerSockPathBytes(com.google.protobuf.ByteString value) If set, makes docker available to the container. Any containers that are started by the container via the Docker API are then run as containers alongside this container, not as children. Bind mounts work across containers by using container-aware bind mount resolution. Example: `/var/run/docker.sock`
string docker_sock_path = 5;- Parameters:
value- The bytes for dockerSockPath to set.- Returns:
- This builder for chaining.
-
getNscStatePath
If set, injects Namespace metadata and credentials into the container at the specified path. This includes the workload token and instance metadata, and sets the following environment variables: - `NSC_INSTANCE_ID`: the ID of the parent instance. - `NSC_ENDPOINT`: the regional Compute API endpoint. - `NSC_TOKEN_FILE`: path to the injected token file. Can be used to allow the container to call Namespace APIs as the instance. Example: `/var/run/nsc`
string nsc_state_path = 6;- Specified by:
getNscStatePathin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The nscStatePath.
-
getNscStatePathBytes
public com.google.protobuf.ByteString getNscStatePathBytes()If set, injects Namespace metadata and credentials into the container at the specified path. This includes the workload token and instance metadata, and sets the following environment variables: - `NSC_INSTANCE_ID`: the ID of the parent instance. - `NSC_ENDPOINT`: the regional Compute API endpoint. - `NSC_TOKEN_FILE`: path to the injected token file. Can be used to allow the container to call Namespace APIs as the instance. Example: `/var/run/nsc`
string nsc_state_path = 6;- Specified by:
getNscStatePathBytesin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The bytes for nscStatePath.
-
setNscStatePath
If set, injects Namespace metadata and credentials into the container at the specified path. This includes the workload token and instance metadata, and sets the following environment variables: - `NSC_INSTANCE_ID`: the ID of the parent instance. - `NSC_ENDPOINT`: the regional Compute API endpoint. - `NSC_TOKEN_FILE`: path to the injected token file. Can be used to allow the container to call Namespace APIs as the instance. Example: `/var/run/nsc`
string nsc_state_path = 6;- Parameters:
value- The nscStatePath to set.- Returns:
- This builder for chaining.
-
clearNscStatePath
If set, injects Namespace metadata and credentials into the container at the specified path. This includes the workload token and instance metadata, and sets the following environment variables: - `NSC_INSTANCE_ID`: the ID of the parent instance. - `NSC_ENDPOINT`: the regional Compute API endpoint. - `NSC_TOKEN_FILE`: path to the injected token file. Can be used to allow the container to call Namespace APIs as the instance. Example: `/var/run/nsc`
string nsc_state_path = 6;- Returns:
- This builder for chaining.
-
setNscStatePathBytes
If set, injects Namespace metadata and credentials into the container at the specified path. This includes the workload token and instance metadata, and sets the following environment variables: - `NSC_INSTANCE_ID`: the ID of the parent instance. - `NSC_ENDPOINT`: the regional Compute API endpoint. - `NSC_TOKEN_FILE`: path to the injected token file. Can be used to allow the container to call Namespace APIs as the instance. Example: `/var/run/nsc`
string nsc_state_path = 6;- Parameters:
value- The bytes for nscStatePath to set.- Returns:
- This builder for chaining.
-
getNscBinsPath
If set, exposes guest-managed nsc binaries at the specified path.
string nsc_bins_path = 18;- Specified by:
getNscBinsPathin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The nscBinsPath.
-
getNscBinsPathBytes
public com.google.protobuf.ByteString getNscBinsPathBytes()If set, exposes guest-managed nsc binaries at the specified path.
string nsc_bins_path = 18;- Specified by:
getNscBinsPathBytesin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The bytes for nscBinsPath.
-
setNscBinsPath
If set, exposes guest-managed nsc binaries at the specified path.
string nsc_bins_path = 18;- Parameters:
value- The nscBinsPath to set.- Returns:
- This builder for chaining.
-
clearNscBinsPath
If set, exposes guest-managed nsc binaries at the specified path.
string nsc_bins_path = 18;- Returns:
- This builder for chaining.
-
setNscBinsPathBytes
If set, exposes guest-managed nsc binaries at the specified path.
string nsc_bins_path = 18;- Parameters:
value- The bytes for nscBinsPath to set.- Returns:
- This builder for chaining.
-
getSecretsPath
If set, mounts available secrets at the specified path.
string secrets_path = 19;- Specified by:
getSecretsPathin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The secretsPath.
-
getSecretsPathBytes
public com.google.protobuf.ByteString getSecretsPathBytes()If set, mounts available secrets at the specified path.
string secrets_path = 19;- Specified by:
getSecretsPathBytesin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The bytes for secretsPath.
-
setSecretsPath
If set, mounts available secrets at the specified path.
string secrets_path = 19;- Parameters:
value- The secretsPath to set.- Returns:
- This builder for chaining.
-
clearSecretsPath
If set, mounts available secrets at the specified path.
string secrets_path = 19;- Returns:
- This builder for chaining.
-
setSecretsPathBytes
If set, mounts available secrets at the specified path.
string secrets_path = 19;- Parameters:
value- The bytes for secretsPath to set.- Returns:
- This builder for chaining.
-
getExportPortsList
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7;- Specified by:
getExportPortsListin interfaceCompute.ContainerRequestOrBuilder
-
getExportPortsCount
public int getExportPortsCount()A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7;- Specified by:
getExportPortsCountin interfaceCompute.ContainerRequestOrBuilder
-
getExportPorts
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7;- Specified by:
getExportPortsin interfaceCompute.ContainerRequestOrBuilder
-
setExportPorts
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
setExportPorts
public Compute.ContainerRequest.Builder setExportPorts(int index, Compute.ContainerPort.Builder builderForValue) A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
addExportPorts
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
addExportPorts
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
addExportPorts
public Compute.ContainerRequest.Builder addExportPorts(Compute.ContainerPort.Builder builderForValue) A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
addExportPorts
public Compute.ContainerRequest.Builder addExportPorts(int index, Compute.ContainerPort.Builder builderForValue) A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
addAllExportPorts
public Compute.ContainerRequest.Builder addAllExportPorts(Iterable<? extends Compute.ContainerPort> values) A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
clearExportPorts
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
removeExportPorts
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
getExportPortsBuilder
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
getExportPortsOrBuilder
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7;- Specified by:
getExportPortsOrBuilderin interfaceCompute.ContainerRequestOrBuilder
-
getExportPortsOrBuilderList
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7;- Specified by:
getExportPortsOrBuilderListin interfaceCompute.ContainerRequestOrBuilder
-
addExportPortsBuilder
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
addExportPortsBuilder
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
getExportPortsBuilderList
A set of container ports to make available through the public ingress.
repeated .namespace.cloud.compute.v1beta.ContainerPort export_ports = 7; -
getNetworkValue
public int getNetworkValue()By default containers run in a bridge network, with NAT. This allows containers to listen on arbitrary ports without requiring coordination. The container can be run in the instance networking by specifying `HOST`.
.namespace.cloud.compute.v1beta.ContainerRequest.Network network = 9;- Specified by:
getNetworkValuein interfaceCompute.ContainerRequestOrBuilder- Returns:
- The enum numeric value on the wire for network.
-
setNetworkValue
By default containers run in a bridge network, with NAT. This allows containers to listen on arbitrary ports without requiring coordination. The container can be run in the instance networking by specifying `HOST`.
.namespace.cloud.compute.v1beta.ContainerRequest.Network network = 9;- Parameters:
value- The enum numeric value on the wire for network to set.- Returns:
- This builder for chaining.
-
getNetwork
By default containers run in a bridge network, with NAT. This allows containers to listen on arbitrary ports without requiring coordination. The container can be run in the instance networking by specifying `HOST`.
.namespace.cloud.compute.v1beta.ContainerRequest.Network network = 9;- Specified by:
getNetworkin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The network.
-
setNetwork
By default containers run in a bridge network, with NAT. This allows containers to listen on arbitrary ports without requiring coordination. The container can be run in the instance networking by specifying `HOST`.
.namespace.cloud.compute.v1beta.ContainerRequest.Network network = 9;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
By default containers run in a bridge network, with NAT. This allows containers to listen on arbitrary ports without requiring coordination. The container can be run in the instance networking by specifying `HOST`.
.namespace.cloud.compute.v1beta.ContainerRequest.Network network = 9;- Returns:
- This builder for chaining.
-
hasExperimental
public boolean hasExperimental()A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ContainerRequest.ExperimentalFeatures experimental = 10;- Specified by:
hasExperimentalin interfaceCompute.ContainerRequestOrBuilder- Returns:
- Whether the experimental field is set.
-
getExperimental
A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ContainerRequest.ExperimentalFeatures experimental = 10;- Specified by:
getExperimentalin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The experimental.
-
setExperimental
public Compute.ContainerRequest.Builder setExperimental(Compute.ContainerRequest.ExperimentalFeatures value) A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ContainerRequest.ExperimentalFeatures experimental = 10; -
setExperimental
public Compute.ContainerRequest.Builder setExperimental(Compute.ContainerRequest.ExperimentalFeatures.Builder builderForValue) A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ContainerRequest.ExperimentalFeatures experimental = 10; -
mergeExperimental
public Compute.ContainerRequest.Builder mergeExperimental(Compute.ContainerRequest.ExperimentalFeatures value) A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ContainerRequest.ExperimentalFeatures experimental = 10; -
clearExperimental
A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ContainerRequest.ExperimentalFeatures experimental = 10; -
getExperimentalBuilder
A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ContainerRequest.ExperimentalFeatures experimental = 10; -
getExperimentalOrBuilder
A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ContainerRequest.ExperimentalFeatures experimental = 10;- Specified by:
getExperimentalOrBuilderin interfaceCompute.ContainerRequestOrBuilder
-
getPrivileged
public boolean getPrivileged()Run the container with all capabilities.
bool privileged = 11;- Specified by:
getPrivilegedin interfaceCompute.ContainerRequestOrBuilder- Returns:
- The privileged.
-
setPrivileged
Run the container with all capabilities.
bool privileged = 11;- Parameters:
value- The privileged to set.- Returns:
- This builder for chaining.
-
clearPrivileged
Run the container with all capabilities.
bool privileged = 11;- Returns:
- This builder for chaining.
-
getVolumesList
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12;- Specified by:
getVolumesListin interfaceCompute.ContainerRequestOrBuilder
-
getVolumesCount
public int getVolumesCount()A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12;- Specified by:
getVolumesCountin interfaceCompute.ContainerRequestOrBuilder
-
getVolumes
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12;- Specified by:
getVolumesin interfaceCompute.ContainerRequestOrBuilder
-
setVolumes
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
setVolumes
public Compute.ContainerRequest.Builder setVolumes(int index, Compute.VolumeRequest.Builder builderForValue) A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
addVolumes
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
addVolumes
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
addVolumes
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
addVolumes
public Compute.ContainerRequest.Builder addVolumes(int index, Compute.VolumeRequest.Builder builderForValue) A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
addAllVolumes
public Compute.ContainerRequest.Builder addAllVolumes(Iterable<? extends Compute.VolumeRequest> values) A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
clearVolumes
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
removeVolumes
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
getVolumesBuilder
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
getVolumesOrBuilder
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12;- Specified by:
getVolumesOrBuilderin interfaceCompute.ContainerRequestOrBuilder
-
getVolumesOrBuilderList
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12;- Specified by:
getVolumesOrBuilderListin interfaceCompute.ContainerRequestOrBuilder
-
addVolumesBuilder
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
addVolumesBuilder
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
getVolumesBuilderList
A set of volumes to be attached to this container.
repeated .namespace.cloud.compute.v1beta.VolumeRequest volumes = 12; -
getWorkloadTypeValue
public int getWorkloadTypeValue()When a container terminates, the instance where it runs in will also terminate. If the workload type is set to `service`, the instance will always be marked as failed, regardless of the exit code of the container.
.namespace.cloud.compute.v1beta.ContainerRequest.WorkloadType workload_type = 13;- Specified by:
getWorkloadTypeValuein interfaceCompute.ContainerRequestOrBuilder- Returns:
- The enum numeric value on the wire for workloadType.
-
setWorkloadTypeValue
When a container terminates, the instance where it runs in will also terminate. If the workload type is set to `service`, the instance will always be marked as failed, regardless of the exit code of the container.
.namespace.cloud.compute.v1beta.ContainerRequest.WorkloadType workload_type = 13;- Parameters:
value- The enum numeric value on the wire for workloadType to set.- Returns:
- This builder for chaining.
-
getWorkloadType
When a container terminates, the instance where it runs in will also terminate. If the workload type is set to `service`, the instance will always be marked as failed, regardless of the exit code of the container.
.namespace.cloud.compute.v1beta.ContainerRequest.WorkloadType workload_type = 13;- Specified by:
getWorkloadTypein interfaceCompute.ContainerRequestOrBuilder- Returns:
- The workloadType.
-
setWorkloadType
public Compute.ContainerRequest.Builder setWorkloadType(Compute.ContainerRequest.WorkloadType value) When a container terminates, the instance where it runs in will also terminate. If the workload type is set to `service`, the instance will always be marked as failed, regardless of the exit code of the container.
.namespace.cloud.compute.v1beta.ContainerRequest.WorkloadType workload_type = 13;- Parameters:
value- The workloadType to set.- Returns:
- This builder for chaining.
-
clearWorkloadType
When a container terminates, the instance where it runs in will also terminate. If the workload type is set to `service`, the instance will always be marked as failed, regardless of the exit code of the container.
.namespace.cloud.compute.v1beta.ContainerRequest.WorkloadType workload_type = 13;- Returns:
- This builder for chaining.
-
getSidecarVolumesList
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16;- Specified by:
getSidecarVolumesListin interfaceCompute.ContainerRequestOrBuilder
-
getSidecarVolumesCount
public int getSidecarVolumesCount()A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16;- Specified by:
getSidecarVolumesCountin interfaceCompute.ContainerRequestOrBuilder
-
getSidecarVolumes
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16;- Specified by:
getSidecarVolumesin interfaceCompute.ContainerRequestOrBuilder
-
setSidecarVolumes
public Compute.ContainerRequest.Builder setSidecarVolumes(int index, Compute.ContainerRequest.SidecarVolume value) A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
setSidecarVolumes
public Compute.ContainerRequest.Builder setSidecarVolumes(int index, Compute.ContainerRequest.SidecarVolume.Builder builderForValue) A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
addSidecarVolumes
public Compute.ContainerRequest.Builder addSidecarVolumes(Compute.ContainerRequest.SidecarVolume value) A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
addSidecarVolumes
public Compute.ContainerRequest.Builder addSidecarVolumes(int index, Compute.ContainerRequest.SidecarVolume value) A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
addSidecarVolumes
public Compute.ContainerRequest.Builder addSidecarVolumes(Compute.ContainerRequest.SidecarVolume.Builder builderForValue) A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
addSidecarVolumes
public Compute.ContainerRequest.Builder addSidecarVolumes(int index, Compute.ContainerRequest.SidecarVolume.Builder builderForValue) A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
addAllSidecarVolumes
public Compute.ContainerRequest.Builder addAllSidecarVolumes(Iterable<? extends Compute.ContainerRequest.SidecarVolume> values) A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
clearSidecarVolumes
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
removeSidecarVolumes
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
getSidecarVolumesBuilder
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
getSidecarVolumesOrBuilder
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16;- Specified by:
getSidecarVolumesOrBuilderin interfaceCompute.ContainerRequestOrBuilder
-
getSidecarVolumesOrBuilderList
public List<? extends Compute.ContainerRequest.SidecarVolumeOrBuilder> getSidecarVolumesOrBuilderList()A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16;- Specified by:
getSidecarVolumesOrBuilderListin interfaceCompute.ContainerRequestOrBuilder
-
addSidecarVolumesBuilder
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
addSidecarVolumesBuilder
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16; -
getSidecarVolumesBuilderList
A set of volumes that get mounted into the container at the specified paths. These volumes are always read-only.
repeated .namespace.cloud.compute.v1beta.ContainerRequest.SidecarVolume sidecar_volumes = 16;
-