com.google.events.cloud.cloudbuild.v1.BuildEventData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloudevent-types Show documentation
Show all versions of google-cloudevent-types Show documentation
Types in Java for CloudEvents issued by Google.
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/events/cloud/cloudbuild/v1/data.proto
package com.google.events.cloud.cloudbuild.v1;
/**
*
*
*
* Build event data for Google Cloud Platform API operations.
*
*
* Protobuf type {@code google.events.cloud.cloudbuild.v1.BuildEventData}
*/
public final class BuildEventData extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.events.cloud.cloudbuild.v1.BuildEventData)
BuildEventDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use BuildEventData.newBuilder() to construct.
private BuildEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private BuildEventData() {
id_ = "";
projectId_ = "";
status_ = 0;
statusDetail_ = "";
steps_ = java.util.Collections.emptyList();
images_ = com.google.protobuf.LazyStringArrayList.EMPTY;
logsBucket_ = "";
buildTriggerId_ = "";
logUrl_ = "";
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
secrets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BuildEventData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.events.cloud.cloudbuild.v1.Data
.internal_static_google_events_cloud_cloudbuild_v1_BuildEventData_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 29:
return internalGetSubstitutions();
case 33:
return internalGetTiming();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.events.cloud.cloudbuild.v1.Data
.internal_static_google_events_cloud_cloudbuild_v1_BuildEventData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.events.cloud.cloudbuild.v1.BuildEventData.class,
com.google.events.cloud.cloudbuild.v1.BuildEventData.Builder.class);
}
/**
*
*
*
* Possible status of a build or build step.
*
*
* Protobuf enum {@code google.events.cloud.cloudbuild.v1.BuildEventData.Status}
*/
public enum Status implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Status of the build is unknown.
*
*
* STATUS_UNKNOWN = 0;
*/
STATUS_UNKNOWN(0),
/**
*
*
*
* Build or step is queued; work has not yet begun.
*
*
* QUEUED = 1;
*/
QUEUED(1),
/**
*
*
*
* Build or step is being executed.
*
*
* WORKING = 2;
*/
WORKING(2),
/**
*
*
*
* Build or step finished successfully.
*
*
* SUCCESS = 3;
*/
SUCCESS(3),
/**
*
*
*
* Build or step failed to complete successfully.
*
*
* FAILURE = 4;
*/
FAILURE(4),
/**
*
*
*
* Build or step failed due to an internal cause.
*
*
* INTERNAL_ERROR = 5;
*/
INTERNAL_ERROR(5),
/**
*
*
*
* Build or step took longer than was allowed.
*
*
* TIMEOUT = 6;
*/
TIMEOUT(6),
/**
*
*
*
* Build or step was canceled by a user.
*
*
* CANCELLED = 7;
*/
CANCELLED(7),
/**
*
*
*
* Build was enqueued for longer than the value of `queue_ttl`.
*
*
* EXPIRED = 9;
*/
EXPIRED(9),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Status of the build is unknown.
*
*
* STATUS_UNKNOWN = 0;
*/
public static final int STATUS_UNKNOWN_VALUE = 0;
/**
*
*
*
* Build or step is queued; work has not yet begun.
*
*
* QUEUED = 1;
*/
public static final int QUEUED_VALUE = 1;
/**
*
*
*
* Build or step is being executed.
*
*
* WORKING = 2;
*/
public static final int WORKING_VALUE = 2;
/**
*
*
*
* Build or step finished successfully.
*
*
* SUCCESS = 3;
*/
public static final int SUCCESS_VALUE = 3;
/**
*
*
*
* Build or step failed to complete successfully.
*
*
* FAILURE = 4;
*/
public static final int FAILURE_VALUE = 4;
/**
*
*
*
* Build or step failed due to an internal cause.
*
*
* INTERNAL_ERROR = 5;
*/
public static final int INTERNAL_ERROR_VALUE = 5;
/**
*
*
*
* Build or step took longer than was allowed.
*
*
* TIMEOUT = 6;
*/
public static final int TIMEOUT_VALUE = 6;
/**
*
*
*
* Build or step was canceled by a user.
*
*
* CANCELLED = 7;
*/
public static final int CANCELLED_VALUE = 7;
/**
*
*
*
* Build was enqueued for longer than the value of `queue_ttl`.
*
*
* EXPIRED = 9;
*/
public static final int EXPIRED_VALUE = 9;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Status forNumber(int value) {
switch (value) {
case 0:
return STATUS_UNKNOWN;
case 1:
return QUEUED;
case 2:
return WORKING;
case 3:
return SUCCESS;
case 4:
return FAILURE;
case 5:
return INTERNAL_ERROR;
case 6:
return TIMEOUT;
case 7:
return CANCELLED;
case 9:
return EXPIRED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.events.cloud.cloudbuild.v1.BuildEventData.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.events.cloud.cloudbuild.v1.BuildEventData.Status)
}
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
*
*
*
* Unique identifier of the build.
*
*
* string id = 1;
*
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
*
*
* Unique identifier of the build.
*
*
* string id = 1;
*
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROJECT_ID_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object projectId_ = "";
/**
*
*
*
* ID of the project.
*
*
* string project_id = 16;
*
* @return The projectId.
*/
@java.lang.Override
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectId_ = s;
return s;
}
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 16;
*
* @return The bytes for projectId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_ = 0;
/**
*
*
*
* Status of the build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
*
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override
public int getStatusValue() {
return status_;
}
/**
*
*
*
* Status of the build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
*
* @return The status.
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildEventData.Status getStatus() {
com.google.events.cloud.cloudbuild.v1.BuildEventData.Status result =
com.google.events.cloud.cloudbuild.v1.BuildEventData.Status.forNumber(status_);
return result == null
? com.google.events.cloud.cloudbuild.v1.BuildEventData.Status.UNRECOGNIZED
: result;
}
public static final int STATUS_DETAIL_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private volatile java.lang.Object statusDetail_ = "";
/**
*
*
*
* Customer-readable message about the current status.
*
*
* string status_detail = 24;
*
* @return The statusDetail.
*/
@java.lang.Override
public java.lang.String getStatusDetail() {
java.lang.Object ref = statusDetail_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusDetail_ = s;
return s;
}
}
/**
*
*
*
* Customer-readable message about the current status.
*
*
* string status_detail = 24;
*
* @return The bytes for statusDetail.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStatusDetailBytes() {
java.lang.Object ref = statusDetail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
statusDetail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 3;
private com.google.events.cloud.cloudbuild.v1.Source source_;
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return source_ != null;
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*
* @return The source.
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.Source getSource() {
return source_ == null
? com.google.events.cloud.cloudbuild.v1.Source.getDefaultInstance()
: source_;
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.SourceOrBuilder getSourceOrBuilder() {
return source_ == null
? com.google.events.cloud.cloudbuild.v1.Source.getDefaultInstance()
: source_;
}
public static final int STEPS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private java.util.List steps_;
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
@java.lang.Override
public java.util.List getStepsList() {
return steps_;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
@java.lang.Override
public java.util.List
getStepsOrBuilderList() {
return steps_;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
@java.lang.Override
public int getStepsCount() {
return steps_.size();
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildStep getSteps(int index) {
return steps_.get(index);
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildStepOrBuilder getStepsOrBuilder(int index) {
return steps_.get(index);
}
public static final int RESULTS_FIELD_NUMBER = 10;
private com.google.events.cloud.cloudbuild.v1.Results results_;
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*
* @return Whether the results field is set.
*/
@java.lang.Override
public boolean hasResults() {
return results_ != null;
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*
* @return The results.
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.Results getResults() {
return results_ == null
? com.google.events.cloud.cloudbuild.v1.Results.getDefaultInstance()
: results_;
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.ResultsOrBuilder getResultsOrBuilder() {
return results_ == null
? com.google.events.cloud.cloudbuild.v1.Results.getDefaultInstance()
: results_;
}
public static final int CREATE_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int START_TIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp startTime_;
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
public static final int FINISH_TIME_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp finishTime_;
/**
*
*
*
* 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;
*
* @return Whether the finishTime field is set.
*/
@java.lang.Override
public boolean hasFinishTime() {
return finishTime_ != null;
}
/**
*
*
*
* 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;
*
* @return The finishTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getFinishTime() {
return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_;
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() {
return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_;
}
public static final int TIMEOUT_FIELD_NUMBER = 12;
private com.google.protobuf.Duration timeout_;
/**
*
*
*
* 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;
*
* @return Whether the timeout field is set.
*/
@java.lang.Override
public boolean hasTimeout() {
return timeout_ != null;
}
/**
*
*
*
* 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;
*
* @return The timeout.
*/
@java.lang.Override
public com.google.protobuf.Duration getTimeout() {
return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
}
public static final int IMAGES_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList images_;
/**
*
*
*
* 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;
*
* @return A list containing the images.
*/
public com.google.protobuf.ProtocolStringList getImagesList() {
return images_;
}
/**
*
*
*
* 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;
*
* @return The count of images.
*/
public int getImagesCount() {
return images_.size();
}
/**
*
*
*
* 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;
*
* @param index The index of the element to return.
* @return The images at the given index.
*/
public java.lang.String getImages(int index) {
return images_.get(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;
*
* @param index The index of the value to return.
* @return The bytes of the images at the given index.
*/
public com.google.protobuf.ByteString getImagesBytes(int index) {
return images_.getByteString(index);
}
public static final int QUEUE_TTL_FIELD_NUMBER = 40;
private com.google.protobuf.Duration queueTtl_;
/**
*
*
*
* 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;
*
* @return Whether the queueTtl field is set.
*/
@java.lang.Override
public boolean hasQueueTtl() {
return queueTtl_ != null;
}
/**
*
*
*
* 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;
*
* @return The queueTtl.
*/
@java.lang.Override
public com.google.protobuf.Duration getQueueTtl() {
return queueTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueTtl_;
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getQueueTtlOrBuilder() {
return queueTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueTtl_;
}
public static final int ARTIFACTS_FIELD_NUMBER = 37;
private com.google.events.cloud.cloudbuild.v1.Artifacts artifacts_;
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*
* @return Whether the artifacts field is set.
*/
@java.lang.Override
public boolean hasArtifacts() {
return artifacts_ != null;
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*
* @return The artifacts.
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.Artifacts getArtifacts() {
return artifacts_ == null
? com.google.events.cloud.cloudbuild.v1.Artifacts.getDefaultInstance()
: artifacts_;
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.ArtifactsOrBuilder getArtifactsOrBuilder() {
return artifacts_ == null
? com.google.events.cloud.cloudbuild.v1.Artifacts.getDefaultInstance()
: artifacts_;
}
public static final int LOGS_BUCKET_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private volatile java.lang.Object logsBucket_ = "";
/**
*
*
*
* Google Cloud Storage bucket where logs should be written (see
* [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
* Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
*
*
* string logs_bucket = 19;
*
* @return The logsBucket.
*/
@java.lang.Override
public java.lang.String getLogsBucket() {
java.lang.Object ref = logsBucket_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logsBucket_ = s;
return s;
}
}
/**
*
*
*
* Google Cloud Storage bucket where logs should be written (see
* [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
* Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
*
*
* string logs_bucket = 19;
*
* @return The bytes for logsBucket.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLogsBucketBytes() {
java.lang.Object ref = logsBucket_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
logsBucket_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 21;
private com.google.events.cloud.cloudbuild.v1.SourceProvenance sourceProvenance_;
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*
* @return Whether the sourceProvenance field is set.
*/
@java.lang.Override
public boolean hasSourceProvenance() {
return sourceProvenance_ != null;
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*
* @return The sourceProvenance.
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.SourceProvenance getSourceProvenance() {
return sourceProvenance_ == null
? com.google.events.cloud.cloudbuild.v1.SourceProvenance.getDefaultInstance()
: sourceProvenance_;
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.SourceProvenanceOrBuilder
getSourceProvenanceOrBuilder() {
return sourceProvenance_ == null
? com.google.events.cloud.cloudbuild.v1.SourceProvenance.getDefaultInstance()
: sourceProvenance_;
}
public static final int BUILD_TRIGGER_ID_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private volatile java.lang.Object buildTriggerId_ = "";
/**
*
*
*
* The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
*
* string build_trigger_id = 22;
*
* @return The buildTriggerId.
*/
@java.lang.Override
public java.lang.String getBuildTriggerId() {
java.lang.Object ref = buildTriggerId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buildTriggerId_ = s;
return s;
}
}
/**
*
*
*
* The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
*
* string build_trigger_id = 22;
*
* @return The bytes for buildTriggerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBuildTriggerIdBytes() {
java.lang.Object ref = buildTriggerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
buildTriggerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONS_FIELD_NUMBER = 23;
private com.google.events.cloud.cloudbuild.v1.BuildOptions options_;
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*
* @return Whether the options field is set.
*/
@java.lang.Override
public boolean hasOptions() {
return options_ != null;
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*
* @return The options.
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildOptions getOptions() {
return options_ == null
? com.google.events.cloud.cloudbuild.v1.BuildOptions.getDefaultInstance()
: options_;
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildOptionsOrBuilder getOptionsOrBuilder() {
return options_ == null
? com.google.events.cloud.cloudbuild.v1.BuildOptions.getDefaultInstance()
: options_;
}
public static final int LOG_URL_FIELD_NUMBER = 25;
@SuppressWarnings("serial")
private volatile java.lang.Object logUrl_ = "";
/**
*
*
*
* URL to logs for this build in Google Cloud Console.
*
*
* string log_url = 25;
*
* @return The logUrl.
*/
@java.lang.Override
public java.lang.String getLogUrl() {
java.lang.Object ref = logUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logUrl_ = s;
return s;
}
}
/**
*
*
*
* URL to logs for this build in Google Cloud Console.
*
*
* string log_url = 25;
*
* @return The bytes for logUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLogUrlBytes() {
java.lang.Object ref = logUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
logUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBSTITUTIONS_FIELD_NUMBER = 29;
private static final class SubstitutionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.events.cloud.cloudbuild.v1.Data
.internal_static_google_events_cloud_cloudbuild_v1_BuildEventData_SubstitutionsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField substitutions_;
private com.google.protobuf.MapField
internalGetSubstitutions() {
if (substitutions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
SubstitutionsDefaultEntryHolder.defaultEntry);
}
return substitutions_;
}
public int getSubstitutionsCount() {
return internalGetSubstitutions().getMap().size();
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
@java.lang.Override
public boolean containsSubstitutions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetSubstitutions().getMap().containsKey(key);
}
/** Use {@link #getSubstitutionsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getSubstitutions() {
return getSubstitutionsMap();
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
@java.lang.Override
public java.util.Map getSubstitutionsMap() {
return internalGetSubstitutions().getMap();
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
@java.lang.Override
public /* nullable */ java.lang.String getSubstitutionsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetSubstitutions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
@java.lang.Override
public java.lang.String getSubstitutionsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetSubstitutions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int TAGS_FIELD_NUMBER = 31;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList tags_;
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList getTagsList() {
return tags_;
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int SECRETS_FIELD_NUMBER = 32;
@SuppressWarnings("serial")
private java.util.List secrets_;
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
@java.lang.Override
public java.util.List getSecretsList() {
return secrets_;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
@java.lang.Override
public java.util.List
getSecretsOrBuilderList() {
return secrets_;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
@java.lang.Override
public int getSecretsCount() {
return secrets_.size();
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.Secret getSecrets(int index) {
return secrets_.get(index);
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.SecretOrBuilder getSecretsOrBuilder(int index) {
return secrets_.get(index);
}
public static final int TIMING_FIELD_NUMBER = 33;
private static final class TimingDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.events.cloud.cloudbuild.v1.TimeSpan>
defaultEntry =
com.google.protobuf.MapEntry
.
newDefaultInstance(
com.google.events.cloud.cloudbuild.v1.Data
.internal_static_google_events_cloud_cloudbuild_v1_BuildEventData_TimingEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.events.cloud.cloudbuild.v1.TimeSpan.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.google.events.cloud.cloudbuild.v1.TimeSpan>
timing_;
private com.google.protobuf.MapField<
java.lang.String, com.google.events.cloud.cloudbuild.v1.TimeSpan>
internalGetTiming() {
if (timing_ == null) {
return com.google.protobuf.MapField.emptyMapField(TimingDefaultEntryHolder.defaultEntry);
}
return timing_;
}
public int getTimingCount() {
return internalGetTiming().getMap().size();
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public boolean containsTiming(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetTiming().getMap().containsKey(key);
}
/** Use {@link #getTimingMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getTiming() {
return 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;
*/
@java.lang.Override
public java.util.Map
getTimingMap() {
return internalGetTiming().getMap();
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public /* nullable */ com.google.events.cloud.cloudbuild.v1.TimeSpan getTimingOrDefault(
java.lang.String key,
/* nullable */
com.google.events.cloud.cloudbuild.v1.TimeSpan defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetTiming().getMap();
return map.containsKey(key) ? map.get(key) : 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;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.TimeSpan getTimingOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetTiming().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (status_
!= com.google.events.cloud.cloudbuild.v1.BuildEventData.Status.STATUS_UNKNOWN.getNumber()) {
output.writeEnum(2, status_);
}
if (source_ != null) {
output.writeMessage(3, getSource());
}
if (createTime_ != null) {
output.writeMessage(6, getCreateTime());
}
if (startTime_ != null) {
output.writeMessage(7, getStartTime());
}
if (finishTime_ != null) {
output.writeMessage(8, getFinishTime());
}
if (results_ != null) {
output.writeMessage(10, getResults());
}
for (int i = 0; i < steps_.size(); i++) {
output.writeMessage(11, steps_.get(i));
}
if (timeout_ != null) {
output.writeMessage(12, getTimeout());
}
for (int i = 0; i < images_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, images_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, projectId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsBucket_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, logsBucket_);
}
if (sourceProvenance_ != null) {
output.writeMessage(21, getSourceProvenance());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildTriggerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, buildTriggerId_);
}
if (options_ != null) {
output.writeMessage(23, getOptions());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, statusDetail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 25, logUrl_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetSubstitutions(), SubstitutionsDefaultEntryHolder.defaultEntry, 29);
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 31, tags_.getRaw(i));
}
for (int i = 0; i < secrets_.size(); i++) {
output.writeMessage(32, secrets_.get(i));
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetTiming(), TimingDefaultEntryHolder.defaultEntry, 33);
if (artifacts_ != null) {
output.writeMessage(37, getArtifacts());
}
if (queueTtl_ != null) {
output.writeMessage(40, getQueueTtl());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (status_
!= com.google.events.cloud.cloudbuild.v1.BuildEventData.Status.STATUS_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_);
}
if (source_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSource());
}
if (createTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime());
}
if (startTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartTime());
}
if (finishTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFinishTime());
}
if (results_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getResults());
}
for (int i = 0; i < steps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, steps_.get(i));
}
if (timeout_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTimeout());
}
{
int dataSize = 0;
for (int i = 0; i < images_.size(); i++) {
dataSize += computeStringSizeNoTag(images_.getRaw(i));
}
size += dataSize;
size += 1 * getImagesList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, projectId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsBucket_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, logsBucket_);
}
if (sourceProvenance_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getSourceProvenance());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildTriggerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, buildTriggerId_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getOptions());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, statusDetail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, logUrl_);
}
for (java.util.Map.Entry entry :
internalGetSubstitutions().getMap().entrySet()) {
com.google.protobuf.MapEntry substitutions__ =
SubstitutionsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, substitutions__);
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 2 * getTagsList().size();
}
for (int i = 0; i < secrets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, secrets_.get(i));
}
for (java.util.Map.Entry
entry : internalGetTiming().getMap().entrySet()) {
com.google.protobuf.MapEntry
timing__ =
TimingDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, timing__);
}
if (artifacts_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getArtifacts());
}
if (queueTtl_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getQueueTtl());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.events.cloud.cloudbuild.v1.BuildEventData)) {
return super.equals(obj);
}
com.google.events.cloud.cloudbuild.v1.BuildEventData other =
(com.google.events.cloud.cloudbuild.v1.BuildEventData) obj;
if (!getId().equals(other.getId())) return false;
if (!getProjectId().equals(other.getProjectId())) return false;
if (status_ != other.status_) return false;
if (!getStatusDetail().equals(other.getStatusDetail())) return false;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource().equals(other.getSource())) return false;
}
if (!getStepsList().equals(other.getStepsList())) return false;
if (hasResults() != other.hasResults()) return false;
if (hasResults()) {
if (!getResults().equals(other.getResults())) return false;
}
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime().equals(other.getStartTime())) return false;
}
if (hasFinishTime() != other.hasFinishTime()) return false;
if (hasFinishTime()) {
if (!getFinishTime().equals(other.getFinishTime())) return false;
}
if (hasTimeout() != other.hasTimeout()) return false;
if (hasTimeout()) {
if (!getTimeout().equals(other.getTimeout())) return false;
}
if (!getImagesList().equals(other.getImagesList())) return false;
if (hasQueueTtl() != other.hasQueueTtl()) return false;
if (hasQueueTtl()) {
if (!getQueueTtl().equals(other.getQueueTtl())) return false;
}
if (hasArtifacts() != other.hasArtifacts()) return false;
if (hasArtifacts()) {
if (!getArtifacts().equals(other.getArtifacts())) return false;
}
if (!getLogsBucket().equals(other.getLogsBucket())) return false;
if (hasSourceProvenance() != other.hasSourceProvenance()) return false;
if (hasSourceProvenance()) {
if (!getSourceProvenance().equals(other.getSourceProvenance())) return false;
}
if (!getBuildTriggerId().equals(other.getBuildTriggerId())) return false;
if (hasOptions() != other.hasOptions()) return false;
if (hasOptions()) {
if (!getOptions().equals(other.getOptions())) return false;
}
if (!getLogUrl().equals(other.getLogUrl())) return false;
if (!internalGetSubstitutions().equals(other.internalGetSubstitutions())) return false;
if (!getTagsList().equals(other.getTagsList())) return false;
if (!getSecretsList().equals(other.getSecretsList())) return false;
if (!internalGetTiming().equals(other.internalGetTiming())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectId().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getStatusDetail().hashCode();
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (getStepsCount() > 0) {
hash = (37 * hash) + STEPS_FIELD_NUMBER;
hash = (53 * hash) + getStepsList().hashCode();
}
if (hasResults()) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResults().hashCode();
}
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
if (hasFinishTime()) {
hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER;
hash = (53 * hash) + getFinishTime().hashCode();
}
if (hasTimeout()) {
hash = (37 * hash) + TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getTimeout().hashCode();
}
if (getImagesCount() > 0) {
hash = (37 * hash) + IMAGES_FIELD_NUMBER;
hash = (53 * hash) + getImagesList().hashCode();
}
if (hasQueueTtl()) {
hash = (37 * hash) + QUEUE_TTL_FIELD_NUMBER;
hash = (53 * hash) + getQueueTtl().hashCode();
}
if (hasArtifacts()) {
hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER;
hash = (53 * hash) + getArtifacts().hashCode();
}
hash = (37 * hash) + LOGS_BUCKET_FIELD_NUMBER;
hash = (53 * hash) + getLogsBucket().hashCode();
if (hasSourceProvenance()) {
hash = (37 * hash) + SOURCE_PROVENANCE_FIELD_NUMBER;
hash = (53 * hash) + getSourceProvenance().hashCode();
}
hash = (37 * hash) + BUILD_TRIGGER_ID_FIELD_NUMBER;
hash = (53 * hash) + getBuildTriggerId().hashCode();
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (37 * hash) + LOG_URL_FIELD_NUMBER;
hash = (53 * hash) + getLogUrl().hashCode();
if (!internalGetSubstitutions().getMap().isEmpty()) {
hash = (37 * hash) + SUBSTITUTIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetSubstitutions().hashCode();
}
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
if (getSecretsCount() > 0) {
hash = (37 * hash) + SECRETS_FIELD_NUMBER;
hash = (53 * hash) + getSecretsList().hashCode();
}
if (!internalGetTiming().getMap().isEmpty()) {
hash = (37 * hash) + TIMING_FIELD_NUMBER;
hash = (53 * hash) + internalGetTiming().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.events.cloud.cloudbuild.v1.BuildEventData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Build event data for Google Cloud Platform API operations.
*
*
* Protobuf type {@code google.events.cloud.cloudbuild.v1.BuildEventData}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.events.cloud.cloudbuild.v1.BuildEventData)
com.google.events.cloud.cloudbuild.v1.BuildEventDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.events.cloud.cloudbuild.v1.Data
.internal_static_google_events_cloud_cloudbuild_v1_BuildEventData_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 29:
return internalGetSubstitutions();
case 33:
return internalGetTiming();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 29:
return internalGetMutableSubstitutions();
case 33:
return internalGetMutableTiming();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.events.cloud.cloudbuild.v1.Data
.internal_static_google_events_cloud_cloudbuild_v1_BuildEventData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.events.cloud.cloudbuild.v1.BuildEventData.class,
com.google.events.cloud.cloudbuild.v1.BuildEventData.Builder.class);
}
// Construct using com.google.events.cloud.cloudbuild.v1.BuildEventData.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
projectId_ = "";
status_ = 0;
statusDetail_ = "";
source_ = null;
if (sourceBuilder_ != null) {
sourceBuilder_.dispose();
sourceBuilder_ = null;
}
if (stepsBuilder_ == null) {
steps_ = java.util.Collections.emptyList();
} else {
steps_ = null;
stepsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
results_ = null;
if (resultsBuilder_ != null) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
}
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
finishTime_ = null;
if (finishTimeBuilder_ != null) {
finishTimeBuilder_.dispose();
finishTimeBuilder_ = null;
}
timeout_ = null;
if (timeoutBuilder_ != null) {
timeoutBuilder_.dispose();
timeoutBuilder_ = null;
}
images_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000800);
queueTtl_ = null;
if (queueTtlBuilder_ != null) {
queueTtlBuilder_.dispose();
queueTtlBuilder_ = null;
}
artifacts_ = null;
if (artifactsBuilder_ != null) {
artifactsBuilder_.dispose();
artifactsBuilder_ = null;
}
logsBucket_ = "";
sourceProvenance_ = null;
if (sourceProvenanceBuilder_ != null) {
sourceProvenanceBuilder_.dispose();
sourceProvenanceBuilder_ = null;
}
buildTriggerId_ = "";
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
logUrl_ = "";
internalGetMutableSubstitutions().clear();
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00100000);
if (secretsBuilder_ == null) {
secrets_ = java.util.Collections.emptyList();
} else {
secrets_ = null;
secretsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00200000);
internalGetMutableTiming().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.events.cloud.cloudbuild.v1.Data
.internal_static_google_events_cloud_cloudbuild_v1_BuildEventData_descriptor;
}
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildEventData getDefaultInstanceForType() {
return com.google.events.cloud.cloudbuild.v1.BuildEventData.getDefaultInstance();
}
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildEventData build() {
com.google.events.cloud.cloudbuild.v1.BuildEventData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildEventData buildPartial() {
com.google.events.cloud.cloudbuild.v1.BuildEventData result =
new com.google.events.cloud.cloudbuild.v1.BuildEventData(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.events.cloud.cloudbuild.v1.BuildEventData result) {
if (stepsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
steps_ = java.util.Collections.unmodifiableList(steps_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.steps_ = steps_;
} else {
result.steps_ = stepsBuilder_.build();
}
if (((bitField0_ & 0x00000800) != 0)) {
images_ = images_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000800);
}
result.images_ = images_;
if (((bitField0_ & 0x00100000) != 0)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00100000);
}
result.tags_ = tags_;
if (secretsBuilder_ == null) {
if (((bitField0_ & 0x00200000) != 0)) {
secrets_ = java.util.Collections.unmodifiableList(secrets_);
bitField0_ = (bitField0_ & ~0x00200000);
}
result.secrets_ = secrets_;
} else {
result.secrets_ = secretsBuilder_.build();
}
}
private void buildPartial0(com.google.events.cloud.cloudbuild.v1.BuildEventData result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.projectId_ = projectId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.statusDetail_ = statusDetail_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.results_ = resultsBuilder_ == null ? results_ : resultsBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.finishTime_ = finishTimeBuilder_ == null ? finishTime_ : finishTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build();
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.queueTtl_ = queueTtlBuilder_ == null ? queueTtl_ : queueTtlBuilder_.build();
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.artifacts_ = artifactsBuilder_ == null ? artifacts_ : artifactsBuilder_.build();
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.logsBucket_ = logsBucket_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.sourceProvenance_ =
sourceProvenanceBuilder_ == null ? sourceProvenance_ : sourceProvenanceBuilder_.build();
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.buildTriggerId_ = buildTriggerId_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build();
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.logUrl_ = logUrl_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.substitutions_ = internalGetSubstitutions();
result.substitutions_.makeImmutable();
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.timing_ = internalGetTiming();
result.timing_.makeImmutable();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.events.cloud.cloudbuild.v1.BuildEventData) {
return mergeFrom((com.google.events.cloud.cloudbuild.v1.BuildEventData) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.events.cloud.cloudbuild.v1.BuildEventData other) {
if (other == com.google.events.cloud.cloudbuild.v1.BuildEventData.getDefaultInstance())
return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getProjectId().isEmpty()) {
projectId_ = other.projectId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.getStatusDetail().isEmpty()) {
statusDetail_ = other.statusDetail_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasSource()) {
mergeSource(other.getSource());
}
if (stepsBuilder_ == null) {
if (!other.steps_.isEmpty()) {
if (steps_.isEmpty()) {
steps_ = other.steps_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureStepsIsMutable();
steps_.addAll(other.steps_);
}
onChanged();
}
} else {
if (!other.steps_.isEmpty()) {
if (stepsBuilder_.isEmpty()) {
stepsBuilder_.dispose();
stepsBuilder_ = null;
steps_ = other.steps_;
bitField0_ = (bitField0_ & ~0x00000020);
stepsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getStepsFieldBuilder()
: null;
} else {
stepsBuilder_.addAllMessages(other.steps_);
}
}
}
if (other.hasResults()) {
mergeResults(other.getResults());
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
if (other.hasFinishTime()) {
mergeFinishTime(other.getFinishTime());
}
if (other.hasTimeout()) {
mergeTimeout(other.getTimeout());
}
if (!other.images_.isEmpty()) {
if (images_.isEmpty()) {
images_ = other.images_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureImagesIsMutable();
images_.addAll(other.images_);
}
onChanged();
}
if (other.hasQueueTtl()) {
mergeQueueTtl(other.getQueueTtl());
}
if (other.hasArtifacts()) {
mergeArtifacts(other.getArtifacts());
}
if (!other.getLogsBucket().isEmpty()) {
logsBucket_ = other.logsBucket_;
bitField0_ |= 0x00004000;
onChanged();
}
if (other.hasSourceProvenance()) {
mergeSourceProvenance(other.getSourceProvenance());
}
if (!other.getBuildTriggerId().isEmpty()) {
buildTriggerId_ = other.buildTriggerId_;
bitField0_ |= 0x00010000;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
if (!other.getLogUrl().isEmpty()) {
logUrl_ = other.logUrl_;
bitField0_ |= 0x00040000;
onChanged();
}
internalGetMutableSubstitutions().mergeFrom(other.internalGetSubstitutions());
bitField0_ |= 0x00080000;
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (secretsBuilder_ == null) {
if (!other.secrets_.isEmpty()) {
if (secrets_.isEmpty()) {
secrets_ = other.secrets_;
bitField0_ = (bitField0_ & ~0x00200000);
} else {
ensureSecretsIsMutable();
secrets_.addAll(other.secrets_);
}
onChanged();
}
} else {
if (!other.secrets_.isEmpty()) {
if (secretsBuilder_.isEmpty()) {
secretsBuilder_.dispose();
secretsBuilder_ = null;
secrets_ = other.secrets_;
bitField0_ = (bitField0_ & ~0x00200000);
secretsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSecretsFieldBuilder()
: null;
} else {
secretsBuilder_.addAllMessages(other.secrets_);
}
}
}
internalGetMutableTiming().mergeFrom(other.internalGetTiming());
bitField0_ |= 0x00400000;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
status_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 16
case 26:
{
input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 26
case 50:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 50
case 58:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 58
case 66:
{
input.readMessage(getFinishTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 66
case 82:
{
input.readMessage(getResultsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 82
case 90:
{
com.google.events.cloud.cloudbuild.v1.BuildStep m =
input.readMessage(
com.google.events.cloud.cloudbuild.v1.BuildStep.parser(),
extensionRegistry);
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.add(m);
} else {
stepsBuilder_.addMessage(m);
}
break;
} // case 90
case 98:
{
input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 98
case 106:
{
java.lang.String s = input.readStringRequireUtf8();
ensureImagesIsMutable();
images_.add(s);
break;
} // case 106
case 130:
{
projectId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 130
case 154:
{
logsBucket_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 154
case 170:
{
input.readMessage(
getSourceProvenanceFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00008000;
break;
} // case 170
case 178:
{
buildTriggerId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 178
case 186:
{
input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00020000;
break;
} // case 186
case 194:
{
statusDetail_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 194
case 202:
{
logUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00040000;
break;
} // case 202
case 234:
{
com.google.protobuf.MapEntry substitutions__ =
input.readMessage(
SubstitutionsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableSubstitutions()
.getMutableMap()
.put(substitutions__.getKey(), substitutions__.getValue());
bitField0_ |= 0x00080000;
break;
} // case 234
case 250:
{
java.lang.String s = input.readStringRequireUtf8();
ensureTagsIsMutable();
tags_.add(s);
break;
} // case 250
case 258:
{
com.google.events.cloud.cloudbuild.v1.Secret m =
input.readMessage(
com.google.events.cloud.cloudbuild.v1.Secret.parser(), extensionRegistry);
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.add(m);
} else {
secretsBuilder_.addMessage(m);
}
break;
} // case 258
case 266:
{
com.google.protobuf.MapEntry<
java.lang.String, com.google.events.cloud.cloudbuild.v1.TimeSpan>
timing__ =
input.readMessage(
TimingDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableTiming()
.getMutableMap()
.put(timing__.getKey(), timing__.getValue());
bitField0_ |= 0x00400000;
break;
} // case 266
case 298:
{
input.readMessage(getArtifactsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 298
case 322:
{
input.readMessage(getQueueTtlFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 322
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
*
*
* Unique identifier of the build.
*
*
* string id = 1;
*
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Unique identifier of the build.
*
*
* string id = 1;
*
* @return The bytes for id.
*/
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Unique identifier of the build.
*
*
* string id = 1;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Unique identifier of the build.
*
*
* string id = 1;
*
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Unique identifier of the build.
*
*
* string id = 1;
*
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object projectId_ = "";
/**
*
*
*
* ID of the project.
*
*
* string project_id = 16;
*
* @return The projectId.
*/
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 16;
*
* @return The bytes for projectId.
*/
public com.google.protobuf.ByteString getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 16;
*
* @param value The projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
projectId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 16;
*
* @return This builder for chaining.
*/
public Builder clearProjectId() {
projectId_ = getDefaultInstance().getProjectId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* ID of the project.
*
*
* string project_id = 16;
*
* @param value The bytes for projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
projectId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int status_ = 0;
/**
*
*
*
* Status of the build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
*
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override
public int getStatusValue() {
return status_;
}
/**
*
*
*
* Status of the build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
*
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Status of the build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
*
* @return The status.
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildEventData.Status getStatus() {
com.google.events.cloud.cloudbuild.v1.BuildEventData.Status result =
com.google.events.cloud.cloudbuild.v1.BuildEventData.Status.forNumber(status_);
return result == null
? com.google.events.cloud.cloudbuild.v1.BuildEventData.Status.UNRECOGNIZED
: result;
}
/**
*
*
*
* Status of the build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
*
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.events.cloud.cloudbuild.v1.BuildEventData.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Status of the build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildEventData.Status status = 2;
*
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 0;
onChanged();
return this;
}
private java.lang.Object statusDetail_ = "";
/**
*
*
*
* Customer-readable message about the current status.
*
*
* string status_detail = 24;
*
* @return The statusDetail.
*/
public java.lang.String getStatusDetail() {
java.lang.Object ref = statusDetail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusDetail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Customer-readable message about the current status.
*
*
* string status_detail = 24;
*
* @return The bytes for statusDetail.
*/
public com.google.protobuf.ByteString getStatusDetailBytes() {
java.lang.Object ref = statusDetail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
statusDetail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Customer-readable message about the current status.
*
*
* string status_detail = 24;
*
* @param value The statusDetail to set.
* @return This builder for chaining.
*/
public Builder setStatusDetail(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
statusDetail_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Customer-readable message about the current status.
*
*
* string status_detail = 24;
*
* @return This builder for chaining.
*/
public Builder clearStatusDetail() {
statusDetail_ = getDefaultInstance().getStatusDetail();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Customer-readable message about the current status.
*
*
* string status_detail = 24;
*
* @param value The bytes for statusDetail to set.
* @return This builder for chaining.
*/
public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
statusDetail_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.events.cloud.cloudbuild.v1.Source source_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Source,
com.google.events.cloud.cloudbuild.v1.Source.Builder,
com.google.events.cloud.cloudbuild.v1.SourceOrBuilder>
sourceBuilder_;
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*
* @return The source.
*/
public com.google.events.cloud.cloudbuild.v1.Source getSource() {
if (sourceBuilder_ == null) {
return source_ == null
? com.google.events.cloud.cloudbuild.v1.Source.getDefaultInstance()
: source_;
} else {
return sourceBuilder_.getMessage();
}
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*/
public Builder setSource(com.google.events.cloud.cloudbuild.v1.Source value) {
if (sourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
} else {
sourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*/
public Builder setSource(com.google.events.cloud.cloudbuild.v1.Source.Builder builderForValue) {
if (sourceBuilder_ == null) {
source_ = builderForValue.build();
} else {
sourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*/
public Builder mergeSource(com.google.events.cloud.cloudbuild.v1.Source value) {
if (sourceBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& source_ != null
&& source_ != com.google.events.cloud.cloudbuild.v1.Source.getDefaultInstance()) {
getSourceBuilder().mergeFrom(value);
} else {
source_ = value;
}
} else {
sourceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000010);
source_ = null;
if (sourceBuilder_ != null) {
sourceBuilder_.dispose();
sourceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*/
public com.google.events.cloud.cloudbuild.v1.Source.Builder getSourceBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getSourceFieldBuilder().getBuilder();
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*/
public com.google.events.cloud.cloudbuild.v1.SourceOrBuilder getSourceOrBuilder() {
if (sourceBuilder_ != null) {
return sourceBuilder_.getMessageOrBuilder();
} else {
return source_ == null
? com.google.events.cloud.cloudbuild.v1.Source.getDefaultInstance()
: source_;
}
}
/**
*
*
*
* The location of the source files to build.
*
*
* .google.events.cloud.cloudbuild.v1.Source source = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Source,
com.google.events.cloud.cloudbuild.v1.Source.Builder,
com.google.events.cloud.cloudbuild.v1.SourceOrBuilder>
getSourceFieldBuilder() {
if (sourceBuilder_ == null) {
sourceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Source,
com.google.events.cloud.cloudbuild.v1.Source.Builder,
com.google.events.cloud.cloudbuild.v1.SourceOrBuilder>(
getSource(), getParentForChildren(), isClean());
source_ = null;
}
return sourceBuilder_;
}
private java.util.List steps_ =
java.util.Collections.emptyList();
private void ensureStepsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
steps_ = new java.util.ArrayList(steps_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.BuildStep,
com.google.events.cloud.cloudbuild.v1.BuildStep.Builder,
com.google.events.cloud.cloudbuild.v1.BuildStepOrBuilder>
stepsBuilder_;
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public java.util.List getStepsList() {
if (stepsBuilder_ == null) {
return java.util.Collections.unmodifiableList(steps_);
} else {
return stepsBuilder_.getMessageList();
}
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public int getStepsCount() {
if (stepsBuilder_ == null) {
return steps_.size();
} else {
return stepsBuilder_.getCount();
}
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public com.google.events.cloud.cloudbuild.v1.BuildStep getSteps(int index) {
if (stepsBuilder_ == null) {
return steps_.get(index);
} else {
return stepsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder setSteps(int index, com.google.events.cloud.cloudbuild.v1.BuildStep value) {
if (stepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStepsIsMutable();
steps_.set(index, value);
onChanged();
} else {
stepsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder setSteps(
int index, com.google.events.cloud.cloudbuild.v1.BuildStep.Builder builderForValue) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.set(index, builderForValue.build());
onChanged();
} else {
stepsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder addSteps(com.google.events.cloud.cloudbuild.v1.BuildStep value) {
if (stepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStepsIsMutable();
steps_.add(value);
onChanged();
} else {
stepsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder addSteps(int index, com.google.events.cloud.cloudbuild.v1.BuildStep value) {
if (stepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStepsIsMutable();
steps_.add(index, value);
onChanged();
} else {
stepsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder addSteps(
com.google.events.cloud.cloudbuild.v1.BuildStep.Builder builderForValue) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.add(builderForValue.build());
onChanged();
} else {
stepsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder addSteps(
int index, com.google.events.cloud.cloudbuild.v1.BuildStep.Builder builderForValue) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.add(index, builderForValue.build());
onChanged();
} else {
stepsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder addAllSteps(
java.lang.Iterable values) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_);
onChanged();
} else {
stepsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder clearSteps() {
if (stepsBuilder_ == null) {
steps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
stepsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public Builder removeSteps(int index) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.remove(index);
onChanged();
} else {
stepsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public com.google.events.cloud.cloudbuild.v1.BuildStep.Builder getStepsBuilder(int index) {
return getStepsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public com.google.events.cloud.cloudbuild.v1.BuildStepOrBuilder getStepsOrBuilder(int index) {
if (stepsBuilder_ == null) {
return steps_.get(index);
} else {
return stepsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public java.util.List
getStepsOrBuilderList() {
if (stepsBuilder_ != null) {
return stepsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(steps_);
}
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public com.google.events.cloud.cloudbuild.v1.BuildStep.Builder addStepsBuilder() {
return getStepsFieldBuilder()
.addBuilder(com.google.events.cloud.cloudbuild.v1.BuildStep.getDefaultInstance());
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public com.google.events.cloud.cloudbuild.v1.BuildStep.Builder addStepsBuilder(int index) {
return getStepsFieldBuilder()
.addBuilder(index, com.google.events.cloud.cloudbuild.v1.BuildStep.getDefaultInstance());
}
/**
*
*
*
* The operations to be performed on the workspace.
*
*
* repeated .google.events.cloud.cloudbuild.v1.BuildStep steps = 11;
*/
public java.util.List
getStepsBuilderList() {
return getStepsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.BuildStep,
com.google.events.cloud.cloudbuild.v1.BuildStep.Builder,
com.google.events.cloud.cloudbuild.v1.BuildStepOrBuilder>
getStepsFieldBuilder() {
if (stepsBuilder_ == null) {
stepsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.BuildStep,
com.google.events.cloud.cloudbuild.v1.BuildStep.Builder,
com.google.events.cloud.cloudbuild.v1.BuildStepOrBuilder>(
steps_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean());
steps_ = null;
}
return stepsBuilder_;
}
private com.google.events.cloud.cloudbuild.v1.Results results_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Results,
com.google.events.cloud.cloudbuild.v1.Results.Builder,
com.google.events.cloud.cloudbuild.v1.ResultsOrBuilder>
resultsBuilder_;
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*
* @return Whether the results field is set.
*/
public boolean hasResults() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*
* @return The results.
*/
public com.google.events.cloud.cloudbuild.v1.Results getResults() {
if (resultsBuilder_ == null) {
return results_ == null
? com.google.events.cloud.cloudbuild.v1.Results.getDefaultInstance()
: results_;
} else {
return resultsBuilder_.getMessage();
}
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*/
public Builder setResults(com.google.events.cloud.cloudbuild.v1.Results value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
results_ = value;
} else {
resultsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*/
public Builder setResults(
com.google.events.cloud.cloudbuild.v1.Results.Builder builderForValue) {
if (resultsBuilder_ == null) {
results_ = builderForValue.build();
} else {
resultsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*/
public Builder mergeResults(com.google.events.cloud.cloudbuild.v1.Results value) {
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& results_ != null
&& results_ != com.google.events.cloud.cloudbuild.v1.Results.getDefaultInstance()) {
getResultsBuilder().mergeFrom(value);
} else {
results_ = value;
}
} else {
resultsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*/
public Builder clearResults() {
bitField0_ = (bitField0_ & ~0x00000040);
results_ = null;
if (resultsBuilder_ != null) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*/
public com.google.events.cloud.cloudbuild.v1.Results.Builder getResultsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getResultsFieldBuilder().getBuilder();
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*/
public com.google.events.cloud.cloudbuild.v1.ResultsOrBuilder getResultsOrBuilder() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilder();
} else {
return results_ == null
? com.google.events.cloud.cloudbuild.v1.Results.getDefaultInstance()
: results_;
}
}
/**
*
*
*
* Results of the build.
*
*
* .google.events.cloud.cloudbuild.v1.Results results = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Results,
com.google.events.cloud.cloudbuild.v1.Results.Builder,
com.google.events.cloud.cloudbuild.v1.ResultsOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Results,
com.google.events.cloud.cloudbuild.v1.Results.Builder,
com.google.events.cloud.cloudbuild.v1.ResultsOrBuilder>(
getResults(), getParentForChildren(), isClean());
results_ = null;
}
return resultsBuilder_;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000080);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Time at which the request to create the build was received.
*
*
* .google.protobuf.Timestamp create_time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
startTimeBuilder_;
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*/
public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)
&& startTime_ != null
&& startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
} else {
startTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000100);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
}
/**
*
*
*
* Time at which execution of the build was started.
*
*
* .google.protobuf.Timestamp start_time = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getStartTime(), getParentForChildren(), isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
private com.google.protobuf.Timestamp finishTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
finishTimeBuilder_;
/**
*
*
*
* 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;
*
* @return Whether the finishTime field is set.
*/
public boolean hasFinishTime() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*
*
* 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;
*
* @return The finishTime.
*/
public com.google.protobuf.Timestamp getFinishTime() {
if (finishTimeBuilder_ == null) {
return finishTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: finishTime_;
} else {
return finishTimeBuilder_.getMessage();
}
}
/**
*
*
*
* 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;
*/
public Builder setFinishTime(com.google.protobuf.Timestamp value) {
if (finishTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
finishTime_ = value;
} else {
finishTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder setFinishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (finishTimeBuilder_ == null) {
finishTime_ = builderForValue.build();
} else {
finishTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder mergeFinishTime(com.google.protobuf.Timestamp value) {
if (finishTimeBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)
&& finishTime_ != null
&& finishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getFinishTimeBuilder().mergeFrom(value);
} else {
finishTime_ = value;
}
} else {
finishTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearFinishTime() {
bitField0_ = (bitField0_ & ~0x00000200);
finishTime_ = null;
if (finishTimeBuilder_ != null) {
finishTimeBuilder_.dispose();
finishTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.Timestamp.Builder getFinishTimeBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getFinishTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() {
if (finishTimeBuilder_ != null) {
return finishTimeBuilder_.getMessageOrBuilder();
} else {
return finishTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: finishTime_;
}
}
/**
*
*
*
* 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getFinishTimeFieldBuilder() {
if (finishTimeBuilder_ == null) {
finishTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getFinishTime(), getParentForChildren(), isClean());
finishTime_ = null;
}
return finishTimeBuilder_;
}
private com.google.protobuf.Duration timeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
timeoutBuilder_;
/**
*
*
*
* 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;
*
* @return Whether the timeout field is set.
*/
public boolean hasTimeout() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*
*
* 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;
*
* @return The timeout.
*/
public com.google.protobuf.Duration getTimeout() {
if (timeoutBuilder_ == null) {
return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
} else {
return timeoutBuilder_.getMessage();
}
}
/**
*
*
*
* 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;
*/
public Builder setTimeout(com.google.protobuf.Duration value) {
if (timeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeout_ = value;
} else {
timeoutBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
if (timeoutBuilder_ == null) {
timeout_ = builderForValue.build();
} else {
timeoutBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder mergeTimeout(com.google.protobuf.Duration value) {
if (timeoutBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)
&& timeout_ != null
&& timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
getTimeoutBuilder().mergeFrom(value);
} else {
timeout_ = value;
}
} else {
timeoutBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearTimeout() {
bitField0_ = (bitField0_ & ~0x00000400);
timeout_ = null;
if (timeoutBuilder_ != null) {
timeoutBuilder_.dispose();
timeoutBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getTimeoutFieldBuilder().getBuilder();
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
if (timeoutBuilder_ != null) {
return timeoutBuilder_.getMessageOrBuilder();
} else {
return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
}
}
/**
*
*
*
* 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getTimeoutFieldBuilder() {
if (timeoutBuilder_ == null) {
timeoutBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getTimeout(), getParentForChildren(), isClean());
timeout_ = null;
}
return timeoutBuilder_;
}
private com.google.protobuf.LazyStringList images_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureImagesIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
images_ = new com.google.protobuf.LazyStringArrayList(images_);
bitField0_ |= 0x00000800;
}
}
/**
*
*
*
* 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;
*
* @return A list containing the images.
*/
public com.google.protobuf.ProtocolStringList getImagesList() {
return images_.getUnmodifiableView();
}
/**
*
*
*
* 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;
*
* @return The count of images.
*/
public int getImagesCount() {
return images_.size();
}
/**
*
*
*
* 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;
*
* @param index The index of the element to return.
* @return The images at the given index.
*/
public java.lang.String getImages(int index) {
return images_.get(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;
*
* @param index The index of the value to return.
* @return The bytes of the images at the given index.
*/
public com.google.protobuf.ByteString getImagesBytes(int index) {
return images_.getByteString(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;
*
* @param index The index to set the value at.
* @param value The images to set.
* @return This builder for chaining.
*/
public Builder setImages(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureImagesIsMutable();
images_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @param value The images to add.
* @return This builder for chaining.
*/
public Builder addImages(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureImagesIsMutable();
images_.add(value);
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @param values The images to add.
* @return This builder for chaining.
*/
public Builder addAllImages(java.lang.Iterable values) {
ensureImagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_);
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @return This builder for chaining.
*/
public Builder clearImages() {
images_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @param value The bytes of the images to add.
* @return This builder for chaining.
*/
public Builder addImagesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureImagesIsMutable();
images_.add(value);
onChanged();
return this;
}
private com.google.protobuf.Duration queueTtl_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
queueTtlBuilder_;
/**
*
*
*
* 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;
*
* @return Whether the queueTtl field is set.
*/
public boolean hasQueueTtl() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
*
*
* 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;
*
* @return The queueTtl.
*/
public com.google.protobuf.Duration getQueueTtl() {
if (queueTtlBuilder_ == null) {
return queueTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueTtl_;
} else {
return queueTtlBuilder_.getMessage();
}
}
/**
*
*
*
* 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;
*/
public Builder setQueueTtl(com.google.protobuf.Duration value) {
if (queueTtlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queueTtl_ = value;
} else {
queueTtlBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder setQueueTtl(com.google.protobuf.Duration.Builder builderForValue) {
if (queueTtlBuilder_ == null) {
queueTtl_ = builderForValue.build();
} else {
queueTtlBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder mergeQueueTtl(com.google.protobuf.Duration value) {
if (queueTtlBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)
&& queueTtl_ != null
&& queueTtl_ != com.google.protobuf.Duration.getDefaultInstance()) {
getQueueTtlBuilder().mergeFrom(value);
} else {
queueTtl_ = value;
}
} else {
queueTtlBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearQueueTtl() {
bitField0_ = (bitField0_ & ~0x00001000);
queueTtl_ = null;
if (queueTtlBuilder_ != null) {
queueTtlBuilder_.dispose();
queueTtlBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.Duration.Builder getQueueTtlBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getQueueTtlFieldBuilder().getBuilder();
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.DurationOrBuilder getQueueTtlOrBuilder() {
if (queueTtlBuilder_ != null) {
return queueTtlBuilder_.getMessageOrBuilder();
} else {
return queueTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueTtl_;
}
}
/**
*
*
*
* 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getQueueTtlFieldBuilder() {
if (queueTtlBuilder_ == null) {
queueTtlBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getQueueTtl(), getParentForChildren(), isClean());
queueTtl_ = null;
}
return queueTtlBuilder_;
}
private com.google.events.cloud.cloudbuild.v1.Artifacts artifacts_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Artifacts,
com.google.events.cloud.cloudbuild.v1.Artifacts.Builder,
com.google.events.cloud.cloudbuild.v1.ArtifactsOrBuilder>
artifactsBuilder_;
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*
* @return Whether the artifacts field is set.
*/
public boolean hasArtifacts() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*
* @return The artifacts.
*/
public com.google.events.cloud.cloudbuild.v1.Artifacts getArtifacts() {
if (artifactsBuilder_ == null) {
return artifacts_ == null
? com.google.events.cloud.cloudbuild.v1.Artifacts.getDefaultInstance()
: artifacts_;
} else {
return artifactsBuilder_.getMessage();
}
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*/
public Builder setArtifacts(com.google.events.cloud.cloudbuild.v1.Artifacts value) {
if (artifactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
artifacts_ = value;
} else {
artifactsBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*/
public Builder setArtifacts(
com.google.events.cloud.cloudbuild.v1.Artifacts.Builder builderForValue) {
if (artifactsBuilder_ == null) {
artifacts_ = builderForValue.build();
} else {
artifactsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*/
public Builder mergeArtifacts(com.google.events.cloud.cloudbuild.v1.Artifacts value) {
if (artifactsBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0)
&& artifacts_ != null
&& artifacts_ != com.google.events.cloud.cloudbuild.v1.Artifacts.getDefaultInstance()) {
getArtifactsBuilder().mergeFrom(value);
} else {
artifacts_ = value;
}
} else {
artifactsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*/
public Builder clearArtifacts() {
bitField0_ = (bitField0_ & ~0x00002000);
artifacts_ = null;
if (artifactsBuilder_ != null) {
artifactsBuilder_.dispose();
artifactsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*/
public com.google.events.cloud.cloudbuild.v1.Artifacts.Builder getArtifactsBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getArtifactsFieldBuilder().getBuilder();
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*/
public com.google.events.cloud.cloudbuild.v1.ArtifactsOrBuilder getArtifactsOrBuilder() {
if (artifactsBuilder_ != null) {
return artifactsBuilder_.getMessageOrBuilder();
} else {
return artifacts_ == null
? com.google.events.cloud.cloudbuild.v1.Artifacts.getDefaultInstance()
: artifacts_;
}
}
/**
*
*
*
* Artifacts produced by the build that should be uploaded upon
* successful completion of all build steps.
*
*
* .google.events.cloud.cloudbuild.v1.Artifacts artifacts = 37;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Artifacts,
com.google.events.cloud.cloudbuild.v1.Artifacts.Builder,
com.google.events.cloud.cloudbuild.v1.ArtifactsOrBuilder>
getArtifactsFieldBuilder() {
if (artifactsBuilder_ == null) {
artifactsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Artifacts,
com.google.events.cloud.cloudbuild.v1.Artifacts.Builder,
com.google.events.cloud.cloudbuild.v1.ArtifactsOrBuilder>(
getArtifacts(), getParentForChildren(), isClean());
artifacts_ = null;
}
return artifactsBuilder_;
}
private java.lang.Object logsBucket_ = "";
/**
*
*
*
* Google Cloud Storage bucket where logs should be written (see
* [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
* Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
*
*
* string logs_bucket = 19;
*
* @return The logsBucket.
*/
public java.lang.String getLogsBucket() {
java.lang.Object ref = logsBucket_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logsBucket_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Google Cloud Storage bucket where logs should be written (see
* [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
* Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
*
*
* string logs_bucket = 19;
*
* @return The bytes for logsBucket.
*/
public com.google.protobuf.ByteString getLogsBucketBytes() {
java.lang.Object ref = logsBucket_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
logsBucket_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Google Cloud Storage bucket where logs should be written (see
* [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
* Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
*
*
* string logs_bucket = 19;
*
* @param value The logsBucket to set.
* @return This builder for chaining.
*/
public Builder setLogsBucket(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logsBucket_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*
*
* Google Cloud Storage bucket where logs should be written (see
* [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
* Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
*
*
* string logs_bucket = 19;
*
* @return This builder for chaining.
*/
public Builder clearLogsBucket() {
logsBucket_ = getDefaultInstance().getLogsBucket();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
*
*
* Google Cloud Storage bucket where logs should be written (see
* [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
* Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
*
*
* string logs_bucket = 19;
*
* @param value The bytes for logsBucket to set.
* @return This builder for chaining.
*/
public Builder setLogsBucketBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logsBucket_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
private com.google.events.cloud.cloudbuild.v1.SourceProvenance sourceProvenance_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.SourceProvenance,
com.google.events.cloud.cloudbuild.v1.SourceProvenance.Builder,
com.google.events.cloud.cloudbuild.v1.SourceProvenanceOrBuilder>
sourceProvenanceBuilder_;
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*
* @return Whether the sourceProvenance field is set.
*/
public boolean hasSourceProvenance() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*
* @return The sourceProvenance.
*/
public com.google.events.cloud.cloudbuild.v1.SourceProvenance getSourceProvenance() {
if (sourceProvenanceBuilder_ == null) {
return sourceProvenance_ == null
? com.google.events.cloud.cloudbuild.v1.SourceProvenance.getDefaultInstance()
: sourceProvenance_;
} else {
return sourceProvenanceBuilder_.getMessage();
}
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*/
public Builder setSourceProvenance(
com.google.events.cloud.cloudbuild.v1.SourceProvenance value) {
if (sourceProvenanceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sourceProvenance_ = value;
} else {
sourceProvenanceBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*/
public Builder setSourceProvenance(
com.google.events.cloud.cloudbuild.v1.SourceProvenance.Builder builderForValue) {
if (sourceProvenanceBuilder_ == null) {
sourceProvenance_ = builderForValue.build();
} else {
sourceProvenanceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*/
public Builder mergeSourceProvenance(
com.google.events.cloud.cloudbuild.v1.SourceProvenance value) {
if (sourceProvenanceBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0)
&& sourceProvenance_ != null
&& sourceProvenance_
!= com.google.events.cloud.cloudbuild.v1.SourceProvenance.getDefaultInstance()) {
getSourceProvenanceBuilder().mergeFrom(value);
} else {
sourceProvenance_ = value;
}
} else {
sourceProvenanceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*/
public Builder clearSourceProvenance() {
bitField0_ = (bitField0_ & ~0x00008000);
sourceProvenance_ = null;
if (sourceProvenanceBuilder_ != null) {
sourceProvenanceBuilder_.dispose();
sourceProvenanceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*/
public com.google.events.cloud.cloudbuild.v1.SourceProvenance.Builder
getSourceProvenanceBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getSourceProvenanceFieldBuilder().getBuilder();
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*/
public com.google.events.cloud.cloudbuild.v1.SourceProvenanceOrBuilder
getSourceProvenanceOrBuilder() {
if (sourceProvenanceBuilder_ != null) {
return sourceProvenanceBuilder_.getMessageOrBuilder();
} else {
return sourceProvenance_ == null
? com.google.events.cloud.cloudbuild.v1.SourceProvenance.getDefaultInstance()
: sourceProvenance_;
}
}
/**
*
*
*
* A permanent fixed identifier for source.
*
*
* .google.events.cloud.cloudbuild.v1.SourceProvenance source_provenance = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.SourceProvenance,
com.google.events.cloud.cloudbuild.v1.SourceProvenance.Builder,
com.google.events.cloud.cloudbuild.v1.SourceProvenanceOrBuilder>
getSourceProvenanceFieldBuilder() {
if (sourceProvenanceBuilder_ == null) {
sourceProvenanceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.SourceProvenance,
com.google.events.cloud.cloudbuild.v1.SourceProvenance.Builder,
com.google.events.cloud.cloudbuild.v1.SourceProvenanceOrBuilder>(
getSourceProvenance(), getParentForChildren(), isClean());
sourceProvenance_ = null;
}
return sourceProvenanceBuilder_;
}
private java.lang.Object buildTriggerId_ = "";
/**
*
*
*
* The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
*
* string build_trigger_id = 22;
*
* @return The buildTriggerId.
*/
public java.lang.String getBuildTriggerId() {
java.lang.Object ref = buildTriggerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buildTriggerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
*
* string build_trigger_id = 22;
*
* @return The bytes for buildTriggerId.
*/
public com.google.protobuf.ByteString getBuildTriggerIdBytes() {
java.lang.Object ref = buildTriggerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
buildTriggerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
*
* string build_trigger_id = 22;
*
* @param value The buildTriggerId to set.
* @return This builder for chaining.
*/
public Builder setBuildTriggerId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
buildTriggerId_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*
*
* The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
*
* string build_trigger_id = 22;
*
* @return This builder for chaining.
*/
public Builder clearBuildTriggerId() {
buildTriggerId_ = getDefaultInstance().getBuildTriggerId();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
*
*
*
* The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
*
* string build_trigger_id = 22;
*
* @param value The bytes for buildTriggerId to set.
* @return This builder for chaining.
*/
public Builder setBuildTriggerIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
buildTriggerId_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private com.google.events.cloud.cloudbuild.v1.BuildOptions options_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.BuildOptions,
com.google.events.cloud.cloudbuild.v1.BuildOptions.Builder,
com.google.events.cloud.cloudbuild.v1.BuildOptionsOrBuilder>
optionsBuilder_;
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*
* @return Whether the options field is set.
*/
public boolean hasOptions() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*
* @return The options.
*/
public com.google.events.cloud.cloudbuild.v1.BuildOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null
? com.google.events.cloud.cloudbuild.v1.BuildOptions.getDefaultInstance()
: options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*/
public Builder setOptions(com.google.events.cloud.cloudbuild.v1.BuildOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
} else {
optionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*/
public Builder setOptions(
com.google.events.cloud.cloudbuild.v1.BuildOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*/
public Builder mergeOptions(com.google.events.cloud.cloudbuild.v1.BuildOptions value) {
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0)
&& options_ != null
&& options_
!= com.google.events.cloud.cloudbuild.v1.BuildOptions.getDefaultInstance()) {
getOptionsBuilder().mergeFrom(value);
} else {
options_ = value;
}
} else {
optionsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*/
public Builder clearOptions() {
bitField0_ = (bitField0_ & ~0x00020000);
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*/
public com.google.events.cloud.cloudbuild.v1.BuildOptions.Builder getOptionsBuilder() {
bitField0_ |= 0x00020000;
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*/
public com.google.events.cloud.cloudbuild.v1.BuildOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null
? com.google.events.cloud.cloudbuild.v1.BuildOptions.getDefaultInstance()
: options_;
}
}
/**
*
*
*
* Special options for this build.
*
*
* .google.events.cloud.cloudbuild.v1.BuildOptions options = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.BuildOptions,
com.google.events.cloud.cloudbuild.v1.BuildOptions.Builder,
com.google.events.cloud.cloudbuild.v1.BuildOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.BuildOptions,
com.google.events.cloud.cloudbuild.v1.BuildOptions.Builder,
com.google.events.cloud.cloudbuild.v1.BuildOptionsOrBuilder>(
getOptions(), getParentForChildren(), isClean());
options_ = null;
}
return optionsBuilder_;
}
private java.lang.Object logUrl_ = "";
/**
*
*
*
* URL to logs for this build in Google Cloud Console.
*
*
* string log_url = 25;
*
* @return The logUrl.
*/
public java.lang.String getLogUrl() {
java.lang.Object ref = logUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* URL to logs for this build in Google Cloud Console.
*
*
* string log_url = 25;
*
* @return The bytes for logUrl.
*/
public com.google.protobuf.ByteString getLogUrlBytes() {
java.lang.Object ref = logUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
logUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* URL to logs for this build in Google Cloud Console.
*
*
* string log_url = 25;
*
* @param value The logUrl to set.
* @return This builder for chaining.
*/
public Builder setLogUrl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logUrl_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*
*
* URL to logs for this build in Google Cloud Console.
*
*
* string log_url = 25;
*
* @return This builder for chaining.
*/
public Builder clearLogUrl() {
logUrl_ = getDefaultInstance().getLogUrl();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
/**
*
*
*
* URL to logs for this build in Google Cloud Console.
*
*
* string log_url = 25;
*
* @param value The bytes for logUrl to set.
* @return This builder for chaining.
*/
public Builder setLogUrlBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logUrl_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
private com.google.protobuf.MapField substitutions_;
private com.google.protobuf.MapField
internalGetSubstitutions() {
if (substitutions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
SubstitutionsDefaultEntryHolder.defaultEntry);
}
return substitutions_;
}
private com.google.protobuf.MapField
internalGetMutableSubstitutions() {
if (substitutions_ == null) {
substitutions_ =
com.google.protobuf.MapField.newMapField(SubstitutionsDefaultEntryHolder.defaultEntry);
}
if (!substitutions_.isMutable()) {
substitutions_ = substitutions_.copy();
}
bitField0_ |= 0x00080000;
onChanged();
return substitutions_;
}
public int getSubstitutionsCount() {
return internalGetSubstitutions().getMap().size();
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
@java.lang.Override
public boolean containsSubstitutions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetSubstitutions().getMap().containsKey(key);
}
/** Use {@link #getSubstitutionsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getSubstitutions() {
return getSubstitutionsMap();
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
@java.lang.Override
public java.util.Map getSubstitutionsMap() {
return internalGetSubstitutions().getMap();
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
@java.lang.Override
public /* nullable */ java.lang.String getSubstitutionsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetSubstitutions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
@java.lang.Override
public java.lang.String getSubstitutionsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetSubstitutions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearSubstitutions() {
bitField0_ = (bitField0_ & ~0x00080000);
internalGetMutableSubstitutions().getMutableMap().clear();
return this;
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
public Builder removeSubstitutions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableSubstitutions().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableSubstitutions() {
bitField0_ |= 0x00080000;
return internalGetMutableSubstitutions().getMutableMap();
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
public Builder putSubstitutions(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableSubstitutions().getMutableMap().put(key, value);
bitField0_ |= 0x00080000;
return this;
}
/**
*
*
*
* Substitutions data for `Build` resource.
*
*
* map<string, string> substitutions = 29;
*/
public Builder putAllSubstitutions(java.util.Map values) {
internalGetMutableSubstitutions().getMutableMap().putAll(values);
bitField0_ |= 0x00080000;
return this;
}
private com.google.protobuf.LazyStringList tags_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00100000) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
bitField0_ |= 0x00100000;
}
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList getTagsList() {
return tags_.getUnmodifiableView();
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_);
onChanged();
return this;
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
/**
*
*
*
* Tags for annotation of a `Build`. These are not docker tags.
*
*
* repeated string tags = 31;
*
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
private java.util.List secrets_ =
java.util.Collections.emptyList();
private void ensureSecretsIsMutable() {
if (!((bitField0_ & 0x00200000) != 0)) {
secrets_ = new java.util.ArrayList(secrets_);
bitField0_ |= 0x00200000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Secret,
com.google.events.cloud.cloudbuild.v1.Secret.Builder,
com.google.events.cloud.cloudbuild.v1.SecretOrBuilder>
secretsBuilder_;
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public java.util.List getSecretsList() {
if (secretsBuilder_ == null) {
return java.util.Collections.unmodifiableList(secrets_);
} else {
return secretsBuilder_.getMessageList();
}
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public int getSecretsCount() {
if (secretsBuilder_ == null) {
return secrets_.size();
} else {
return secretsBuilder_.getCount();
}
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public com.google.events.cloud.cloudbuild.v1.Secret getSecrets(int index) {
if (secretsBuilder_ == null) {
return secrets_.get(index);
} else {
return secretsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder setSecrets(int index, com.google.events.cloud.cloudbuild.v1.Secret value) {
if (secretsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecretsIsMutable();
secrets_.set(index, value);
onChanged();
} else {
secretsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder setSecrets(
int index, com.google.events.cloud.cloudbuild.v1.Secret.Builder builderForValue) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.set(index, builderForValue.build());
onChanged();
} else {
secretsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder addSecrets(com.google.events.cloud.cloudbuild.v1.Secret value) {
if (secretsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecretsIsMutable();
secrets_.add(value);
onChanged();
} else {
secretsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder addSecrets(int index, com.google.events.cloud.cloudbuild.v1.Secret value) {
if (secretsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecretsIsMutable();
secrets_.add(index, value);
onChanged();
} else {
secretsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder addSecrets(
com.google.events.cloud.cloudbuild.v1.Secret.Builder builderForValue) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.add(builderForValue.build());
onChanged();
} else {
secretsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder addSecrets(
int index, com.google.events.cloud.cloudbuild.v1.Secret.Builder builderForValue) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.add(index, builderForValue.build());
onChanged();
} else {
secretsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder addAllSecrets(
java.lang.Iterable values) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secrets_);
onChanged();
} else {
secretsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder clearSecrets() {
if (secretsBuilder_ == null) {
secrets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00200000);
onChanged();
} else {
secretsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public Builder removeSecrets(int index) {
if (secretsBuilder_ == null) {
ensureSecretsIsMutable();
secrets_.remove(index);
onChanged();
} else {
secretsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public com.google.events.cloud.cloudbuild.v1.Secret.Builder getSecretsBuilder(int index) {
return getSecretsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public com.google.events.cloud.cloudbuild.v1.SecretOrBuilder getSecretsOrBuilder(int index) {
if (secretsBuilder_ == null) {
return secrets_.get(index);
} else {
return secretsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public java.util.List
getSecretsOrBuilderList() {
if (secretsBuilder_ != null) {
return secretsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(secrets_);
}
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public com.google.events.cloud.cloudbuild.v1.Secret.Builder addSecretsBuilder() {
return getSecretsFieldBuilder()
.addBuilder(com.google.events.cloud.cloudbuild.v1.Secret.getDefaultInstance());
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public com.google.events.cloud.cloudbuild.v1.Secret.Builder addSecretsBuilder(int index) {
return getSecretsFieldBuilder()
.addBuilder(index, com.google.events.cloud.cloudbuild.v1.Secret.getDefaultInstance());
}
/**
*
*
*
* Secrets to decrypt using Cloud Key Management Service.
*
*
* repeated .google.events.cloud.cloudbuild.v1.Secret secrets = 32;
*/
public java.util.List
getSecretsBuilderList() {
return getSecretsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Secret,
com.google.events.cloud.cloudbuild.v1.Secret.Builder,
com.google.events.cloud.cloudbuild.v1.SecretOrBuilder>
getSecretsFieldBuilder() {
if (secretsBuilder_ == null) {
secretsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.events.cloud.cloudbuild.v1.Secret,
com.google.events.cloud.cloudbuild.v1.Secret.Builder,
com.google.events.cloud.cloudbuild.v1.SecretOrBuilder>(
secrets_, ((bitField0_ & 0x00200000) != 0), getParentForChildren(), isClean());
secrets_ = null;
}
return secretsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, com.google.events.cloud.cloudbuild.v1.TimeSpan>
timing_;
private com.google.protobuf.MapField<
java.lang.String, com.google.events.cloud.cloudbuild.v1.TimeSpan>
internalGetTiming() {
if (timing_ == null) {
return com.google.protobuf.MapField.emptyMapField(TimingDefaultEntryHolder.defaultEntry);
}
return timing_;
}
private com.google.protobuf.MapField<
java.lang.String, com.google.events.cloud.cloudbuild.v1.TimeSpan>
internalGetMutableTiming() {
if (timing_ == null) {
timing_ = com.google.protobuf.MapField.newMapField(TimingDefaultEntryHolder.defaultEntry);
}
if (!timing_.isMutable()) {
timing_ = timing_.copy();
}
bitField0_ |= 0x00400000;
onChanged();
return timing_;
}
public int getTimingCount() {
return internalGetTiming().getMap().size();
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public boolean containsTiming(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetTiming().getMap().containsKey(key);
}
/** Use {@link #getTimingMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getTiming() {
return 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;
*/
@java.lang.Override
public java.util.Map
getTimingMap() {
return internalGetTiming().getMap();
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public /* nullable */ com.google.events.cloud.cloudbuild.v1.TimeSpan getTimingOrDefault(
java.lang.String key,
/* nullable */
com.google.events.cloud.cloudbuild.v1.TimeSpan defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetTiming().getMap();
return map.containsKey(key) ? map.get(key) : 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;
*/
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.TimeSpan getTimingOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetTiming().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearTiming() {
bitField0_ = (bitField0_ & ~0x00400000);
internalGetMutableTiming().getMutableMap().clear();
return this;
}
/**
*
*
*
* 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;
*/
public Builder removeTiming(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableTiming().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map
getMutableTiming() {
bitField0_ |= 0x00400000;
return internalGetMutableTiming().getMutableMap();
}
/**
*
*
*
* 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;
*/
public Builder putTiming(
java.lang.String key, com.google.events.cloud.cloudbuild.v1.TimeSpan value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableTiming().getMutableMap().put(key, value);
bitField0_ |= 0x00400000;
return this;
}
/**
*
*
*
* 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;
*/
public Builder putAllTiming(
java.util.Map values) {
internalGetMutableTiming().getMutableMap().putAll(values);
bitField0_ |= 0x00400000;
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.events.cloud.cloudbuild.v1.BuildEventData)
}
// @@protoc_insertion_point(class_scope:google.events.cloud.cloudbuild.v1.BuildEventData)
private static final com.google.events.cloud.cloudbuild.v1.BuildEventData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.events.cloud.cloudbuild.v1.BuildEventData();
}
public static com.google.events.cloud.cloudbuild.v1.BuildEventData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BuildEventData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.events.cloud.cloudbuild.v1.BuildEventData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}