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

Commit

Permalink
feat:add script field to BuildStep message
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 392761119

Source-Link: googleapis/googleapis@3cd708e

Source-Link: googleapis/googleapis-gen@05d5619
  • Loading branch information
gcf-owl-bot[bot] committed Aug 28, 2021
1 parent 84ce78e commit cf4fef5
Show file tree
Hide file tree
Showing 138 changed files with 19,738 additions and 32,122 deletions.

This file was deleted.

Expand Up @@ -100,13 +100,13 @@
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand Down Expand Up @@ -609,26 +609,26 @@ public final UnaryCallable<CancelBuildRequest, Build> cancelBuildCallable() {
* <p>For triggered builds:
*
* <ul>
* <li>Triggered builds resolve to a precise revision; therefore a retry of a triggered build
* <li> Triggered builds resolve to a precise revision; therefore a retry of a triggered build
* will result in a build that uses the same revision.
* </ul>
*
* <p>For non-triggered builds that specify `RepoSource`:
*
* <ul>
* <li>If the original build built from the tip of a branch, the retried build will build from
* <li> If the original build built from the tip of a branch, the retried build will build from
* the tip of that branch, which may not be the same revision as the original build.
* <li>If the original build specified a commit sha or revision ID, the retried build will use
* <li> If the original build specified a commit sha or revision ID, the retried build will use
* the identical source.
* </ul>
*
* <p>For builds that specify `StorageSource`:
*
* <ul>
* <li>If the original build pulled source from Google Cloud Storage without specifying the
* <li> If the original build pulled source from Google Cloud Storage without specifying the
* generation of the object, the new build will use the current object, which may be
* different from the original build source.
* <li>If the original build pulled source from Cloud Storage and specified the generation of
* <li> If the original build pulled source from Cloud Storage and specified the generation of
* the object, the new build will attempt to use the same object, which may or may not be
* available depending on the bucket's lifecycle management settings.
* </ul>
Expand Down Expand Up @@ -664,26 +664,26 @@ public final OperationFuture<Build, BuildOperationMetadata> retryBuildAsync(
* <p>For triggered builds:
*
* <ul>
* <li>Triggered builds resolve to a precise revision; therefore a retry of a triggered build
* <li> Triggered builds resolve to a precise revision; therefore a retry of a triggered build
* will result in a build that uses the same revision.
* </ul>
*
* <p>For non-triggered builds that specify `RepoSource`:
*
* <ul>
* <li>If the original build built from the tip of a branch, the retried build will build from
* <li> If the original build built from the tip of a branch, the retried build will build from
* the tip of that branch, which may not be the same revision as the original build.
* <li>If the original build specified a commit sha or revision ID, the retried build will use
* <li> If the original build specified a commit sha or revision ID, the retried build will use
* the identical source.
* </ul>
*
* <p>For builds that specify `StorageSource`:
*
* <ul>
* <li>If the original build pulled source from Google Cloud Storage without specifying the
* <li> If the original build pulled source from Google Cloud Storage without specifying the
* generation of the object, the new build will use the current object, which may be
* different from the original build source.
* <li>If the original build pulled source from Cloud Storage and specified the generation of
* <li> If the original build pulled source from Cloud Storage and specified the generation of
* the object, the new build will attempt to use the same object, which may or may not be
* available depending on the bucket's lifecycle management settings.
* </ul>
Expand Down Expand Up @@ -720,26 +720,26 @@ public final OperationFuture<Build, BuildOperationMetadata> retryBuildAsync(
* <p>For triggered builds:
*
* <ul>
* <li>Triggered builds resolve to a precise revision; therefore a retry of a triggered build
* <li> Triggered builds resolve to a precise revision; therefore a retry of a triggered build
* will result in a build that uses the same revision.
* </ul>
*
* <p>For non-triggered builds that specify `RepoSource`:
*
* <ul>
* <li>If the original build built from the tip of a branch, the retried build will build from
* <li> If the original build built from the tip of a branch, the retried build will build from
* the tip of that branch, which may not be the same revision as the original build.
* <li>If the original build specified a commit sha or revision ID, the retried build will use
* <li> If the original build specified a commit sha or revision ID, the retried build will use
* the identical source.
* </ul>
*
* <p>For builds that specify `StorageSource`:
*
* <ul>
* <li>If the original build pulled source from Google Cloud Storage without specifying the
* <li> If the original build pulled source from Google Cloud Storage without specifying the
* generation of the object, the new build will use the current object, which may be
* different from the original build source.
* <li>If the original build pulled source from Cloud Storage and specified the generation of
* <li> If the original build pulled source from Cloud Storage and specified the generation of
* the object, the new build will attempt to use the same object, which may or may not be
* available depending on the bucket's lifecycle management settings.
* </ul>
Expand Down Expand Up @@ -776,26 +776,26 @@ public final OperationFuture<Build, BuildOperationMetadata> retryBuildAsync(
* <p>For triggered builds:
*
* <ul>
* <li>Triggered builds resolve to a precise revision; therefore a retry of a triggered build
* <li> Triggered builds resolve to a precise revision; therefore a retry of a triggered build
* will result in a build that uses the same revision.
* </ul>
*
* <p>For non-triggered builds that specify `RepoSource`:
*
* <ul>
* <li>If the original build built from the tip of a branch, the retried build will build from
* <li> If the original build built from the tip of a branch, the retried build will build from
* the tip of that branch, which may not be the same revision as the original build.
* <li>If the original build specified a commit sha or revision ID, the retried build will use
* <li> If the original build specified a commit sha or revision ID, the retried build will use
* the identical source.
* </ul>
*
* <p>For builds that specify `StorageSource`:
*
* <ul>
* <li>If the original build pulled source from Google Cloud Storage without specifying the
* <li> If the original build pulled source from Google Cloud Storage without specifying the
* generation of the object, the new build will use the current object, which may be
* different from the original build source.
* <li>If the original build pulled source from Cloud Storage and specified the generation of
* <li> If the original build pulled source from Cloud Storage and specified the generation of
* the object, the new build will attempt to use the same object, which may or may not be
* available depending on the bucket's lifecycle management settings.
* </ul>
Expand Down Expand Up @@ -2202,10 +2202,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListBuildsPagedResponse
extends AbstractPagedListResponse<
ListBuildsRequest,
ListBuildsResponse,
Build,
ListBuildsPage,
ListBuildsRequest, ListBuildsResponse, Build, ListBuildsPage,
ListBuildsFixedSizeCollection> {

public static ApiFuture<ListBuildsPagedResponse> createAsync(
Expand Down Expand Up @@ -2252,10 +2249,7 @@ public ApiFuture<ListBuildsPage> createPageAsync(

public static class ListBuildsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListBuildsRequest,
ListBuildsResponse,
Build,
ListBuildsPage,
ListBuildsRequest, ListBuildsResponse, Build, ListBuildsPage,
ListBuildsFixedSizeCollection> {

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

public static class ListBuildTriggersPagedResponse
extends AbstractPagedListResponse<
ListBuildTriggersRequest,
ListBuildTriggersResponse,
BuildTrigger,
ListBuildTriggersPage,
ListBuildTriggersRequest, ListBuildTriggersResponse, BuildTrigger, ListBuildTriggersPage,
ListBuildTriggersFixedSizeCollection> {

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

public static class ListBuildTriggersPage
extends AbstractPage<
ListBuildTriggersRequest,
ListBuildTriggersResponse,
BuildTrigger,
ListBuildTriggersRequest, ListBuildTriggersResponse, BuildTrigger,
ListBuildTriggersPage> {

private ListBuildTriggersPage(
Expand Down Expand Up @@ -2331,10 +2320,7 @@ public ApiFuture<ListBuildTriggersPage> createPageAsync(

public static class ListBuildTriggersFixedSizeCollection
extends AbstractFixedSizeCollection<
ListBuildTriggersRequest,
ListBuildTriggersResponse,
BuildTrigger,
ListBuildTriggersPage,
ListBuildTriggersRequest, ListBuildTriggersResponse, BuildTrigger, ListBuildTriggersPage,
ListBuildTriggersFixedSizeCollection> {

private ListBuildTriggersFixedSizeCollection(
Expand All @@ -2355,10 +2341,7 @@ protected ListBuildTriggersFixedSizeCollection createCollection(

public static class ListWorkerPoolsPagedResponse
extends AbstractPagedListResponse<
ListWorkerPoolsRequest,
ListWorkerPoolsResponse,
WorkerPool,
ListWorkerPoolsPage,
ListWorkerPoolsRequest, ListWorkerPoolsResponse, WorkerPool, ListWorkerPoolsPage,
ListWorkerPoolsFixedSizeCollection> {

public static ApiFuture<ListWorkerPoolsPagedResponse> createAsync(
Expand Down Expand Up @@ -2408,10 +2391,7 @@ public ApiFuture<ListWorkerPoolsPage> createPageAsync(

public static class ListWorkerPoolsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListWorkerPoolsRequest,
ListWorkerPoolsResponse,
WorkerPool,
ListWorkerPoolsPage,
ListWorkerPoolsRequest, ListWorkerPoolsResponse, WorkerPool, ListWorkerPoolsPage,
ListWorkerPoolsFixedSizeCollection> {

private ListWorkerPoolsFixedSizeCollection(
Expand Down
Expand Up @@ -30,6 +30,7 @@
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.devtools.cloudbuild.v1.stub.CloudBuildStubSettings;
Expand Down Expand Up @@ -75,9 +76,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (cloudbuild.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (cloudbuild.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Expand Up @@ -93,9 +93,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (cloudbuild.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (cloudbuild.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -303,8 +303,7 @@ public ApiFuture<ListBuildsPagedResponse> getFuturePagedResponse(
ListBuildTriggersRequest, ListBuildTriggersResponse, ListBuildTriggersPagedResponse>
LIST_BUILD_TRIGGERS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListBuildTriggersRequest,
ListBuildTriggersResponse,
ListBuildTriggersRequest, ListBuildTriggersResponse,
ListBuildTriggersPagedResponse>() {
@Override
public ApiFuture<ListBuildTriggersPagedResponse> getFuturePagedResponse(
Expand Down
Expand Up @@ -63,6 +63,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down
Expand Up @@ -565,7 +565,6 @@ public void createBuildTriggerTest() throws Exception {
.addAllIgnoredFiles(new ArrayList<String>())
.addAllIncludedFiles(new ArrayList<String>())
.setFilter("filter-1274492040")
.setServiceAccount("serviceAccount1079137720")
.build();
mockCloudBuild.addResponse(expectedResponse);

Expand Down Expand Up @@ -621,7 +620,6 @@ public void getBuildTriggerTest() throws Exception {
.addAllIgnoredFiles(new ArrayList<String>())
.addAllIncludedFiles(new ArrayList<String>())
.setFilter("filter-1274492040")
.setServiceAccount("serviceAccount1079137720")
.build();
mockCloudBuild.addResponse(expectedResponse);

Expand Down Expand Up @@ -758,7 +756,6 @@ public void updateBuildTriggerTest() throws Exception {
.addAllIgnoredFiles(new ArrayList<String>())
.addAllIncludedFiles(new ArrayList<String>())
.setFilter("filter-1274492040")
.setServiceAccount("serviceAccount1079137720")
.build();
mockCloudBuild.addResponse(expectedResponse);

Expand Down

0 comments on commit cf4fef5

Please sign in to comment.