Class BuildEventData.Builder (0.14.1)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The images to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.events.cloud.cloudbuild.v1.Secret>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.events.cloud.cloudbuild.v1.BuildStep>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
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
NameDescription
valueString

The images to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the images to add.

Returns
TypeDescription
BuildEventData.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueSecret
Returns
TypeDescription
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
NameDescription
builderForValueSecret.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSecret
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSecret.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueBuildStep
Returns
TypeDescription
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
NameDescription
builderForValueBuildStep.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBuildStep
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBuildStep.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The tags to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the tags to add.

Returns
TypeDescription
BuildEventData.Builder

This builder for chaining.

build()

public BuildEventData build()
Returns
TypeDescription
BuildEventData

buildPartial()

public BuildEventData buildPartial()
Returns
TypeDescription
BuildEventData

clear()

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

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

clearField(Descriptors.FieldDescriptor field)

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

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

clearId()

public BuildEventData.Builder clearId()

Unique identifier of the build.

string id = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BuildEventData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOptions()

public BuildEventData.Builder clearOptions()

Special options for this build.

.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;

Returns
TypeDescription
BuildEventData.Builder

clearProjectId()

public BuildEventData.Builder clearProjectId()

ID of the project.

string project_id = 16;

Returns
TypeDescription
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
TypeDescription
BuildEventData.Builder

clearResults()

public BuildEventData.Builder clearResults()

Results of the build.

.google.events.cloud.cloudbuild.v1.Results results = 10;

Returns
TypeDescription
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
TypeDescription
BuildEventData.Builder

clearSource()

public BuildEventData.Builder clearSource()

The location of the source files to build.

.google.events.cloud.cloudbuild.v1.Source source = 3;

Returns
TypeDescription
BuildEventData.Builder

clearSourceProvenance()

public BuildEventData.Builder clearSourceProvenance()

A permanent fixed identifier for source.

.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;

Returns
TypeDescription
BuildEventData.Builder

clearStartTime()

public BuildEventData.Builder clearStartTime()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
BuildEventData.Builder

clearStatus()

public BuildEventData.Builder clearStatus()

Status of the build.

.google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;

Returns
TypeDescription
BuildEventData.Builder

This builder for chaining.

clearStatusDetail()

public BuildEventData.Builder clearStatusDetail()

Customer-readable message about the current status.

string status_detail = 24;

Returns
TypeDescription
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
TypeDescription
BuildEventData.Builder

clearSubstitutions()

public BuildEventData.Builder clearSubstitutions()
Returns
TypeDescription
BuildEventData.Builder

clearTags()

public BuildEventData.Builder clearTags()

Tags for annotation of a Build. These are not docker tags.

repeated string tags = 31;

Returns
TypeDescription
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
TypeDescription
BuildEventData.Builder

clearTiming()

public BuildEventData.Builder clearTiming()
Returns
TypeDescription
BuildEventData.Builder

clone()

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

containsSubstitutions(String key)

public boolean containsSubstitutions(String key)

Substitutions data for Build resource.

map<string, string> substitutions = 29;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time at which the request to create the build was received.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public BuildEventData getDefaultInstanceForType()
Returns
TypeDescription
BuildEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getId()

public String getId()

Unique identifier of the build.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Unique identifier of the build.

string id = 1;

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The logUrl.

getLogUrlBytes()

public ByteString getLogUrlBytes()

URL to logs for this build in Google Cloud Console.

string log_url = 25;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for logsBucket.

getMutableSubstitutions()

public Map<String,String> getMutableSubstitutions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableTiming()

public Map<String,TimeSpan> getMutableTiming()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,TimeSpan>

getOptions()

public BuildOptions getOptions()

Special options for this build.

.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;

Returns
TypeDescription
BuildOptions

The options.

getOptionsBuilder()

public BuildOptions.Builder getOptionsBuilder()

Special options for this build.

.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;

Returns
TypeDescription
BuildOptions.Builder

getOptionsOrBuilder()

public BuildOptionsOrBuilder getOptionsOrBuilder()

Special options for this build.

.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;

Returns
TypeDescription
BuildOptionsOrBuilder

getProjectId()

public String getProjectId()

ID of the project.

string project_id = 16;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

ID of the project.

string project_id = 16;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getResults()

public Results getResults()

Results of the build.

.google.events.cloud.cloudbuild.v1.Results results = 10;

Returns
TypeDescription
Results

The results.

getResultsBuilder()

public Results.Builder getResultsBuilder()

Results of the build.

.google.events.cloud.cloudbuild.v1.Results results = 10;

Returns
TypeDescription
Results.Builder

getResultsOrBuilder()

public ResultsOrBuilder getResultsOrBuilder()

Results of the build.

.google.events.cloud.cloudbuild.v1.Results results = 10;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getSecretsCount()

public int getSecretsCount()

Secrets to decrypt using Cloud Key Management Service.

repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;

Returns
TypeDescription
int

getSecretsList()

public List<Secret> getSecretsList()

Secrets to decrypt using Cloud Key Management Service.

repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Source.Builder

getSourceOrBuilder()

public SourceOrBuilder getSourceOrBuilder()

The location of the source files to build.

.google.events.cloud.cloudbuild.v1.Source source = 3;

Returns
TypeDescription
SourceOrBuilder

getSourceProvenance()

public SourceProvenance getSourceProvenance()

A permanent fixed identifier for source.

.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;

Returns
TypeDescription
SourceProvenance

The sourceProvenance.

getSourceProvenanceBuilder()

public SourceProvenance.Builder getSourceProvenanceBuilder()

A permanent fixed identifier for source.

.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;

