Class BuildStep.Builder (3.32.0)

public static final class BuildStep.Builder extends GeneratedMessageV3.Builder<BuildStep.Builder> implements BuildStepOrBuilder

A step in the build pipeline.

Protobuf type google.devtools.cloudbuild.v1.BuildStep

Implements

BuildStepOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAllowExitCodes(Iterable<? extends Integer> values)

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;

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The allowExitCodes to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addAllArgs(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The args to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addAllEnv(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The env to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addAllSecretEnv(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The secretEnv to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addAllVolumes(Iterable<? extends Volume> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.Volume>
Returns
TypeDescription
BuildStep.Builder

addAllWaitFor(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The waitFor to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addAllowExitCodes(int value)

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;

Parameter
NameDescription
valueint

The allowExitCodes to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addArgs(String value)

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;

Parameter
NameDescription
valueString

The args to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addArgsBytes(ByteString value)

public BuildStep.Builder addArgsBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the args to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addEnv(String value)

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;

Parameter
NameDescription
valueString

The env to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addEnvBytes(ByteString value)

public BuildStep.Builder addEnvBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the env to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BuildStep.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BuildStep.Builder
Overrides

addSecretEnv(String value)

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;

Parameter
NameDescription
valueString

The secretEnv to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addSecretEnvBytes(ByteString value)

public BuildStep.Builder addSecretEnvBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the secretEnv to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addVolumes(Volume value)

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;

Parameter
NameDescription
valueVolume
Returns
TypeDescription
BuildStep.Builder

addVolumes(Volume.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueVolume.Builder
Returns
TypeDescription
BuildStep.Builder

addVolumes(int index, Volume value)

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;

Parameters
NameDescription
indexint
valueVolume
Returns
TypeDescription
BuildStep.Builder

addVolumes(int index, Volume.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
BuildStep.Builder

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;

Returns
TypeDescription
Volume.Builder

addVolumesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

addWaitFor(String value)

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;

Parameter
NameDescription
valueString

The waitFor to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

addWaitForBytes(ByteString value)

public BuildStep.Builder addWaitForBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the waitFor to add.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

build()

public BuildStep build()
Returns
TypeDescription
BuildStep

buildPartial()

public BuildStep buildPartial()
Returns
TypeDescription
BuildStep

clear()

public BuildStep.Builder clear()
Returns
TypeDescription
BuildStep.Builder
Overrides

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BuildStep.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BuildStep.Builder
Overrides

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
TypeDescription
BuildStep.Builder

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). 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
TypeDescription
BuildStep.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BuildStep.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BuildStep.Builder
Overrides

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];

Returns
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

This builder for chaining.

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;

Returns
TypeDescription
BuildStep.Builder

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];

Returns
TypeDescription
BuildStep.Builder

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;

Returns
TypeDescription
BuildStep.Builder

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
TypeDescription
BuildStep.Builder

This builder for chaining.

clone()

public BuildStep.Builder clone()
Returns
TypeDescription
BuildStep.Builder
Overrides

getAllowExitCodes(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The allowExitCodes at the given index.

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;

Returns
TypeDescription
int

The count of allowExitCodes.

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;

Returns
TypeDescription
List<Integer>

A list containing the allowExitCodes.

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;

Returns
TypeDescription
boolean

The allowFailure.

getArgs(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The args at the given index.

getArgsBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the args at the given index.

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;

Returns
TypeDescription
int

The count of args.

getArgsList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the args.

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;

Returns
TypeDescription
boolean

The automapSubstitutions.

getDefaultInstanceForType()

public BuildStep getDefaultInstanceForType()
Returns
TypeDescription
BuildStep

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The dir.

getDirBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for dir.

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;

Returns
TypeDescription
String

The entrypoint.

getEntrypointBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for entrypoint.

getEnv(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The env at the given index.

getEnvBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the env at the given index.

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;

Returns
TypeDescription
int

The count of env.

getEnvList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the env.

getExitCode()

public int getExitCode()

Output only. Return code from running the step.

int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The exitCode.

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;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Unique identifier for this build step, used in wait_for to reference this build step as a dependency.

string id = 5;

Returns
TypeDescription
ByteString

The bytes for id.

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). 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
TypeDescription
String

The name.

getNameBytes()

public 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). 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
TypeDescription
ByteString

The bytes for name.

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];

Returns
TypeDescription
TimeSpan

The pullTiming.

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];

Returns
TypeDescription
TimeSpan.Builder

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];

Returns
TypeDescription
TimeSpanOrBuilder

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;

Returns
TypeDescription
String

The script.

getScriptBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for script.

getSecretEnv(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The secretEnv at the given index.

getSecretEnvBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the secretEnv at the given index.

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;

Returns
TypeDescription
int

The count of secretEnv.

getSecretEnvList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the secretEnv.

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];

Returns
TypeDescription
Build.Status

The status.

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];

Returns
TypeDescription
int

The enum numeric value on the wire for status.

getTimeout()

public 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;

Returns
TypeDescription
Duration

The timeout.

getTimeoutBuilder()

public 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;

Returns
TypeDescription
Builder

getTimeoutOrBuilder()

public 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;

Returns
TypeDescription
DurationOrBuilder

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];

