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

Commit ef023ba

Browse files
chore: update gapic-generator-java version to 2.1.0
PiperOrigin-RevId: 391407209 Source-Link: googleapis/googleapis@e1738ee Source-Link: https://github.com/googleapis/googleapis-gen/commit/ee19262b2b9bf96e2c5f5f13df60686247be11dd
1 parent d046536 commit ef023ba

File tree

72 files changed

+6192
-9433
lines changed

Some content is hidden

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

72 files changed

+6192
-9433
lines changed

grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java

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

grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java

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

google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java renamed to owl-bot-staging/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@
6161
* methods:
6262
*
6363
* <ol>
64-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
64+
* <li> A "flattened" method. With this type of method, the fields of the request type have been
6565
* converted into function parameters. It may be the case that not all fields are available as
6666
* parameters, and not every API method will have a flattened method entry point.
67-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
67+
* <li> A "request object" method. This type of method only takes one parameter, a request object,
6868
* which must be constructed before the call. Not every API method will have a request object
6969
* method.
70-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
70+
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
7171
* callable object, which can be used to initiate calls to the service.
7272
* </ol>
7373
*
@@ -419,11 +419,11 @@ public final UnaryCallable<GetWorkflowRequest, Workflow> getWorkflowCallable() {
419419
* @param workflowId Required. The ID of the workflow to be created. It has to fulfill the
420420
* following requirements:
421421
* <ul>
422-
* <li>Must contain only letters, numbers, underscores and hyphens.
423-
* <li>Must start with a letter.
424-
* <li>Must be between 1-64 characters.
425-
* <li>Must end with a number or a letter.
426-
* <li>Must be unique within the customer project and location.
422+
* <li> Must contain only letters, numbers, underscores and hyphens.
423+
* <li> Must start with a letter.
424+
* <li> Must be between 1-64 characters.
425+
* <li> Must end with a number or a letter.
426+
* <li> Must be unique within the customer project and location.
427427
* </ul>
428428
*
429429
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -462,11 +462,11 @@ public final OperationFuture<Workflow, OperationMetadata> createWorkflowAsync(
462462
* @param workflowId Required. The ID of the workflow to be created. It has to fulfill the
463463
* following requirements:
464464
* <ul>
465-
* <li>Must contain only letters, numbers, underscores and hyphens.
466-
* <li>Must start with a letter.
467-
* <li>Must be between 1-64 characters.
468-
* <li>Must end with a number or a letter.
469-
* <li>Must be unique within the customer project and location.
465+
* <li> Must contain only letters, numbers, underscores and hyphens.
466+
* <li> Must start with a letter.
467+
* <li> Must be between 1-64 characters.
468+
* <li> Must end with a number or a letter.
469+
* <li> Must be unique within the customer project and location.
470470
* </ul>
471471
*
472472
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -823,10 +823,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted
823823

824824
public static class ListWorkflowsPagedResponse
825825
extends AbstractPagedListResponse<
826-
ListWorkflowsRequest,
827-
ListWorkflowsResponse,
828-
Workflow,
829-
ListWorkflowsPage,
826+
ListWorkflowsRequest, ListWorkflowsResponse, Workflow, ListWorkflowsPage,
830827
ListWorkflowsFixedSizeCollection> {
831828

832829
public static ApiFuture<ListWorkflowsPagedResponse> createAsync(
@@ -876,10 +873,7 @@ public ApiFuture<ListWorkflowsPage> createPageAsync(
876873

877874
public static class ListWorkflowsFixedSizeCollection
878875
extends AbstractFixedSizeCollection<
879-
ListWorkflowsRequest,
880-
ListWorkflowsResponse,
881-
Workflow,
882-
ListWorkflowsPage,
876+
ListWorkflowsRequest, ListWorkflowsResponse, Workflow, ListWorkflowsPage,
883877
ListWorkflowsFixedSizeCollection> {
884878

885879
private ListWorkflowsFixedSizeCollection(List<ListWorkflowsPage> pages, int collectionSize) {

google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java renamed to owl-bot-staging/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.google.api.gax.rpc.ClientSettings;
2929
import com.google.api.gax.rpc.OperationCallSettings;
3030
import com.google.api.gax.rpc.PagedCallSettings;
31+
import com.google.api.gax.rpc.StubSettings;
3132
import com.google.api.gax.rpc.TransportChannelProvider;
3233
import com.google.api.gax.rpc.UnaryCallSettings;
3334
import com.google.cloud.workflows.v1.stub.WorkflowsStubSettings;
@@ -44,9 +45,9 @@
4445
* <p>The default instance has everything set to sensible defaults:
4546
*
4647
* <ul>
47-
* <li>The default service address (workflows.googleapis.com) and default port (443) are used.
48-
* <li>Credentials are acquired automatically through Application Default Credentials.
49-
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
48+
* <li> The default service address (workflows.googleapis.com) and default port (443) are used.
49+
* <li> Credentials are acquired automatically through Application Default Credentials.
50+
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
5051
* </ul>
5152
*
5253
* <p>The builder of this class is recursive, so contained classes are themselves builders. When

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

File renamed without changes.

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

File renamed without changes.

google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java renamed to owl-bot-staging/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java

File renamed without changes.

google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java renamed to owl-bot-staging/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import io.grpc.MethodDescriptor;
4141
import io.grpc.protobuf.ProtoUtils;
4242
import java.io.IOException;
43+
import java.util.Map;
4344
import java.util.concurrent.TimeUnit;
4445
import javax.annotation.Generated;
4546

google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java renamed to owl-bot-staging/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java

File renamed without changes.

google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java renamed to owl-bot-staging/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
* <p>The default instance has everything set to sensible defaults:
7171
*
7272
* <ul>
73-
* <li>The default service address (workflows.googleapis.com) and default port (443) are used.
74-
* <li>Credentials are acquired automatically through Application Default Credentials.
75-
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
73+
* <li> The default service address (workflows.googleapis.com) and default port (443) are used.
74+
* <li> Credentials are acquired automatically through Application Default Credentials.
75+
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
7676
* </ul>
7777
*
7878
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
@@ -245,7 +245,9 @@ public static List<String> getDefaultServiceScopes() {
245245

246246
/** Returns a builder for the default credentials for this service. */
247247
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
248-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
248+
return GoogleCredentialsProvider.newBuilder()
249+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
250+
.setUseJwtAccessWithScope(true);
249251
}
250252

251253
/** Returns a builder for the default ChannelProvider for this service. */

0 commit comments

Comments
 (0)