fieldMapBuilder = ImmutableMap.builder();
+ fieldMapBuilder.put("project", project);
+ fieldMapBuilder.put("trigger", trigger);
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return PATH_TEMPLATE.instantiate("project", project, "trigger", trigger);
+ }
+
+ /** Builder for BuildTriggerName. */
+ public static class Builder {
+
+ private String project;
+ private String trigger;
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getTrigger() {
+ return trigger;
+ }
+
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ public Builder setTrigger(String trigger) {
+ this.trigger = trigger;
+ return this;
+ }
+
+ private Builder() {}
+
+ private Builder(BuildTriggerName buildTriggerName) {
+ project = buildTriggerName.project;
+ trigger = buildTriggerName.trigger;
+ }
+
+ public BuildTriggerName build() {
+ return new BuildTriggerName(this);
+ }
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof BuildTriggerName) {
+ BuildTriggerName that = (BuildTriggerName) o;
+ return (this.project.equals(that.project)) && (this.trigger.equals(that.trigger));
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= project.hashCode();
+ h *= 1000003;
+ h ^= trigger.hashCode();
+ return h;
+ }
+}
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerOrBuilder.java
index ce07fbb8..c2ad1e96 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerOrBuilder.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerOrBuilder.java
@@ -349,7 +349,7 @@ public interface BuildTriggerOrBuilder
*
*
*
- * If true, the trigger will never result in a build.
+ * If true, the trigger will never automatically execute a build.
*
*
* bool disabled = 9;
@@ -363,8 +363,7 @@ public interface BuildTriggerOrBuilder
*
*
* Substitutions for Build resource. The keys must match the following
- * regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
- * keys in bindings.
+ * regular expression: `^_[A-Z0-9_]+$`.
*
*
* map<string, string> substitutions = 11;
@@ -375,8 +374,7 @@ public interface BuildTriggerOrBuilder
*
*
* Substitutions for Build resource. The keys must match the following
- * regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
- * keys in bindings.
+ * regular expression: `^_[A-Z0-9_]+$`.
*
*
* map<string, string> substitutions = 11;
@@ -390,8 +388,7 @@ public interface BuildTriggerOrBuilder
*
*
* Substitutions for Build resource. The keys must match the following
- * regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
- * keys in bindings.
+ * regular expression: `^_[A-Z0-9_]+$`.
*
*
* map<string, string> substitutions = 11;
@@ -402,8 +399,7 @@ public interface BuildTriggerOrBuilder
*
*
* Substitutions for Build resource. The keys must match the following
- * regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
- * keys in bindings.
+ * regular expression: `^_[A-Z0-9_]+$`.
*
*
* map<string, string> substitutions = 11;
@@ -414,8 +410,7 @@ public interface BuildTriggerOrBuilder
*
*
* Substitutions for Build resource. The keys must match the following
- * regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
- * keys in bindings.
+ * regular expression: `^_[A-Z0-9_]+$`.
*
*
* map<string, string> substitutions = 11;
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CancelBuildRequest.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CancelBuildRequest.java
index f41a9d75..1143fd48 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CancelBuildRequest.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CancelBuildRequest.java
@@ -38,6 +38,7 @@ private CancelBuildRequest(com.google.protobuf.GeneratedMessageV3.Builder> bui
}
private CancelBuildRequest() {
+ name_ = "";
projectId_ = "";
id_ = "";
}
@@ -85,6 +86,13 @@ private CancelBuildRequest(
id_ = s;
break;
}
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -119,6 +127,57 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloudbuild.v1.CancelBuildRequest.Builder.class);
}
+ public static final int NAME_FIELD_NUMBER = 4;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object projectId_;
/**
@@ -237,6 +296,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
+ }
unknownFields.writeTo(output);
}
@@ -252,6 +314,9 @@ public int getSerializedSize() {
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -268,6 +333,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloudbuild.v1.CancelBuildRequest other =
(com.google.cloudbuild.v1.CancelBuildRequest) obj;
+ if (!getName().equals(other.getName())) return false;
if (!getProjectId().equals(other.getProjectId())) return false;
if (!getId().equals(other.getId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -281,6 +347,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectId().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
@@ -430,6 +498,8 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
+ name_ = "";
+
projectId_ = "";
id_ = "";
@@ -461,6 +531,7 @@ public com.google.cloudbuild.v1.CancelBuildRequest build() {
public com.google.cloudbuild.v1.CancelBuildRequest buildPartial() {
com.google.cloudbuild.v1.CancelBuildRequest result =
new com.google.cloudbuild.v1.CancelBuildRequest(this);
+ result.name_ = name_;
result.projectId_ = projectId_;
result.id_ = id_;
onBuilt();
@@ -512,6 +583,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloudbuild.v1.CancelBuildRequest other) {
if (other == com.google.cloudbuild.v1.CancelBuildRequest.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
if (!other.getProjectId().isEmpty()) {
projectId_ = other.projectId_;
onChanged();
@@ -549,6 +624,117 @@ public Builder mergeFrom(
return this;
}
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object projectId_ = "";
/**
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CancelBuildRequestOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CancelBuildRequestOrBuilder.java
index 2a1b1399..1ffda5da 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CancelBuildRequestOrBuilder.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CancelBuildRequestOrBuilder.java
@@ -23,6 +23,33 @@ public interface CancelBuildRequestOrBuilder
// @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.CancelBuildRequest)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
/**
*
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java
index da469fef..605fee3f 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java
@@ -240,297 +240,327 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ld.proto\022\035google.devtools.cloudbuild.v1\032"
+ "\034google/api/annotations.proto\032\027google/ap"
+ "i/client.proto\032\037google/api/field_behavio"
- + "r.proto\032#google/longrunning/operations.p"
- + "roto\032\036google/protobuf/duration.proto\032\033go"
- + "ogle/protobuf/empty.proto\032\037google/protob"
- + "uf/timestamp.proto\"=\n\021RetryBuildRequest\022"
- + "\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\017\n\002id\030\002 \001(\tB\003\340A"
- + "\002\"\212\001\n\026RunBuildTriggerRequest\022\027\n\nproject_"
- + "id\030\001 \001(\tB\003\340A\002\022\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\022>"
- + "\n\006source\030\003 \001(\0132).google.devtools.cloudbu"
- + "ild.v1.RepoSourceB\003\340A\002\"C\n\rStorageSource\022"
- + "\016\n\006bucket\030\001 \001(\t\022\016\n\006object\030\002 \001(\t\022\022\n\ngener"
- + "ation\030\003 \001(\003\"\256\002\n\nRepoSource\022\022\n\nproject_id"
- + "\030\001 \001(\t\022\021\n\trepo_name\030\002 \001(\t\022\025\n\013branch_name"
- + "\030\003 \001(\tH\000\022\022\n\010tag_name\030\004 \001(\tH\000\022\024\n\ncommit_s"
- + "ha\030\005 \001(\tH\000\022\013\n\003dir\030\007 \001(\t\022\024\n\014invert_regex\030"
- + "\010 \001(\010\022S\n\rsubstitutions\030\t \003(\0132<.google.de"
- + "vtools.cloudbuild.v1.RepoSource.Substitu"
- + "tionsEntry\0324\n\022SubstitutionsEntry\022\013\n\003key\030"
- + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010revision\"\234\001\n"
- + "\006Source\022F\n\016storage_source\030\002 \001(\0132,.google"
- + ".devtools.cloudbuild.v1.StorageSourceH\000\022"
- + "@\n\013repo_source\030\003 \001(\0132).google.devtools.c"
- + "loudbuild.v1.RepoSourceH\000B\010\n\006source\"m\n\nB"
- + "uiltImage\022\014\n\004name\030\001 \001(\t\022\016\n\006digest\030\003 \001(\t\022"
- + "A\n\013push_timing\030\004 \001(\0132\'.google.devtools.c"
- + "loudbuild.v1.TimeSpanB\003\340A\003\"\244\003\n\tBuildStep"
- + "\022\014\n\004name\030\001 \001(\t\022\013\n\003env\030\002 \003(\t\022\014\n\004args\030\003 \003("
- + "\t\022\013\n\003dir\030\004 \001(\t\022\n\n\002id\030\005 \001(\t\022\020\n\010wait_for\030\006"
- + " \003(\t\022\022\n\nentrypoint\030\007 \001(\t\022\022\n\nsecret_env\030\010"
- + " \003(\t\0226\n\007volumes\030\t \003(\0132%.google.devtools."
- + "cloudbuild.v1.Volume\022<\n\006timing\030\n \001(\0132\'.g"
- + "oogle.devtools.cloudbuild.v1.TimeSpanB\003\340"
- + "A\003\022<\n\013pull_timing\030\r \001(\0132\'.google.devtool"
- + "s.cloudbuild.v1.TimeSpan\022*\n\007timeout\030\013 \001("
- + "\0132\031.google.protobuf.Duration\022;\n\006status\030\014"
- + " \001(\0162+.google.devtools.cloudbuild.v1.Bui"
- + "ld.Status\"$\n\006Volume\022\014\n\004name\030\001 \001(\t\022\014\n\004pat"
- + "h\030\002 \001(\t\"\357\001\n\007Results\0229\n\006images\030\002 \003(\0132).go"
- + "ogle.devtools.cloudbuild.v1.BuiltImage\022\031"
- + "\n\021build_step_images\030\003 \003(\t\022\031\n\021artifact_ma"
- + "nifest\030\004 \001(\t\022\025\n\rnum_artifacts\030\005 \001(\003\022\032\n\022b"
- + "uild_step_outputs\030\006 \003(\014\022@\n\017artifact_timi"
- + "ng\030\007 \001(\0132\'.google.devtools.cloudbuild.v1"
- + ".TimeSpan\"`\n\016ArtifactResult\022\020\n\010location\030"
- + "\001 \001(\t\022<\n\tfile_hash\030\002 \003(\0132).google.devtoo"
- + "ls.cloudbuild.v1.FileHashes\"\304\n\n\005Build\022\017\n"
- + "\002id\030\001 \001(\tB\003\340A\003\022\027\n\nproject_id\030\020 \001(\tB\003\340A\003\022"
- + ";\n\006status\030\002 \001(\0162+.google.devtools.cloudb"
- + "uild.v1.Build.Status\022\025\n\rstatus_detail\030\030 "
- + "\001(\t\0225\n\006source\030\003 \001(\0132%.google.devtools.cl"
- + "oudbuild.v1.Source\0227\n\005steps\030\013 \003(\0132(.goog"
- + "le.devtools.cloudbuild.v1.BuildStep\022<\n\007r"
- + "esults\030\n \001(\0132&.google.devtools.cloudbuil"
- + "d.v1.ResultsB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032"
- + ".google.protobuf.TimestampB\003\340A\003\0223\n\nstart"
- + "_time\030\007 \001(\0132\032.google.protobuf.TimestampB"
- + "\003\340A\003\0224\n\013finish_time\030\010 \001(\0132\032.google.proto"
- + "buf.TimestampB\003\340A\003\022*\n\007timeout\030\014 \001(\0132\031.go"
- + "ogle.protobuf.Duration\022\016\n\006images\030\r \003(\t\022,"
- + "\n\tqueue_ttl\030( \001(\0132\031.google.protobuf.Dura"
- + "tion\022;\n\tartifacts\030% \001(\0132(.google.devtool"
- + "s.cloudbuild.v1.Artifacts\022\023\n\013logs_bucket"
- + "\030\023 \001(\t\022J\n\021source_provenance\030\025 \001(\0132/.goog"
- + "le.devtools.cloudbuild.v1.SourceProvenan"
- + "ce\022\030\n\020build_trigger_id\030\026 \001(\t\022<\n\007options\030"
- + "\027 \001(\0132+.google.devtools.cloudbuild.v1.Bu"
- + "ildOptions\022\024\n\007log_url\030\031 \001(\tB\003\340A\003\022N\n\rsubs"
- + "titutions\030\035 \003(\01327.google.devtools.cloudb"
- + "uild.v1.Build.SubstitutionsEntry\022\014\n\004tags"
- + "\030\037 \003(\t\0226\n\007secrets\030 \003(\0132%.google.devtool"
- + "s.cloudbuild.v1.Secret\022E\n\006timing\030! \003(\01320"
- + ".google.devtools.cloudbuild.v1.Build.Tim"
- + "ingEntryB\003\340A\003\0324\n\022SubstitutionsEntry\022\013\n\003k"
- + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032V\n\013TimingEnt"
- + "ry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google."
- + "devtools.cloudbuild.v1.TimeSpan:\0028\001\"\214\001\n\006"
- + "Status\022\022\n\016STATUS_UNKNOWN\020\000\022\n\n\006QUEUED\020\001\022\013"
- + "\n\007WORKING\020\002\022\013\n\007SUCCESS\020\003\022\013\n\007FAILURE\020\004\022\022\n"
- + "\016INTERNAL_ERROR\020\005\022\013\n\007TIMEOUT\020\006\022\r\n\tCANCEL"
- + "LED\020\007\022\013\n\007EXPIRED\020\t\"\323\001\n\tArtifacts\022\016\n\006imag"
- + "es\030\001 \003(\t\022I\n\007objects\030\002 \001(\01328.google.devto"
- + "ols.cloudbuild.v1.Artifacts.ArtifactObje"
- + "cts\032k\n\017ArtifactObjects\022\020\n\010location\030\001 \001(\t"
- + "\022\r\n\005paths\030\002 \003(\t\0227\n\006timing\030\003 \001(\0132\'.google"
- + ".devtools.cloudbuild.v1.TimeSpan\"h\n\010Time"
- + "Span\022.\n\nstart_time\030\001 \001(\0132\032.google.protob"
- + "uf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google."
- + "protobuf.Timestamp\"M\n\026BuildOperationMeta"
- + "data\0223\n\005build\030\001 \001(\0132$.google.devtools.cl"
- + "oudbuild.v1.Build\"\343\002\n\020SourceProvenance\022M"
- + "\n\027resolved_storage_source\030\003 \001(\0132,.google"
- + ".devtools.cloudbuild.v1.StorageSource\022G\n"
- + "\024resolved_repo_source\030\006 \001(\0132).google.dev"
- + "tools.cloudbuild.v1.RepoSource\022Y\n\013file_h"
- + "ashes\030\004 \003(\0132?.google.devtools.cloudbuild"
- + ".v1.SourceProvenance.FileHashesEntryB\003\340A"
- + "\003\032\\\n\017FileHashesEntry\022\013\n\003key\030\001 \001(\t\0228\n\005val"
- + "ue\030\002 \001(\0132).google.devtools.cloudbuild.v1"
- + ".FileHashes:\0028\001\"D\n\nFileHashes\0226\n\tfile_ha"
- + "sh\030\001 \003(\0132#.google.devtools.cloudbuild.v1"
- + ".Hash\"|\n\004Hash\022:\n\004type\030\001 \001(\0162,.google.dev"
- + "tools.cloudbuild.v1.Hash.HashType\022\r\n\005val"
- + "ue\030\002 \001(\014\")\n\010HashType\022\010\n\004NONE\020\000\022\n\n\006SHA256"
- + "\020\001\022\007\n\003MD5\020\002\"\232\001\n\006Secret\022\024\n\014kms_key_name\030\001"
- + " \001(\t\022H\n\nsecret_env\030\003 \003(\01324.google.devtoo"
- + "ls.cloudbuild.v1.Secret.SecretEnvEntry\0320"
- + "\n\016SecretEnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
- + " \001(\014:\0028\001\"g\n\022CreateBuildRequest\022\027\n\nprojec"
- + "t_id\030\001 \001(\tB\003\340A\002\0228\n\005build\030\002 \001(\0132$.google."
- + "devtools.cloudbuild.v1.BuildB\003\340A\002\";\n\017Get"
- + "BuildRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\017\n"
- + "\002id\030\002 \001(\tB\003\340A\002\"c\n\021ListBuildsRequest\022\027\n\np"
- + "roject_id\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022"
- + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\010 \001(\t\"c\n\022L"
- + "istBuildsResponse\0224\n\006builds\030\001 \003(\0132$.goog"
- + "le.devtools.cloudbuild.v1.Build\022\027\n\017next_"
- + "page_token\030\002 \001(\t\">\n\022CancelBuildRequest\022\027"
- + "\n\nproject_id\030\001 \001(\tB\003\340A\002\022\017\n\002id\030\002 \001(\tB\003\340A\002"
- + "\"\271\004\n\014BuildTrigger\022\017\n\002id\030\001 \001(\tB\003\340A\003\022\023\n\013de"
- + "scription\030\n \001(\t\022\014\n\004name\030\025 \001(\t\022\014\n\004tags\030\023 "
- + "\003(\t\022C\n\020trigger_template\030\007 \001(\0132).google.d"
- + "evtools.cloudbuild.v1.RepoSource\022A\n\006gith"
- + "ub\030\r \001(\01321.google.devtools.cloudbuild.v1"
- + ".GitHubEventsConfig\0225\n\005build\030\004 \001(\0132$.goo"
- + "gle.devtools.cloudbuild.v1.BuildH\000\022\022\n\010fi"
- + "lename\030\010 \001(\tH\000\0224\n\013create_time\030\005 \001(\0132\032.go"
- + "ogle.protobuf.TimestampB\003\340A\003\022\020\n\010disabled"
- + "\030\t \001(\010\022U\n\rsubstitutions\030\013 \003(\0132>.google.d"
- + "evtools.cloudbuild.v1.BuildTrigger.Subst"
- + "itutionsEntry\022\025\n\rignored_files\030\017 \003(\t\022\026\n\016"
- + "included_files\030\020 \003(\t\0324\n\022SubstitutionsEnt"
- + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\020\n\016bu"
- + "ild_template\"\334\001\n\022GitHubEventsConfig\022\033\n\017i"
- + "nstallation_id\030\001 \001(\003B\002\030\001\022\r\n\005owner\030\006 \001(\t\022"
- + "\014\n\004name\030\007 \001(\t\022H\n\014pull_request\030\004 \001(\01320.go"
- + "ogle.devtools.cloudbuild.v1.PullRequestF"
- + "ilterH\000\0229\n\004push\030\005 \001(\0132).google.devtools."
- + "cloudbuild.v1.PushFilterH\000B\007\n\005event\"\337\001\n\021"
- + "PullRequestFilter\022\020\n\006branch\030\002 \001(\tH\000\022X\n\017c"
- + "omment_control\030\005 \001(\0162?.google.devtools.c"
- + "loudbuild.v1.PullRequestFilter.CommentCo"
- + "ntrol\022\024\n\014invert_regex\030\006 \001(\010\"=\n\016CommentCo"
- + "ntrol\022\025\n\021COMMENTS_DISABLED\020\000\022\024\n\020COMMENTS"
- + "_ENABLED\020\001B\t\n\007git_ref\"N\n\nPushFilter\022\020\n\006b"
- + "ranch\030\002 \001(\tH\000\022\r\n\003tag\030\003 \001(\tH\000\022\024\n\014invert_r"
- + "egex\030\004 \001(\010B\t\n\007git_ref\"w\n\031CreateBuildTrig"
- + "gerRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022A\n\007t"
- + "rigger\030\002 \001(\0132+.google.devtools.cloudbuil"
- + "d.v1.BuildTriggerB\003\340A\002\"J\n\026GetBuildTrigge"
- + "rRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\027\n\ntri"
- + "gger_id\030\002 \001(\tB\003\340A\002\"Z\n\030ListBuildTriggersR"
- + "equest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\tpage_"
- + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\031ListBu"
- + "ildTriggersResponse\022=\n\010triggers\030\001 \003(\0132+."
- + "google.devtools.cloudbuild.v1.BuildTrigg"
- + "er\022\027\n\017next_page_token\030\002 \001(\t\"M\n\031DeleteBui"
- + "ldTriggerRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A"
- + "\002\022\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\"\220\001\n\031UpdateBui"
- + "ldTriggerRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A"
- + "\002\022\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\022A\n\007trigger\030\003 "
- + "\001(\0132+.google.devtools.cloudbuild.v1.Buil"
- + "dTriggerB\003\340A\002\"\306\007\n\014BuildOptions\022L\n\026source"
- + "_provenance_hash\030\001 \003(\0162,.google.devtools"
- + ".cloudbuild.v1.Hash.HashType\022Y\n\027requeste"
- + "d_verify_option\030\002 \001(\01628.google.devtools."
- + "cloudbuild.v1.BuildOptions.VerifyOption\022"
- + "M\n\014machine_type\030\003 \001(\01627.google.devtools."
- + "cloudbuild.v1.BuildOptions.MachineType\022\024"
- + "\n\014disk_size_gb\030\006 \001(\003\022[\n\023substitution_opt"
- + "ion\030\004 \001(\0162>.google.devtools.cloudbuild.v"
- + "1.BuildOptions.SubstitutionOption\022\\\n\024log"
- + "_streaming_option\030\005 \001(\0162>.google.devtool"
- + "s.cloudbuild.v1.BuildOptions.LogStreamin"
- + "gOption\022\023\n\013worker_pool\030\007 \001(\t\022H\n\007logging\030"
- + "\013 \001(\01627.google.devtools.cloudbuild.v1.Bu"
- + "ildOptions.LoggingMode\022\013\n\003env\030\014 \003(\t\022\022\n\ns"
- + "ecret_env\030\r \003(\t\0226\n\007volumes\030\016 \003(\0132%.googl"
- + "e.devtools.cloudbuild.v1.Volume\".\n\014Verif"
- + "yOption\022\020\n\014NOT_VERIFIED\020\000\022\014\n\010VERIFIED\020\001\""
- + "C\n\013MachineType\022\017\n\013UNSPECIFIED\020\000\022\020\n\014N1_HI"
- + "GHCPU_8\020\001\022\021\n\rN1_HIGHCPU_32\020\002\"5\n\022Substitu"
- + "tionOption\022\016\n\nMUST_MATCH\020\000\022\017\n\013ALLOW_LOOS"
- + "E\020\001\"G\n\022LogStreamingOption\022\022\n\016STREAM_DEFA"
- + "ULT\020\000\022\r\n\tSTREAM_ON\020\001\022\016\n\nSTREAM_OFF\020\002\"@\n\013"
- + "LoggingMode\022\027\n\023LOGGING_UNSPECIFIED\020\000\022\n\n\006"
- + "LEGACY\020\001\022\014\n\010GCS_ONLY\020\002\"\364\004\n\nWorkerPool\022\014\n"
- + "\004name\030\016 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022\035\n\025servi"
- + "ce_account_email\030\003 \001(\t\022\024\n\014worker_count\030\004"
- + " \001(\003\022B\n\rworker_config\030\020 \001(\0132+.google.dev"
- + "tools.cloudbuild.v1.WorkerConfig\022A\n\007regi"
- + "ons\030\t \003(\01620.google.devtools.cloudbuild.v"
- + "1.WorkerPool.Region\022/\n\013create_time\030\013 \001(\013"
- + "2\032.google.protobuf.Timestamp\022/\n\013update_t"
- + "ime\030\021 \001(\0132\032.google.protobuf.Timestamp\022/\n"
- + "\013delete_time\030\014 \001(\0132\032.google.protobuf.Tim"
- + "estamp\022@\n\006status\030\r \001(\01620.google.devtools"
- + ".cloudbuild.v1.WorkerPool.Status\"[\n\006Regi"
- + "on\022\026\n\022REGION_UNSPECIFIED\020\000\022\017\n\013US_CENTRAL"
- + "1\020\001\022\014\n\010US_WEST1\020\002\022\014\n\010US_EAST1\020\003\022\014\n\010US_EA"
- + "ST4\020\004\"V\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022"
- + "\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\014\n\010DELETING\020\003"
- + "\022\013\n\007DELETED\020\004\"\200\001\n\014WorkerConfig\022\024\n\014machin"
- + "e_type\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(\003\0227\n\007ne"
- + "twork\030\003 \001(\0132&.google.devtools.cloudbuild"
- + ".v1.Network\022\013\n\003tag\030\004 \001(\t\"B\n\007Network\022\022\n\np"
- + "roject_id\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\022\n\nsubn"
- + "etwork\030\003 \001(\t\"i\n\027CreateWorkerPoolRequest\022"
- + "\016\n\006parent\030\001 \001(\t\022>\n\013worker_pool\030\002 \001(\0132).g"
- + "oogle.devtools.cloudbuild.v1.WorkerPool\""
- + "$\n\024GetWorkerPoolRequest\022\014\n\004name\030\001 \001(\t\"\'\n"
- + "\027DeleteWorkerPoolRequest\022\014\n\004name\030\001 \001(\t\"g"
- + "\n\027UpdateWorkerPoolRequest\022\014\n\004name\030\002 \001(\t\022"
- + ">\n\013worker_pool\030\003 \001(\0132).google.devtools.c"
- + "loudbuild.v1.WorkerPool\"(\n\026ListWorkerPoo"
- + "lsRequest\022\016\n\006parent\030\001 \001(\t\"Z\n\027ListWorkerP"
- + "oolsResponse\022?\n\014worker_pools\030\001 \003(\0132).goo"
- + "gle.devtools.cloudbuild.v1.WorkerPool2\241\026"
- + "\n\nCloudBuild\022\305\001\n\013CreateBuild\0221.google.de"
- + "vtools.cloudbuild.v1.CreateBuildRequest\032"
- + "\035.google.longrunning.Operation\"d\202\323\344\223\002)\" "
- + "/v1/projects/{project_id}/builds:\005build\332"
+ + "r.proto\032\031google/api/resource.proto\032#goog"
+ + "le/longrunning/operations.proto\032\036google/"
+ + "protobuf/duration.proto\032\033google/protobuf"
+ + "/empty.proto\032 google/protobuf/field_mask"
+ + ".proto\032\037google/protobuf/timestamp.proto\""
+ + "q\n\021RetryBuildRequest\0222\n\004name\030\003 \001(\tB$\372A!\n"
+ + "\037cloudbuild.googleapis.com/Build\022\027\n\nproj"
+ + "ect_id\030\001 \001(\tB\003\340A\002\022\017\n\002id\030\002 \001(\tB\003\340A\002\"\212\001\n\026R"
+ + "unBuildTriggerRequest\022\027\n\nproject_id\030\001 \001("
+ + "\tB\003\340A\002\022\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\022>\n\006sourc"
+ + "e\030\003 \001(\0132).google.devtools.cloudbuild.v1."
+ + "RepoSourceB\003\340A\002\"C\n\rStorageSource\022\016\n\006buck"
+ + "et\030\001 \001(\t\022\016\n\006object\030\002 \001(\t\022\022\n\ngeneration\030\003"
+ + " \001(\003\"\256\002\n\nRepoSource\022\022\n\nproject_id\030\001 \001(\t\022"
+ + "\021\n\trepo_name\030\002 \001(\t\022\025\n\013branch_name\030\003 \001(\tH"
+ + "\000\022\022\n\010tag_name\030\004 \001(\tH\000\022\024\n\ncommit_sha\030\005 \001("
+ + "\tH\000\022\013\n\003dir\030\007 \001(\t\022\024\n\014invert_regex\030\010 \001(\010\022S"
+ + "\n\rsubstitutions\030\t \003(\0132<.google.devtools."
+ + "cloudbuild.v1.RepoSource.SubstitutionsEn"
+ + "try\0324\n\022SubstitutionsEntry\022\013\n\003key\030\001 \001(\t\022\r"
+ + "\n\005value\030\002 \001(\t:\0028\001B\n\n\010revision\"\234\001\n\006Source"
+ + "\022F\n\016storage_source\030\002 \001(\0132,.google.devtoo"
+ + "ls.cloudbuild.v1.StorageSourceH\000\022@\n\013repo"
+ + "_source\030\003 \001(\0132).google.devtools.cloudbui"
+ + "ld.v1.RepoSourceH\000B\010\n\006source\"m\n\nBuiltIma"
+ + "ge\022\014\n\004name\030\001 \001(\t\022\016\n\006digest\030\003 \001(\t\022A\n\013push"
+ + "_timing\030\004 \001(\0132\'.google.devtools.cloudbui"
+ + "ld.v1.TimeSpanB\003\340A\003\"\256\003\n\tBuildStep\022\014\n\004nam"
+ + "e\030\001 \001(\t\022\013\n\003env\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022\013\n\003di"
+ + "r\030\004 \001(\t\022\n\n\002id\030\005 \001(\t\022\020\n\010wait_for\030\006 \003(\t\022\022\n"
+ + "\nentrypoint\030\007 \001(\t\022\022\n\nsecret_env\030\010 \003(\t\0226\n"
+ + "\007volumes\030\t \003(\0132%.google.devtools.cloudbu"
+ + "ild.v1.Volume\022<\n\006timing\030\n \001(\0132\'.google.d"
+ + "evtools.cloudbuild.v1.TimeSpanB\003\340A\003\022A\n\013p"
+ + "ull_timing\030\r \001(\0132\'.google.devtools.cloud"
+ + "build.v1.TimeSpanB\003\340A\003\022*\n\007timeout\030\013 \001(\0132"
+ + "\031.google.protobuf.Duration\022@\n\006status\030\014 \001"
+ + "(\0162+.google.devtools.cloudbuild.v1.Build"
+ + ".StatusB\003\340A\003\"$\n\006Volume\022\014\n\004name\030\001 \001(\t\022\014\n\004"
+ + "path\030\002 \001(\t\"\357\001\n\007Results\0229\n\006images\030\002 \003(\0132)"
+ + ".google.devtools.cloudbuild.v1.BuiltImag"
+ + "e\022\031\n\021build_step_images\030\003 \003(\t\022\031\n\021artifact"
+ + "_manifest\030\004 \001(\t\022\025\n\rnum_artifacts\030\005 \001(\003\022\032"
+ + "\n\022build_step_outputs\030\006 \003(\014\022@\n\017artifact_t"
+ + "iming\030\007 \001(\0132\'.google.devtools.cloudbuild"
+ + ".v1.TimeSpan\"`\n\016ArtifactResult\022\020\n\010locati"
+ + "on\030\001 \001(\t\022<\n\tfile_hash\030\002 \003(\0132).google.dev"
+ + "tools.cloudbuild.v1.FileHashes\"\255\014\n\005Build"
+ + "\022\021\n\004name\030- \001(\tB\003\340A\003\022\017\n\002id\030\001 \001(\tB\003\340A\003\022\027\n\n"
+ + "project_id\030\020 \001(\tB\003\340A\003\022@\n\006status\030\002 \001(\0162+."
+ + "google.devtools.cloudbuild.v1.Build.Stat"
+ + "usB\003\340A\003\022\032\n\rstatus_detail\030\030 \001(\tB\003\340A\003\0225\n\006s"
+ + "ource\030\003 \001(\0132%.google.devtools.cloudbuild"
+ + ".v1.Source\0227\n\005steps\030\013 \003(\0132(.google.devto"
+ + "ols.cloudbuild.v1.BuildStep\022<\n\007results\030\n"
+ + " \001(\0132&.google.devtools.cloudbuild.v1.Res"
+ + "ultsB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google."
+ + "protobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\007 "
+ + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013"
+ + "finish_time\030\010 \001(\0132\032.google.protobuf.Time"
+ + "stampB\003\340A\003\022*\n\007timeout\030\014 \001(\0132\031.google.pro"
+ + "tobuf.Duration\022\016\n\006images\030\r \003(\t\022,\n\tqueue_"
+ + "ttl\030( \001(\0132\031.google.protobuf.Duration\022;\n\t"
+ + "artifacts\030% \001(\0132(.google.devtools.cloudb"
+ + "uild.v1.Artifacts\022\023\n\013logs_bucket\030\023 \001(\t\022O"
+ + "\n\021source_provenance\030\025 \001(\0132/.google.devto"
+ + "ols.cloudbuild.v1.SourceProvenanceB\003\340A\003\022"
+ + "\035\n\020build_trigger_id\030\026 \001(\tB\003\340A\003\022<\n\007option"
+ + "s\030\027 \001(\0132+.google.devtools.cloudbuild.v1."
+ + "BuildOptions\022\024\n\007log_url\030\031 \001(\tB\003\340A\003\022N\n\rsu"
+ + "bstitutions\030\035 \003(\01327.google.devtools.clou"
+ + "dbuild.v1.Build.SubstitutionsEntry\022\014\n\004ta"
+ + "gs\030\037 \003(\t\0226\n\007secrets\030 \003(\0132%.google.devto"
+ + "ols.cloudbuild.v1.Secret\022E\n\006timing\030! \003(\013"
+ + "20.google.devtools.cloudbuild.v1.Build.T"
+ + "imingEntryB\003\340A\003\022?\n\017service_account\030* \001(\t"
+ + "B&\372A#\n!iam.googleapis.com/ServiceAccount"
+ + "\0324\n\022SubstitutionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
+ + "alue\030\002 \001(\t:\0028\001\032V\n\013TimingEntry\022\013\n\003key\030\001 \001"
+ + "(\t\0226\n\005value\030\002 \001(\0132\'.google.devtools.clou"
+ + "dbuild.v1.TimeSpan:\0028\001\"\214\001\n\006Status\022\022\n\016STA"
+ + "TUS_UNKNOWN\020\000\022\n\n\006QUEUED\020\001\022\013\n\007WORKING\020\002\022\013"
+ + "\n\007SUCCESS\020\003\022\013\n\007FAILURE\020\004\022\022\n\016INTERNAL_ERR"
+ + "OR\020\005\022\013\n\007TIMEOUT\020\006\022\r\n\tCANCELLED\020\007\022\013\n\007EXPI"
+ + "RED\020\t:\177\352A|\n\037cloudbuild.googleapis.com/Bu"
+ + "ild\022!projects/{project}/builds/{build}\0226"
+ + "projects/{project}/locations/{location}/"
+ + "builds/{build}\"\330\001\n\tArtifacts\022\016\n\006images\030\001"
+ + " \003(\t\022I\n\007objects\030\002 \001(\01328.google.devtools."
+ + "cloudbuild.v1.Artifacts.ArtifactObjects\032"
+ + "p\n\017ArtifactObjects\022\020\n\010location\030\001 \001(\t\022\r\n\005"
+ + "paths\030\002 \003(\t\022<\n\006timing\030\003 \001(\0132\'.google.dev"
+ + "tools.cloudbuild.v1.TimeSpanB\003\340A\003\"h\n\010Tim"
+ + "eSpan\022.\n\nstart_time\030\001 \001(\0132\032.google.proto"
+ + "buf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google"
+ + ".protobuf.Timestamp\"M\n\026BuildOperationMet"
+ + "adata\0223\n\005build\030\001 \001(\0132$.google.devtools.c"
+ + "loudbuild.v1.Build\"\343\002\n\020SourceProvenance\022"
+ + "M\n\027resolved_storage_source\030\003 \001(\0132,.googl"
+ + "e.devtools.cloudbuild.v1.StorageSource\022G"
+ + "\n\024resolved_repo_source\030\006 \001(\0132).google.de"
+ + "vtools.cloudbuild.v1.RepoSource\022Y\n\013file_"
+ + "hashes\030\004 \003(\0132?.google.devtools.cloudbuil"
+ + "d.v1.SourceProvenance.FileHashesEntryB\003\340"
+ + "A\003\032\\\n\017FileHashesEntry\022\013\n\003key\030\001 \001(\t\0228\n\005va"
+ + "lue\030\002 \001(\0132).google.devtools.cloudbuild.v"
+ + "1.FileHashes:\0028\001\"D\n\nFileHashes\0226\n\tfile_h"
+ + "ash\030\001 \003(\0132#.google.devtools.cloudbuild.v"
+ + "1.Hash\"|\n\004Hash\022:\n\004type\030\001 \001(\0162,.google.de"
+ + "vtools.cloudbuild.v1.Hash.HashType\022\r\n\005va"
+ + "lue\030\002 \001(\014\")\n\010HashType\022\010\n\004NONE\020\000\022\n\n\006SHA25"
+ + "6\020\001\022\007\n\003MD5\020\002\"\232\001\n\006Secret\022\024\n\014kms_key_name\030"
+ + "\001 \001(\t\022H\n\nsecret_env\030\003 \003(\01324.google.devto"
+ + "ols.cloudbuild.v1.Secret.SecretEnvEntry\032"
+ + "0\n\016SecretEnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
+ + "\002 \001(\014:\0028\001\"\235\001\n\022CreateBuildRequest\0224\n\006pare"
+ + "nt\030\004 \001(\tB$\372A!\022\037cloudbuild.googleapis.com"
+ + "/Build\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\0228\n\005build"
+ + "\030\002 \001(\0132$.google.devtools.cloudbuild.v1.B"
+ + "uildB\003\340A\002\"o\n\017GetBuildRequest\0222\n\004name\030\004 \001"
+ + "(\tB$\372A!\n\037cloudbuild.googleapis.com/Build"
+ + "\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\017\n\002id\030\002 \001(\tB\003\340"
+ + "A\002\"\231\001\n\021ListBuildsRequest\0224\n\006parent\030\t \001(\t"
+ + "B$\372A!\022\037cloudbuild.googleapis.com/Build\022\027"
+ + "\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001"
+ + "(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\010 \001(\t\"c"
+ + "\n\022ListBuildsResponse\0224\n\006builds\030\001 \003(\0132$.g"
+ + "oogle.devtools.cloudbuild.v1.Build\022\027\n\017ne"
+ + "xt_page_token\030\002 \001(\t\"r\n\022CancelBuildReques"
+ + "t\0222\n\004name\030\004 \001(\tB$\372A!\n\037cloudbuild.googlea"
+ + "pis.com/Build\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\017"
+ + "\n\002id\030\002 \001(\tB\003\340A\002\"\215\005\n\014BuildTrigger\022\017\n\002id\030\001"
+ + " \001(\tB\003\340A\003\022\023\n\013description\030\n \001(\t\022\014\n\004name\030\025"
+ + " \001(\t\022\014\n\004tags\030\023 \003(\t\022C\n\020trigger_template\030\007"
+ + " \001(\0132).google.devtools.cloudbuild.v1.Rep"
+ + "oSource\022A\n\006github\030\r \001(\01321.google.devtool"
+ + "s.cloudbuild.v1.GitHubEventsConfig\0225\n\005bu"
+ + "ild\030\004 \001(\0132$.google.devtools.cloudbuild.v"
+ + "1.BuildH\000\022\022\n\010filename\030\010 \001(\tH\000\0224\n\013create_"
+ + "time\030\005 \001(\0132\032.google.protobuf.TimestampB\003"
+ + "\340A\003\022\020\n\010disabled\030\t \001(\010\022U\n\rsubstitutions\030\013"
+ + " \003(\0132>.google.devtools.cloudbuild.v1.Bui"
+ + "ldTrigger.SubstitutionsEntry\022\025\n\rignored_"
+ + "files\030\017 \003(\t\022\026\n\016included_files\030\020 \003(\t\0324\n\022S"
+ + "ubstitutionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
+ + "\002 \001(\t:\0028\001:R\352AO\n&cloudbuild.googleapis.co"
+ + "m/BuildTrigger\022%projects/{project}/trigg"
+ + "ers/{trigger}B\020\n\016build_template\"\334\001\n\022GitH"
+ + "ubEventsConfig\022\033\n\017installation_id\030\001 \001(\003B"
+ + "\002\030\001\022\r\n\005owner\030\006 \001(\t\022\014\n\004name\030\007 \001(\t\022H\n\014pull"
+ + "_request\030\004 \001(\01320.google.devtools.cloudbu"
+ + "ild.v1.PullRequestFilterH\000\0229\n\004push\030\005 \001(\013"
+ + "2).google.devtools.cloudbuild.v1.PushFil"
+ + "terH\000B\007\n\005event\"\337\001\n\021PullRequestFilter\022\020\n\006"
+ + "branch\030\002 \001(\tH\000\022X\n\017comment_control\030\005 \001(\0162"
+ + "?.google.devtools.cloudbuild.v1.PullRequ"
+ + "estFilter.CommentControl\022\024\n\014invert_regex"
+ + "\030\006 \001(\010\"=\n\016CommentControl\022\025\n\021COMMENTS_DIS"
+ + "ABLED\020\000\022\024\n\020COMMENTS_ENABLED\020\001B\t\n\007git_ref"
+ + "\"N\n\nPushFilter\022\020\n\006branch\030\002 \001(\tH\000\022\r\n\003tag\030"
+ + "\003 \001(\tH\000\022\024\n\014invert_regex\030\004 \001(\010B\t\n\007git_ref"
+ + "\"w\n\031CreateBuildTriggerRequest\022\027\n\nproject"
+ + "_id\030\001 \001(\tB\003\340A\002\022A\n\007trigger\030\002 \001(\0132+.google"
+ + ".devtools.cloudbuild.v1.BuildTriggerB\003\340A"
+ + "\002\"J\n\026GetBuildTriggerRequest\022\027\n\nproject_i"
+ + "d\030\001 \001(\tB\003\340A\002\022\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\"Z\n"
+ + "\030ListBuildTriggersRequest\022\027\n\nproject_id\030"
+ + "\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to"
+ + "ken\030\003 \001(\t\"s\n\031ListBuildTriggersResponse\022="
+ + "\n\010triggers\030\001 \003(\0132+.google.devtools.cloud"
+ + "build.v1.BuildTrigger\022\027\n\017next_page_token"
+ + "\030\002 \001(\t\"M\n\031DeleteBuildTriggerRequest\022\027\n\np"
+ + "roject_id\030\001 \001(\tB\003\340A\002\022\027\n\ntrigger_id\030\002 \001(\t"
+ + "B\003\340A\002\"\220\001\n\031UpdateBuildTriggerRequest\022\027\n\np"
+ + "roject_id\030\001 \001(\tB\003\340A\002\022\027\n\ntrigger_id\030\002 \001(\t"
+ + "B\003\340A\002\022A\n\007trigger\030\003 \001(\0132+.google.devtools"
+ + ".cloudbuild.v1.BuildTriggerB\003\340A\002\"\241\010\n\014Bui"
+ + "ldOptions\022L\n\026source_provenance_hash\030\001 \003("
+ + "\0162,.google.devtools.cloudbuild.v1.Hash.H"
+ + "ashType\022Y\n\027requested_verify_option\030\002 \001(\016"
+ + "28.google.devtools.cloudbuild.v1.BuildOp"
+ + "tions.VerifyOption\022M\n\014machine_type\030\003 \001(\016"
+ + "27.google.devtools.cloudbuild.v1.BuildOp"
+ + "tions.MachineType\022\024\n\014disk_size_gb\030\006 \001(\003\022"
+ + "[\n\023substitution_option\030\004 \001(\0162>.google.de"
+ + "vtools.cloudbuild.v1.BuildOptions.Substi"
+ + "tutionOption\022\035\n\025dynamic_substitutions\030\021 "
+ + "\001(\010\022\\\n\024log_streaming_option\030\005 \001(\0162>.goog"
+ + "le.devtools.cloudbuild.v1.BuildOptions.L"
+ + "ogStreamingOption\022\023\n\013worker_pool\030\007 \001(\t\022H"
+ + "\n\007logging\030\013 \001(\01627.google.devtools.cloudb"
+ + "uild.v1.BuildOptions.LoggingMode\022\013\n\003env\030"
+ + "\014 \003(\t\022\022\n\nsecret_env\030\r \003(\t\0226\n\007volumes\030\016 \003"
+ + "(\0132%.google.devtools.cloudbuild.v1.Volum"
+ + "e\".\n\014VerifyOption\022\020\n\014NOT_VERIFIED\020\000\022\014\n\010V"
+ + "ERIFIED\020\001\"C\n\013MachineType\022\017\n\013UNSPECIFIED\020"
+ + "\000\022\020\n\014N1_HIGHCPU_8\020\001\022\021\n\rN1_HIGHCPU_32\020\002\"5"
+ + "\n\022SubstitutionOption\022\016\n\nMUST_MATCH\020\000\022\017\n\013"
+ + "ALLOW_LOOSE\020\001\"G\n\022LogStreamingOption\022\022\n\016S"
+ + "TREAM_DEFAULT\020\000\022\r\n\tSTREAM_ON\020\001\022\016\n\nSTREAM"
+ + "_OFF\020\002\"|\n\013LoggingMode\022\027\n\023LOGGING_UNSPECI"
+ + "FIED\020\000\022\n\n\006LEGACY\020\001\022\014\n\010GCS_ONLY\020\002\022\030\n\020STAC"
+ + "KDRIVER_ONLY\020\003\032\002\010\001\022\026\n\022CLOUD_LOGGING_ONLY"
+ + "\020\005\022\010\n\004NONE\020\004\"\364\004\n\nWorkerPool\022\014\n\004name\030\016 \001("
+ + "\t\022\022\n\nproject_id\030\002 \001(\t\022\035\n\025service_account"
+ + "_email\030\003 \001(\t\022\024\n\014worker_count\030\004 \001(\003\022B\n\rwo"
+ + "rker_config\030\020 \001(\0132+.google.devtools.clou"
+ + "dbuild.v1.WorkerConfig\022A\n\007regions\030\t \003(\0162"
+ + "0.google.devtools.cloudbuild.v1.WorkerPo"
+ + "ol.Region\022/\n\013create_time\030\013 \001(\0132\032.google."
+ + "protobuf.Timestamp\022/\n\013update_time\030\021 \001(\0132"
+ + "\032.google.protobuf.Timestamp\022/\n\013delete_ti"
+ + "me\030\014 \001(\0132\032.google.protobuf.Timestamp\022@\n\006"
+ + "status\030\r \001(\01620.google.devtools.cloudbuil"
+ + "d.v1.WorkerPool.Status\"[\n\006Region\022\026\n\022REGI"
+ + "ON_UNSPECIFIED\020\000\022\017\n\013US_CENTRAL1\020\001\022\014\n\010US_"
+ + "WEST1\020\002\022\014\n\010US_EAST1\020\003\022\014\n\010US_EAST4\020\004\"V\n\006S"
+ + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\014\n\010CREATIN"
+ + "G\020\001\022\013\n\007RUNNING\020\002\022\014\n\010DELETING\020\003\022\013\n\007DELETE"
+ + "D\020\004\"\200\001\n\014WorkerConfig\022\024\n\014machine_type\030\001 \001"
+ + "(\t\022\024\n\014disk_size_gb\030\002 \001(\003\0227\n\007network\030\003 \001("
+ + "\0132&.google.devtools.cloudbuild.v1.Networ"
+ + "k\022\013\n\003tag\030\004 \001(\t\"B\n\007Network\022\022\n\nproject_id\030"
+ + "\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\022\n\nsubnetwork\030\003 \001"
+ + "(\t\"i\n\027CreateWorkerPoolRequest\022\016\n\006parent\030"
+ + "\001 \001(\t\022>\n\013worker_pool\030\002 \001(\0132).google.devt"
+ + "ools.cloudbuild.v1.WorkerPool\"$\n\024GetWork"
+ + "erPoolRequest\022\014\n\004name\030\001 \001(\t\"\'\n\027DeleteWor"
+ + "kerPoolRequest\022\014\n\004name\030\001 \001(\t\"g\n\027UpdateWo"
+ + "rkerPoolRequest\022\014\n\004name\030\002 \001(\t\022>\n\013worker_"
+ + "pool\030\003 \001(\0132).google.devtools.cloudbuild."
+ + "v1.WorkerPool\"(\n\026ListWorkerPoolsRequest\022"
+ + "\016\n\006parent\030\001 \001(\t\"Z\n\027ListWorkerPoolsRespon"
+ + "se\022?\n\014worker_pools\030\001 \003(\0132).google.devtoo"
+ + "ls.cloudbuild.v1.WorkerPool2\237\030\n\nCloudBui"
+ + "ld\022\367\001\n\013CreateBuild\0221.google.devtools.clo"
+ + "udbuild.v1.CreateBuildRequest\032\035.google.l"
+ + "ongrunning.Operation\"\225\001\202\323\344\223\002Z\" /v1/proje"
+ + "cts/{project_id}/builds:\005buildZ/\"*/v1/{p"
+ + "arent=projects/*/locations/*}/builds:\001*\332"
+ "A\020project_id,build\312A\037\n\005Build\022\026BuildOpera"
- + "tionMetadata\022\237\001\n\010GetBuild\022..google.devto"
+ + "tionMetadata\022\315\001\n\010GetBuild\022..google.devto"
+ "ols.cloudbuild.v1.GetBuildRequest\032$.goog"
- + "le.devtools.cloudbuild.v1.Build\"=\202\323\344\223\002\'\022"
- + "%/v1/projects/{project_id}/builds/{id}\332A"
- + "\rproject_id,id\022\257\001\n\nListBuilds\0220.google.d"
- + "evtools.cloudbuild.v1.ListBuildsRequest\032"
- + "1.google.devtools.cloudbuild.v1.ListBuil"
- + "dsResponse\"<\202\323\344\223\002\"\022 /v1/projects/{projec"
- + "t_id}/builds\332A\021project_id,filter\022\257\001\n\013Can"
- + "celBuild\0221.google.devtools.cloudbuild.v1"
- + ".CancelBuildRequest\032$.google.devtools.cl"
- + "oudbuild.v1.Build\"G\202\323\344\223\0021\",/v1/projects/"
- + "{project_id}/builds/{id}:cancel:\001*\332A\rpro"
- + "ject_id,id\022\307\001\n\nRetryBuild\0220.google.devto"
- + "ols.cloudbuild.v1.RetryBuildRequest\032\035.go"
- + "ogle.longrunning.Operation\"h\202\323\344\223\0020\"+/v1/"
- + "projects/{project_id}/builds/{id}:retry:"
- + "\001*\332A\rproject_id,id\312A\037\n\005Build\022\026BuildOpera"
- + "tionMetadata\022\305\001\n\022CreateBuildTrigger\0228.go"
- + "ogle.devtools.cloudbuild.v1.CreateBuildT"
- + "riggerRequest\032+.google.devtools.cloudbui"
- + "ld.v1.BuildTrigger\"H\202\323\344\223\002-\"\"/v1/projects"
- + "/{project_id}/triggers:\007trigger\332A\022projec"
- + "t_id,trigger\022\306\001\n\017GetBuildTrigger\0225.googl"
- + "e.devtools.cloudbuild.v1.GetBuildTrigger"
- + "Request\032+.google.devtools.cloudbuild.v1."
- + "BuildTrigger\"O\202\323\344\223\0021\022//v1/projects/{proj"
- + "ect_id}/triggers/{trigger_id}\332A\025project_"
- + "id,trigger_id\022\277\001\n\021ListBuildTriggers\0227.go"
- + "ogle.devtools.cloudbuild.v1.ListBuildTri"
- + "ggersRequest\0328.google.devtools.cloudbuil"
- + "d.v1.ListBuildTriggersResponse\"7\202\323\344\223\002$\022\""
- + "/v1/projects/{project_id}/triggers\332A\npro"
- + "ject_id\022\267\001\n\022DeleteBuildTrigger\0228.google."
- + "devtools.cloudbuild.v1.DeleteBuildTrigge"
- + "rRequest\032\026.google.protobuf.Empty\"O\202\323\344\223\0021"
- + "*//v1/projects/{project_id}/triggers/{tr"
- + "igger_id}\332A\025project_id,trigger_id\022\335\001\n\022Up"
- + "dateBuildTrigger\0228.google.devtools.cloud"
- + "build.v1.UpdateBuildTriggerRequest\032+.goo"
- + "gle.devtools.cloudbuild.v1.BuildTrigger\""
- + "`\202\323\344\223\002:2//v1/projects/{project_id}/trigg"
- + "ers/{trigger_id}:\007trigger\332A\035project_id,t"
- + "rigger_id,trigger\022\356\001\n\017RunBuildTrigger\0225."
- + "google.devtools.cloudbuild.v1.RunBuildTr"
- + "iggerRequest\032\035.google.longrunning.Operat"
- + "ion\"\204\001\202\323\344\223\002=\"3/v1/projects/{project_id}/"
- + "triggers/{trigger_id}:run:\006source\332A\034proj"
- + "ect_id,trigger_id,source\312A\037\n\005Build\022\026Buil"
- + "dOperationMetadata\022w\n\020CreateWorkerPool\0226"
- + ".google.devtools.cloudbuild.v1.CreateWor"
- + "kerPoolRequest\032).google.devtools.cloudbu"
- + "ild.v1.WorkerPool\"\000\022q\n\rGetWorkerPool\0223.g"
- + "oogle.devtools.cloudbuild.v1.GetWorkerPo"
- + "olRequest\032).google.devtools.cloudbuild.v"
- + "1.WorkerPool\"\000\022d\n\020DeleteWorkerPool\0226.goo"
- + "gle.devtools.cloudbuild.v1.DeleteWorkerP"
- + "oolRequest\032\026.google.protobuf.Empty\"\000\022w\n\020"
- + "UpdateWorkerPool\0226.google.devtools.cloud"
- + "build.v1.UpdateWorkerPoolRequest\032).googl"
- + "e.devtools.cloudbuild.v1.WorkerPool\"\000\022\202\001"
- + "\n\017ListWorkerPools\0225.google.devtools.clou"
- + "dbuild.v1.ListWorkerPoolsRequest\0326.googl"
- + "e.devtools.cloudbuild.v1.ListWorkerPools"
- + "Response\"\000\032M\312A\031cloudbuild.googleapis.com"
- + "\322A.https://www.googleapis.com/auth/cloud"
- + "-platformB\206\001\n\030com.google.cloudbuild.v1P\001"
- + "ZGgoogle.golang.org/genproto/googleapis/"
- + "devtools/cloudbuild/v1;cloudbuild\242\002\003GCB\352"
- + "\002\030Google::Cloud::Build::V1b\006proto3"
+ + "le.devtools.cloudbuild.v1.Build\"k\202\323\344\223\002U\022"
+ + "%/v1/projects/{project_id}/builds/{id}Z,"
+ + "\022*/v1/{name=projects/*/locations/*/build"
+ + "s/*}\332A\rproject_id,id\022\335\001\n\nListBuilds\0220.go"
+ + "ogle.devtools.cloudbuild.v1.ListBuildsRe"
+ + "quest\0321.google.devtools.cloudbuild.v1.Li"
+ + "stBuildsResponse\"j\202\323\344\223\002P\022 /v1/projects/{"
+ + "project_id}/buildsZ,\022*/v1/{parent=projec"
+ + "ts/*/locations/*}/builds\332A\021project_id,fi"
+ + "lter\022\347\001\n\013CancelBuild\0221.google.devtools.c"
+ + "loudbuild.v1.CancelBuildRequest\032$.google"
+ + ".devtools.cloudbuild.v1.Build\"\177\202\323\344\223\002i\",/"
+ + "v1/projects/{project_id}/builds/{id}:can"
+ + "cel:\001*Z6\"1/v1/{name=projects/*/locations"
+ + "/*/builds/*}:cancel:\001*\332A\rproject_id,id\022\377"
+ + "\001\n\nRetryBuild\0220.google.devtools.cloudbui"
+ + "ld.v1.RetryBuildRequest\032\035.google.longrun"
+ + "ning.Operation\"\237\001\202\323\344\223\002g\"+/v1/projects/{p"
+ + "roject_id}/builds/{id}:retry:\001*Z5\"0/v1/{"
+ + "name=projects/*/locations/*/builds/*}:re"
+ + "try:\001*\332A\rproject_id,id\312A\037\n\005Build\022\026BuildO"
+ + "perationMetadata\022\305\001\n\022CreateBuildTrigger\022"
+ + "8.google.devtools.cloudbuild.v1.CreateBu"
+ + "ildTriggerRequest\032+.google.devtools.clou"
+ + "dbuild.v1.BuildTrigger\"H\202\323\344\223\002-\"\"/v1/proj"
+ + "ects/{project_id}/triggers:\007trigger\332A\022pr"
+ + "oject_id,trigger\022\306\001\n\017GetBuildTrigger\0225.g"
+ + "oogle.devtools.cloudbuild.v1.GetBuildTri"
+ + "ggerRequest\032+.google.devtools.cloudbuild"
+ + ".v1.BuildTrigger\"O\202\323\344\223\0021\022//v1/projects/{"
+ + "project_id}/triggers/{trigger_id}\332A\025proj"
+ + "ect_id,trigger_id\022\277\001\n\021ListBuildTriggers\022"
+ + "7.google.devtools.cloudbuild.v1.ListBuil"
+ + "dTriggersRequest\0328.google.devtools.cloud"
+ + "build.v1.ListBuildTriggersResponse\"7\202\323\344\223"
+ + "\002$\022\"/v1/projects/{project_id}/triggers\332A"
+ + "\nproject_id\022\267\001\n\022DeleteBuildTrigger\0228.goo"
+ + "gle.devtools.cloudbuild.v1.DeleteBuildTr"
+ + "iggerRequest\032\026.google.protobuf.Empty\"O\202\323"
+ + "\344\223\0021*//v1/projects/{project_id}/triggers"
+ + "/{trigger_id}\332A\025project_id,trigger_id\022\335\001"
+ + "\n\022UpdateBuildTrigger\0228.google.devtools.c"
+ + "loudbuild.v1.UpdateBuildTriggerRequest\032+"
+ + ".google.devtools.cloudbuild.v1.BuildTrig"
+ + "ger\"`\202\323\344\223\002:2//v1/projects/{project_id}/t"
+ + "riggers/{trigger_id}:\007trigger\332A\035project_"
+ + "id,trigger_id,trigger\022\356\001\n\017RunBuildTrigge"
+ + "r\0225.google.devtools.cloudbuild.v1.RunBui"
+ + "ldTriggerRequest\032\035.google.longrunning.Op"
+ + "eration\"\204\001\202\323\344\223\002=\"3/v1/projects/{project_"
+ + "id}/triggers/{trigger_id}:run:\006source\332A\034"
+ + "project_id,trigger_id,source\312A\037\n\005Build\022\026"
+ + "BuildOperationMetadata\022w\n\020CreateWorkerPo"
+ + "ol\0226.google.devtools.cloudbuild.v1.Creat"
+ + "eWorkerPoolRequest\032).google.devtools.clo"
+ + "udbuild.v1.WorkerPool\"\000\022q\n\rGetWorkerPool"
+ + "\0223.google.devtools.cloudbuild.v1.GetWork"
+ + "erPoolRequest\032).google.devtools.cloudbui"
+ + "ld.v1.WorkerPool\"\000\022d\n\020DeleteWorkerPool\0226"
+ + ".google.devtools.cloudbuild.v1.DeleteWor"
+ + "kerPoolRequest\032\026.google.protobuf.Empty\"\000"
+ + "\022w\n\020UpdateWorkerPool\0226.google.devtools.c"
+ + "loudbuild.v1.UpdateWorkerPoolRequest\032).g"
+ + "oogle.devtools.cloudbuild.v1.WorkerPool\""
+ + "\000\022\202\001\n\017ListWorkerPools\0225.google.devtools."
+ + "cloudbuild.v1.ListWorkerPoolsRequest\0326.g"
+ + "oogle.devtools.cloudbuild.v1.ListWorkerP"
+ + "oolsResponse\"\000\032M\312A\031cloudbuild.googleapis"
+ + ".com\322A.https://www.googleapis.com/auth/c"
+ + "loud-platformB\263\002\n\030com.google.cloudbuild."
+ + "v1P\001ZGgoogle.golang.org/genproto/googlea"
+ + "pis/devtools/cloudbuild/v1;cloudbuild\242\002\003"
+ + "GCB\352\002\030Google::Cloud::Build::V1\352AN\n\036compu"
+ + "te.googleapis.com/Network\022,projects/{pro"
+ + "ject}/global/networks/{network}\352AY\n!iam."
+ + "googleapis.com/ServiceAccount\0224projects/"
+ + "{project}/serviceAccounts/{service_accou"
+ + "nt}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -539,9 +569,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ClientProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
+ com.google.protobuf.FieldMaskProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_google_devtools_cloudbuild_v1_RetryBuildRequest_descriptor =
@@ -550,7 +582,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_cloudbuild_v1_RetryBuildRequest_descriptor,
new java.lang.String[] {
- "ProjectId", "Id",
+ "Name", "ProjectId", "Id",
});
internal_static_google_devtools_cloudbuild_v1_RunBuildTriggerRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
@@ -663,6 +695,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_cloudbuild_v1_Build_descriptor,
new java.lang.String[] {
+ "Name",
"Id",
"ProjectId",
"Status",
@@ -686,6 +719,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Tags",
"Secrets",
"Timing",
+ "ServiceAccount",
});
internal_static_google_devtools_cloudbuild_v1_Build_SubstitutionsEntry_descriptor =
internal_static_google_devtools_cloudbuild_v1_Build_descriptor.getNestedTypes().get(0);
@@ -791,7 +825,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_cloudbuild_v1_CreateBuildRequest_descriptor,
new java.lang.String[] {
- "ProjectId", "Build",
+ "Parent", "ProjectId", "Build",
});
internal_static_google_devtools_cloudbuild_v1_GetBuildRequest_descriptor =
getDescriptor().getMessageTypes().get(19);
@@ -799,7 +833,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_cloudbuild_v1_GetBuildRequest_descriptor,
new java.lang.String[] {
- "ProjectId", "Id",
+ "Name", "ProjectId", "Id",
});
internal_static_google_devtools_cloudbuild_v1_ListBuildsRequest_descriptor =
getDescriptor().getMessageTypes().get(20);
@@ -807,7 +841,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_cloudbuild_v1_ListBuildsRequest_descriptor,
new java.lang.String[] {
- "ProjectId", "PageSize", "PageToken", "Filter",
+ "Parent", "ProjectId", "PageSize", "PageToken", "Filter",
});
internal_static_google_devtools_cloudbuild_v1_ListBuildsResponse_descriptor =
getDescriptor().getMessageTypes().get(21);
@@ -823,7 +857,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_devtools_cloudbuild_v1_CancelBuildRequest_descriptor,
new java.lang.String[] {
- "ProjectId", "Id",
+ "Name", "ProjectId", "Id",
});
internal_static_google_devtools_cloudbuild_v1_BuildTrigger_descriptor =
getDescriptor().getMessageTypes().get(23);
@@ -939,6 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MachineType",
"DiskSizeGb",
"SubstitutionOption",
+ "DynamicSubstitutions",
"LogStreamingOption",
"WorkerPool",
"Logging",
@@ -1034,15 +1069,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.AnnotationsProto.http);
registry.add(com.google.api.ClientProto.methodSignature);
registry.add(com.google.api.ClientProto.oauthScopes);
+ registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceDefinition);
+ registry.add(com.google.api.ResourceProto.resourceReference);
registry.add(com.google.longrunning.OperationsProto.operationInfo);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
+ com.google.protobuf.FieldMaskProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CreateBuildRequest.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CreateBuildRequest.java
index 91252059..9f6061e4 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CreateBuildRequest.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CreateBuildRequest.java
@@ -38,6 +38,7 @@ private CreateBuildRequest(com.google.protobuf.GeneratedMessageV3.Builder> bui
}
private CreateBuildRequest() {
+ parent_ = "";
projectId_ = "";
}
@@ -90,6 +91,13 @@ private CreateBuildRequest(
build_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ parent_ = s;
break;
}
default:
@@ -126,6 +134,57 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloudbuild.v1.CreateBuildRequest.Builder.class);
}
+ public static final int PARENT_FIELD_NUMBER = 4;
+ private volatile java.lang.Object parent_;
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object projectId_;
/**
@@ -244,6 +303,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (build_ != null) {
output.writeMessage(2, getBuild());
}
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_);
+ }
unknownFields.writeTo(output);
}
@@ -259,6 +321,9 @@ public int getSerializedSize() {
if (build_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBuild());
}
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -275,6 +340,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloudbuild.v1.CreateBuildRequest other =
(com.google.cloudbuild.v1.CreateBuildRequest) obj;
+ if (!getParent().equals(other.getParent())) return false;
if (!getProjectId().equals(other.getProjectId())) return false;
if (hasBuild() != other.hasBuild()) return false;
if (hasBuild()) {
@@ -291,6 +357,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectId().hashCode();
if (hasBuild()) {
@@ -442,6 +510,8 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
+ parent_ = "";
+
projectId_ = "";
if (buildBuilder_ == null) {
@@ -477,6 +547,7 @@ public com.google.cloudbuild.v1.CreateBuildRequest build() {
public com.google.cloudbuild.v1.CreateBuildRequest buildPartial() {
com.google.cloudbuild.v1.CreateBuildRequest result =
new com.google.cloudbuild.v1.CreateBuildRequest(this);
+ result.parent_ = parent_;
result.projectId_ = projectId_;
if (buildBuilder_ == null) {
result.build_ = build_;
@@ -532,6 +603,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloudbuild.v1.CreateBuildRequest other) {
if (other == com.google.cloudbuild.v1.CreateBuildRequest.getDefaultInstance()) return this;
+ if (!other.getParent().isEmpty()) {
+ parent_ = other.parent_;
+ onChanged();
+ }
if (!other.getProjectId().isEmpty()) {
projectId_ = other.projectId_;
onChanged();
@@ -568,6 +643,117 @@ public Builder mergeFrom(
return this;
}
+ private java.lang.Object parent_ = "";
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object projectId_ = "";
/**
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CreateBuildRequestOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CreateBuildRequestOrBuilder.java
index d3617cce..bbe3b199 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CreateBuildRequestOrBuilder.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CreateBuildRequestOrBuilder.java
@@ -23,6 +23,33 @@ public interface CreateBuildRequestOrBuilder
// @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.CreateBuildRequest)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ *
+ * The parent resource where this build will be created.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ * string parent = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
/**
*
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetBuildRequest.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetBuildRequest.java
index ca71b7e5..855b10b3 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetBuildRequest.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetBuildRequest.java
@@ -38,6 +38,7 @@ private GetBuildRequest(com.google.protobuf.GeneratedMessageV3.Builder> builde
}
private GetBuildRequest() {
+ name_ = "";
projectId_ = "";
id_ = "";
}
@@ -85,6 +86,13 @@ private GetBuildRequest(
id_ = s;
break;
}
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -119,6 +127,57 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloudbuild.v1.GetBuildRequest.Builder.class);
}
+ public static final int NAME_FIELD_NUMBER = 4;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object projectId_;
/**
@@ -237,6 +296,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
+ }
unknownFields.writeTo(output);
}
@@ -252,6 +314,9 @@ public int getSerializedSize() {
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -267,6 +332,7 @@ public boolean equals(final java.lang.Object obj) {
}
com.google.cloudbuild.v1.GetBuildRequest other = (com.google.cloudbuild.v1.GetBuildRequest) obj;
+ if (!getName().equals(other.getName())) return false;
if (!getProjectId().equals(other.getProjectId())) return false;
if (!getId().equals(other.getId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -280,6 +346,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectId().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
@@ -429,6 +497,8 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
+ name_ = "";
+
projectId_ = "";
id_ = "";
@@ -460,6 +530,7 @@ public com.google.cloudbuild.v1.GetBuildRequest build() {
public com.google.cloudbuild.v1.GetBuildRequest buildPartial() {
com.google.cloudbuild.v1.GetBuildRequest result =
new com.google.cloudbuild.v1.GetBuildRequest(this);
+ result.name_ = name_;
result.projectId_ = projectId_;
result.id_ = id_;
onBuilt();
@@ -511,6 +582,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloudbuild.v1.GetBuildRequest other) {
if (other == com.google.cloudbuild.v1.GetBuildRequest.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
if (!other.getProjectId().isEmpty()) {
projectId_ = other.projectId_;
onChanged();
@@ -548,6 +623,117 @@ public Builder mergeFrom(
return this;
}
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object projectId_ = "";
/**
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetBuildRequestOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetBuildRequestOrBuilder.java
index 490c7e86..53a7fcf9 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetBuildRequestOrBuilder.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetBuildRequestOrBuilder.java
@@ -23,6 +23,33 @@ public interface GetBuildRequestOrBuilder
// @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.GetBuildRequest)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retrieve.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 4 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
/**
*
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListBuildsRequest.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListBuildsRequest.java
index f35424e9..5fdcf120 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListBuildsRequest.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListBuildsRequest.java
@@ -38,6 +38,7 @@ private ListBuildsRequest(com.google.protobuf.GeneratedMessageV3.Builder> buil
}
private ListBuildsRequest() {
+ parent_ = "";
projectId_ = "";
pageToken_ = "";
filter_ = "";
@@ -98,6 +99,13 @@ private ListBuildsRequest(
filter_ = s;
break;
}
+ case 74:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ parent_ = s;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -132,6 +140,57 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloudbuild.v1.ListBuildsRequest.Builder.class);
}
+ public static final int PARENT_FIELD_NUMBER = 9;
+ private volatile java.lang.Object parent_;
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object projectId_;
/**
@@ -323,6 +382,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getFilterBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, filter_);
}
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, parent_);
+ }
unknownFields.writeTo(output);
}
@@ -344,6 +406,9 @@ public int getSerializedSize() {
if (!getFilterBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_);
}
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, parent_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -360,6 +425,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloudbuild.v1.ListBuildsRequest other =
(com.google.cloudbuild.v1.ListBuildsRequest) obj;
+ if (!getParent().equals(other.getParent())) return false;
if (!getProjectId().equals(other.getProjectId())) return false;
if (getPageSize() != other.getPageSize()) return false;
if (!getPageToken().equals(other.getPageToken())) return false;
@@ -375,6 +441,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
@@ -528,6 +596,8 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
+ parent_ = "";
+
projectId_ = "";
pageSize_ = 0;
@@ -563,6 +633,7 @@ public com.google.cloudbuild.v1.ListBuildsRequest build() {
public com.google.cloudbuild.v1.ListBuildsRequest buildPartial() {
com.google.cloudbuild.v1.ListBuildsRequest result =
new com.google.cloudbuild.v1.ListBuildsRequest(this);
+ result.parent_ = parent_;
result.projectId_ = projectId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
@@ -616,6 +687,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloudbuild.v1.ListBuildsRequest other) {
if (other == com.google.cloudbuild.v1.ListBuildsRequest.getDefaultInstance()) return this;
+ if (!other.getParent().isEmpty()) {
+ parent_ = other.parent_;
+ onChanged();
+ }
if (!other.getProjectId().isEmpty()) {
projectId_ = other.projectId_;
onChanged();
@@ -660,6 +735,117 @@ public Builder mergeFrom(
return this;
}
+ private java.lang.Object parent_ = "";
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object projectId_ = "";
/**
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListBuildsRequestOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListBuildsRequestOrBuilder.java
index 286e767a..c3fbb67a 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListBuildsRequestOrBuilder.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListBuildsRequestOrBuilder.java
@@ -23,6 +23,33 @@ public interface ListBuildsRequestOrBuilder
// @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.ListBuildsRequest)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ *
+ * The parent of the collection of `Builds`.
+ * Format: `projects/{project}/locations/location`
+ *
+ *
+ * string parent = 9 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
/**
*
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java
new file mode 100644
index 00000000..0d474ff2
--- /dev/null
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java
@@ -0,0 +1,182 @@
+/*
+ * Copyright 2020 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.
+ */
+
+package com.google.cloudbuild.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/** AUTO-GENERATED DOCUMENTATION AND CLASS */
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class LocationName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
+
+ private volatile Map fieldValuesMap;
+
+ private final String project;
+ private final String location;
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ private LocationName(Builder builder) {
+ project = Preconditions.checkNotNull(builder.getProject());
+ location = Preconditions.checkNotNull(builder.getLocation());
+ }
+
+ public static LocationName of(String project, String location) {
+ return newBuilder().setProject(project).setLocation(location).build();
+ }
+
+ public static String format(String project, String location) {
+ return newBuilder().setProject(project).setLocation(location).build().toString();
+ }
+
+ public static LocationName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ PATH_TEMPLATE.validatedMatch(
+ formattedString, "LocationName.parse: formattedString not in valid format");
+ return of(matchMap.get("project"), matchMap.get("location"));
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList(values.size());
+ for (LocationName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return PATH_TEMPLATE.matches(formattedString);
+ }
+
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ fieldMapBuilder.put("project", project);
+ fieldMapBuilder.put("location", location);
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return PATH_TEMPLATE.instantiate("project", project, "location", location);
+ }
+
+ /** Builder for LocationName. */
+ public static class Builder {
+
+ private String project;
+ private String location;
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ public Builder setLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ private Builder() {}
+
+ private Builder(LocationName locationName) {
+ project = locationName.project;
+ location = locationName.location;
+ }
+
+ public LocationName build() {
+ return new LocationName(this);
+ }
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof LocationName) {
+ LocationName that = (LocationName) o;
+ return (this.project.equals(that.project)) && (this.location.equals(that.location));
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= project.hashCode();
+ h *= 1000003;
+ h ^= location.hashCode();
+ return h;
+ }
+}
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java
new file mode 100644
index 00000000..f7bce1e5
--- /dev/null
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java
@@ -0,0 +1,162 @@
+/*
+ * Copyright 2020 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.
+ */
+
+package com.google.cloudbuild.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/** AUTO-GENERATED DOCUMENTATION AND CLASS */
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class ProjectName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}");
+
+ private volatile Map fieldValuesMap;
+
+ private final String project;
+
+ public String getProject() {
+ return project;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ private ProjectName(Builder builder) {
+ project = Preconditions.checkNotNull(builder.getProject());
+ }
+
+ public static ProjectName of(String project) {
+ return newBuilder().setProject(project).build();
+ }
+
+ public static String format(String project) {
+ return newBuilder().setProject(project).build().toString();
+ }
+
+ public static ProjectName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ PATH_TEMPLATE.validatedMatch(
+ formattedString, "ProjectName.parse: formattedString not in valid format");
+ return of(matchMap.get("project"));
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList(values.size());
+ for (ProjectName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return PATH_TEMPLATE.matches(formattedString);
+ }
+
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ fieldMapBuilder.put("project", project);
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return PATH_TEMPLATE.instantiate("project", project);
+ }
+
+ /** Builder for ProjectName. */
+ public static class Builder {
+
+ private String project;
+
+ public String getProject() {
+ return project;
+ }
+
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ private Builder() {}
+
+ private Builder(ProjectName projectName) {
+ project = projectName.project;
+ }
+
+ public ProjectName build() {
+ return new ProjectName(this);
+ }
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof ProjectName) {
+ ProjectName that = (ProjectName) o;
+ return (this.project.equals(that.project));
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= project.hashCode();
+ return h;
+ }
+}
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java
index 1154f6b8..099c9464 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java
@@ -371,8 +371,8 @@ public com.google.protobuf.ByteString getBranchBytes() {
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
@@ -388,8 +388,8 @@ public int getCommentControlValue() {
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
@@ -949,8 +949,8 @@ public Builder setBranchBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
@@ -966,8 +966,8 @@ public int getCommentControlValue() {
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
@@ -986,8 +986,8 @@ public Builder setCommentControlValue(int value) {
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
@@ -1008,8 +1008,8 @@ public com.google.cloudbuild.v1.PullRequestFilter.CommentControl getCommentContr
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
@@ -1032,8 +1032,8 @@ public Builder setCommentControl(
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilterOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilterOrBuilder.java
index 68630982..1346fb48 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilterOrBuilder.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilterOrBuilder.java
@@ -56,8 +56,8 @@ public interface PullRequestFilterOrBuilder
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
@@ -70,8 +70,8 @@ public interface PullRequestFilterOrBuilder
*
*
*
- * Whether to block builds on a "/gcbrun" comment from a repository admin or
- * collaborator.
+ * Configure builds to run whether a repository owner or collaborator need to
+ * comment `/gcbrun`.
*
*
* .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RetryBuildRequest.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RetryBuildRequest.java
index 27ad0282..edc8f64c 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RetryBuildRequest.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RetryBuildRequest.java
@@ -38,6 +38,7 @@ private RetryBuildRequest(com.google.protobuf.GeneratedMessageV3.Builder> buil
}
private RetryBuildRequest() {
+ name_ = "";
projectId_ = "";
id_ = "";
}
@@ -85,6 +86,13 @@ private RetryBuildRequest(
id_ = s;
break;
}
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -119,6 +127,57 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloudbuild.v1.RetryBuildRequest.Builder.class);
}
+ public static final int NAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object projectId_;
/**
@@ -237,6 +296,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
+ }
unknownFields.writeTo(output);
}
@@ -252,6 +314,9 @@ public int getSerializedSize() {
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -268,6 +333,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloudbuild.v1.RetryBuildRequest other =
(com.google.cloudbuild.v1.RetryBuildRequest) obj;
+ if (!getName().equals(other.getName())) return false;
if (!getProjectId().equals(other.getProjectId())) return false;
if (!getId().equals(other.getId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -281,6 +347,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectId().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
@@ -430,6 +498,8 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
+ name_ = "";
+
projectId_ = "";
id_ = "";
@@ -461,6 +531,7 @@ public com.google.cloudbuild.v1.RetryBuildRequest build() {
public com.google.cloudbuild.v1.RetryBuildRequest buildPartial() {
com.google.cloudbuild.v1.RetryBuildRequest result =
new com.google.cloudbuild.v1.RetryBuildRequest(this);
+ result.name_ = name_;
result.projectId_ = projectId_;
result.id_ = id_;
onBuilt();
@@ -512,6 +583,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloudbuild.v1.RetryBuildRequest other) {
if (other == com.google.cloudbuild.v1.RetryBuildRequest.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
if (!other.getProjectId().isEmpty()) {
projectId_ = other.projectId_;
onChanged();
@@ -549,6 +624,117 @@ public Builder mergeFrom(
return this;
}
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object projectId_ = "";
/**
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RetryBuildRequestOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RetryBuildRequestOrBuilder.java
index 8162577d..eec1e94b 100644
--- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RetryBuildRequestOrBuilder.java
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RetryBuildRequestOrBuilder.java
@@ -23,6 +23,33 @@ public interface RetryBuildRequestOrBuilder
// @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.RetryBuildRequest)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * The name of the `Build` to retry.
+ * Format: `projects/{project}/locations/{location}/builds/{build}`
+ *
+ *
+ * string name = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
/**
*
*
diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ServiceAccountName.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ServiceAccountName.java
new file mode 100644
index 00000000..a7bf0ad8
--- /dev/null
+++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ServiceAccountName.java
@@ -0,0 +1,183 @@
+/*
+ * Copyright 2020 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.
+ */
+
+package com.google.cloudbuild.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/** AUTO-GENERATED DOCUMENTATION AND CLASS */
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class ServiceAccountName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/serviceAccounts/{service_account}");
+
+ private volatile Map fieldValuesMap;
+
+ private final String project;
+ private final String serviceAccount;
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getServiceAccount() {
+ return serviceAccount;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ private ServiceAccountName(Builder builder) {
+ project = Preconditions.checkNotNull(builder.getProject());
+ serviceAccount = Preconditions.checkNotNull(builder.getServiceAccount());
+ }
+
+ public static ServiceAccountName of(String project, String serviceAccount) {
+ return newBuilder().setProject(project).setServiceAccount(serviceAccount).build();
+ }
+
+ public static String format(String project, String serviceAccount) {
+ return newBuilder().setProject(project).setServiceAccount(serviceAccount).build().toString();
+ }
+
+ public static ServiceAccountName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ PATH_TEMPLATE.validatedMatch(
+ formattedString, "ServiceAccountName.parse: formattedString not in valid format");
+ return of(matchMap.get("project"), matchMap.get("service_account"));
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList(values.size());
+ for (ServiceAccountName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return PATH_TEMPLATE.matches(formattedString);
+ }
+
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ fieldMapBuilder.put("project", project);
+ fieldMapBuilder.put("serviceAccount", serviceAccount);
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return PATH_TEMPLATE.instantiate("project", project, "service_account", serviceAccount);
+ }
+
+ /** Builder for ServiceAccountName. */
+ public static class Builder {
+
+ private String project;
+ private String serviceAccount;
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getServiceAccount() {
+ return serviceAccount;
+ }
+
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ public Builder setServiceAccount(String serviceAccount) {
+ this.serviceAccount = serviceAccount;
+ return this;
+ }
+
+ private Builder() {}
+
+ private Builder(ServiceAccountName serviceAccountName) {
+ project = serviceAccountName.project;
+ serviceAccount = serviceAccountName.serviceAccount;
+ }
+
+ public ServiceAccountName build() {
+ return new ServiceAccountName(this);
+ }
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof ServiceAccountName) {
+ ServiceAccountName that = (ServiceAccountName) o;
+ return (this.project.equals(that.project))
+ && (this.serviceAccount.equals(that.serviceAccount));
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= project.hashCode();
+ h *= 1000003;
+ h ^= serviceAccount.hashCode();
+ return h;
+ }
+}
diff --git a/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto b/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto
index 4e3a0188..de8a1de3 100644
--- a/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto
+++ b/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto
@@ -19,9 +19,11 @@ package google.devtools.cloudbuild.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
option go_package = "google.golang.org/genproto/googleapis/devtools/cloudbuild/v1;cloudbuild";
@@ -29,6 +31,14 @@ option java_multiple_files = true;
option java_package = "com.google.cloudbuild.v1";
option objc_class_prefix = "GCB";
option ruby_package = "Google::Cloud::Build::V1";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Network"
+ pattern: "projects/{project}/global/networks/{network}"
+};
+option (google.api.resource_definition) = {
+ type: "iam.googleapis.com/ServiceAccount"
+ pattern: "projects/{project}/serviceAccounts/{service_account}"
+};
// Creates and manages builds on Google Cloud Platform.
//
@@ -52,6 +62,10 @@ service CloudBuild {
option (google.api.http) = {
post: "/v1/projects/{project_id}/builds"
body: "build"
+ additional_bindings {
+ post: "/v1/{parent=projects/*/locations/*}/builds"
+ body: "*"
+ }
};
option (google.api.method_signature) = "project_id,build";
option (google.longrunning.operation_info) = {
@@ -67,6 +81,7 @@ service CloudBuild {
rpc GetBuild(GetBuildRequest) returns (Build) {
option (google.api.http) = {
get: "/v1/projects/{project_id}/builds/{id}"
+ additional_bindings { get: "/v1/{name=projects/*/locations/*/builds/*}" }
};
option (google.api.method_signature) = "project_id,id";
}
@@ -78,6 +93,7 @@ service CloudBuild {
rpc ListBuilds(ListBuildsRequest) returns (ListBuildsResponse) {
option (google.api.http) = {
get: "/v1/projects/{project_id}/builds"
+ additional_bindings { get: "/v1/{parent=projects/*/locations/*}/builds" }
};
option (google.api.method_signature) = "project_id,filter";
}
@@ -87,6 +103,10 @@ service CloudBuild {
option (google.api.http) = {
post: "/v1/projects/{project_id}/builds/{id}:cancel"
body: "*"
+ additional_bindings {
+ post: "/v1/{name=projects/*/locations/*/builds/*}:cancel"
+ body: "*"
+ }
};
option (google.api.method_signature) = "project_id,id";
}
@@ -122,6 +142,10 @@ service CloudBuild {
option (google.api.http) = {
post: "/v1/projects/{project_id}/builds/{id}:retry"
body: "*"
+ additional_bindings {
+ post: "/v1/{name=projects/*/locations/*/builds/*}:retry"
+ body: "*"
+ }
};
option (google.api.method_signature) = "project_id,id";
option (google.longrunning.operation_info) = {
@@ -228,6 +252,12 @@ service CloudBuild {
// Specifies a build to retry.
message RetryBuildRequest {
+ // The name of the `Build` to retry.
+ // Format: `projects/{project}/locations/{location}/builds/{build}`
+ string name = 3 [(google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/Build"
+ }];
+
// Required. ID of the project.
string project_id = 1 [(google.api.field_behavior) = REQUIRED];
@@ -416,7 +446,7 @@ message BuildStep {
// Output only. Stores timing information for pulling this build step's
// builder image only.
- TimeSpan pull_timing = 13;
+ TimeSpan pull_timing = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
// Time limit for executing this build step. If not defined, the step has no
// time limit and will be allowed to continue to run until either it completes
@@ -426,7 +456,7 @@ message BuildStep {
// Output only. Status of the build step. At this time, build step status is
// only updated on build completion; step status is not updated in real-time
// as the build progresses.
- Build.Status status = 12;
+ Build.Status status = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Volume describes a Docker container volume which is mounted into build steps
@@ -502,6 +532,12 @@ message ArtifactResult {
// resolved from the specified branch or tag.
// - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
message Build {
+ option (google.api.resource) = {
+ type: "cloudbuild.googleapis.com/Build"
+ pattern: "projects/{project}/builds/{build}"
+ pattern: "projects/{project}/locations/{location}/builds/{build}"
+ };
+
// Possible status of a build or build step.
enum Status {
// Status of the build is unknown.
@@ -532,6 +568,11 @@ message Build {
EXPIRED = 9;
}
+ // Output only. The 'Build' name with format:
+ // `projects/{project}/locations/{location}/builds/{build}`, where {build}
+ // is a unique identifier generated by the service.
+ string name = 45 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Output only. Unique identifier of the build.
string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -539,10 +580,10 @@ message Build {
string project_id = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. Status of the build.
- Status status = 2;
+ Status status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. Customer-readable message about the current status.
- string status_detail = 24;
+ string status_detail = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
// The location of the source files to build.
Source source = 3;
@@ -572,6 +613,8 @@ message Build {
// granularity. If this amount of time elapses, work on the build will cease
// and the build status will be `TIMEOUT`.
//
+ // `timeout` starts ticking from `startTime`.
+ //
// Default time is ten minutes.
google.protobuf.Duration timeout = 12;
@@ -605,11 +648,12 @@ message Build {
string logs_bucket = 19;
// Output only. A permanent fixed identifier for source.
- SourceProvenance source_provenance = 21;
+ SourceProvenance source_provenance = 21
+ [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The ID of the `BuildTrigger` that triggered this build, if it
// was triggered automatically.
- string build_trigger_id = 22;
+ string build_trigger_id = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
// Special options for this build.
BuildOptions options = 23;
@@ -636,6 +680,15 @@ message Build {
// If the build does not specify source or images,
// these keys will not be included.
map timing = 33 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // IAM service account whose credentials will be used at build runtime.
+ // Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
+ // ACCOUNT can be email address or uniqueId of the service account.
+ //
+ // This field is in alpha and is not publicly available.
+ string service_account = 42 [(google.api.resource_reference) = {
+ type: "iam.googleapis.com/ServiceAccount"
+ }];
}
// Artifacts produced by a build that should be uploaded upon
@@ -656,7 +709,7 @@ message Artifacts {
repeated string paths = 2;
// Output only. Stores timing information for pushing all artifact objects.
- TimeSpan timing = 3;
+ TimeSpan timing = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// A list of images to be pushed upon the successful completion of all build
@@ -769,6 +822,12 @@ message Secret {
// Request to create a new build.
message CreateBuildRequest {
+ // The parent resource where this build will be created.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 4 [(google.api.resource_reference) = {
+ child_type: "cloudbuild.googleapis.com/Build"
+ }];
+
// Required. ID of the project.
string project_id = 1 [(google.api.field_behavior) = REQUIRED];
@@ -778,6 +837,12 @@ message CreateBuildRequest {
// Request to get a build.
message GetBuildRequest {
+ // The name of the `Build` to retrieve.
+ // Format: `projects/{project}/locations/{location}/builds/{build}`
+ string name = 4 [(google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/Build"
+ }];
+
// Required. ID of the project.
string project_id = 1 [(google.api.field_behavior) = REQUIRED];
@@ -787,6 +852,12 @@ message GetBuildRequest {
// Request to list builds.
message ListBuildsRequest {
+ // The parent of the collection of `Builds`.
+ // Format: `projects/{project}/locations/location`
+ string parent = 9 [(google.api.resource_reference) = {
+ child_type: "cloudbuild.googleapis.com/Build"
+ }];
+
// Required. ID of the project.
string project_id = 1 [(google.api.field_behavior) = REQUIRED];
@@ -811,6 +882,12 @@ message ListBuildsResponse {
// Request to cancel an ongoing build.
message CancelBuildRequest {
+ // The name of the `Build` to retrieve.
+ // Format: `projects/{project}/locations/{location}/builds/{build}`
+ string name = 4 [(google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/Build"
+ }];
+
// Required. ID of the project.
string project_id = 1 [(google.api.field_behavior) = REQUIRED];
@@ -821,6 +898,11 @@ message CancelBuildRequest {
// Configuration for an automated build in response to source repository
// changes.
message BuildTrigger {
+ option (google.api.resource) = {
+ type: "cloudbuild.googleapis.com/BuildTrigger"
+ pattern: "projects/{project}/triggers/{trigger}"
+ };
+
// Output only. Unique identifier of the trigger.
string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -867,12 +949,11 @@ message BuildTrigger {
google.protobuf.Timestamp create_time = 5
[(google.api.field_behavior) = OUTPUT_ONLY];
- // If true, the trigger will never result in a build.
+ // If true, the trigger will never automatically execute a build.
bool disabled = 9;
// Substitutions for Build resource. The keys must match the following
- // regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
- // keys in bindings.
+ // regular expression: `^_[A-Z0-9_]+$`.
map substitutions = 11;
// ignored_files and included_files are file glob matches using
@@ -948,8 +1029,8 @@ message PullRequestFilter {
string branch = 2;
}
- // Whether to block builds on a "/gcbrun" comment from a repository admin or
- // collaborator.
+ // Configure builds to run whether a repository owner or collaborator need to
+ // comment `/gcbrun`.
CommentControl comment_control = 5;
// If true, branches that do NOT match the git_ref will trigger a build.
@@ -1050,7 +1131,9 @@ message BuildOptions {
VERIFIED = 1;
}
- // Supported VM sizes.
+ // Supported Compute Engine machine types.
+ // For more information, see [Machine
+ // types](https://cloud.google.com/compute/docs/machine-types).
enum MachineType {
// Standard machine type.
UNSPECIFIED = 0;
@@ -1091,11 +1174,23 @@ message BuildOptions {
// rely on the default logging behavior as it may change in the future.
LOGGING_UNSPECIFIED = 0;
- // Stackdriver logging and Cloud Storage logging are enabled.
+ // Cloud Logging and Cloud Storage logging are enabled.
LEGACY = 1;
// Only Cloud Storage logging is enabled.
GCS_ONLY = 2;
+
+ // This option is the same as CLOUD_LOGGING_ONLY.
+ STACKDRIVER_ONLY = 3 [deprecated = true];
+
+ // Only Cloud Logging is enabled. Note that logs for both the Cloud Console
+ // UI and Cloud SDK are based on Cloud Storage logs, so neither will provide
+ // logs if this option is chosen.
+ CLOUD_LOGGING_ONLY = 5;
+
+ // Turn off all logging. No build logs will be captured.
+ // Next ID: 6
+ NONE = 4;
}
// Requested hash for SourceProvenance.
@@ -1117,8 +1212,18 @@ message BuildOptions {
// Option to specify behavior when there is an error in the substitution
// checks.
+ //
+ // NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot
+ // be overridden in the build configuration file.
SubstitutionOption substitution_option = 4;
+ // Option to specify whether or not to apply bash style string
+ // operations to the substitutions.
+ //
+ // NOTE: this is always enabled for triggered builds and cannot be
+ // overridden in the build configuration file.
+ bool dynamic_substitutions = 17;
+
// Option to define build log streaming behavior to Google Cloud
// Storage.
LogStreamingOption log_streaming_option = 5;
@@ -1129,8 +1234,8 @@ message BuildOptions {
// This field is experimental.
string worker_pool = 7;
- // Option to specify the logging mode, which determines where the logs are
- // stored.
+ // Option to specify the logging mode, which determines if and where build
+ // logs are stored.
LoggingMode logging = 11;
// A list of global environment variable definitions that will exist for all
diff --git a/synth.metadata b/synth.metadata
index 9b40342c..f5cea055 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -11,15 +11,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-cloudbuild.git",
- "sha": "131e69d74be38cd4222effcc67e0ee04de0b3dba"
+ "sha": "f798affb463279edeb1332889d3da99ec9b35094"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "fbf9396664b766a08d92da9d4f31be019a847c39",
- "internalRef": "324209019"
+ "sha": "bc18612d35891d88bcac57c85d79db93f4f29028",
+ "internalRef": "331027363"
}
},
{
@@ -119,6 +119,7 @@
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ArtifactsOrBuilder.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java",
+ "proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOperationMetadata.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOperationMetadataOrBuilder.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java",
@@ -127,6 +128,7 @@
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStep.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStepOrBuilder.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTrigger.java",
+ "proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerName.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerOrBuilder.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImage.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImageOrBuilder.java",
@@ -167,8 +169,10 @@
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListWorkerPoolsRequestOrBuilder.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListWorkerPoolsResponse.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ListWorkerPoolsResponseOrBuilder.java",
+ "proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Network.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/NetworkOrBuilder.java",
+ "proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilterOrBuilder.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PushFilter.java",
@@ -183,6 +187,7 @@
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RunBuildTriggerRequestOrBuilder.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Secret.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SecretOrBuilder.java",
+ "proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ServiceAccountName.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Source.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceOrBuilder.java",
"proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenance.java",