public static final class BuildEventData.Builder extends GeneratedMessageV3.Builder<BuildEventData.Builder> implements BuildEventDataOrBuilder
Build event data for Google Cloud Platform API operations.
Protobuf type google.events.cloud.cloudbuild.v1.BuildEventData
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BuildEventData.BuilderImplements
BuildEventDataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllImages(Iterable<String> values)
public BuildEventData.Builder addAllImages(Iterable<String> values)
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The images to add. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
addAllSecrets(Iterable<? extends Secret> values)
public BuildEventData.Builder addAllSecrets(Iterable<? extends Secret> values)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.events.cloud.cloudbuild.v1.Secret> |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addAllSteps(Iterable<? extends BuildStep> values)
public BuildEventData.Builder addAllSteps(Iterable<? extends BuildStep> values)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.events.cloud.cloudbuild.v1.BuildStep> |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addAllTags(Iterable<String> values)
public BuildEventData.Builder addAllTags(Iterable<String> values)
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The tags to add. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
addImages(String value)
public BuildEventData.Builder addImages(String value)
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Parameter | |
---|---|
Name | Description |
value | String The images to add. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
addImagesBytes(ByteString value)
public BuildEventData.Builder addImagesBytes(ByteString value)
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the images to add. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BuildEventData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addSecrets(Secret value)
public BuildEventData.Builder addSecrets(Secret value)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameter | |
---|---|
Name | Description |
value | Secret |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addSecrets(Secret.Builder builderForValue)
public BuildEventData.Builder addSecrets(Secret.Builder builderForValue)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameter | |
---|---|
Name | Description |
builderForValue | Secret.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addSecrets(int index, Secret value)
public BuildEventData.Builder addSecrets(int index, Secret value)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameters | |
---|---|
Name | Description |
index | int |
value | Secret |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addSecrets(int index, Secret.Builder builderForValue)
public BuildEventData.Builder addSecrets(int index, Secret.Builder builderForValue)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Secret.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addSecretsBuilder()
public Secret.Builder addSecretsBuilder()
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Returns | |
---|---|
Type | Description |
Secret.Builder |
addSecretsBuilder(int index)
public Secret.Builder addSecretsBuilder(int index)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Secret.Builder |
addSteps(BuildStep value)
public BuildEventData.Builder addSteps(BuildStep value)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameter | |
---|---|
Name | Description |
value | BuildStep |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addSteps(BuildStep.Builder builderForValue)
public BuildEventData.Builder addSteps(BuildStep.Builder builderForValue)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameter | |
---|---|
Name | Description |
builderForValue | BuildStep.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addSteps(int index, BuildStep value)
public BuildEventData.Builder addSteps(int index, BuildStep value)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameters | |
---|---|
Name | Description |
index | int |
value | BuildStep |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addSteps(int index, BuildStep.Builder builderForValue)
public BuildEventData.Builder addSteps(int index, BuildStep.Builder builderForValue)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | BuildStep.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
addStepsBuilder()
public BuildStep.Builder addStepsBuilder()
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
addStepsBuilder(int index)
public BuildStep.Builder addStepsBuilder(int index)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
addTags(String value)
public BuildEventData.Builder addTags(String value)
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Parameter | |
---|---|
Name | Description |
value | String The tags to add. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
addTagsBytes(ByteString value)
public BuildEventData.Builder addTagsBytes(ByteString value)
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the tags to add. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
build()
public BuildEventData build()
Returns | |
---|---|
Type | Description |
BuildEventData |
buildPartial()
public BuildEventData buildPartial()
Returns | |
---|---|
Type | Description |
BuildEventData |
clear()
public BuildEventData.Builder clear()
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearArtifacts()
public BuildEventData.Builder clearArtifacts()
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
.google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearBuildTriggerId()
public BuildEventData.Builder clearBuildTriggerId()
The ID of the BuildTrigger
that triggered this build, if it
was triggered automatically.
string build_trigger_id = 22;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearCreateTime()
public BuildEventData.Builder clearCreateTime()
Time at which the request to create the build was received.
.google.protobuf.Timestamp create_time = 6;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearField(Descriptors.FieldDescriptor field)
public BuildEventData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearFinishTime()
public BuildEventData.Builder clearFinishTime()
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
.google.protobuf.Timestamp finish_time = 8;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearId()
public BuildEventData.Builder clearId()
Unique identifier of the build.
string id = 1;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearImages()
public BuildEventData.Builder clearImages()
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearLogUrl()
public BuildEventData.Builder clearLogUrl()
URL to logs for this build in Google Cloud Console.
string log_url = 25;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearLogsBucket()
public BuildEventData.Builder clearLogsBucket()
Google Cloud Storage bucket where logs should be written (see
Bucket Name
Requirements).
Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt
.
string logs_bucket = 19;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BuildEventData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearOptions()
public BuildEventData.Builder clearOptions()
Special options for this build.
.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearProjectId()
public BuildEventData.Builder clearProjectId()
ID of the project.
string project_id = 16;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearQueueTtl()
public BuildEventData.Builder clearQueueTtl()
TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
.google.protobuf.Duration queue_ttl = 40;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearResults()
public BuildEventData.Builder clearResults()
Results of the build.
.google.events.cloud.cloudbuild.v1.Results results = 10;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearSecrets()
public BuildEventData.Builder clearSecrets()
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearSource()
public BuildEventData.Builder clearSource()
The location of the source files to build.
.google.events.cloud.cloudbuild.v1.Source source = 3;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearSourceProvenance()
public BuildEventData.Builder clearSourceProvenance()
A permanent fixed identifier for source.
.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearStartTime()
public BuildEventData.Builder clearStartTime()
Time at which execution of the build was started.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearStatus()
public BuildEventData.Builder clearStatus()
Status of the build.
.google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearStatusDetail()
public BuildEventData.Builder clearStatusDetail()
Customer-readable message about the current status.
string status_detail = 24;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearSteps()
public BuildEventData.Builder clearSteps()
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearSubstitutions()
public BuildEventData.Builder clearSubstitutions()
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearTags()
public BuildEventData.Builder clearTags()
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
clearTimeout()
public BuildEventData.Builder clearTimeout()
Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
.google.protobuf.Duration timeout = 12;
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clearTiming()
public BuildEventData.Builder clearTiming()
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
clone()
public BuildEventData.Builder clone()
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
containsSubstitutions(String key)
public boolean containsSubstitutions(String key)
Substitutions data for Build
resource.
map<string, string> substitutions = 29;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
containsTiming(String key)
public boolean containsTiming(String key)
Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps
- PUSH: time to push all specified images.
- FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
map<string, .google.events.cloud.cloudbuild.v1.TimeSpan> timing = 33;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getArtifacts()
public Artifacts getArtifacts()
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
.google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
Returns | |
---|---|
Type | Description |
Artifacts | The artifacts. |
getArtifactsBuilder()
public Artifacts.Builder getArtifactsBuilder()
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
.google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
Returns | |
---|---|
Type | Description |
Artifacts.Builder |
getArtifactsOrBuilder()
public ArtifactsOrBuilder getArtifactsOrBuilder()
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
.google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
Returns | |
---|---|
Type | Description |
ArtifactsOrBuilder |
getBuildTriggerId()
public String getBuildTriggerId()
The ID of the BuildTrigger
that triggered this build, if it
was triggered automatically.
string build_trigger_id = 22;
Returns | |
---|---|
Type | Description |
String | The buildTriggerId. |
getBuildTriggerIdBytes()
public ByteString getBuildTriggerIdBytes()
The ID of the BuildTrigger
that triggered this build, if it
was triggered automatically.
string build_trigger_id = 22;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for buildTriggerId. |
getCreateTime()
public Timestamp getCreateTime()
Time at which the request to create the build was received.
.google.protobuf.Timestamp create_time = 6;
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Time at which the request to create the build was received.
.google.protobuf.Timestamp create_time = 6;
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Time at which the request to create the build was received.
.google.protobuf.Timestamp create_time = 6;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public BuildEventData getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BuildEventData |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getFinishTime()
public Timestamp getFinishTime()
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
.google.protobuf.Timestamp finish_time = 8;
Returns | |
---|---|
Type | Description |
Timestamp | The finishTime. |
getFinishTimeBuilder()
public Timestamp.Builder getFinishTimeBuilder()
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
.google.protobuf.Timestamp finish_time = 8;
Returns | |
---|---|
Type | Description |
Builder |
getFinishTimeOrBuilder()
public TimestampOrBuilder getFinishTimeOrBuilder()
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
.google.protobuf.Timestamp finish_time = 8;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getId()
public String getId()
Unique identifier of the build.
string id = 1;
Returns | |
---|---|
Type | Description |
String | The id. |
getIdBytes()
public ByteString getIdBytes()
Unique identifier of the build.
string id = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for id. |
getImages(int index)
public String getImages(int index)
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The images at the given index. |
getImagesBytes(int index)
public ByteString getImagesBytes(int index)
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the images at the given index. |
getImagesCount()
public int getImagesCount()
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Returns | |
---|---|
Type | Description |
int | The count of images. |
getImagesList()
public ProtocolStringList getImagesList()
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the images. |
getLogUrl()
public String getLogUrl()
URL to logs for this build in Google Cloud Console.
string log_url = 25;
Returns | |
---|---|
Type | Description |
String | The logUrl. |
getLogUrlBytes()
public ByteString getLogUrlBytes()
URL to logs for this build in Google Cloud Console.
string log_url = 25;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for logUrl. |
getLogsBucket()
public String getLogsBucket()
Google Cloud Storage bucket where logs should be written (see
Bucket Name
Requirements).
Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt
.
string logs_bucket = 19;
Returns | |
---|---|
Type | Description |
String | The logsBucket. |
getLogsBucketBytes()
public ByteString getLogsBucketBytes()
Google Cloud Storage bucket where logs should be written (see
Bucket Name
Requirements).
Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt
.
string logs_bucket = 19;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for logsBucket. |
getMutableSubstitutions()
public Map<String,String> getMutableSubstitutions()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMutableTiming()
public Map<String,TimeSpan> getMutableTiming()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,TimeSpan> |
getOptions()
public BuildOptions getOptions()
Special options for this build.
.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
Returns | |
---|---|
Type | Description |
BuildOptions | The options. |
getOptionsBuilder()
public BuildOptions.Builder getOptionsBuilder()
Special options for this build.
.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
Returns | |
---|---|
Type | Description |
BuildOptions.Builder |
getOptionsOrBuilder()
public BuildOptionsOrBuilder getOptionsOrBuilder()
Special options for this build.
.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
Returns | |
---|---|
Type | Description |
BuildOptionsOrBuilder |
getProjectId()
public String getProjectId()
ID of the project.
string project_id = 16;
Returns | |
---|---|
Type | Description |
String | The projectId. |
getProjectIdBytes()
public ByteString getProjectIdBytes()
ID of the project.
string project_id = 16;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for projectId. |
getQueueTtl()
public Duration getQueueTtl()
TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
.google.protobuf.Duration queue_ttl = 40;
Returns | |
---|---|
Type | Description |
Duration | The queueTtl. |
getQueueTtlBuilder()
public Duration.Builder getQueueTtlBuilder()
TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
.google.protobuf.Duration queue_ttl = 40;
Returns | |
---|---|
Type | Description |
Builder |
getQueueTtlOrBuilder()
public DurationOrBuilder getQueueTtlOrBuilder()
TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
.google.protobuf.Duration queue_ttl = 40;
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getResults()
public Results getResults()
Results of the build.
.google.events.cloud.cloudbuild.v1.Results results = 10;
Returns | |
---|---|
Type | Description |
Results | The results. |
getResultsBuilder()
public Results.Builder getResultsBuilder()
Results of the build.
.google.events.cloud.cloudbuild.v1.Results results = 10;
Returns | |
---|---|
Type | Description |
Results.Builder |
getResultsOrBuilder()
public ResultsOrBuilder getResultsOrBuilder()
Results of the build.
.google.events.cloud.cloudbuild.v1.Results results = 10;
Returns | |
---|---|
Type | Description |
ResultsOrBuilder |
getSecrets(int index)
public Secret getSecrets(int index)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Secret |
getSecretsBuilder(int index)
public Secret.Builder getSecretsBuilder(int index)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Secret.Builder |
getSecretsBuilderList()
public List<Secret.Builder> getSecretsBuilderList()
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Returns | |
---|---|
Type | Description |
List<Builder> |
getSecretsCount()
public int getSecretsCount()
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Returns | |
---|---|
Type | Description |
int |
getSecretsList()
public List<Secret> getSecretsList()
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Returns | |
---|---|
Type | Description |
List<Secret> |
getSecretsOrBuilder(int index)
public SecretOrBuilder getSecretsOrBuilder(int index)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
SecretOrBuilder |
getSecretsOrBuilderList()
public List<? extends SecretOrBuilder> getSecretsOrBuilderList()
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Returns | |
---|---|
Type | Description |
List<? extends com.google.events.cloud.cloudbuild.v1.SecretOrBuilder> |
getSource()
public Source getSource()
The location of the source files to build.
.google.events.cloud.cloudbuild.v1.Source source = 3;
Returns | |
---|---|
Type | Description |
Source | The source. |
getSourceBuilder()
public Source.Builder getSourceBuilder()
The location of the source files to build.
.google.events.cloud.cloudbuild.v1.Source source = 3;
Returns | |
---|---|
Type | Description |
Source.Builder |
getSourceOrBuilder()
public SourceOrBuilder getSourceOrBuilder()
The location of the source files to build.
.google.events.cloud.cloudbuild.v1.Source source = 3;
Returns | |
---|---|
Type | Description |
SourceOrBuilder |
getSourceProvenance()
public SourceProvenance getSourceProvenance()
A permanent fixed identifier for source.
.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
Returns | |
---|---|
Type | Description |
SourceProvenance | The sourceProvenance. |
getSourceProvenanceBuilder()
public SourceProvenance.Builder getSourceProvenanceBuilder()
A permanent fixed identifier for source.
.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
Returns | |
---|---|
Type | Description |
SourceProvenance.Builder |
getSourceProvenanceOrBuilder()
public SourceProvenanceOrBuilder getSourceProvenanceOrBuilder()
A permanent fixed identifier for source.
.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
Returns | |
---|---|
Type | Description |
SourceProvenanceOrBuilder |
getStartTime()
public Timestamp getStartTime()
Time at which execution of the build was started.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
Timestamp | The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
Time at which execution of the build was started.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
Builder |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Time at which execution of the build was started.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getStatus()
public BuildEventData.Status getStatus()
Status of the build.
.google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
Returns | |
---|---|
Type | Description |
BuildEventData.Status | The status. |
getStatusDetail()
public String getStatusDetail()
Customer-readable message about the current status.
string status_detail = 24;
Returns | |
---|---|
Type | Description |
String | The statusDetail. |
getStatusDetailBytes()
public ByteString getStatusDetailBytes()
Customer-readable message about the current status.
string status_detail = 24;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for statusDetail. |
getStatusValue()
public int getStatusValue()
Status of the build.
.google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for status. |
getSteps(int index)
public BuildStep getSteps(int index)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
BuildStep |
getStepsBuilder(int index)
public BuildStep.Builder getStepsBuilder(int index)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
BuildStep.Builder |
getStepsBuilderList()
public List<BuildStep.Builder> getStepsBuilderList()
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Returns | |
---|---|
Type | Description |
List<Builder> |
getStepsCount()
public int getStepsCount()
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Returns | |
---|---|
Type | Description |
int |
getStepsList()
public List<BuildStep> getStepsList()
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Returns | |
---|---|
Type | Description |
List<BuildStep> |
getStepsOrBuilder(int index)
public BuildStepOrBuilder getStepsOrBuilder(int index)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
BuildStepOrBuilder |
getStepsOrBuilderList()
public List<? extends BuildStepOrBuilder> getStepsOrBuilderList()
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Returns | |
---|---|
Type | Description |
List<? extends com.google.events.cloud.cloudbuild.v1.BuildStepOrBuilder> |
getSubstitutions()
public Map<String,String> getSubstitutions()
Use #getSubstitutionsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getSubstitutionsCount()
public int getSubstitutionsCount()
Substitutions data for Build
resource.
map<string, string> substitutions = 29;
Returns | |
---|---|
Type | Description |
int |
getSubstitutionsMap()
public Map<String,String> getSubstitutionsMap()
Substitutions data for Build
resource.
map<string, string> substitutions = 29;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getSubstitutionsOrDefault(String key, String defaultValue)
public String getSubstitutionsOrDefault(String key, String defaultValue)
Substitutions data for Build
resource.
map<string, string> substitutions = 29;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getSubstitutionsOrThrow(String key)
public String getSubstitutionsOrThrow(String key)
Substitutions data for Build
resource.
map<string, string> substitutions = 29;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getTags(int index)
public String getTags(int index)
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The tags at the given index. |
getTagsBytes(int index)
public ByteString getTagsBytes(int index)
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the tags at the given index. |
getTagsCount()
public int getTagsCount()
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Returns | |
---|---|
Type | Description |
int | The count of tags. |
getTagsList()
public ProtocolStringList getTagsList()
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the tags. |
getTimeout()
public Duration getTimeout()
Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
.google.protobuf.Duration timeout = 12;
Returns | |
---|---|
Type | Description |
Duration | The timeout. |
getTimeoutBuilder()
public Duration.Builder getTimeoutBuilder()
Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
.google.protobuf.Duration timeout = 12;
Returns | |
---|---|
Type | Description |
Builder |
getTimeoutOrBuilder()
public DurationOrBuilder getTimeoutOrBuilder()
Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
.google.protobuf.Duration timeout = 12;
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getTiming()
public Map<String,TimeSpan> getTiming()
Use #getTimingMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,TimeSpan> |
getTimingCount()
public int getTimingCount()
Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps
- PUSH: time to push all specified images.
- FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
map<string, .google.events.cloud.cloudbuild.v1.TimeSpan> timing = 33;
Returns | |
---|---|
Type | Description |
int |
getTimingMap()
public Map<String,TimeSpan> getTimingMap()
Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps
- PUSH: time to push all specified images.
- FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
map<string, .google.events.cloud.cloudbuild.v1.TimeSpan> timing = 33;
Returns | |
---|---|
Type | Description |
Map<String,TimeSpan> |
getTimingOrDefault(String key, TimeSpan defaultValue)
public TimeSpan getTimingOrDefault(String key, TimeSpan defaultValue)
Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps
- PUSH: time to push all specified images.
- FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
map<string, .google.events.cloud.cloudbuild.v1.TimeSpan> timing = 33;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | TimeSpan |
Returns | |
---|---|
Type | Description |
TimeSpan |
getTimingOrThrow(String key)
public TimeSpan getTimingOrThrow(String key)
Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps
- PUSH: time to push all specified images.
- FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
map<string, .google.events.cloud.cloudbuild.v1.TimeSpan> timing = 33;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
TimeSpan |
hasArtifacts()
public boolean hasArtifacts()
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
.google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
Returns | |
---|---|
Type | Description |
boolean | Whether the artifacts field is set. |
hasCreateTime()
public boolean hasCreateTime()
Time at which the request to create the build was received.
.google.protobuf.Timestamp create_time = 6;
Returns | |
---|---|
Type | Description |
boolean | Whether the createTime field is set. |
hasFinishTime()
public boolean hasFinishTime()
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
.google.protobuf.Timestamp finish_time = 8;
Returns | |
---|---|
Type | Description |
boolean | Whether the finishTime field is set. |
hasOptions()
public boolean hasOptions()
Special options for this build.
.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
Returns | |
---|---|
Type | Description |
boolean | Whether the options field is set. |
hasQueueTtl()
public boolean hasQueueTtl()
TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
.google.protobuf.Duration queue_ttl = 40;
Returns | |
---|---|
Type | Description |
boolean | Whether the queueTtl field is set. |
hasResults()
public boolean hasResults()
Results of the build.
.google.events.cloud.cloudbuild.v1.Results results = 10;
Returns | |
---|---|
Type | Description |
boolean | Whether the results field is set. |
hasSource()
public boolean hasSource()
The location of the source files to build.
.google.events.cloud.cloudbuild.v1.Source source = 3;
Returns | |
---|---|
Type | Description |
boolean | Whether the source field is set. |
hasSourceProvenance()
public boolean hasSourceProvenance()
A permanent fixed identifier for source.
.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
Returns | |
---|---|
Type | Description |
boolean | Whether the sourceProvenance field is set. |
hasStartTime()
public boolean hasStartTime()
Time at which execution of the build was started.
.google.protobuf.Timestamp start_time = 7;
Returns | |
---|---|
Type | Description |
boolean | Whether the startTime field is set. |
hasTimeout()
public boolean hasTimeout()
Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
.google.protobuf.Duration timeout = 12;
Returns | |
---|---|
Type | Description |
boolean | Whether the timeout field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeArtifacts(Artifacts value)
public BuildEventData.Builder mergeArtifacts(Artifacts value)
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
.google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
Parameter | |
---|---|
Name | Description |
value | Artifacts |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeCreateTime(Timestamp value)
public BuildEventData.Builder mergeCreateTime(Timestamp value)
Time at which the request to create the build was received.
.google.protobuf.Timestamp create_time = 6;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeFinishTime(Timestamp value)
public BuildEventData.Builder mergeFinishTime(Timestamp value)
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
.google.protobuf.Timestamp finish_time = 8;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeFrom(BuildEventData other)
public BuildEventData.Builder mergeFrom(BuildEventData other)
Parameter | |
---|---|
Name | Description |
other | BuildEventData |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BuildEventData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BuildEventData.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeOptions(BuildOptions value)
public BuildEventData.Builder mergeOptions(BuildOptions value)
Special options for this build.
.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
Parameter | |
---|---|
Name | Description |
value | BuildOptions |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeQueueTtl(Duration value)
public BuildEventData.Builder mergeQueueTtl(Duration value)
TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
.google.protobuf.Duration queue_ttl = 40;
Parameter | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeResults(Results value)
public BuildEventData.Builder mergeResults(Results value)
Results of the build.
.google.events.cloud.cloudbuild.v1.Results results = 10;
Parameter | |
---|---|
Name | Description |
value | Results |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeSource(Source value)
public BuildEventData.Builder mergeSource(Source value)
The location of the source files to build.
.google.events.cloud.cloudbuild.v1.Source source = 3;
Parameter | |
---|---|
Name | Description |
value | Source |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeSourceProvenance(SourceProvenance value)
public BuildEventData.Builder mergeSourceProvenance(SourceProvenance value)
A permanent fixed identifier for source.
.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
Parameter | |
---|---|
Name | Description |
value | SourceProvenance |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeStartTime(Timestamp value)
public BuildEventData.Builder mergeStartTime(Timestamp value)
Time at which execution of the build was started.
.google.protobuf.Timestamp start_time = 7;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeTimeout(Duration value)
public BuildEventData.Builder mergeTimeout(Duration value)
Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
.google.protobuf.Duration timeout = 12;
Parameter | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BuildEventData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
putAllSubstitutions(Map<String,String> values)
public BuildEventData.Builder putAllSubstitutions(Map<String,String> values)
Substitutions data for Build
resource.
map<string, string> substitutions = 29;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
putAllTiming(Map<String,TimeSpan> values)
public BuildEventData.Builder putAllTiming(Map<String,TimeSpan> values)
Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps
- PUSH: time to push all specified images.
- FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
map<string, .google.events.cloud.cloudbuild.v1.TimeSpan> timing = 33;
Parameter | |
---|---|
Name | Description |
values | Map<String,TimeSpan> |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
putSubstitutions(String key, String value)
public BuildEventData.Builder putSubstitutions(String key, String value)
Substitutions data for Build
resource.
map<string, string> substitutions = 29;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
putTiming(String key, TimeSpan value)
public BuildEventData.Builder putTiming(String key, TimeSpan value)
Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps
- PUSH: time to push all specified images.
- FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
map<string, .google.events.cloud.cloudbuild.v1.TimeSpan> timing = 33;
Parameters | |
---|---|
Name | Description |
key | String |
value | TimeSpan |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
removeSecrets(int index)
public BuildEventData.Builder removeSecrets(int index)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
removeSteps(int index)
public BuildEventData.Builder removeSteps(int index)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
removeSubstitutions(String key)
public BuildEventData.Builder removeSubstitutions(String key)
Substitutions data for Build
resource.
map<string, string> substitutions = 29;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
removeTiming(String key)
public BuildEventData.Builder removeTiming(String key)
Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps
- PUSH: time to push all specified images.
- FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
map<string, .google.events.cloud.cloudbuild.v1.TimeSpan> timing = 33;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setArtifacts(Artifacts value)
public BuildEventData.Builder setArtifacts(Artifacts value)
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
.google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
Parameter | |
---|---|
Name | Description |
value | Artifacts |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setArtifacts(Artifacts.Builder builderForValue)
public BuildEventData.Builder setArtifacts(Artifacts.Builder builderForValue)
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
.google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
Parameter | |
---|---|
Name | Description |
builderForValue | Artifacts.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setBuildTriggerId(String value)
public BuildEventData.Builder setBuildTriggerId(String value)
The ID of the BuildTrigger
that triggered this build, if it
was triggered automatically.
string build_trigger_id = 22;
Parameter | |
---|---|
Name | Description |
value | String The buildTriggerId to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setBuildTriggerIdBytes(ByteString value)
public BuildEventData.Builder setBuildTriggerIdBytes(ByteString value)
The ID of the BuildTrigger
that triggered this build, if it
was triggered automatically.
string build_trigger_id = 22;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for buildTriggerId to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setCreateTime(Timestamp value)
public BuildEventData.Builder setCreateTime(Timestamp value)
Time at which the request to create the build was received.
.google.protobuf.Timestamp create_time = 6;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public BuildEventData.Builder setCreateTime(Timestamp.Builder builderForValue)
Time at which the request to create the build was received.
.google.protobuf.Timestamp create_time = 6;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public BuildEventData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setFinishTime(Timestamp value)
public BuildEventData.Builder setFinishTime(Timestamp value)
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
.google.protobuf.Timestamp finish_time = 8;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setFinishTime(Timestamp.Builder builderForValue)
public BuildEventData.Builder setFinishTime(Timestamp.Builder builderForValue)
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
.google.protobuf.Timestamp finish_time = 8;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setId(String value)
public BuildEventData.Builder setId(String value)
Unique identifier of the build.
string id = 1;
Parameter | |
---|---|
Name | Description |
value | String The id to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setIdBytes(ByteString value)
public BuildEventData.Builder setIdBytes(ByteString value)
Unique identifier of the build.
string id = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for id to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setImages(int index, String value)
public BuildEventData.Builder setImages(int index, String value)
A list of images to be pushed upon the successful completion of all build
steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
repeated string images = 13;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The images to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setLogUrl(String value)
public BuildEventData.Builder setLogUrl(String value)
URL to logs for this build in Google Cloud Console.
string log_url = 25;
Parameter | |
---|---|
Name | Description |
value | String The logUrl to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setLogUrlBytes(ByteString value)
public BuildEventData.Builder setLogUrlBytes(ByteString value)
URL to logs for this build in Google Cloud Console.
string log_url = 25;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for logUrl to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setLogsBucket(String value)
public BuildEventData.Builder setLogsBucket(String value)
Google Cloud Storage bucket where logs should be written (see
Bucket Name
Requirements).
Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt
.
string logs_bucket = 19;
Parameter | |
---|---|
Name | Description |
value | String The logsBucket to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setLogsBucketBytes(ByteString value)
public BuildEventData.Builder setLogsBucketBytes(ByteString value)
Google Cloud Storage bucket where logs should be written (see
Bucket Name
Requirements).
Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt
.
string logs_bucket = 19;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for logsBucket to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setOptions(BuildOptions value)
public BuildEventData.Builder setOptions(BuildOptions value)
Special options for this build.
.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
Parameter | |
---|---|
Name | Description |
value | BuildOptions |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setOptions(BuildOptions.Builder builderForValue)
public BuildEventData.Builder setOptions(BuildOptions.Builder builderForValue)
Special options for this build.
.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
Parameter | |
---|---|
Name | Description |
builderForValue | BuildOptions.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setProjectId(String value)
public BuildEventData.Builder setProjectId(String value)
ID of the project.
string project_id = 16;
Parameter | |
---|---|
Name | Description |
value | String The projectId to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setProjectIdBytes(ByteString value)
public BuildEventData.Builder setProjectIdBytes(ByteString value)
ID of the project.
string project_id = 16;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for projectId to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setQueueTtl(Duration value)
public BuildEventData.Builder setQueueTtl(Duration value)
TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
.google.protobuf.Duration queue_ttl = 40;
Parameter | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setQueueTtl(Duration.Builder builderForValue)
public BuildEventData.Builder setQueueTtl(Duration.Builder builderForValue)
TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
.google.protobuf.Duration queue_ttl = 40;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BuildEventData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setResults(Results value)
public BuildEventData.Builder setResults(Results value)
Results of the build.
.google.events.cloud.cloudbuild.v1.Results results = 10;
Parameter | |
---|---|
Name | Description |
value | Results |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setResults(Results.Builder builderForValue)
public BuildEventData.Builder setResults(Results.Builder builderForValue)
Results of the build.
.google.events.cloud.cloudbuild.v1.Results results = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | Results.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setSecrets(int index, Secret value)
public BuildEventData.Builder setSecrets(int index, Secret value)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameters | |
---|---|
Name | Description |
index | int |
value | Secret |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setSecrets(int index, Secret.Builder builderForValue)
public BuildEventData.Builder setSecrets(int index, Secret.Builder builderForValue)
Secrets to decrypt using Cloud Key Management Service.
repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Secret.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setSource(Source value)
public BuildEventData.Builder setSource(Source value)
The location of the source files to build.
.google.events.cloud.cloudbuild.v1.Source source = 3;
Parameter | |
---|---|
Name | Description |
value | Source |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setSource(Source.Builder builderForValue)
public BuildEventData.Builder setSource(Source.Builder builderForValue)
The location of the source files to build.
.google.events.cloud.cloudbuild.v1.Source source = 3;
Parameter | |
---|---|
Name | Description |
builderForValue | Source.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setSourceProvenance(SourceProvenance value)
public BuildEventData.Builder setSourceProvenance(SourceProvenance value)
A permanent fixed identifier for source.
.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
Parameter | |
---|---|
Name | Description |
value | SourceProvenance |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setSourceProvenance(SourceProvenance.Builder builderForValue)
public BuildEventData.Builder setSourceProvenance(SourceProvenance.Builder builderForValue)
A permanent fixed identifier for source.
.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
Parameter | |
---|---|
Name | Description |
builderForValue | SourceProvenance.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setStartTime(Timestamp value)
public BuildEventData.Builder setStartTime(Timestamp value)
Time at which execution of the build was started.
.google.protobuf.Timestamp start_time = 7;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setStartTime(Timestamp.Builder builderForValue)
public BuildEventData.Builder setStartTime(Timestamp.Builder builderForValue)
Time at which execution of the build was started.
.google.protobuf.Timestamp start_time = 7;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setStatus(BuildEventData.Status value)
public BuildEventData.Builder setStatus(BuildEventData.Status value)
Status of the build.
.google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
Parameter | |
---|---|
Name | Description |
value | BuildEventData.Status The status to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setStatusDetail(String value)
public BuildEventData.Builder setStatusDetail(String value)
Customer-readable message about the current status.
string status_detail = 24;
Parameter | |
---|---|
Name | Description |
value | String The statusDetail to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setStatusDetailBytes(ByteString value)
public BuildEventData.Builder setStatusDetailBytes(ByteString value)
Customer-readable message about the current status.
string status_detail = 24;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for statusDetail to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setStatusValue(int value)
public BuildEventData.Builder setStatusValue(int value)
Status of the build.
.google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for status to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setSteps(int index, BuildStep value)
public BuildEventData.Builder setSteps(int index, BuildStep value)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameters | |
---|---|
Name | Description |
index | int |
value | BuildStep |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setSteps(int index, BuildStep.Builder builderForValue)
public BuildEventData.Builder setSteps(int index, BuildStep.Builder builderForValue)
The operations to be performed on the workspace.
repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | BuildStep.Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setTags(int index, String value)
public BuildEventData.Builder setTags(int index, String value)
Tags for annotation of a Build
. These are not docker tags.
repeated string tags = 31;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The tags to set. |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder | This builder for chaining. |
setTimeout(Duration value)
public BuildEventData.Builder setTimeout(Duration value)
Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
.google.protobuf.Duration timeout = 12;
Parameter | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setTimeout(Duration.Builder builderForValue)
public BuildEventData.Builder setTimeout(Duration.Builder builderForValue)
Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
.google.protobuf.Duration timeout = 12;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final BuildEventData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BuildEventData.Builder |