Class WorkerPoolWorkerConfig


  • public final class WorkerPoolWorkerConfig
    extends java.lang.Object
    • Method Detail

      • diskSizeGb

        public java.util.Optional<java.lang.Integer> diskSizeGb()
        Returns:
        Size of the disk attached to the worker, in GB. See (https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.
      • machineType

        public java.util.Optional<java.lang.String> machineType()
        Returns:
        Machine type of a worker, such as `n1-standard-1`. See (https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`.
      • noExternalIp

        public java.util.Optional<java.lang.Boolean> noExternalIp()
        Returns:
        If true, workers are created without any public address, which prevents network egress to public IPs.