Returns
TypeDescription
TimeSpan

The timing.

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];

Returns
TypeDescription
TimeSpan.Builder

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];

Returns
TypeDescription
TimeSpanOrBuilder

getVolumes(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume

getVolumesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<Volume>

getVolumesOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloudbuild.v1.VolumeOrBuilder>

getWaitFor(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The waitFor at the given index.

getWaitForBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the waitFor at the given index.

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;

Returns
TypeDescription
int

The count of waitFor.

getWaitForList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the waitFor.

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;

Returns
TypeDescription
boolean

Whether the automapSubstitutions field is set.

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];

Returns
TypeDescription
boolean

Whether the pullTiming field is set.

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;

Returns
TypeDescription
boolean

Whether the timeout field is set.

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];

Returns
TypeDescription
boolean

Whether the timing field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BuildStep other)

public BuildStep.Builder mergeFrom(BuildStep other)
Parameter
NameDescription
otherBuildStep
Returns
TypeDescription
BuildStep.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BuildStep.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BuildStep.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BuildStep.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BuildStep.Builder
Overrides

mergePullTiming(TimeSpan value)

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];

Parameter
NameDescription
valueTimeSpan
Returns
TypeDescription
BuildStep.Builder

mergeTimeout(Duration value)

public BuildStep.Builder mergeTimeout(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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
BuildStep.Builder

mergeTiming(TimeSpan value)

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];

Parameter
NameDescription
valueTimeSpan
Returns
TypeDescription
BuildStep.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BuildStep.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BuildStep.Builder
Overrides

removeVolumes(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
BuildStep.Builder

setAllowExitCodes(int index, int value)

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
NameDescription
indexint

The index to set the value at.

valueint

The allowExitCodes to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setAllowFailure(boolean value)

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;

Parameter
NameDescription
valueboolean

The allowFailure to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setArgs(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The args to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setAutomapSubstitutions(boolean value)

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;

Parameter
NameDescription
valueboolean

The automapSubstitutions to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setDir(String value)

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;

Parameter
NameDescription
valueString

The dir to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setDirBytes(ByteString value)

public BuildStep.Builder setDirBytes(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;

Parameter
NameDescription
valueByteString

The bytes for dir to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setEntrypoint(String value)

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;

Parameter
NameDescription
valueString

The entrypoint to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setEntrypointBytes(ByteString value)

public BuildStep.Builder setEntrypointBytes(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;

Parameter
NameDescription
valueByteString

The bytes for entrypoint to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setEnv(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The env to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setExitCode(int value)

public BuildStep.Builder setExitCode(int value)

Output only. Return code from running the step.

int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The exitCode to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BuildStep.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BuildStep.Builder
Overrides

setId(String value)

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;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setIdBytes(ByteString value)

public BuildStep.Builder setIdBytes(ByteString value)

Unique identifier for this build step, used in wait_for to reference this build step as a dependency.

string id = 5;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setName(String value)

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). 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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BuildStep.Builder setNameBytes(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). 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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setPullTiming(TimeSpan value)

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];

Parameter
NameDescription
valueTimeSpan
Returns
TypeDescription
BuildStep.Builder

setPullTiming(TimeSpan.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueTimeSpan.Builder
Returns
TypeDescription
BuildStep.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BuildStep.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BuildStep.Builder
Overrides

setScript(String value)

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;

Parameter
NameDescription
valueString

The script to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setScriptBytes(ByteString value)

public BuildStep.Builder setScriptBytes(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;

Parameter
NameDescription
valueByteString

The bytes for script to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setSecretEnv(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The secretEnv to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setStatus(Build.Status value)

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];

Parameter
NameDescription
valueBuild.Status

The status to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setStatusValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for status to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.

setTimeout(Duration value)

public BuildStep.Builder setTimeout(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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
BuildStep.Builder

setTimeout(Duration.Builder builderForValue)

public BuildStep.Builder setTimeout(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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BuildStep.Builder

setTiming(TimeSpan value)

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];

Parameter
NameDescription
valueTimeSpan
Returns
TypeDescription
BuildStep.Builder

setTiming(TimeSpan.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueTimeSpan.Builder
Returns
TypeDescription
BuildStep.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BuildStep.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BuildStep.Builder
Overrides

setVolumes(int index, Volume value)

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;

Parameters
NameDescription
indexint
valueVolume
Returns
TypeDescription
BuildStep.Builder

setVolumes(int index, Volume.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
BuildStep.Builder

setWaitFor(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The waitFor to set.

Returns
TypeDescription
BuildStep.Builder

This builder for chaining.