Returns
TypeDescription
SourceProvenance.Builder

getSourceProvenanceOrBuilder()

public SourceProvenanceOrBuilder getSourceProvenanceOrBuilder()

A permanent fixed identifier for source.

.google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;

Returns
TypeDescription
SourceProvenanceOrBuilder

getStartTime()

public Timestamp getStartTime()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Time at which execution of the build was started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getStatus()

public BuildEventData.Status getStatus()

Status of the build.

.google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;

Returns
TypeDescription
BuildEventData.Status

The status.

getStatusDetail()

public String getStatusDetail()

Customer-readable message about the current status.

string status_detail = 24;

Returns
TypeDescription
String

The statusDetail.

getStatusDetailBytes()

public ByteString getStatusDetailBytes()

Customer-readable message about the current status.

string status_detail = 24;

Returns
TypeDescription
ByteString

The bytes for statusDetail.

getStatusValue()

public int getStatusValue()

Status of the build.

.google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getStepsCount()

public int getStepsCount()

The operations to be performed on the workspace.

repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;

Returns
TypeDescription
int

getStepsList()

public List<BuildStep> getStepsList()

The operations to be performed on the workspace.

repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.events.cloud.cloudbuild.v1.BuildStepOrBuilder>

getSubstitutions()

public Map<String,String> getSubstitutions()
Returns
TypeDescription
Map<String,String>

getSubstitutionsCount()

public int getSubstitutionsCount()

Substitutions data for Build resource.

map<string, string> substitutions = 29;

Returns
TypeDescription
int

getSubstitutionsMap()

public Map<String,String> getSubstitutionsMap()

Substitutions data for Build resource.

map<string, string> substitutions = 29;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getSubstitutionsOrThrow(String key)

public String getSubstitutionsOrThrow(String key)

Substitutions data for Build resource.

map<string, string> substitutions = 29;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getTiming()

public Map<String,TimeSpan> getTiming()

Use #getTimingMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueTimeSpan
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the queueTtl field is set.

hasResults()

public boolean hasResults()

Results of the build.

.google.events.cloud.cloudbuild.v1.Results results = 10;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueArtifacts
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
BuildEventData.Builder

mergeFrom(BuildEventData other)

public BuildEventData.Builder mergeFrom(BuildEventData other)
Parameter
NameDescription
otherBuildEventData
Returns
TypeDescription
BuildEventData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOptions(BuildOptions value)

public BuildEventData.Builder mergeOptions(BuildOptions value)

Special options for this build.

.google.events.cloud.cloudbuild.v1.BuildOptions options = 23;

Parameter
NameDescription
valueBuildOptions
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
BuildEventData.Builder

mergeResults(Results value)

public BuildEventData.Builder mergeResults(Results value)

Results of the build.

.google.events.cloud.cloudbuild.v1.Results results = 10;

Parameter
NameDescription
valueResults
Returns
TypeDescription
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
NameDescription
valueSource
Returns
TypeDescription
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
NameDescription
valueSourceProvenance
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
BuildEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllSubstitutions(Map<String,String> values)

public BuildEventData.Builder putAllSubstitutions(Map<String,String> values)

Substitutions data for Build resource.

map<string, string> substitutions = 29;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
valuesMap<String,TimeSpan>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
valueTimeSpan
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BuildEventData.Builder

removeSubstitutions(String key)

public BuildEventData.Builder removeSubstitutions(String key)

Substitutions data for Build resource.

map<string, string> substitutions = 29;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueArtifacts
Returns
TypeDescription
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
NameDescription
builderForValueArtifacts.Builder
Returns
TypeDescription
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
NameDescription
valueString

The buildTriggerId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for buildTriggerId to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BuildEventData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BuildEventData.Builder

setId(String value)

public BuildEventData.Builder setId(String value)

Unique identifier of the build.

string id = 1;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
BuildEventData.Builder

This builder for chaining.

setIdBytes(ByteString value)

public BuildEventData.Builder setIdBytes(ByteString value)

Unique identifier of the build.

string id = 1;

Parameter
NameDescription
valueByteString

The bytes for id to set.

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

The index to set the value at.

valueString

The images to set.

Returns
TypeDescription
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
NameDescription
valueString

The logUrl to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for logUrl to set.

Returns
TypeDescription
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
NameDescription
valueString

The logsBucket to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for logsBucket to set.

Returns
TypeDescription
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
NameDescription
valueBuildOptions
Returns
TypeDescription
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
NameDescription
builderForValueBuildOptions.Builder
Returns
TypeDescription
BuildEventData.Builder

setProjectId(String value)

public BuildEventData.Builder setProjectId(String value)

ID of the project.

string project_id = 16;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
BuildEventData.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public BuildEventData.Builder setProjectIdBytes(ByteString value)

ID of the project.

string project_id = 16;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BuildEventData.Builder

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

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

setResults(Results value)

public BuildEventData.Builder setResults(Results value)

Results of the build.

.google.events.cloud.cloudbuild.v1.Results results = 10;

Parameter
NameDescription
valueResults
Returns
TypeDescription
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
NameDescription
builderForValueResults.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSecret
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSecret.Builder
Returns
TypeDescription
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
NameDescription
valueSource
Returns
TypeDescription
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
NameDescription
builderForValueSource.Builder
Returns
TypeDescription
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
NameDescription
valueSourceProvenance
Returns
TypeDescription
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
NameDescription
builderForValueSourceProvenance.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueBuildEventData.Status

The status to set.

Returns
TypeDescription
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
NameDescription
valueString

The statusDetail to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for statusDetail to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueBuildStep
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBuildStep.Builder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The tags to set.

Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BuildEventData.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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