Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit cf4fef5

Browse files
feat:add script field to BuildStep message
PiperOrigin-RevId: 392761119 Source-Link: googleapis/googleapis@3cd708e Source-Link: https://github.com/googleapis/googleapis-gen/commit/05d56192ca207d89227b4b28a73bbeab312bd097
1 parent 84ce78e commit cf4fef5

File tree

138 files changed

+19738
-32122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+19738
-32122
lines changed

grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java

Lines changed: 0 additions & 2427 deletions
This file was deleted.

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java renamed to owl-bot-staging/v1/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java

Lines changed: 30 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@
100100
* methods:
101101
*
102102
* <ol>
103-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
103+
* <li> A "flattened" method. With this type of method, the fields of the request type have been
104104
* converted into function parameters. It may be the case that not all fields are available as
105105
* parameters, and not every API method will have a flattened method entry point.
106-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
106+
* <li> A "request object" method. This type of method only takes one parameter, a request object,
107107
* which must be constructed before the call. Not every API method will have a request object
108108
* method.
109-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
109+
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
110110
* callable object, which can be used to initiate calls to the service.
111111
* </ol>
112112
*
@@ -609,26 +609,26 @@ public final UnaryCallable<CancelBuildRequest, Build> cancelBuildCallable() {
609609
* <p>For triggered builds:
610610
*
611611
* <ul>
612-
* <li>Triggered builds resolve to a precise revision; therefore a retry of a triggered build
612+
* <li> Triggered builds resolve to a precise revision; therefore a retry of a triggered build
613613
* will result in a build that uses the same revision.
614614
* </ul>
615615
*
616616
* <p>For non-triggered builds that specify `RepoSource`:
617617
*
618618
* <ul>
619-
* <li>If the original build built from the tip of a branch, the retried build will build from
619+
* <li> If the original build built from the tip of a branch, the retried build will build from
620620
* the tip of that branch, which may not be the same revision as the original build.
621-
* <li>If the original build specified a commit sha or revision ID, the retried build will use
621+
* <li> If the original build specified a commit sha or revision ID, the retried build will use
622622
* the identical source.
623623
* </ul>
624624
*
625625
* <p>For builds that specify `StorageSource`:
626626
*
627627
* <ul>
628-
* <li>If the original build pulled source from Google Cloud Storage without specifying the
628+
* <li> If the original build pulled source from Google Cloud Storage without specifying the
629629
* generation of the object, the new build will use the current object, which may be
630630
* different from the original build source.
631-
* <li>If the original build pulled source from Cloud Storage and specified the generation of
631+
* <li> If the original build pulled source from Cloud Storage and specified the generation of
632632
* the object, the new build will attempt to use the same object, which may or may not be
633633
* available depending on the bucket's lifecycle management settings.
634634
* </ul>
@@ -664,26 +664,26 @@ public final OperationFuture<Build, BuildOperationMetadata> retryBuildAsync(
664664
* <p>For triggered builds:
665665
*
666666
* <ul>
667-
* <li>Triggered builds resolve to a precise revision; therefore a retry of a triggered build
667+
* <li> Triggered builds resolve to a precise revision; therefore a retry of a triggered build
668668
* will result in a build that uses the same revision.
669669
* </ul>
670670
*
671671
* <p>For non-triggered builds that specify `RepoSource`:
672672
*
673673
* <ul>
674-
* <li>If the original build built from the tip of a branch, the retried build will build from
674+
* <li> If the original build built from the tip of a branch, the retried build will build from
675675
* the tip of that branch, which may not be the same revision as the original build.
676-
* <li>If the original build specified a commit sha or revision ID, the retried build will use
676+
* <li> If the original build specified a commit sha or revision ID, the retried build will use
677677
* the identical source.
678678
* </ul>
679679
*
680680
* <p>For builds that specify `StorageSource`:
681681
*
682682
* <ul>
683-
* <li>If the original build pulled source from Google Cloud Storage without specifying the
683+
* <li> If the original build pulled source from Google Cloud Storage without specifying the
684684
* generation of the object, the new build will use the current object, which may be
685685
* different from the original build source.
686-
* <li>If the original build pulled source from Cloud Storage and specified the generation of
686+
* <li> If the original build pulled source from Cloud Storage and specified the generation of
687687
* the object, the new build will attempt to use the same object, which may or may not be
688688
* available depending on the bucket's lifecycle management settings.
689689
* </ul>
@@ -720,26 +720,26 @@ public final OperationFuture<Build, BuildOperationMetadata> retryBuildAsync(
720720
* <p>For triggered builds:
721721
*
722722
* <ul>
723-
* <li>Triggered builds resolve to a precise revision; therefore a retry of a triggered build
723+
* <li> Triggered builds resolve to a precise revision; therefore a retry of a triggered build
724724
* will result in a build that uses the same revision.
725725
* </ul>
726726
*
727727
* <p>For non-triggered builds that specify `RepoSource`:
728728
*
729729
* <ul>
730-
* <li>If the original build built from the tip of a branch, the retried build will build from
730+
* <li> If the original build built from the tip of a branch, the retried build will build from
731731
* the tip of that branch, which may not be the same revision as the original build.
732-
* <li>If the original build specified a commit sha or revision ID, the retried build will use
732+
* <li> If the original build specified a commit sha or revision ID, the retried build will use
733733
* the identical source.
734734
* </ul>
735735
*
736736
* <p>For builds that specify `StorageSource`:
737737
*
738738
* <ul>
739-
* <li>If the original build pulled source from Google Cloud Storage without specifying the
739+
* <li> If the original build pulled source from Google Cloud Storage without specifying the
740740
* generation of the object, the new build will use the current object, which may be
741741
* different from the original build source.
742-
* <li>If the original build pulled source from Cloud Storage and specified the generation of
742+
* <li> If the original build pulled source from Cloud Storage and specified the generation of
743743
* the object, the new build will attempt to use the same object, which may or may not be
744744
* available depending on the bucket's lifecycle management settings.
745745
* </ul>
@@ -776,26 +776,26 @@ public final OperationFuture<Build, BuildOperationMetadata> retryBuildAsync(
776776
* <p>For triggered builds:
777777
*
778778
* <ul>
779-
* <li>Triggered builds resolve to a precise revision; therefore a retry of a triggered build
779+
* <li> Triggered builds resolve to a precise revision; therefore a retry of a triggered build
780780
* will result in a build that uses the same revision.
781781
* </ul>
782782
*
783783
* <p>For non-triggered builds that specify `RepoSource`:
784784
*
785785
* <ul>
786-
* <li>If the original build built from the tip of a branch, the retried build will build from
786+
* <li> If the original build built from the tip of a branch, the retried build will build from
787787
* the tip of that branch, which may not be the same revision as the original build.
788-
* <li>If the original build specified a commit sha or revision ID, the retried build will use
788+
* <li> If the original build specified a commit sha or revision ID, the retried build will use
789789
* the identical source.
790790
* </ul>
791791
*
792792
* <p>For builds that specify `StorageSource`:
793793
*
794794
* <ul>
795-
* <li>If the original build pulled source from Google Cloud Storage without specifying the
795+
* <li> If the original build pulled source from Google Cloud Storage without specifying the
796796
* generation of the object, the new build will use the current object, which may be
797797
* different from the original build source.
798-
* <li>If the original build pulled source from Cloud Storage and specified the generation of
798+
* <li> If the original build pulled source from Cloud Storage and specified the generation of
799799
* the object, the new build will attempt to use the same object, which may or may not be
800800
* available depending on the bucket's lifecycle management settings.
801801
* </ul>
@@ -2202,10 +2202,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted
22022202

22032203
public static class ListBuildsPagedResponse
22042204
extends AbstractPagedListResponse<
2205-
ListBuildsRequest,
2206-
ListBuildsResponse,
2207-
Build,
2208-
ListBuildsPage,
2205+
ListBuildsRequest, ListBuildsResponse, Build, ListBuildsPage,
22092206
ListBuildsFixedSizeCollection> {
22102207

22112208
public static ApiFuture<ListBuildsPagedResponse> createAsync(
@@ -2252,10 +2249,7 @@ public ApiFuture<ListBuildsPage> createPageAsync(
22522249

22532250
public static class ListBuildsFixedSizeCollection
22542251
extends AbstractFixedSizeCollection<
2255-
ListBuildsRequest,
2256-
ListBuildsResponse,
2257-
Build,
2258-
ListBuildsPage,
2252+
ListBuildsRequest, ListBuildsResponse, Build, ListBuildsPage,
22592253
ListBuildsFixedSizeCollection> {
22602254

22612255
private ListBuildsFixedSizeCollection(List<ListBuildsPage> pages, int collectionSize) {
@@ -2275,10 +2269,7 @@ protected ListBuildsFixedSizeCollection createCollection(
22752269

22762270
public static class ListBuildTriggersPagedResponse
22772271
extends AbstractPagedListResponse<
2278-
ListBuildTriggersRequest,
2279-
ListBuildTriggersResponse,
2280-
BuildTrigger,
2281-
ListBuildTriggersPage,
2272+
ListBuildTriggersRequest, ListBuildTriggersResponse, BuildTrigger, ListBuildTriggersPage,
22822273
ListBuildTriggersFixedSizeCollection> {
22832274

22842275
public static ApiFuture<ListBuildTriggersPagedResponse> createAsync(
@@ -2299,9 +2290,7 @@ private ListBuildTriggersPagedResponse(ListBuildTriggersPage page) {
22992290

23002291
public static class ListBuildTriggersPage
23012292
extends AbstractPage<
2302-
ListBuildTriggersRequest,
2303-
ListBuildTriggersResponse,
2304-
BuildTrigger,
2293+
ListBuildTriggersRequest, ListBuildTriggersResponse, BuildTrigger,
23052294
ListBuildTriggersPage> {
23062295

23072296
private ListBuildTriggersPage(
@@ -2331,10 +2320,7 @@ public ApiFuture<ListBuildTriggersPage> createPageAsync(
23312320

23322321
public static class ListBuildTriggersFixedSizeCollection
23332322
extends AbstractFixedSizeCollection<
2334-
ListBuildTriggersRequest,
2335-
ListBuildTriggersResponse,
2336-
BuildTrigger,
2337-
ListBuildTriggersPage,
2323+
ListBuildTriggersRequest, ListBuildTriggersResponse, BuildTrigger, ListBuildTriggersPage,
23382324
ListBuildTriggersFixedSizeCollection> {
23392325

23402326
private ListBuildTriggersFixedSizeCollection(
@@ -2355,10 +2341,7 @@ protected ListBuildTriggersFixedSizeCollection createCollection(
23552341

23562342
public static class ListWorkerPoolsPagedResponse
23572343
extends AbstractPagedListResponse<
2358-
ListWorkerPoolsRequest,
2359-
ListWorkerPoolsResponse,
2360-
WorkerPool,
2361-
ListWorkerPoolsPage,
2344+
ListWorkerPoolsRequest, ListWorkerPoolsResponse, WorkerPool, ListWorkerPoolsPage,
23622345
ListWorkerPoolsFixedSizeCollection> {
23632346

23642347
public static ApiFuture<ListWorkerPoolsPagedResponse> createAsync(
@@ -2408,10 +2391,7 @@ public ApiFuture<ListWorkerPoolsPage> createPageAsync(
24082391

24092392
public static class ListWorkerPoolsFixedSizeCollection
24102393
extends AbstractFixedSizeCollection<
2411-
ListWorkerPoolsRequest,
2412-
ListWorkerPoolsResponse,
2413-
WorkerPool,
2414-
ListWorkerPoolsPage,
2394+
ListWorkerPoolsRequest, ListWorkerPoolsResponse, WorkerPool, ListWorkerPoolsPage,
24152395
ListWorkerPoolsFixedSizeCollection> {
24162396

24172397
private ListWorkerPoolsFixedSizeCollection(

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java renamed to owl-bot-staging/v1/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import com.google.api.gax.rpc.ClientSettings;
3131
import com.google.api.gax.rpc.OperationCallSettings;
3232
import com.google.api.gax.rpc.PagedCallSettings;
33+
import com.google.api.gax.rpc.StubSettings;
3334
import com.google.api.gax.rpc.TransportChannelProvider;
3435
import com.google.api.gax.rpc.UnaryCallSettings;
3536
import com.google.cloud.devtools.cloudbuild.v1.stub.CloudBuildStubSettings;
@@ -75,9 +76,9 @@
7576
* <p>The default instance has everything set to sensible defaults:
7677
*
7778
* <ul>
78-
* <li>The default service address (cloudbuild.googleapis.com) and default port (443) are used.
79-
* <li>Credentials are acquired automatically through Application Default Credentials.
80-
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
79+
* <li> The default service address (cloudbuild.googleapis.com) and default port (443) are used.
80+
* <li> Credentials are acquired automatically through Application Default Credentials.
81+
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
8182
* </ul>
8283
*
8384
* <p>The builder of this class is recursive, so contained classes are themselves builders. When

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json renamed to owl-bot-staging/v1/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json

File renamed without changes.

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java renamed to owl-bot-staging/v1/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java

File renamed without changes.

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java renamed to owl-bot-staging/v1/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java

File renamed without changes.

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java renamed to owl-bot-staging/v1/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
* <p>The default instance has everything set to sensible defaults:
9494
*
9595
* <ul>
96-
* <li>The default service address (cloudbuild.googleapis.com) and default port (443) are used.
97-
* <li>Credentials are acquired automatically through Application Default Credentials.
98-
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
96+
* <li> The default service address (cloudbuild.googleapis.com) and default port (443) are used.
97+
* <li> Credentials are acquired automatically through Application Default Credentials.
98+
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
9999
* </ul>
100100
*
101101
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
@@ -303,8 +303,7 @@ public ApiFuture<ListBuildsPagedResponse> getFuturePagedResponse(
303303
ListBuildTriggersRequest, ListBuildTriggersResponse, ListBuildTriggersPagedResponse>
304304
LIST_BUILD_TRIGGERS_PAGE_STR_FACT =
305305
new PagedListResponseFactory<
306-
ListBuildTriggersRequest,
307-
ListBuildTriggersResponse,
306+
ListBuildTriggersRequest, ListBuildTriggersResponse,
308307
ListBuildTriggersPagedResponse>() {
309308
@Override
310309
public ApiFuture<ListBuildTriggersPagedResponse> getFuturePagedResponse(

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildCallableFactory.java renamed to owl-bot-staging/v1/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildCallableFactory.java

File renamed without changes.

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java renamed to owl-bot-staging/v1/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
import io.grpc.MethodDescriptor;
6464
import io.grpc.protobuf.ProtoUtils;
6565
import java.io.IOException;
66+
import java.util.Map;
6667
import java.util.concurrent.TimeUnit;
6768
import javax.annotation.Generated;
6869

google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java renamed to owl-bot-staging/v1/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ public void createBuildTriggerTest() throws Exception {
565565
.addAllIgnoredFiles(new ArrayList<String>())
566566
.addAllIncludedFiles(new ArrayList<String>())
567567
.setFilter("filter-1274492040")
568-
.setServiceAccount("serviceAccount1079137720")
569568
.build();
570569
mockCloudBuild.addResponse(expectedResponse);
571570

@@ -621,7 +620,6 @@ public void getBuildTriggerTest() throws Exception {
621620
.addAllIgnoredFiles(new ArrayList<String>())
622621
.addAllIncludedFiles(new ArrayList<String>())
623622
.setFilter("filter-1274492040")
624-
.setServiceAccount("serviceAccount1079137720")
625623
.build();
626624
mockCloudBuild.addResponse(expectedResponse);
627625

@@ -758,7 +756,6 @@ public void updateBuildTriggerTest() throws Exception {
758756
.addAllIgnoredFiles(new ArrayList<String>())
759757
.addAllIncludedFiles(new ArrayList<String>())
760758
.setFilter("filter-1274492040")
761-
.setServiceAccount("serviceAccount1079137720")
762759
.build();
763760
mockCloudBuild.addResponse(expectedResponse);
764761

0 commit comments

Comments
 (0)