Interface ContainerOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Container, Container.Builder

    public interface ContainerOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getName

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

        com.google.protobuf.ByteString getNameBytes()
         Name of the container specified as a DNS_LABEL (RFC 1123).
         
        string name = 1;
        Returns:
        The bytes for name.
      • getImage

        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];
        Returns:
        The image.
      • getImageBytes

        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];
        Returns:
        The bytes for image.
      • getCommandList

        List<String> getCommandList()
         Entrypoint array. Not executed within a shell.
         The docker image's ENTRYPOINT is used if this is not provided.
         
        repeated string command = 3;
        Returns:
        A list containing the command.
      • getCommandCount

        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;
        Returns:
        The count of command.
      • getCommand

        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;
        Parameters:
        index - The index of the element to return.
        Returns:
        The command at the given index.
      • getCommandBytes

        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;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the command at the given index.
      • getArgsList

        List<String> getArgsList()
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Returns:
        A list containing the args.
      • getArgsCount

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

        String getArgs​(int index)
         Arguments to the entrypoint.
         The docker image's CMD is used if this is not provided.
         
        repeated string args = 4;
        Parameters:
        index - The index of the element to return.
        Returns:
        The args at the given index.
      • getArgsBytes

        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;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the args at the given index.
      • getEnvList

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

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

        int getEnvCount()
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • getEnvOrBuilderList

        List<? extends EnvVarOrBuilder> getEnvOrBuilderList()
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • getEnvOrBuilder

        EnvVarOrBuilder getEnvOrBuilder​(int index)
         List of environment variables to set in the container.
         
        repeated .google.cloud.run.v2.EnvVar env = 5;
      • hasResources

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

        ResourceRequirements getResources()
         Compute Resource requirements by this container.
         
        .google.cloud.run.v2.ResourceRequirements resources = 6;
        Returns:
        The resources.
      • getResourcesOrBuilder

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

        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;
      • getPorts

        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;
      • getPortsCount

        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;
      • getPortsOrBuilderList

        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;
      • getPortsOrBuilder

        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;
      • getVolumeMountsList

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

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

        int getVolumeMountsCount()
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • getVolumeMountsOrBuilderList

        List<? extends VolumeMountOrBuilder> getVolumeMountsOrBuilderList()
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • getVolumeMountsOrBuilder

        VolumeMountOrBuilder getVolumeMountsOrBuilder​(int index)
         Volume to mount into the container's filesystem.
         
        repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
      • getWorkingDir

        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;
        Returns:
        The workingDir.
      • getWorkingDirBytes

        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;
        Returns:
        The bytes for workingDir.
      • hasLivenessProbe

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

        Probe getLivenessProbe()
         Periodic probe of container liveness.
         Container will be restarted if the probe fails.
         
        .google.cloud.run.v2.Probe liveness_probe = 10;
        Returns:
        The livenessProbe.
      • getLivenessProbeOrBuilder

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

        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;
        Returns:
        Whether the startupProbe field is set.
      • getStartupProbe

        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;
        Returns:
        The startupProbe.
      • getStartupProbeOrBuilder

        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;