From 455c4101bc08461f1ab9944908e8ba642974dd15 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 22 Sep 2020 16:18:08 -0700 Subject: [PATCH] feat: add dynamic_substitutions to BuildOptions, STACKDRIVER_ONLY/CLOUD_LOGGING_ONLY to LoggingMode, name/service_account to Build (#246) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b12affff-e85c-44ff-9cad-bd06f777bd37/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 331027363 Source-Link: https://github.com/googleapis/googleapis/commit/bc18612d35891d88bcac57c85d79db93f4f29028 PiperOrigin-RevId: 330974505 Source-Link: https://github.com/googleapis/googleapis/commit/3257ba52160dd8a9c7f83c34d13793de843bdb4a PiperOrigin-RevId: 330504082 Source-Link: https://github.com/googleapis/googleapis/commit/48ce8878cd4c54cf247de826ac53c1414b0345bd --- README.md | 4 +- .../v1/stub/GrpcCloudBuildStub.java | 29 + .../cloudbuild/v1/CloudBuildClientTest.java | 35 +- proto-google-cloud-build-v1/pom.xml | 8 + .../com/google/cloudbuild/v1/Artifacts.java | 60 +- .../java/com/google/cloudbuild/v1/Build.java | 509 +++++++++++++- .../com/google/cloudbuild/v1/BuildName.java | 313 +++++++++ .../google/cloudbuild/v1/BuildOptions.java | 225 ++++++- .../cloudbuild/v1/BuildOptionsOrBuilder.java | 28 +- .../google/cloudbuild/v1/BuildOrBuilder.java | 91 ++- .../com/google/cloudbuild/v1/BuildStep.java | 76 ++- .../cloudbuild/v1/BuildStepOrBuilder.java | 20 +- .../google/cloudbuild/v1/BuildTrigger.java | 41 +- .../cloudbuild/v1/BuildTriggerName.java | 182 +++++ .../cloudbuild/v1/BuildTriggerOrBuilder.java | 17 +- .../cloudbuild/v1/CancelBuildRequest.java | 186 ++++++ .../v1/CancelBuildRequestOrBuilder.java | 27 + .../com/google/cloudbuild/v1/Cloudbuild.java | 628 ++++++++++-------- .../cloudbuild/v1/CreateBuildRequest.java | 186 ++++++ .../v1/CreateBuildRequestOrBuilder.java | 27 + .../google/cloudbuild/v1/GetBuildRequest.java | 186 ++++++ .../v1/GetBuildRequestOrBuilder.java | 27 + .../cloudbuild/v1/ListBuildsRequest.java | 186 ++++++ .../v1/ListBuildsRequestOrBuilder.java | 27 + .../google/cloudbuild/v1/LocationName.java | 182 +++++ .../com/google/cloudbuild/v1/ProjectName.java | 162 +++++ .../cloudbuild/v1/PullRequestFilter.java | 28 +- .../v1/PullRequestFilterOrBuilder.java | 8 +- .../cloudbuild/v1/RetryBuildRequest.java | 186 ++++++ .../v1/RetryBuildRequestOrBuilder.java | 27 + .../cloudbuild/v1/ServiceAccountName.java | 183 +++++ .../devtools/cloudbuild/v1/cloudbuild.proto | 137 +++- synth.metadata | 11 +- 33 files changed, 3564 insertions(+), 478 deletions(-) create mode 100644 proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java create mode 100644 proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerName.java create mode 100644 proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java create mode 100644 proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java create mode 100644 proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ServiceAccountName.java diff --git a/README.md b/README.md index e297f116..68e05a33 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 9.1.0 + 10.1.0 pom import @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-build - 2.0.0 + 2.0.1 ``` diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java index 45889923..861976a5 100644 --- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java +++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java @@ -289,6 +289,7 @@ protected GrpcCloudBuildStub( public Map extract(ListBuildsRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("project_id", String.valueOf(request.getProjectId())); + params.put("parent", String.valueOf(request.getParent())); return params.build(); } }) @@ -306,6 +307,7 @@ public Map extract(ListBuildsRequest request) { public Map extract(CreateBuildRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("project_id", String.valueOf(request.getProjectId())); + params.put("parent", String.valueOf(request.getParent())); return params.build(); } }) @@ -313,14 +315,41 @@ public Map extract(CreateBuildRequest request) { GrpcCallSettings getBuildTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getBuildMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetBuildRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings cancelBuildTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelBuildMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CancelBuildRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings retryBuildTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(retryBuildMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(RetryBuildRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings createBuildTriggerTransportSettings = GrpcCallSettings.newBuilder() diff --git a/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java b/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java index b06b95f0..5dd4bbe5 100644 --- a/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java +++ b/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java @@ -27,7 +27,9 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.BuildName; import com.google.cloudbuild.v1.BuildTrigger; +import com.google.cloudbuild.v1.BuildTriggerName; import com.google.cloudbuild.v1.CancelBuildRequest; import com.google.cloudbuild.v1.CreateBuildRequest; import com.google.cloudbuild.v1.CreateBuildTriggerRequest; @@ -46,6 +48,7 @@ import com.google.cloudbuild.v1.RepoSource; import com.google.cloudbuild.v1.RetryBuildRequest; import com.google.cloudbuild.v1.RunBuildTriggerRequest; +import com.google.cloudbuild.v1.ServiceAccountName; import com.google.cloudbuild.v1.UpdateBuildTriggerRequest; import com.google.cloudbuild.v1.UpdateWorkerPoolRequest; import com.google.cloudbuild.v1.WorkerPool; @@ -200,20 +203,24 @@ public void deleteBuildTriggerExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void createBuildTest() throws Exception { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); String id = "id3355"; String projectId2 = "projectId2939242356"; String statusDetail = "statusDetail2089931070"; String logsBucket = "logsBucket1565363834"; String buildTriggerId = "buildTriggerId1105559411"; String logUrl = "logUrl342054388"; + ServiceAccountName serviceAccount = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); Build expectedResponse = Build.newBuilder() + .setName(name.toString()) .setId(id) .setProjectId(projectId2) .setStatusDetail(statusDetail) .setLogsBucket(logsBucket) .setBuildTriggerId(buildTriggerId) .setLogUrl(logUrl) + .setServiceAccount(serviceAccount.toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -263,20 +270,24 @@ public void createBuildExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getBuildTest() { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); String id2 = "id23227150"; String projectId2 = "projectId2939242356"; String statusDetail = "statusDetail2089931070"; String logsBucket = "logsBucket1565363834"; String buildTriggerId = "buildTriggerId1105559411"; String logUrl = "logUrl342054388"; + ServiceAccountName serviceAccount = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); Build expectedResponse = Build.newBuilder() + .setName(name.toString()) .setId(id2) .setProjectId(projectId2) .setStatusDetail(statusDetail) .setLogsBucket(logsBucket) .setBuildTriggerId(buildTriggerId) .setLogUrl(logUrl) + .setServiceAccount(serviceAccount.toString()) .build(); mockCloudBuild.addResponse(expectedResponse); @@ -318,20 +329,24 @@ public void getBuildExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void cancelBuildTest() { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); String id2 = "id23227150"; String projectId2 = "projectId2939242356"; String statusDetail = "statusDetail2089931070"; String logsBucket = "logsBucket1565363834"; String buildTriggerId = "buildTriggerId1105559411"; String logUrl = "logUrl342054388"; + ServiceAccountName serviceAccount = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); Build expectedResponse = Build.newBuilder() + .setName(name.toString()) .setId(id2) .setProjectId(projectId2) .setStatusDetail(statusDetail) .setLogsBucket(logsBucket) .setBuildTriggerId(buildTriggerId) .setLogUrl(logUrl) + .setServiceAccount(serviceAccount.toString()) .build(); mockCloudBuild.addResponse(expectedResponse); @@ -373,20 +388,24 @@ public void cancelBuildExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void retryBuildTest() throws Exception { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); String id2 = "id23227150"; String projectId2 = "projectId2939242356"; String statusDetail = "statusDetail2089931070"; String logsBucket = "logsBucket1565363834"; String buildTriggerId = "buildTriggerId1105559411"; String logUrl = "logUrl342054388"; + ServiceAccountName serviceAccount = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); Build expectedResponse = Build.newBuilder() + .setName(name.toString()) .setId(id2) .setProjectId(projectId2) .setStatusDetail(statusDetail) .setLogsBucket(logsBucket) .setBuildTriggerId(buildTriggerId) .setLogUrl(logUrl) + .setServiceAccount(serviceAccount.toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -438,14 +457,14 @@ public void retryBuildExceptionTest() throws Exception { public void createBuildTriggerTest() { String id = "id3355"; String description = "description-1724546052"; - String name = "name3373707"; + BuildTriggerName name = BuildTriggerName.of("[PROJECT]", "[TRIGGER]"); String filename = "filename-734768633"; boolean disabled = true; BuildTrigger expectedResponse = BuildTrigger.newBuilder() .setId(id) .setDescription(description) - .setName(name) + .setName(name.toString()) .setFilename(filename) .setDisabled(disabled) .build(); @@ -491,14 +510,14 @@ public void createBuildTriggerExceptionTest() throws Exception { public void getBuildTriggerTest() { String id = "id3355"; String description = "description-1724546052"; - String name = "name3373707"; + BuildTriggerName name = BuildTriggerName.of("[PROJECT]", "[TRIGGER]"); String filename = "filename-734768633"; boolean disabled = true; BuildTrigger expectedResponse = BuildTrigger.newBuilder() .setId(id) .setDescription(description) - .setName(name) + .setName(name.toString()) .setFilename(filename) .setDisabled(disabled) .build(); @@ -592,14 +611,14 @@ public void listBuildTriggersExceptionTest() throws Exception { public void updateBuildTriggerTest() { String id = "id3355"; String description = "description-1724546052"; - String name = "name3373707"; + BuildTriggerName name = BuildTriggerName.of("[PROJECT]", "[TRIGGER]"); String filename = "filename-734768633"; boolean disabled = true; BuildTrigger expectedResponse = BuildTrigger.newBuilder() .setId(id) .setDescription(description) - .setName(name) + .setName(name.toString()) .setFilename(filename) .setDisabled(disabled) .build(); @@ -646,20 +665,24 @@ public void updateBuildTriggerExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void runBuildTriggerTest() throws Exception { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); String id = "id3355"; String projectId2 = "projectId2939242356"; String statusDetail = "statusDetail2089931070"; String logsBucket = "logsBucket1565363834"; String buildTriggerId = "buildTriggerId1105559411"; String logUrl = "logUrl342054388"; + ServiceAccountName serviceAccount = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); Build expectedResponse = Build.newBuilder() + .setName(name.toString()) .setId(id) .setProjectId(projectId2) .setStatusDetail(statusDetail) .setLogsBucket(logsBucket) .setBuildTriggerId(buildTriggerId) .setLogUrl(logUrl) + .setServiceAccount(serviceAccount.toString()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/proto-google-cloud-build-v1/pom.xml b/proto-google-cloud-build-v1/pom.xml index be50797a..dbb7d0dc 100644 --- a/proto-google-cloud-build-v1/pom.xml +++ b/proto-google-cloud-build-v1/pom.xml @@ -21,6 +21,14 @@ com.google.api.grpc proto-google-common-protos + + com.google.guava + guava + + + com.google.api + api-common + diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java index 42f092db..5a54ff3b 100644 --- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java @@ -232,7 +232,9 @@ public interface ArtifactObjectsOrBuilder * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the timing field is set. */ @@ -244,7 +246,9 @@ public interface ArtifactObjectsOrBuilder * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The timing. */ @@ -256,7 +260,9 @@ public interface ArtifactObjectsOrBuilder * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder(); } @@ -512,7 +518,9 @@ public com.google.protobuf.ByteString getPathsBytes(int index) { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the timing field is set. */ @@ -527,7 +535,9 @@ public boolean hasTiming() { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The timing. */ @@ -542,7 +552,9 @@ public com.google.cloudbuild.v1.TimeSpan getTiming() { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { @@ -1243,7 +1255,9 @@ public Builder addPathsBytes(com.google.protobuf.ByteString value) { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the timing field is set. */ @@ -1257,7 +1271,9 @@ public boolean hasTiming() { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The timing. */ @@ -1275,7 +1291,9 @@ public com.google.cloudbuild.v1.TimeSpan getTiming() { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTiming(com.google.cloudbuild.v1.TimeSpan value) { if (timingBuilder_ == null) { @@ -1297,7 +1315,9 @@ public Builder setTiming(com.google.cloudbuild.v1.TimeSpan value) { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue) { if (timingBuilder_ == null) { @@ -1316,7 +1336,9 @@ public Builder setTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForVal * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTiming(com.google.cloudbuild.v1.TimeSpan value) { if (timingBuilder_ == null) { @@ -1342,7 +1364,9 @@ public Builder mergeTiming(com.google.cloudbuild.v1.TimeSpan value) { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTiming() { if (timingBuilder_ == null) { @@ -1362,7 +1386,9 @@ public Builder clearTiming() { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloudbuild.v1.TimeSpan.Builder getTimingBuilder() { @@ -1376,7 +1402,9 @@ public com.google.cloudbuild.v1.TimeSpan.Builder getTimingBuilder() { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { if (timingBuilder_ != null) { @@ -1392,7 +1420,9 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { * Output only. Stores timing information for pushing all artifact objects. * * - * .google.devtools.cloudbuild.v1.TimeSpan timing = 3; + * + * .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloudbuild.v1.TimeSpan, diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java index 7eb3409b..dd208d64 100644 --- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java @@ -51,6 +51,7 @@ private Build(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private Build() { + name_ = ""; id_ = ""; projectId_ = ""; status_ = 0; @@ -62,6 +63,7 @@ private Build() { logUrl_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; secrets_ = java.util.Collections.emptyList(); + serviceAccount_ = ""; } @java.lang.Override @@ -366,6 +368,20 @@ private Build( queueTtl_ = subBuilder.buildPartial(); } + break; + } + case 338: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + case 362: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; break; } default: @@ -715,6 +731,59 @@ private Status(int value) { // @@protoc_insertion_point(enum_scope:google.devtools.cloudbuild.v1.Build.Status) } + public static final int NAME_FIELD_NUMBER = 45; + private volatile java.lang.Object name_; + /** + * + * + *
+   * 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]; + * + * @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; + } + } + /** + * + * + *
+   * 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]; + * + * @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 ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** @@ -822,7 +891,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -837,7 +908,9 @@ public int getStatusValue() { * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -858,7 +931,7 @@ public com.google.cloudbuild.v1.Build.Status getStatus() { * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The statusDetail. */ @@ -881,7 +954,7 @@ public java.lang.String getStatusDetail() { * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for statusDetail. */ @@ -1227,6 +1300,7 @@ public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -1245,6 +1319,7 @@ public boolean hasTimeout() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -1263,6 +1338,7 @@ public com.google.protobuf.Duration getTimeout() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -1528,7 +1604,9 @@ public com.google.protobuf.ByteString getLogsBucketBytes() { * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the sourceProvenance field is set. */ @@ -1543,7 +1621,9 @@ public boolean hasSourceProvenance() { * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The sourceProvenance. */ @@ -1560,7 +1640,9 @@ public com.google.cloudbuild.v1.SourceProvenance getSourceProvenance() { * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloudbuild.v1.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { @@ -1577,7 +1659,7 @@ public com.google.cloudbuild.v1.SourceProvenanceOrBuilder getSourceProvenanceOrB * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The buildTriggerId. */ @@ -1601,7 +1683,7 @@ public java.lang.String getBuildTriggerId() { * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for buildTriggerId. */ @@ -2080,6 +2162,61 @@ public com.google.cloudbuild.v1.TimeSpan getTimingOrThrow(java.lang.String key) return map.get(key); } + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 42; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * 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) = { ... } + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + 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(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2161,6 +2298,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queueTtl_ != null) { output.writeMessage(40, getQueueTtl()); } + if (!getServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 42, serviceAccount_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 45, name_); + } unknownFields.writeTo(output); } @@ -2263,6 +2406,12 @@ public int getSerializedSize() { if (queueTtl_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getQueueTtl()); } + if (!getServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(42, serviceAccount_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(45, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2278,6 +2427,7 @@ public boolean equals(final java.lang.Object obj) { } com.google.cloudbuild.v1.Build other = (com.google.cloudbuild.v1.Build) obj; + if (!getName().equals(other.getName())) return false; if (!getId().equals(other.getId())) return false; if (!getProjectId().equals(other.getProjectId())) return false; if (status_ != other.status_) return false; @@ -2331,6 +2481,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTagsList().equals(other.getTagsList())) return false; if (!getSecretsList().equals(other.getSecretsList())) return false; if (!internalGetTiming().equals(other.internalGetTiming())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2342,6 +2493,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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; @@ -2420,6 +2573,8 @@ public int hashCode() { hash = (37 * hash) + TIMING_FIELD_NUMBER; hash = (53 * hash) + internalGetTiming().hashCode(); } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2603,6 +2758,8 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + name_ = ""; + id_ = ""; projectId_ = ""; @@ -2695,6 +2852,8 @@ public Builder clear() { secretsBuilder_.clear(); } internalGetMutableTiming().clear(); + serviceAccount_ = ""; + return this; } @@ -2722,6 +2881,7 @@ public com.google.cloudbuild.v1.Build build() { public com.google.cloudbuild.v1.Build buildPartial() { com.google.cloudbuild.v1.Build result = new com.google.cloudbuild.v1.Build(this); int from_bitField0_ = bitField0_; + result.name_ = name_; result.id_ = id_; result.projectId_ = projectId_; result.status_ = status_; @@ -2811,6 +2971,7 @@ public com.google.cloudbuild.v1.Build buildPartial() { } result.timing_ = internalGetTiming(); result.timing_.makeImmutable(); + result.serviceAccount_ = serviceAccount_; onBuilt(); return result; } @@ -2860,6 +3021,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloudbuild.v1.Build other) { if (other == com.google.cloudbuild.v1.Build.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -2993,6 +3158,10 @@ public Builder mergeFrom(com.google.cloudbuild.v1.Build other) { } } internalGetMutableTiming().mergeFrom(other.internalGetTiming()); + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3024,6 +3193,122 @@ public Builder mergeFrom( private int bitField0_; + private java.lang.Object name_ = ""; + /** + * + * + *
+     * 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]; + * + * @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; + } + } + /** + * + * + *
+     * 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]; + * + * @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; + } + } + /** + * + * + *
+     * 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]; + * + * @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; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @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 id_ = ""; /** * @@ -3244,7 +3529,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -3259,7 +3546,9 @@ public int getStatusValue() { * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. @@ -3277,7 +3566,9 @@ public Builder setStatusValue(int value) { * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -3295,7 +3586,9 @@ public com.google.cloudbuild.v1.Build.Status getStatus() { * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The status to set. * @return This builder for chaining. @@ -3316,7 +3609,9 @@ public Builder setStatus(com.google.cloudbuild.v1.Build.Status value) { * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -3335,7 +3630,7 @@ public Builder clearStatus() { * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The statusDetail. */ @@ -3357,7 +3652,7 @@ public java.lang.String getStatusDetail() { * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for statusDetail. */ @@ -3379,7 +3674,7 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The statusDetail to set. * @return This builder for chaining. @@ -3400,7 +3695,7 @@ public Builder setStatusDetail(java.lang.String value) { * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3417,7 +3712,7 @@ public Builder clearStatusDetail() { * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for statusDetail to set. * @return This builder for chaining. @@ -4776,6 +5071,7 @@ public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -4793,6 +5089,7 @@ public boolean hasTimeout() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -4814,6 +5111,7 @@ public com.google.protobuf.Duration getTimeout() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -4839,6 +5137,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -4861,6 +5160,7 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -4888,6 +5188,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -4911,6 +5212,7 @@ public Builder clearTimeout() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -4928,6 +5230,7 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -4947,6 +5250,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -5725,7 +6029,9 @@ public Builder setLogsBucketBytes(com.google.protobuf.ByteString value) { * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the sourceProvenance field is set. */ @@ -5739,7 +6045,9 @@ public boolean hasSourceProvenance() { * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The sourceProvenance. */ @@ -5759,7 +6067,9 @@ public com.google.cloudbuild.v1.SourceProvenance getSourceProvenance() { * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceProvenance(com.google.cloudbuild.v1.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { @@ -5781,7 +6091,9 @@ public Builder setSourceProvenance(com.google.cloudbuild.v1.SourceProvenance val * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceProvenance( com.google.cloudbuild.v1.SourceProvenance.Builder builderForValue) { @@ -5801,7 +6113,9 @@ public Builder setSourceProvenance( * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSourceProvenance(com.google.cloudbuild.v1.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { @@ -5827,7 +6141,9 @@ public Builder mergeSourceProvenance(com.google.cloudbuild.v1.SourceProvenance v * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSourceProvenance() { if (sourceProvenanceBuilder_ == null) { @@ -5847,7 +6163,9 @@ public Builder clearSourceProvenance() { * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloudbuild.v1.SourceProvenance.Builder getSourceProvenanceBuilder() { @@ -5861,7 +6179,9 @@ public com.google.cloudbuild.v1.SourceProvenance.Builder getSourceProvenanceBuil * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloudbuild.v1.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { if (sourceProvenanceBuilder_ != null) { @@ -5879,7 +6199,9 @@ public com.google.cloudbuild.v1.SourceProvenanceOrBuilder getSourceProvenanceOrB * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloudbuild.v1.SourceProvenance, @@ -5907,7 +6229,7 @@ public com.google.cloudbuild.v1.SourceProvenanceOrBuilder getSourceProvenanceOrB * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The buildTriggerId. */ @@ -5930,7 +6252,7 @@ public java.lang.String getBuildTriggerId() { * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for buildTriggerId. */ @@ -5953,7 +6275,7 @@ public com.google.protobuf.ByteString getBuildTriggerIdBytes() { * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The buildTriggerId to set. * @return This builder for chaining. @@ -5975,7 +6297,7 @@ public Builder setBuildTriggerId(java.lang.String value) { * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5993,7 +6315,7 @@ public Builder clearBuildTriggerId() { * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for buildTriggerId to set. * @return This builder for chaining. @@ -7192,6 +7514,127 @@ public Builder putAllTiming( return this; } + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * 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) = { ... } + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java new file mode 100644 index 00000000..b4a9c677 --- /dev/null +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java @@ -0,0 +1,313 @@ +/* + * 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.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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; +import java.util.Objects; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class BuildName implements ResourceName { + + @Deprecated + protected BuildName() {} + + private static final PathTemplate PROJECT_BUILD_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/builds/{build}"); + private static final PathTemplate PROJECT_LOCATION_BUILD_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/builds/{build}"); + + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + + private String project; + private String build; + private String location; + + public String getProject() { + return project; + } + + public String getBuild() { + return build; + } + + public String getLocation() { + return location; + } + + private BuildName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + build = Preconditions.checkNotNull(builder.getBuild()); + pathTemplate = PROJECT_BUILD_PATH_TEMPLATE; + } + + private BuildName(ProjectLocationBuildBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + build = Preconditions.checkNotNull(builder.getBuild()); + pathTemplate = PROJECT_LOCATION_BUILD_PATH_TEMPLATE; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectBuildBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationBuildBuilder newProjectLocationBuildBuilder() { + return new ProjectLocationBuildBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BuildName of(String project, String build) { + return newProjectBuildBuilder().setProject(project).setBuild(build).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static BuildName ofProjectBuildName(String project, String build) { + return newProjectBuildBuilder().setProject(project).setBuild(build).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static BuildName ofProjectLocationBuildName( + String project, String location, String build) { + return newProjectLocationBuildBuilder() + .setProject(project) + .setLocation(location) + .setBuild(build) + .build(); + } + + public static String format(String project, String build) { + return newBuilder().setProject(project).setBuild(build).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectBuildName(String project, String build) { + return newBuilder().setProject(project).setBuild(build).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationBuildName( + String project, String location, String build) { + return newProjectLocationBuildBuilder() + .setProject(project) + .setLocation(location) + .setBuild(build) + .build() + .toString(); + } + + public static BuildName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_BUILD_PATH_TEMPLATE.matches(formattedString)) { + Map matchMap = PROJECT_BUILD_PATH_TEMPLATE.match(formattedString); + return ofProjectBuildName(matchMap.get("project"), matchMap.get("build")); + } else if (PROJECT_LOCATION_BUILD_PATH_TEMPLATE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_BUILD_PATH_TEMPLATE.match(formattedString); + return ofProjectLocationBuildName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("build")); + } + throw new ValidationException("JobName.parse: formattedString not in valid format"); + } + + 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 (BuildName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_BUILD_PATH_TEMPLATE.matches(formattedString) + || PROJECT_LOCATION_BUILD_PATH_TEMPLATE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (build != null) { + fieldMapBuilder.put("build", build); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + /** Builder for projects/{project}/builds/{build}. */ + public static class Builder { + + private String project; + private String build; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getBuild() { + return build; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setBuild(String build) { + this.build = build; + return this; + } + + private Builder(BuildName buildName) { + Preconditions.checkArgument( + buildName.pathTemplate == PROJECT_BUILD_PATH_TEMPLATE, + "toBuilder is only supported when BuildName has the pattern of " + + "projects/{project}/builds/{build}."); + project = buildName.project; + build = buildName.build; + } + + public BuildName build() { + return new BuildName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/builds/{build}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationBuildBuilder { + + private String project; + private String location; + private String build; + + private ProjectLocationBuildBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBuild() { + return build; + } + + public ProjectLocationBuildBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationBuildBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationBuildBuilder setBuild(String build) { + this.build = build; + return this; + } + + public BuildName build() { + return new BuildName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + BuildName that = (BuildName) o; + return (Objects.equals(this.project, that.project)) + && (Objects.equals(this.build, that.build)) + && (Objects.equals(this.location, that.location)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(build); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } +} diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java index d9a9d82c..3771d66a 100644 --- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java @@ -182,6 +182,11 @@ private BuildOptions( input.readMessage(com.google.cloudbuild.v1.Volume.parser(), extensionRegistry)); break; } + case 136: + { + dynamicSubstitutions_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -367,7 +372,9 @@ private VerifyOption(int value) { * * *
-   * Supported VM sizes.
+   * Supported Compute Engine machine types.
+   * For more information, see [Machine
+   * types](https://cloud.google.com/compute/docs/machine-types).
    * 
* * Protobuf enum {@code google.devtools.cloudbuild.v1.BuildOptions.MachineType} @@ -847,7 +854,7 @@ public enum LoggingMode implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Stackdriver logging and Cloud Storage logging are enabled.
+     * Cloud Logging and Cloud Storage logging are enabled.
      * 
* * LEGACY = 1; @@ -863,6 +870,40 @@ public enum LoggingMode implements com.google.protobuf.ProtocolMessageEnum { * GCS_ONLY = 2; */ GCS_ONLY(2), + /** + * + * + *
+     * This option is the same as CLOUD_LOGGING_ONLY.
+     * 
+ * + * STACKDRIVER_ONLY = 3 [deprecated = true]; + */ + @java.lang.Deprecated + STACKDRIVER_ONLY(3), + /** + * + * + *
+     * 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; + */ + CLOUD_LOGGING_ONLY(5), + /** + * + * + *
+     * Turn off all logging. No build logs will be captured.
+     * Next ID: 6
+     * 
+ * + * NONE = 4; + */ + NONE(4), UNRECOGNIZED(-1), ; @@ -881,7 +922,7 @@ public enum LoggingMode implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Stackdriver logging and Cloud Storage logging are enabled.
+     * Cloud Logging and Cloud Storage logging are enabled.
      * 
* * LEGACY = 1; @@ -897,6 +938,39 @@ public enum LoggingMode implements com.google.protobuf.ProtocolMessageEnum { * GCS_ONLY = 2; */ public static final int GCS_ONLY_VALUE = 2; + /** + * + * + *
+     * This option is the same as CLOUD_LOGGING_ONLY.
+     * 
+ * + * STACKDRIVER_ONLY = 3 [deprecated = true]; + */ + @java.lang.Deprecated public static final int STACKDRIVER_ONLY_VALUE = 3; + /** + * + * + *
+     * 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; + */ + public static final int CLOUD_LOGGING_ONLY_VALUE = 5; + /** + * + * + *
+     * Turn off all logging. No build logs will be captured.
+     * Next ID: 6
+     * 
+ * + * NONE = 4; + */ + public static final int NONE_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -928,6 +1002,12 @@ public static LoggingMode forNumber(int value) { return LEGACY; case 2: return GCS_ONLY; + case 3: + return STACKDRIVER_ONLY; + case 5: + return CLOUD_LOGGING_ONLY; + case 4: + return NONE; default: return null; } @@ -1184,6 +1264,8 @@ public long getDiskSizeGb() { *
    * 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.
    * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -1201,6 +1283,8 @@ public int getSubstitutionOptionValue() { *
    * 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.
    * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -1218,6 +1302,27 @@ public com.google.cloudbuild.v1.BuildOptions.SubstitutionOption getSubstitutionO : result; } + public static final int DYNAMIC_SUBSTITUTIONS_FIELD_NUMBER = 17; + private boolean dynamicSubstitutions_; + /** + * + * + *
+   * 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; + * + * @return The dynamicSubstitutions. + */ + @java.lang.Override + public boolean getDynamicSubstitutions() { + return dynamicSubstitutions_; + } + public static final int LOG_STREAMING_OPTION_FIELD_NUMBER = 5; private int logStreamingOption_; /** @@ -1319,8 +1424,8 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { * * *
-   * 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.
    * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; @@ -1335,8 +1440,8 @@ public int getLoggingValue() { * * *
-   * 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.
    * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; @@ -1656,6 +1761,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(14, volumes_.get(i)); } + if (dynamicSubstitutions_ != false) { + output.writeBool(17, dynamicSubstitutions_); + } unknownFields.writeTo(output); } @@ -1723,6 +1831,9 @@ public int getSerializedSize() { for (int i = 0; i < volumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, volumes_.get(i)); } + if (dynamicSubstitutions_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, dynamicSubstitutions_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1743,6 +1854,7 @@ public boolean equals(final java.lang.Object obj) { if (machineType_ != other.machineType_) return false; if (getDiskSizeGb() != other.getDiskSizeGb()) return false; if (substitutionOption_ != other.substitutionOption_) return false; + if (getDynamicSubstitutions() != other.getDynamicSubstitutions()) return false; if (logStreamingOption_ != other.logStreamingOption_) return false; if (!getWorkerPool().equals(other.getWorkerPool())) return false; if (logging_ != other.logging_) return false; @@ -1772,6 +1884,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeGb()); hash = (37 * hash) + SUBSTITUTION_OPTION_FIELD_NUMBER; hash = (53 * hash) + substitutionOption_; + hash = (37 * hash) + DYNAMIC_SUBSTITUTIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDynamicSubstitutions()); hash = (37 * hash) + LOG_STREAMING_OPTION_FIELD_NUMBER; hash = (53 * hash) + logStreamingOption_; hash = (37 * hash) + WORKER_POOL_FIELD_NUMBER; @@ -1946,6 +2060,8 @@ public Builder clear() { substitutionOption_ = 0; + dynamicSubstitutions_ = false; + logStreamingOption_ = 0; workerPool_ = ""; @@ -1999,6 +2115,7 @@ public com.google.cloudbuild.v1.BuildOptions buildPartial() { result.machineType_ = machineType_; result.diskSizeGb_ = diskSizeGb_; result.substitutionOption_ = substitutionOption_; + result.dynamicSubstitutions_ = dynamicSubstitutions_; result.logStreamingOption_ = logStreamingOption_; result.workerPool_ = workerPool_; result.logging_ = logging_; @@ -2092,6 +2209,9 @@ public Builder mergeFrom(com.google.cloudbuild.v1.BuildOptions other) { if (other.substitutionOption_ != 0) { setSubstitutionOptionValue(other.getSubstitutionOptionValue()); } + if (other.getDynamicSubstitutions() != false) { + setDynamicSubstitutions(other.getDynamicSubstitutions()); + } if (other.logStreamingOption_ != 0) { setLogStreamingOptionValue(other.getLogStreamingOptionValue()); } @@ -2681,6 +2801,8 @@ public Builder clearDiskSizeGb() { *
      * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -2698,6 +2820,8 @@ public int getSubstitutionOptionValue() { *
      * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -2718,6 +2842,8 @@ public Builder setSubstitutionOptionValue(int value) { *
      * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -2740,6 +2866,8 @@ public com.google.cloudbuild.v1.BuildOptions.SubstitutionOption getSubstitutionO *
      * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -2764,6 +2892,8 @@ public Builder setSubstitutionOption( *
      * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -2778,6 +2908,67 @@ public Builder clearSubstitutionOption() { return this; } + private boolean dynamicSubstitutions_; + /** + * + * + *
+     * 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; + * + * @return The dynamicSubstitutions. + */ + @java.lang.Override + public boolean getDynamicSubstitutions() { + return dynamicSubstitutions_; + } + /** + * + * + *
+     * 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; + * + * @param value The dynamicSubstitutions to set. + * @return This builder for chaining. + */ + public Builder setDynamicSubstitutions(boolean value) { + + dynamicSubstitutions_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @return This builder for chaining. + */ + public Builder clearDynamicSubstitutions() { + + dynamicSubstitutions_ = false; + onChanged(); + return this; + } + private int logStreamingOption_ = 0; /** * @@ -3008,8 +3199,8 @@ public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; @@ -3024,8 +3215,8 @@ public int getLoggingValue() { * * *
-     * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; @@ -3043,8 +3234,8 @@ public Builder setLoggingValue(int value) { * * *
-     * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; @@ -3064,8 +3255,8 @@ public com.google.cloudbuild.v1.BuildOptions.LoggingMode getLogging() { * * *
-     * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; @@ -3086,8 +3277,8 @@ public Builder setLogging(com.google.cloudbuild.v1.BuildOptions.LoggingMode valu * * *
-     * 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.
      * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java index 232fa1c8..b33d6d1a 100644 --- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java @@ -162,6 +162,8 @@ public interface BuildOptionsOrBuilder *
    * 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.
    * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -176,6 +178,8 @@ public interface BuildOptionsOrBuilder *
    * 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.
    * 
* * .google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption substitution_option = 4; @@ -185,6 +189,22 @@ public interface BuildOptionsOrBuilder */ com.google.cloudbuild.v1.BuildOptions.SubstitutionOption getSubstitutionOption(); + /** + * + * + *
+   * 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; + * + * @return The dynamicSubstitutions. + */ + boolean getDynamicSubstitutions(); + /** * * @@ -247,8 +267,8 @@ public interface BuildOptionsOrBuilder * * *
-   * 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.
    * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; @@ -260,8 +280,8 @@ public interface BuildOptionsOrBuilder * * *
-   * 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.
    * 
* * .google.devtools.cloudbuild.v1.BuildOptions.LoggingMode logging = 11; diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOrBuilder.java index 3dff807f..55f8fec3 100644 --- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOrBuilder.java +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOrBuilder.java @@ -23,6 +23,35 @@ public interface BuildOrBuilder // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Build) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * 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]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + /** * * @@ -80,7 +109,9 @@ public interface BuildOrBuilder * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -92,7 +123,9 @@ public interface BuildOrBuilder * Output only. Status of the build. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 2; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -105,7 +138,7 @@ public interface BuildOrBuilder * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The statusDetail. */ @@ -117,7 +150,7 @@ public interface BuildOrBuilder * Output only. Customer-readable message about the current status. * * - * string status_detail = 24; + * string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for statusDetail. */ @@ -377,6 +410,7 @@ public interface BuildOrBuilder * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -392,6 +426,7 @@ public interface BuildOrBuilder * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -407,6 +442,7 @@ public interface BuildOrBuilder * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. + * `timeout` starts ticking from `startTime`. * Default time is ten minutes. * * @@ -609,7 +645,9 @@ public interface BuildOrBuilder * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the sourceProvenance field is set. */ @@ -621,7 +659,9 @@ public interface BuildOrBuilder * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The sourceProvenance. */ @@ -633,7 +673,9 @@ public interface BuildOrBuilder * Output only. A permanent fixed identifier for source. * * - * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21; + * + * .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloudbuild.v1.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder(); @@ -645,7 +687,7 @@ public interface BuildOrBuilder * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The buildTriggerId. */ @@ -658,7 +700,7 @@ public interface BuildOrBuilder * was triggered automatically. * * - * string build_trigger_id = 22; + * string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for buildTriggerId. */ @@ -974,4 +1016,35 @@ com.google.cloudbuild.v1.TimeSpan getTimingOrDefault( *
*/ com.google.cloudbuild.v1.TimeSpan getTimingOrThrow(java.lang.String key); + + /** + * + * + *
+   * 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) = { ... } + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * 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) = { ... } + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); } diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStep.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStep.java index d52d51bf..f906eaad 100644 --- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStep.java +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStep.java @@ -947,7 +947,9 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the pullTiming field is set. */ @@ -963,7 +965,9 @@ public boolean hasPullTiming() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The pullTiming. */ @@ -981,7 +985,9 @@ public com.google.cloudbuild.v1.TimeSpan getPullTiming() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloudbuild.v1.TimeSpanOrBuilder getPullTimingOrBuilder() { @@ -1051,7 +1057,9 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -1068,7 +1076,9 @@ public int getStatusValue() { * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -3690,7 +3700,9 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getTimingOrBuilder() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the pullTiming field is set. */ @@ -3705,7 +3717,9 @@ public boolean hasPullTiming() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The pullTiming. */ @@ -3726,7 +3740,9 @@ public com.google.cloudbuild.v1.TimeSpan getPullTiming() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setPullTiming(com.google.cloudbuild.v1.TimeSpan value) { if (pullTimingBuilder_ == null) { @@ -3749,7 +3765,9 @@ public Builder setPullTiming(com.google.cloudbuild.v1.TimeSpan value) { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setPullTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue) { if (pullTimingBuilder_ == null) { @@ -3769,7 +3787,9 @@ public Builder setPullTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderFo * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergePullTiming(com.google.cloudbuild.v1.TimeSpan value) { if (pullTimingBuilder_ == null) { @@ -3796,7 +3816,9 @@ public Builder mergePullTiming(com.google.cloudbuild.v1.TimeSpan value) { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearPullTiming() { if (pullTimingBuilder_ == null) { @@ -3817,7 +3839,9 @@ public Builder clearPullTiming() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloudbuild.v1.TimeSpan.Builder getPullTimingBuilder() { @@ -3832,7 +3856,9 @@ public com.google.cloudbuild.v1.TimeSpan.Builder getPullTimingBuilder() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPullTimingOrBuilder() { if (pullTimingBuilder_ != null) { @@ -3851,7 +3877,9 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPullTimingOrBuilder() { * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloudbuild.v1.TimeSpan, @@ -4077,7 +4105,9 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -4094,7 +4124,9 @@ public int getStatusValue() { * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. @@ -4114,7 +4146,9 @@ public Builder setStatusValue(int value) { * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -4134,7 +4168,9 @@ public com.google.cloudbuild.v1.Build.Status getStatus() { * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The status to set. * @return This builder for chaining. @@ -4157,7 +4193,9 @@ public Builder setStatus(com.google.cloudbuild.v1.Build.Status value) { * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStepOrBuilder.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStepOrBuilder.java index 92531b1f..15c27095 100644 --- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStepOrBuilder.java +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildStepOrBuilder.java @@ -544,7 +544,9 @@ public interface BuildStepOrBuilder * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the pullTiming field is set. */ @@ -557,7 +559,9 @@ public interface BuildStepOrBuilder * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The pullTiming. */ @@ -570,7 +574,9 @@ public interface BuildStepOrBuilder * builder image only. * * - * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13; + * + * .google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloudbuild.v1.TimeSpanOrBuilder getPullTimingOrBuilder(); @@ -624,7 +630,9 @@ public interface BuildStepOrBuilder * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -638,7 +646,9 @@ public interface BuildStepOrBuilder * as the build progresses. * * - * .google.devtools.cloudbuild.v1.Build.Status status = 12; + * + * .google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ diff --git a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTrigger.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTrigger.java index deb9c024..2e6e3d61 100644 --- a/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTrigger.java +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTrigger.java @@ -814,7 +814,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * If true, the trigger will never result in a build.
+   * If true, the trigger will never automatically execute a build.
    * 
* * bool disabled = 9; @@ -858,8 +858,7 @@ public int getSubstitutionsCount() { * *
    * 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; @@ -882,8 +881,7 @@ public java.util.Map getSubstitutions() { * *
    * 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; @@ -897,8 +895,7 @@ public java.util.Map getSubstitutionsMap() { * *
    * 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; @@ -917,8 +914,7 @@ public java.lang.String getSubstitutionsOrDefault( * *
    * 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; @@ -3242,7 +3238,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * If true, the trigger will never result in a build.
+     * If true, the trigger will never automatically execute a build.
      * 
* * bool disabled = 9; @@ -3257,7 +3253,7 @@ public boolean getDisabled() { * * *
-     * If true, the trigger will never result in a build.
+     * If true, the trigger will never automatically execute a build.
      * 
* * bool disabled = 9; @@ -3275,7 +3271,7 @@ public Builder setDisabled(boolean value) { * * *
-     * If true, the trigger will never result in a build.
+     * If true, the trigger will never automatically execute a build.
      * 
* * bool disabled = 9; @@ -3322,8 +3318,7 @@ public int getSubstitutionsCount() { * *
      * 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; @@ -3346,8 +3341,7 @@ public java.util.Map getSubstitutions() { * *
      * 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; @@ -3361,8 +3355,7 @@ public java.util.Map getSubstitutionsMap() { * *
      * 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; @@ -3381,8 +3374,7 @@ public java.lang.String getSubstitutionsOrDefault( * *
      * 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; @@ -3408,8 +3400,7 @@ public Builder clearSubstitutions() { * *
      * 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; @@ -3431,8 +3422,7 @@ public java.util.Map getMutableSubstitutions * *
      * 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; @@ -3452,8 +3442,7 @@ public Builder putSubstitutions(java.lang.String key, java.lang.String value) { * *
      * 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/BuildTriggerName.java b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerName.java new file mode 100644 index 00000000..3d8597ea --- /dev/null +++ b/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerName.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 BuildTriggerName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/triggers/{trigger}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String trigger; + + public String getProject() { + return project; + } + + public String getTrigger() { + return trigger; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private BuildTriggerName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + trigger = Preconditions.checkNotNull(builder.getTrigger()); + } + + public static BuildTriggerName of(String project, String trigger) { + return newBuilder().setProject(project).setTrigger(trigger).build(); + } + + public static String format(String project, String trigger) { + return newBuilder().setProject(project).setTrigger(trigger).build().toString(); + } + + public static BuildTriggerName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "BuildTriggerName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("trigger")); + } + + 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 (BuildTriggerName 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("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",