public static final class BuildStep.Builder extends GeneratedMessageV3.Builder<BuildStep.Builder> implements BuildStepOrBuilder
A step in the build pipeline.
Protobuf type google.events.cloud.cloudbuild.v1.BuildStep
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BuildStep.BuilderImplements
BuildStepOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
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 | |
---|---|
Name | Description |
values | Iterable<String> The args to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The env to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The secretEnv to add. |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.events.cloud.cloudbuild.v1.Volume> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The waitFor to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The args to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the args to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The env to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the env to add. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BuildStep.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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 | |
---|---|
Name | Description |
value | String The secretEnv to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the secretEnv to add. |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameter | |
---|---|
Name | Description |
value | Volume |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameter | |
---|---|
Name | Description |
builderForValue | Volume.Builder |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameters | |
---|---|
Name | Description |
index | int |
value | Volume |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Volume.Builder |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The waitFor to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the waitFor to add. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
build()
public BuildStep build()
Returns | |
---|---|
Type | Description |
BuildStep |
buildPartial()
public BuildStep buildPartial()
Returns | |
---|---|
Type | Description |
BuildStep |
clear()
public BuildStep.Builder clear()
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BuildStep.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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 | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
clearName()
public BuildStep.Builder clearName()
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 | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BuildStep.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
clearPullTiming()
public BuildStep.Builder clearPullTiming()
Stores timing information for pulling this build step's builder image only.
.google.events.cloud.cloudbuild.v1.TimeSpan pull_timing = 13;
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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 | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
clearStatus()
public BuildStep.Builder clearStatus()
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.events.cloud.cloudbuild.v1.BuildEventData.Status status = 12;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
BuildStep.Builder |
clearTiming()
public BuildStep.Builder clearTiming()
Stores timing information for executing this build step.
.google.events.cloud.cloudbuild.v1.TimeSpan timing = 10;
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
clone()
public BuildStep.Builder clone()
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ProtocolStringList | A list containing the args. |
getDefaultInstanceForType()
public BuildStep getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BuildStep |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ProtocolStringList | A list containing the env. |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for id. |
getName()
public String getName()
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 | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
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 | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getPullTiming()
public TimeSpan getPullTiming()
Stores timing information for pulling this build step's builder image only.
.google.events.cloud.cloudbuild.v1.TimeSpan pull_timing = 13;
Returns | |
---|---|
Type | Description |
TimeSpan | The pullTiming. |
getPullTimingBuilder()
public TimeSpan.Builder getPullTimingBuilder()
Stores timing information for pulling this build step's builder image only.
.google.events.cloud.cloudbuild.v1.TimeSpan pull_timing = 13;
Returns | |
---|---|
Type | Description |
TimeSpan.Builder |
getPullTimingOrBuilder()
public TimeSpanOrBuilder getPullTimingOrBuilder()
Stores timing information for pulling this build step's builder image only.
.google.events.cloud.cloudbuild.v1.TimeSpan pull_timing = 13;
Returns | |
---|---|
Type | Description |
TimeSpanOrBuilder |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ProtocolStringList | A list containing the secretEnv. |
getStatus()
public BuildEventData.Status getStatus()
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.events.cloud.cloudbuild.v1.BuildEventData.Status status = 12;
Returns | |
---|---|
Type | Description |
BuildEventData.Status | The status. |
getStatusValue()
public int getStatusValue()
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.events.cloud.cloudbuild.v1.BuildEventData.Status status = 12;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DurationOrBuilder |
getTiming()
public TimeSpan getTiming()
Stores timing information for executing this build step.
.google.events.cloud.cloudbuild.v1.TimeSpan timing = 10;
Returns | |
---|---|
Type | Description |
TimeSpan | The timing. |
getTimingBuilder()
public TimeSpan.Builder getTimingBuilder()
Stores timing information for executing this build step.
.google.events.cloud.cloudbuild.v1.TimeSpan timing = 10;
Returns | |
---|---|
Type | Description |
TimeSpan.Builder |
getTimingOrBuilder()
public TimeSpanOrBuilder getTimingOrBuilder()
Stores timing information for executing this build step.
.google.events.cloud.cloudbuild.v1.TimeSpan timing = 10;
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Returns | |
---|---|
Type | Description |
List<? extends com.google.events.cloud.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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ProtocolStringList | A list containing the waitFor. |
hasPullTiming()
public boolean hasPullTiming()
Stores timing information for pulling this build step's builder image only.
.google.events.cloud.cloudbuild.v1.TimeSpan pull_timing = 13;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the timeout field is set. |
hasTiming()
public boolean hasTiming()
Stores timing information for executing this build step.
.google.events.cloud.cloudbuild.v1.TimeSpan timing = 10;
Returns | |
---|---|
Type | Description |
boolean | Whether the timing field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(BuildStep other)
public BuildStep.Builder mergeFrom(BuildStep other)
Parameter | |
---|---|
Name | Description |
other | BuildStep |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BuildStep.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BuildStep.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
mergePullTiming(TimeSpan value)
public BuildStep.Builder mergePullTiming(TimeSpan value)
Stores timing information for pulling this build step's builder image only.
.google.events.cloud.cloudbuild.v1.TimeSpan pull_timing = 13;
Parameter | |
---|---|
Name | Description |
value | TimeSpan |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
mergeTiming(TimeSpan value)
public BuildStep.Builder mergeTiming(TimeSpan value)
Stores timing information for executing this build step.
.google.events.cloud.cloudbuild.v1.TimeSpan timing = 10;
Parameter | |
---|---|
Name | Description |
value | TimeSpan |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BuildStep.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The args to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The dir to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for dir to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The entrypoint to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for entrypoint to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The env to set. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BuildStep.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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 | |
---|---|
Name | Description |
value | String The id to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for id to set. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
setName(String value)
public BuildStep.Builder setName(String value)
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public BuildStep.Builder setNameBytes(ByteString value)
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
setPullTiming(TimeSpan value)
public BuildStep.Builder setPullTiming(TimeSpan value)
Stores timing information for pulling this build step's builder image only.
.google.events.cloud.cloudbuild.v1.TimeSpan pull_timing = 13;
Parameter | |
---|---|
Name | Description |
value | TimeSpan |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
setPullTiming(TimeSpan.Builder builderForValue)
public BuildStep.Builder setPullTiming(TimeSpan.Builder builderForValue)
Stores timing information for pulling this build step's builder image only.
.google.events.cloud.cloudbuild.v1.TimeSpan pull_timing = 13;
Parameter | |
---|---|
Name | Description |
builderForValue | TimeSpan.Builder |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BuildStep.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The secretEnv to set. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
setStatus(BuildEventData.Status value)
public BuildStep.Builder setStatus(BuildEventData.Status value)
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.events.cloud.cloudbuild.v1.BuildEventData.Status status = 12;
Parameter | |
---|---|
Name | Description |
value | BuildEventData.Status The status to set. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |
setStatusValue(int value)
public BuildStep.Builder setStatusValue(int value)
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.events.cloud.cloudbuild.v1.BuildEventData.Status status = 12;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for status to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
setTiming(TimeSpan value)
public BuildStep.Builder setTiming(TimeSpan value)
Stores timing information for executing this build step.
.google.events.cloud.cloudbuild.v1.TimeSpan timing = 10;
Parameter | |
---|---|
Name | Description |
value | TimeSpan |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
setTiming(TimeSpan.Builder builderForValue)
public BuildStep.Builder setTiming(TimeSpan.Builder builderForValue)
Stores timing information for executing this build step.
.google.events.cloud.cloudbuild.v1.TimeSpan timing = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | TimeSpan.Builder |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final BuildStep.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameters | |
---|---|
Name | Description |
index | int |
value | Volume |
Returns | |
---|---|
Type | Description |
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.events.cloud.cloudbuild.v1.Volume volumes = 9;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Volume.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The waitFor to set. |
Returns | |
---|---|
Type | Description |
BuildStep.Builder | This builder for chaining. |