Class BuildStep.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildStep.Builder>
com.google.cloudbuild.v1.BuildStep.Builder
All Implemented Interfaces:
BuildStepOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BuildStep

public static final class BuildStep.Builder extends com.google.protobuf.GeneratedMessage.Builder<BuildStep.Builder> implements BuildStepOrBuilder
 A step in the build pipeline.
 
Protobuf type google.devtools.cloudbuild.v1.BuildStep
  • Method Details

    • getDescriptor

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

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

      public BuildStep.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.GeneratedMessage.Builder<BuildStep.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.GeneratedMessage.Builder<BuildStep.Builder>
    • getDefaultInstanceForType

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

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

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

      public BuildStep.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<BuildStep.Builder>
    • mergeFrom

      public BuildStep.Builder mergeFrom(BuildStep other)
    • isInitialized

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

      public BuildStep.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<BuildStep.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The name of the container image that will run this particular
       build step.
      
       If the image is available in the host's Docker daemon's cache, it
       will be run directly. If not, the host will attempt to pull the image
       first, using the builder service account's credentials if necessary.
      
       The Docker daemon's cache will already have the latest versions of all of
       the officially supported build steps
       ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
       The Docker daemon will also have cached many of the layers for some popular
       images, like "ubuntu", "debian", but they will be refreshed at the time you
       attempt to use them.
      
       If you built an image in a previous build step, it will be stored in the
       host's Docker daemon's cache and is available to use as the name for a
       later build step.
       
      string name = 1;
      Specified by:
      getName in interface BuildStepOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the container image that will run this particular
       build step.
      
       If the image is available in the host's Docker daemon's cache, it
       will be run directly. If not, the host will attempt to pull the image
       first, using the builder service account's credentials if necessary.
      
       The Docker daemon's cache will already have the latest versions of all of
       the officially supported build steps
       ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
       The Docker daemon will also have cached many of the layers for some popular
       images, like "ubuntu", "debian", but they will be refreshed at the time you
       attempt to use them.
      
       If you built an image in a previous build step, it will be stored in the
       host's Docker daemon's cache and is available to use as the name for a
       later build step.
       
      string name = 1;
      Specified by:
      getNameBytes in interface BuildStepOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BuildStep.Builder setName(String value)
       Required. The name of the container image that will run this particular
       build step.
      
       If the image is available in the host's Docker daemon's cache, it
       will be run directly. If not, the host will attempt to pull the image
       first, using the builder service account's credentials if necessary.
      
       The Docker daemon's cache will already have the latest versions of all of
       the officially supported build steps
       ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
       The Docker daemon will also have cached many of the layers for some popular
       images, like "ubuntu", "debian", but they will be refreshed at the time you
       attempt to use them.
      
       If you built an image in a previous build step, it will be stored in the
       host's Docker daemon's cache and is available to use as the name for a
       later build step.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BuildStep.Builder clearName()
       Required. The name of the container image that will run this particular
       build step.
      
       If the image is available in the host's Docker daemon's cache, it
       will be run directly. If not, the host will attempt to pull the image
       first, using the builder service account's credentials if necessary.
      
       The Docker daemon's cache will already have the latest versions of all of
       the officially supported build steps
       ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
       The Docker daemon will also have cached many of the layers for some popular
       images, like "ubuntu", "debian", but they will be refreshed at the time you
       attempt to use them.
      
       If you built an image in a previous build step, it will be stored in the
       host's Docker daemon's cache and is available to use as the name for a
       later build step.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public BuildStep.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the container image that will run this particular
       build step.
      
       If the image is available in the host's Docker daemon's cache, it
       will be run directly. If not, the host will attempt to pull the image
       first, using the builder service account's credentials if necessary.
      
       The Docker daemon's cache will already have the latest versions of all of
       the officially supported build steps
       ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
       The Docker daemon will also have cached many of the layers for some popular
       images, like "ubuntu", "debian", but they will be refreshed at the time you
       attempt to use them.
      
       If you built an image in a previous build step, it will be stored in the
       host's Docker daemon's cache and is available to use as the name for a
       later build step.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getEnvList

      public com.google.protobuf.ProtocolStringList getEnvList()
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Specified by:
      getEnvList in interface BuildStepOrBuilder
      Returns:
      A list containing the env.
    • getEnvCount

      public int getEnvCount()
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Specified by:
      getEnvCount in interface BuildStepOrBuilder
      Returns:
      The count of env.
    • getEnv

      public String getEnv(int index)
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Specified by:
      getEnv in interface BuildStepOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The env at the given index.
    • getEnvBytes

      public com.google.protobuf.ByteString getEnvBytes(int index)
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Specified by:
      getEnvBytes in interface BuildStepOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the env at the given index.
    • setEnv

      public BuildStep.Builder setEnv(int index, String value)
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Parameters:
      index - The index to set the value at.
      value - The env to set.
      Returns:
      This builder for chaining.
    • addEnv

      public BuildStep.Builder addEnv(String value)
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Parameters:
      value - The env to add.
      Returns:
      This builder for chaining.
    • addAllEnv

      public BuildStep.Builder addAllEnv(Iterable<String> values)
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Parameters:
      values - The env to add.
      Returns:
      This builder for chaining.
    • clearEnv

      public BuildStep.Builder clearEnv()
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Returns:
      This builder for chaining.
    • addEnvBytes

      public BuildStep.Builder addEnvBytes(com.google.protobuf.ByteString value)
       A list of environment variable definitions to be used when running a step.
      
       The elements are of the form "KEY=VALUE" for the environment variable "KEY"
       being given the value "VALUE".
       
      repeated string env = 2;
      Parameters:
      value - The bytes of the env to add.
      Returns:
      This builder for chaining.
    • getArgsList

      public com.google.protobuf.ProtocolStringList getArgsList()
       A list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Specified by:
      getArgsList in interface BuildStepOrBuilder
      Returns:
      A list containing the args.
    • getArgsCount

      public int getArgsCount()
       A list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Specified by:
      getArgsCount in interface BuildStepOrBuilder
      Returns:
      The count of args.
    • getArgs

      public String getArgs(int index)
       A list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Specified by:
      getArgs in interface BuildStepOrBuilder
      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 list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Specified by:
      getArgsBytes in interface BuildStepOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the args at the given index.
    • setArgs

      public BuildStep.Builder setArgs(int index, String value)
       A list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Parameters:
      index - The index to set the value at.
      value - The args to set.
      Returns:
      This builder for chaining.
    • addArgs

      public BuildStep.Builder addArgs(String value)
       A list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Parameters:
      value - The args to add.
      Returns:
      This builder for chaining.
    • addAllArgs

      public BuildStep.Builder addAllArgs(Iterable<String> values)
       A list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Parameters:
      values - The args to add.
      Returns:
      This builder for chaining.
    • clearArgs

      public BuildStep.Builder clearArgs()
       A list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Returns:
      This builder for chaining.
    • addArgsBytes

      public BuildStep.Builder addArgsBytes(com.google.protobuf.ByteString value)
       A list of arguments that will be presented to the step when it is started.
      
       If the image used to run the step's container has an entrypoint, the `args`
       are used as arguments to that entrypoint. If the image does not define
       an entrypoint, the first element in args is used as the entrypoint,
       and the remainder will be used as arguments.
       
      repeated string args = 3;
      Parameters:
      value - The bytes of the args to add.
      Returns:
      This builder for chaining.
    • getDir

      public String getDir()
       Working directory to use when running this step's container.
      
       If this value is a relative path, it is relative to the build's working
       directory. If this value is absolute, it may be outside the build's working
       directory, in which case the contents of the path may not be persisted
       across build step executions, unless a `volume` for that path is specified.
      
       If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
       which specifies an absolute path, the `RepoSource` `dir` is ignored for
       the step's execution.
       
      string dir = 4;
      Specified by:
      getDir in interface BuildStepOrBuilder
      Returns:
      The dir.
    • getDirBytes

      public com.google.protobuf.ByteString getDirBytes()
       Working directory to use when running this step's container.
      
       If this value is a relative path, it is relative to the build's working
       directory. If this value is absolute, it may be outside the build's working
       directory, in which case the contents of the path may not be persisted
       across build step executions, unless a `volume` for that path is specified.
      
       If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
       which specifies an absolute path, the `RepoSource` `dir` is ignored for
       the step's execution.
       
      string dir = 4;
      Specified by:
      getDirBytes in interface BuildStepOrBuilder
      Returns:
      The bytes for dir.
    • setDir

      public BuildStep.Builder setDir(String value)
       Working directory to use when running this step's container.
      
       If this value is a relative path, it is relative to the build's working
       directory. If this value is absolute, it may be outside the build's working
       directory, in which case the contents of the path may not be persisted
       across build step executions, unless a `volume` for that path is specified.
      
       If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
       which specifies an absolute path, the `RepoSource` `dir` is ignored for
       the step's execution.
       
      string dir = 4;
      Parameters:
      value - The dir to set.
      Returns:
      This builder for chaining.
    • clearDir

      public BuildStep.Builder clearDir()
       Working directory to use when running this step's container.
      
       If this value is a relative path, it is relative to the build's working
       directory. If this value is absolute, it may be outside the build's working
       directory, in which case the contents of the path may not be persisted
       across build step executions, unless a `volume` for that path is specified.
      
       If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
       which specifies an absolute path, the `RepoSource` `dir` is ignored for
       the step's execution.
       
      string dir = 4;
      Returns:
      This builder for chaining.
    • setDirBytes

      public BuildStep.Builder setDirBytes(com.google.protobuf.ByteString value)
       Working directory to use when running this step's container.
      
       If this value is a relative path, it is relative to the build's working
       directory. If this value is absolute, it may be outside the build's working
       directory, in which case the contents of the path may not be persisted
       across build step executions, unless a `volume` for that path is specified.
      
       If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
       which specifies an absolute path, the `RepoSource` `dir` is ignored for
       the step's execution.
       
      string dir = 4;
      Parameters:
      value - The bytes for dir to set.
      Returns:
      This builder for chaining.
    • getId

      public String getId()
       Unique identifier for this build step, used in `wait_for` to
       reference this build step as a dependency.
       
      string id = 5;
      Specified by:
      getId in interface BuildStepOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Unique identifier for this build step, used in `wait_for` to
       reference this build step as a dependency.
       
      string id = 5;
      Specified by:
      getIdBytes in interface BuildStepOrBuilder
      Returns:
      The bytes for id.
    • setId

      public BuildStep.Builder setId(String value)
       Unique identifier for this build step, used in `wait_for` to
       reference this build step as a dependency.
       
      string id = 5;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public BuildStep.Builder clearId()
       Unique identifier for this build step, used in `wait_for` to
       reference this build step as a dependency.
       
      string id = 5;
      Returns:
      This builder for chaining.
    • setIdBytes

      public BuildStep.Builder setIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for this build step, used in `wait_for` to
       reference this build step as a dependency.
       
      string id = 5;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getWaitForList

      public com.google.protobuf.ProtocolStringList getWaitForList()
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Specified by:
      getWaitForList in interface BuildStepOrBuilder
      Returns:
      A list containing the waitFor.
    • getWaitForCount

      public int getWaitForCount()
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Specified by:
      getWaitForCount in interface BuildStepOrBuilder
      Returns:
      The count of waitFor.
    • getWaitFor

      public String getWaitFor(int index)
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Specified by:
      getWaitFor in interface BuildStepOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The waitFor at the given index.
    • getWaitForBytes

      public com.google.protobuf.ByteString getWaitForBytes(int index)
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Specified by:
      getWaitForBytes in interface BuildStepOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the waitFor at the given index.
    • setWaitFor

      public BuildStep.Builder setWaitFor(int index, String value)
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Parameters:
      index - The index to set the value at.
      value - The waitFor to set.
      Returns:
      This builder for chaining.
    • addWaitFor

      public BuildStep.Builder addWaitFor(String value)
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Parameters:
      value - The waitFor to add.
      Returns:
      This builder for chaining.
    • addAllWaitFor

      public BuildStep.Builder addAllWaitFor(Iterable<String> values)
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Parameters:
      values - The waitFor to add.
      Returns:
      This builder for chaining.
    • clearWaitFor

      public BuildStep.Builder clearWaitFor()
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Returns:
      This builder for chaining.
    • addWaitForBytes

      public BuildStep.Builder addWaitForBytes(com.google.protobuf.ByteString value)
       The ID(s) of the step(s) that this build step depends on.
       This build step will not start until all the build steps in `wait_for`
       have completed successfully. If `wait_for` is empty, this build step will
       start when all previous build steps in the `Build.Steps` list have
       completed successfully.
       
      repeated string wait_for = 6;
      Parameters:
      value - The bytes of the waitFor to add.
      Returns:
      This builder for chaining.
    • getEntrypoint

      public String getEntrypoint()
       Entrypoint to be used instead of the build step image's default entrypoint.
       If unset, the image's default entrypoint is used.
       
      string entrypoint = 7;
      Specified by:
      getEntrypoint in interface BuildStepOrBuilder
      Returns:
      The entrypoint.
    • getEntrypointBytes

      public com.google.protobuf.ByteString getEntrypointBytes()
       Entrypoint to be used instead of the build step image's default entrypoint.
       If unset, the image's default entrypoint is used.
       
      string entrypoint = 7;
      Specified by:
      getEntrypointBytes in interface BuildStepOrBuilder
      Returns:
      The bytes for entrypoint.
    • setEntrypoint

      public BuildStep.Builder setEntrypoint(String value)
       Entrypoint to be used instead of the build step image's default entrypoint.
       If unset, the image's default entrypoint is used.
       
      string entrypoint = 7;
      Parameters:
      value - The entrypoint to set.
      Returns:
      This builder for chaining.
    • clearEntrypoint

      public BuildStep.Builder clearEntrypoint()
       Entrypoint to be used instead of the build step image's default entrypoint.
       If unset, the image's default entrypoint is used.
       
      string entrypoint = 7;
      Returns:
      This builder for chaining.
    • setEntrypointBytes

      public BuildStep.Builder setEntrypointBytes(com.google.protobuf.ByteString value)
       Entrypoint to be used instead of the build step image's default entrypoint.
       If unset, the image's default entrypoint is used.
       
      string entrypoint = 7;
      Parameters:
      value - The bytes for entrypoint to set.
      Returns:
      This builder for chaining.
    • getSecretEnvList

      public com.google.protobuf.ProtocolStringList getSecretEnvList()
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Specified by:
      getSecretEnvList in interface BuildStepOrBuilder
      Returns:
      A list containing the secretEnv.
    • getSecretEnvCount

      public int getSecretEnvCount()
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Specified by:
      getSecretEnvCount in interface BuildStepOrBuilder
      Returns:
      The count of secretEnv.
    • getSecretEnv

      public String getSecretEnv(int index)
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Specified by:
      getSecretEnv in interface BuildStepOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The secretEnv at the given index.
    • getSecretEnvBytes

      public com.google.protobuf.ByteString getSecretEnvBytes(int index)
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Specified by:
      getSecretEnvBytes in interface BuildStepOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the secretEnv at the given index.
    • setSecretEnv

      public BuildStep.Builder setSecretEnv(int index, String value)
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Parameters:
      index - The index to set the value at.
      value - The secretEnv to set.
      Returns:
      This builder for chaining.
    • addSecretEnv

      public BuildStep.Builder addSecretEnv(String value)
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Parameters:
      value - The secretEnv to add.
      Returns:
      This builder for chaining.
    • addAllSecretEnv

      public BuildStep.Builder addAllSecretEnv(Iterable<String> values)
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Parameters:
      values - The secretEnv to add.
      Returns:
      This builder for chaining.
    • clearSecretEnv

      public BuildStep.Builder clearSecretEnv()
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Returns:
      This builder for chaining.
    • addSecretEnvBytes

      public BuildStep.Builder addSecretEnvBytes(com.google.protobuf.ByteString value)
       A list of environment variables which are encrypted using a Cloud Key
       Management Service crypto key. These values must be specified in the
       build's `Secret`.
       
      repeated string secret_env = 8;
      Parameters:
      value - The bytes of the secretEnv to add.
      Returns:
      This builder for chaining.
    • getVolumesList

      public List<Volume> getVolumesList()
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
      Specified by:
      getVolumesList in interface BuildStepOrBuilder
    • getVolumesCount

      public int getVolumesCount()
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
      Specified by:
      getVolumesCount in interface BuildStepOrBuilder
    • getVolumes

      public Volume getVolumes(int index)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
      Specified by:
      getVolumes in interface BuildStepOrBuilder
    • setVolumes

      public BuildStep.Builder setVolumes(int index, Volume value)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • setVolumes

      public BuildStep.Builder setVolumes(int index, Volume.Builder builderForValue)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • addVolumes

      public BuildStep.Builder addVolumes(Volume value)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • addVolumes

      public BuildStep.Builder addVolumes(int index, Volume value)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • addVolumes

      public BuildStep.Builder addVolumes(Volume.Builder builderForValue)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • addVolumes

      public BuildStep.Builder addVolumes(int index, Volume.Builder builderForValue)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • addAllVolumes

      public BuildStep.Builder addAllVolumes(Iterable<? extends Volume> values)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • clearVolumes

      public BuildStep.Builder clearVolumes()
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • removeVolumes

      public BuildStep.Builder removeVolumes(int index)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • getVolumesBuilder

      public Volume.Builder getVolumesBuilder(int index)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • getVolumesOrBuilder

      public VolumeOrBuilder getVolumesOrBuilder(int index)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
      Specified by:
      getVolumesOrBuilder in interface BuildStepOrBuilder
    • getVolumesOrBuilderList

      public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
      Specified by:
      getVolumesOrBuilderList in interface BuildStepOrBuilder
    • addVolumesBuilder

      public Volume.Builder addVolumesBuilder()
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • addVolumesBuilder

      public Volume.Builder addVolumesBuilder(int index)
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • getVolumesBuilderList

      public List<Volume.Builder> getVolumesBuilderList()
       List of volumes to mount into the build step.
      
       Each volume is created as an empty volume prior to execution of the
       build step. Upon completion of the build, volumes and their contents are
       discarded.
      
       Using a named volume in only one step is not valid as it is indicative
       of a build request with an incorrect configuration.
       
      repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;
    • hasTiming

      public boolean hasTiming()
       Output only. Stores timing information for executing this build step.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTiming in interface BuildStepOrBuilder
      Returns:
      Whether the timing field is set.
    • getTiming

      public TimeSpan getTiming()
       Output only. Stores timing information for executing this build step.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTiming in interface BuildStepOrBuilder
      Returns:
      The timing.
    • setTiming

      public BuildStep.Builder setTiming(TimeSpan value)
       Output only. Stores timing information for executing this build step.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setTiming

      public BuildStep.Builder setTiming(TimeSpan.Builder builderForValue)
       Output only. Stores timing information for executing this build step.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeTiming

      public BuildStep.Builder mergeTiming(TimeSpan value)
       Output only. Stores timing information for executing this build step.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearTiming

      public BuildStep.Builder clearTiming()
       Output only. Stores timing information for executing this build step.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTimingBuilder

      public TimeSpan.Builder getTimingBuilder()
       Output only. Stores timing information for executing this build step.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTimingOrBuilder

      public TimeSpanOrBuilder getTimingOrBuilder()
       Output only. Stores timing information for executing this build step.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTimingOrBuilder in interface BuildStepOrBuilder
    • hasPullTiming

      public boolean hasPullTiming()
       Output only. Stores timing information for pulling this build step's
       builder image only.
       
      .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPullTiming in interface BuildStepOrBuilder
      Returns:
      Whether the pullTiming field is set.
    • getPullTiming

      public TimeSpan getPullTiming()
       Output only. Stores timing information for pulling this build step's
       builder image only.
       
      .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPullTiming in interface BuildStepOrBuilder
      Returns:
      The pullTiming.
    • setPullTiming

      public BuildStep.Builder setPullTiming(TimeSpan value)
       Output only. Stores timing information for pulling this build step's
       builder image only.
       
      .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPullTiming

      public BuildStep.Builder setPullTiming(TimeSpan.Builder builderForValue)
       Output only. Stores timing information for pulling this build step's
       builder image only.
       
      .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePullTiming

      public BuildStep.Builder mergePullTiming(TimeSpan value)
       Output only. Stores timing information for pulling this build step's
       builder image only.
       
      .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPullTiming

      public BuildStep.Builder clearPullTiming()
       Output only. Stores timing information for pulling this build step's
       builder image only.
       
      .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPullTimingBuilder

      public TimeSpan.Builder getPullTimingBuilder()
       Output only. Stores timing information for pulling this build step's
       builder image only.
       
      .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPullTimingOrBuilder

      public TimeSpanOrBuilder getPullTimingOrBuilder()
       Output only. Stores timing information for pulling this build step's
       builder image only.
       
      .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPullTimingOrBuilder in interface BuildStepOrBuilder
    • hasTimeout

      public boolean hasTimeout()
       Time limit for executing this build step. If not defined, the step has no
       time limit and will be allowed to continue to run until either it completes
       or the build itself times out.
       
      .google.protobuf.Duration timeout = 11;
      Specified by:
      hasTimeout in interface BuildStepOrBuilder
      Returns:
      Whether the timeout field is set.
    • getTimeout

      public com.google.protobuf.Duration getTimeout()
       Time limit for executing this build step. If not defined, the step has no
       time limit and will be allowed to continue to run until either it completes
       or the build itself times out.
       
      .google.protobuf.Duration timeout = 11;
      Specified by:
      getTimeout in interface BuildStepOrBuilder
      Returns:
      The timeout.
    • setTimeout

      public BuildStep.Builder setTimeout(com.google.protobuf.Duration value)
       Time limit for executing this build step. If not defined, the step has no
       time limit and will be allowed to continue to run until either it completes
       or the build itself times out.
       
      .google.protobuf.Duration timeout = 11;
    • setTimeout

      public BuildStep.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Time limit for executing this build step. If not defined, the step has no
       time limit and will be allowed to continue to run until either it completes
       or the build itself times out.
       
      .google.protobuf.Duration timeout = 11;
    • mergeTimeout

      public BuildStep.Builder mergeTimeout(com.google.protobuf.Duration value)
       Time limit for executing this build step. If not defined, the step has no
       time limit and will be allowed to continue to run until either it completes
       or the build itself times out.
       
      .google.protobuf.Duration timeout = 11;
    • clearTimeout

      public BuildStep.Builder clearTimeout()
       Time limit for executing this build step. If not defined, the step has no
       time limit and will be allowed to continue to run until either it completes
       or the build itself times out.
       
      .google.protobuf.Duration timeout = 11;
    • getTimeoutBuilder

      public com.google.protobuf.Duration.Builder getTimeoutBuilder()
       Time limit for executing this build step. If not defined, the step has no
       time limit and will be allowed to continue to run until either it completes
       or the build itself times out.
       
      .google.protobuf.Duration timeout = 11;
    • getTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
       Time limit for executing this build step. If not defined, the step has no
       time limit and will be allowed to continue to run until either it completes
       or the build itself times out.
       
      .google.protobuf.Duration timeout = 11;
      Specified by:
      getTimeoutOrBuilder in interface BuildStepOrBuilder
    • getStatusValue

      public int getStatusValue()
       Output only. Status of the build step. At this time, build step status is
       only updated on build completion; step status is not updated in real-time
       as the build progresses.
       
      .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface BuildStepOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public BuildStep.Builder setStatusValue(int value)
       Output only. Status of the build step. At this time, build step status is
       only updated on build completion; step status is not updated in real-time
       as the build progresses.
       
      .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public Build.Status getStatus()
       Output only. Status of the build step. At this time, build step status is
       only updated on build completion; step status is not updated in real-time
       as the build progresses.
       
      .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface BuildStepOrBuilder
      Returns:
      The status.
    • setStatus

      public BuildStep.Builder setStatus(Build.Status value)
       Output only. Status of the build step. At this time, build step status is
       only updated on build completion; step status is not updated in real-time
       as the build progresses.
       
      .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public BuildStep.Builder clearStatus()
       Output only. Status of the build step. At this time, build step status is
       only updated on build completion; step status is not updated in real-time
       as the build progresses.
       
      .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAllowFailure

      public boolean getAllowFailure()
       Allow this build step to fail without failing the entire build.
      
       If false, the entire build will fail if this step fails. Otherwise, the
       build will succeed, but this step will still have a failure status.
       Error information will be reported in the failure_detail field.
       
      bool allow_failure = 14;
      Specified by:
      getAllowFailure in interface BuildStepOrBuilder
      Returns:
      The allowFailure.
    • setAllowFailure

      public BuildStep.Builder setAllowFailure(boolean value)
       Allow this build step to fail without failing the entire build.
      
       If false, the entire build will fail if this step fails. Otherwise, the
       build will succeed, but this step will still have a failure status.
       Error information will be reported in the failure_detail field.
       
      bool allow_failure = 14;
      Parameters:
      value - The allowFailure to set.
      Returns:
      This builder for chaining.
    • clearAllowFailure

      public BuildStep.Builder clearAllowFailure()
       Allow this build step to fail without failing the entire build.
      
       If false, the entire build will fail if this step fails. Otherwise, the
       build will succeed, but this step will still have a failure status.
       Error information will be reported in the failure_detail field.
       
      bool allow_failure = 14;
      Returns:
      This builder for chaining.
    • getExitCode

      public int getExitCode()
       Output only. Return code from running the step.
       
      int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExitCode in interface BuildStepOrBuilder
      Returns:
      The exitCode.
    • setExitCode

      public BuildStep.Builder setExitCode(int value)
       Output only. Return code from running the step.
       
      int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The exitCode to set.
      Returns:
      This builder for chaining.
    • clearExitCode

      public BuildStep.Builder clearExitCode()
       Output only. Return code from running the step.
       
      int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAllowExitCodesList

      public List<Integer> getAllowExitCodesList()
       Allow this build step to fail without failing the entire build if and
       only if the exit code is one of the specified codes. If allow_failure
       is also specified, this field will take precedence.
       
      repeated int32 allow_exit_codes = 18;
      Specified by:
      getAllowExitCodesList in interface BuildStepOrBuilder
      Returns:
      A list containing the allowExitCodes.
    • getAllowExitCodesCount

      public int getAllowExitCodesCount()
       Allow this build step to fail without failing the entire build if and
       only if the exit code is one of the specified codes. If allow_failure
       is also specified, this field will take precedence.
       
      repeated int32 allow_exit_codes = 18;
      Specified by:
      getAllowExitCodesCount in interface BuildStepOrBuilder
      Returns:
      The count of allowExitCodes.
    • getAllowExitCodes

      public int getAllowExitCodes(int index)
       Allow this build step to fail without failing the entire build if and
       only if the exit code is one of the specified codes. If allow_failure
       is also specified, this field will take precedence.
       
      repeated int32 allow_exit_codes = 18;
      Specified by:
      getAllowExitCodes in interface BuildStepOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowExitCodes at the given index.
    • setAllowExitCodes

      public BuildStep.Builder setAllowExitCodes(int index, int value)
       Allow this build step to fail without failing the entire build if and
       only if the exit code is one of the specified codes. If allow_failure
       is also specified, this field will take precedence.
       
      repeated int32 allow_exit_codes = 18;
      Parameters:
      index - The index to set the value at.
      value - The allowExitCodes to set.
      Returns:
      This builder for chaining.
    • addAllowExitCodes

      public BuildStep.Builder addAllowExitCodes(int value)
       Allow this build step to fail without failing the entire build if and
       only if the exit code is one of the specified codes. If allow_failure
       is also specified, this field will take precedence.
       
      repeated int32 allow_exit_codes = 18;
      Parameters:
      value - The allowExitCodes to add.
      Returns:
      This builder for chaining.
    • addAllAllowExitCodes

      public BuildStep.Builder addAllAllowExitCodes(Iterable<? extends Integer> values)
       Allow this build step to fail without failing the entire build if and
       only if the exit code is one of the specified codes. If allow_failure
       is also specified, this field will take precedence.
       
      repeated int32 allow_exit_codes = 18;
      Parameters:
      values - The allowExitCodes to add.
      Returns:
      This builder for chaining.
    • clearAllowExitCodes

      public BuildStep.Builder clearAllowExitCodes()
       Allow this build step to fail without failing the entire build if and
       only if the exit code is one of the specified codes. If allow_failure
       is also specified, this field will take precedence.
       
      repeated int32 allow_exit_codes = 18;
      Returns:
      This builder for chaining.
    • getScript

      public String getScript()
       A shell script to be executed in the step.
      
       When script is provided, the user cannot specify the entrypoint or args.
       
      string script = 19;
      Specified by:
      getScript in interface BuildStepOrBuilder
      Returns:
      The script.
    • getScriptBytes

      public com.google.protobuf.ByteString getScriptBytes()
       A shell script to be executed in the step.
      
       When script is provided, the user cannot specify the entrypoint or args.
       
      string script = 19;
      Specified by:
      getScriptBytes in interface BuildStepOrBuilder
      Returns:
      The bytes for script.
    • setScript

      public BuildStep.Builder setScript(String value)
       A shell script to be executed in the step.
      
       When script is provided, the user cannot specify the entrypoint or args.
       
      string script = 19;
      Parameters:
      value - The script to set.
      Returns:
      This builder for chaining.
    • clearScript

      public BuildStep.Builder clearScript()
       A shell script to be executed in the step.
      
       When script is provided, the user cannot specify the entrypoint or args.
       
      string script = 19;
      Returns:
      This builder for chaining.
    • setScriptBytes

      public BuildStep.Builder setScriptBytes(com.google.protobuf.ByteString value)
       A shell script to be executed in the step.
      
       When script is provided, the user cannot specify the entrypoint or args.
       
      string script = 19;
      Parameters:
      value - The bytes for script to set.
      Returns:
      This builder for chaining.
    • hasAutomapSubstitutions

      public boolean hasAutomapSubstitutions()
       Option to include built-in and custom substitutions as env variables
       for this build step. This option will override the global option
       in BuildOption.
       
      optional bool automap_substitutions = 20;
      Specified by:
      hasAutomapSubstitutions in interface BuildStepOrBuilder
      Returns:
      Whether the automapSubstitutions field is set.
    • getAutomapSubstitutions

      public boolean getAutomapSubstitutions()
       Option to include built-in and custom substitutions as env variables
       for this build step. This option will override the global option
       in BuildOption.
       
      optional bool automap_substitutions = 20;
      Specified by:
      getAutomapSubstitutions in interface BuildStepOrBuilder
      Returns:
      The automapSubstitutions.
    • setAutomapSubstitutions

      public BuildStep.Builder setAutomapSubstitutions(boolean value)
       Option to include built-in and custom substitutions as env variables
       for this build step. This option will override the global option
       in BuildOption.
       
      optional bool automap_substitutions = 20;
      Parameters:
      value - The automapSubstitutions to set.
      Returns:
      This builder for chaining.
    • clearAutomapSubstitutions

      public BuildStep.Builder clearAutomapSubstitutions()
       Option to include built-in and custom substitutions as env variables
       for this build step. This option will override the global option
       in BuildOption.
       
      optional bool automap_substitutions = 20;
      Returns:
      This builder for chaining.