Class Container.Builder

  • All Implemented Interfaces:
    ContainerOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Container

    public static final class Container.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
    implements ContainerOrBuilder
     A single application container.
     This specifies both the container to run, the command to run in the container
     and the arguments to supply to it.
     Note that additional arguments may be supplied by the system to the container
     at runtime.
     
    Protobuf type google.cloud.run.v2.Container
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • clear

        public Container.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • getDefaultInstanceForType

        public Container getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Container build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Container buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Container.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • setField

        public Container.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • clearField

        public Container.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • clearOneof

        public Container.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • setRepeatedField

        public Container.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • addRepeatedField

        public Container.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • mergeFrom

        public Container.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Container.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • mergeFrom

        public Container.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Container.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Name of the container specified as a DNS_LABEL (RFC 1123).
         
        string name = 1;
        Specified by:
        getName in interface ContainerOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the container specified as a DNS_LABEL (RFC 1123).
         
        string name = 1;
        Specified by:
        getNameBytes in interface ContainerOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Container.Builder setName​(String value)
         Name of the container specified as a DNS_LABEL (RFC 1123).
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Container.Builder clearName()
         Name of the container specified as a DNS_LABEL (RFC 1123).
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Container.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the container specified as a DNS_LABEL (RFC 1123).
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getImage

        public String getImage()
         Required. Name of the container image in Dockerhub, Google Artifact
         Registry, or Google Container Registry. If the host is not provided,
         Dockerhub is assumed.
         
        string image = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getImage in interface ContainerOrBuilder
        Returns:
        The image.
      • getImageBytes

        public com.google.protobuf.ByteString getImageBytes()
         Required. Name of the container image in Dockerhub, Google Artifact
         Registry, or Google Container Registry. If the host is not provided,
         Dockerhub is assumed.
         
        string image = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getImageBytes in interface ContainerOrBuilder
        Returns:
        The bytes for image.
      • setImage

        public Container.Builder setImage​(String value)
         Required. Name of the container image in Dockerhub, Google Artifact
         Registry, or Google Container Registry. If the host is not provided,
         Dockerhub is assumed.
         
        string image = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The image to set.
        Returns:
        This builder for chaining.
      • clearImage

        public Container.Builder clearImage()
         Required. Name of the container image in Dockerhub, Google Artifact
         Registry, or Google Container Registry. If the host is not provided,
         Dockerhub is assumed.
         
        string image = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setImageBytes

        public Container.Builder setImageBytes​(com.google.protobuf.ByteString value)
         Required. Name of the container image in Dockerhub, Google Artifact
         Registry, or Google Container Registry. If the host is not provided,
         Dockerhub is assumed.
         
        string image = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for image to set.
        Returns:
        This builder for chaining.
      • getCommandList

        public com.google.protobuf.ProtocolStringList getCommandList()
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Specified by:
        getCommandList in interface ContainerOrBuilder
        Returns:
        A list containing the command.
      • getCommandCount

        public int getCommandCount()
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Specified by:
        getCommandCount in interface ContainerOrBuilder
        Returns:
        The count of command.
      • getCommand

        public String getCommand​(int index)
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Specified by:
        getCommand in interface ContainerOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The command at the given index.
      • getCommandBytes

        public com.google.protobuf.ByteString getCommandBytes​(int index)
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Specified by:
        getCommandBytes in interface ContainerOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the command at the given index.
      • setCommand

        public Container.Builder setCommand​(int index,
                                            String value)
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Parameters:
        index - The index to set the value at.
        value - The command to set.
        Returns:
        This builder for chaining.
      • addCommand

        public Container.Builder addCommand​(String value)
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Parameters:
        value - The command to add.
        Returns:
        This builder for chaining.
      • addAllCommand

        public Container.Builder addAllCommand​(Iterable<String> values)
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Parameters:
        values - The command to add.
        Returns:
        This builder for chaining.
      • clearCommand

        public Container.Builder clearCommand()
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Returns:
        This builder for chaining.
      • addCommandBytes

        public Container.Builder addCommandBytes​(com.google.protobuf.ByteString value)
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Parameters:
        value - The bytes of the command to add.
        Returns:
        This builder for chaining.
      • getArgsList

        public com.google.protobuf.ProtocolStringList getArgsList()
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Specified by:
        getArgsList in interface ContainerOrBuilder
        Returns:
        A list containing the args.
      • getArgsCount

        public int getArgsCount()
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Specified by:
        getArgsCount in interface ContainerOrBuilder
        Returns:
        The count of args.
      • getArgs

        public String getArgs​(int index)
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Specified by:
        getArgs in interface ContainerOrBuilder
        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)
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Specified by:
        getArgsBytes in interface ContainerOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the args at the given index.
      • setArgs

        public Container.Builder setArgs​(int index,
                                         String value)
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Parameters:
        index - The index to set the value at.
        value - The args to set.
        Returns:
        This builder for chaining.
      • addArgs

        public Container.Builder addArgs​(String value)
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Parameters:
        value - The args to add.
        Returns:
        This builder for chaining.
      • addAllArgs

        public Container.Builder addAllArgs​(Iterable<String> values)
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Parameters:
        values - The args to add.
        Returns:
        This builder for chaining.
      • clearArgs

        public Container.Builder clearArgs()
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Returns:
        This builder for chaining.
      • addArgsBytes

        public Container.Builder addArgsBytes​(com.google.protobuf.ByteString value)
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Parameters:
        value - The bytes of the args to add.
        Returns:
        This builder for chaining.
      • getEnvList

        public List<EnvVar> getEnvList()
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
        Specified by:
        getEnvList in interface ContainerOrBuilder
      • getEnvCount

        public int getEnvCount()
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
        Specified by:
        getEnvCount in interface ContainerOrBuilder
      • getEnv

        public EnvVar getEnv​(int index)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
        Specified by:
        getEnv in interface ContainerOrBuilder
      • setEnv

        public Container.Builder setEnv​(int index,
                                        EnvVar value)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • setEnv

        public Container.Builder setEnv​(int index,
                                        EnvVar.Builder builderForValue)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • addEnv

        public Container.Builder addEnv​(EnvVar value)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • addEnv

        public Container.Builder addEnv​(int index,
                                        EnvVar value)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • addEnv

        public Container.Builder addEnv​(EnvVar.Builder builderForValue)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • addEnv

        public Container.Builder addEnv​(int index,
                                        EnvVar.Builder builderForValue)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • addAllEnv

        public Container.Builder addAllEnv​(Iterable<? extends EnvVar> values)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • clearEnv

        public Container.Builder clearEnv()
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • removeEnv

        public Container.Builder removeEnv​(int index)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • getEnvBuilder

        public EnvVar.Builder getEnvBuilder​(int index)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • addEnvBuilder

        public EnvVar.Builder addEnvBuilder()
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • addEnvBuilder

        public EnvVar.Builder addEnvBuilder​(int index)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • getEnvBuilderList

        public List<EnvVar.Builder> getEnvBuilderList()
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • hasResources

        public boolean hasResources()
         Compute Resource requirements by this container.
         
        .google.cloud.run.v2.ResourceRequirements resources = 6;
        Specified by:
        hasResources in interface ContainerOrBuilder
        Returns:
        Whether the resources field is set.
      • getResources

        public ResourceRequirements getResources()
         Compute Resource requirements by this container.
         
        .google.cloud.run.v2.ResourceRequirements resources = 6;
        Specified by:
        getResources in interface ContainerOrBuilder
        Returns:
        The resources.
      • setResources

        public Container.Builder setResources​(ResourceRequirements value)
         Compute Resource requirements by this container.
         
        .google.cloud.run.v2.ResourceRequirements resources = 6;
      • mergeResources

        public Container.Builder mergeResources​(ResourceRequirements value)
         Compute Resource requirements by this container.
         
        .google.cloud.run.v2.ResourceRequirements resources = 6;
      • clearResources

        public Container.Builder clearResources()
         Compute Resource requirements by this container.
         
        .google.cloud.run.v2.ResourceRequirements resources = 6;
      • getResourcesBuilder

        public ResourceRequirements.Builder getResourcesBuilder()
         Compute Resource requirements by this container.
         
        .google.cloud.run.v2.ResourceRequirements resources = 6;
      • getPortsList

        public List<ContainerPort> getPortsList()
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
        Specified by:
        getPortsList in interface ContainerOrBuilder
      • getPortsCount

        public int getPortsCount()
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
        Specified by:
        getPortsCount in interface ContainerOrBuilder
      • getPorts

        public ContainerPort getPorts​(int index)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
        Specified by:
        getPorts in interface ContainerOrBuilder
      • setPorts

        public Container.Builder setPorts​(int index,
                                          ContainerPort value)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • setPorts

        public Container.Builder setPorts​(int index,
                                          ContainerPort.Builder builderForValue)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • addPorts

        public Container.Builder addPorts​(ContainerPort value)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • addPorts

        public Container.Builder addPorts​(int index,
                                          ContainerPort value)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • addPorts

        public Container.Builder addPorts​(ContainerPort.Builder builderForValue)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • addPorts

        public Container.Builder addPorts​(int index,
                                          ContainerPort.Builder builderForValue)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • addAllPorts

        public Container.Builder addAllPorts​(Iterable<? extends ContainerPort> values)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • clearPorts

        public Container.Builder clearPorts()
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • removePorts

        public Container.Builder removePorts​(int index)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • getPortsBuilder

        public ContainerPort.Builder getPortsBuilder​(int index)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • getPortsOrBuilder

        public ContainerPortOrBuilder getPortsOrBuilder​(int index)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
        Specified by:
        getPortsOrBuilder in interface ContainerOrBuilder
      • getPortsOrBuilderList

        public List<? extends ContainerPortOrBuilder> getPortsOrBuilderList()
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
        Specified by:
        getPortsOrBuilderList in interface ContainerOrBuilder
      • addPortsBuilder

        public ContainerPort.Builder addPortsBuilder()
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • addPortsBuilder

        public ContainerPort.Builder addPortsBuilder​(int index)
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • getPortsBuilderList

        public List<ContainerPort.Builder> getPortsBuilderList()
         List of ports to expose from the container. Only a single port can be
         specified. The specified ports must be listening on all interfaces
         (0.0.0.0) within the container to be accessible.
        
         If omitted, a port number will be chosen and passed to the container
         through the PORT environment variable for the container to listen on.
         
        repeated .google.cloud.run.v2.ContainerPort ports = 7;
      • getVolumeMountsCount

        public int getVolumeMountsCount()
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
        Specified by:
        getVolumeMountsCount in interface ContainerOrBuilder
      • getVolumeMounts

        public VolumeMount getVolumeMounts​(int index)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
        Specified by:
        getVolumeMounts in interface ContainerOrBuilder
      • setVolumeMounts

        public Container.Builder setVolumeMounts​(int index,
                                                 VolumeMount value)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • setVolumeMounts

        public Container.Builder setVolumeMounts​(int index,
                                                 VolumeMount.Builder builderForValue)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • addVolumeMounts

        public Container.Builder addVolumeMounts​(VolumeMount value)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • addVolumeMounts

        public Container.Builder addVolumeMounts​(int index,
                                                 VolumeMount value)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • addVolumeMounts

        public Container.Builder addVolumeMounts​(VolumeMount.Builder builderForValue)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • addVolumeMounts

        public Container.Builder addVolumeMounts​(int index,
                                                 VolumeMount.Builder builderForValue)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • addAllVolumeMounts

        public Container.Builder addAllVolumeMounts​(Iterable<? extends VolumeMount> values)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • clearVolumeMounts

        public Container.Builder clearVolumeMounts()
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • removeVolumeMounts

        public Container.Builder removeVolumeMounts​(int index)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • getVolumeMountsBuilder

        public VolumeMount.Builder getVolumeMountsBuilder​(int index)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • addVolumeMountsBuilder

        public VolumeMount.Builder addVolumeMountsBuilder()
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • addVolumeMountsBuilder

        public VolumeMount.Builder addVolumeMountsBuilder​(int index)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • getVolumeMountsBuilderList

        public List<VolumeMount.Builder> getVolumeMountsBuilderList()
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • getWorkingDir

        public String getWorkingDir()
         Container's working directory.
         If not specified, the container runtime's default will be used, which
         might be configured in the container image.
         
        string working_dir = 9;
        Specified by:
        getWorkingDir in interface ContainerOrBuilder
        Returns:
        The workingDir.
      • getWorkingDirBytes

        public com.google.protobuf.ByteString getWorkingDirBytes()
         Container's working directory.
         If not specified, the container runtime's default will be used, which
         might be configured in the container image.
         
        string working_dir = 9;
        Specified by:
        getWorkingDirBytes in interface ContainerOrBuilder
        Returns:
        The bytes for workingDir.
      • setWorkingDir

        public Container.Builder setWorkingDir​(String value)
         Container's working directory.
         If not specified, the container runtime's default will be used, which
         might be configured in the container image.
         
        string working_dir = 9;
        Parameters:
        value - The workingDir to set.
        Returns:
        This builder for chaining.
      • clearWorkingDir

        public Container.Builder clearWorkingDir()
         Container's working directory.
         If not specified, the container runtime's default will be used, which
         might be configured in the container image.
         
        string working_dir = 9;
        Returns:
        This builder for chaining.
      • setWorkingDirBytes

        public Container.Builder setWorkingDirBytes​(com.google.protobuf.ByteString value)
         Container's working directory.
         If not specified, the container runtime's default will be used, which
         might be configured in the container image.
         
        string working_dir = 9;
        Parameters:
        value - The bytes for workingDir to set.
        Returns:
        This builder for chaining.
      • hasLivenessProbe

        public boolean hasLivenessProbe()
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
        Specified by:
        hasLivenessProbe in interface ContainerOrBuilder
        Returns:
        Whether the livenessProbe field is set.
      • getLivenessProbe

        public Probe getLivenessProbe()
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
        Specified by:
        getLivenessProbe in interface ContainerOrBuilder
        Returns:
        The livenessProbe.
      • setLivenessProbe

        public Container.Builder setLivenessProbe​(Probe value)
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
      • setLivenessProbe

        public Container.Builder setLivenessProbe​(Probe.Builder builderForValue)
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
      • mergeLivenessProbe

        public Container.Builder mergeLivenessProbe​(Probe value)
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
      • clearLivenessProbe

        public Container.Builder clearLivenessProbe()
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
      • getLivenessProbeBuilder

        public Probe.Builder getLivenessProbeBuilder()
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
      • getLivenessProbeOrBuilder

        public ProbeOrBuilder getLivenessProbeOrBuilder()
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
        Specified by:
        getLivenessProbeOrBuilder in interface ContainerOrBuilder
      • hasStartupProbe

        public boolean hasStartupProbe()
         Startup probe of application within the container.
         All other probes are disabled if a startup probe is provided, until it
         succeeds. Container will not be added to service endpoints if the probe
         fails.
         
        .google.cloud.run.v2.Probe startup_probe = 11;
        Specified by:
        hasStartupProbe in interface ContainerOrBuilder
        Returns:
        Whether the startupProbe field is set.
      • getStartupProbe

        public Probe getStartupProbe()
         Startup probe of application within the container.
         All other probes are disabled if a startup probe is provided, until it
         succeeds. Container will not be added to service endpoints if the probe
         fails.
         
        .google.cloud.run.v2.Probe startup_probe = 11;
        Specified by:
        getStartupProbe in interface ContainerOrBuilder
        Returns:
        The startupProbe.
      • setStartupProbe

        public Container.Builder setStartupProbe​(Probe value)
         Startup probe of application within the container.
         All other probes are disabled if a startup probe is provided, until it
         succeeds. Container will not be added to service endpoints if the probe
         fails.
         
        .google.cloud.run.v2.Probe startup_probe = 11;
      • setStartupProbe

        public Container.Builder setStartupProbe​(Probe.Builder builderForValue)
         Startup probe of application within the container.
         All other probes are disabled if a startup probe is provided, until it
         succeeds. Container will not be added to service endpoints if the probe
         fails.
         
        .google.cloud.run.v2.Probe startup_probe = 11;
      • mergeStartupProbe

        public Container.Builder mergeStartupProbe​(Probe value)
         Startup probe of application within the container.
         All other probes are disabled if a startup probe is provided, until it
         succeeds. Container will not be added to service endpoints if the probe
         fails.
         
        .google.cloud.run.v2.Probe startup_probe = 11;
      • clearStartupProbe

        public Container.Builder clearStartupProbe()
         Startup probe of application within the container.
         All other probes are disabled if a startup probe is provided, until it
         succeeds. Container will not be added to service endpoints if the probe
         fails.
         
        .google.cloud.run.v2.Probe startup_probe = 11;
      • getStartupProbeBuilder

        public Probe.Builder getStartupProbeBuilder()
         Startup probe of application within the container.
         All other probes are disabled if a startup probe is provided, until it
         succeeds. Container will not be added to service endpoints if the probe
         fails.
         
        .google.cloud.run.v2.Probe startup_probe = 11;
      • getStartupProbeOrBuilder

        public ProbeOrBuilder getStartupProbeOrBuilder()
         Startup probe of application within the container.
         All other probes are disabled if a startup probe is provided, until it
         succeeds. Container will not be added to service endpoints if the probe
         fails.
         
        .google.cloud.run.v2.Probe startup_probe = 11;
        Specified by:
        getStartupProbeOrBuilder in interface ContainerOrBuilder
      • setUnknownFields

        public final Container.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
      • mergeUnknownFields

        public final Container.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>