Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 #1107

Merged
merged 2 commits into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -59,6 +59,8 @@
* calls that map to API methods. Sample code to get started:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* Schema schema = Schema.newBuilder().build();
Expand Down Expand Up @@ -96,6 +98,8 @@
* <p>To customize credentials:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* SchemaServiceSettings schemaServiceSettings =
* SchemaServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -106,6 +110,8 @@
* <p>To customize the endpoint:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* SchemaServiceSettings schemaServiceSettings =
* SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
Expand Down Expand Up @@ -173,6 +179,8 @@ public SchemaServiceStub getStub() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* Schema schema = Schema.newBuilder().build();
Expand Down Expand Up @@ -209,6 +217,8 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
* Schema schema = Schema.newBuilder().build();
Expand Down Expand Up @@ -245,6 +255,8 @@ public final Schema createSchema(String parent, Schema schema, String schemaId)
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* CreateSchemaRequest request =
* CreateSchemaRequest.newBuilder()
Expand All @@ -270,6 +282,8 @@ public final Schema createSchema(CreateSchemaRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* CreateSchemaRequest request =
* CreateSchemaRequest.newBuilder()
Expand All @@ -294,6 +308,8 @@ public final UnaryCallable<CreateSchemaRequest, Schema> createSchemaCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
* Schema response = schemaServiceClient.getSchema(name);
Expand All @@ -317,6 +333,8 @@ public final Schema getSchema(SchemaName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
* Schema response = schemaServiceClient.getSchema(name);
Expand All @@ -339,6 +357,8 @@ public final Schema getSchema(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* GetSchemaRequest request =
* GetSchemaRequest.newBuilder()
Expand All @@ -363,6 +383,8 @@ public final Schema getSchema(GetSchemaRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* GetSchemaRequest request =
* GetSchemaRequest.newBuilder()
Expand All @@ -386,6 +408,8 @@ public final UnaryCallable<GetSchemaRequest, Schema> getSchemaCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
Expand Down Expand Up @@ -413,6 +437,8 @@ public final ListSchemasPagedResponse listSchemas(ProjectName parent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
* for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
Expand All @@ -437,6 +463,8 @@ public final ListSchemasPagedResponse listSchemas(String parent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ListSchemasRequest request =
* ListSchemasRequest.newBuilder()
Expand Down Expand Up @@ -465,6 +493,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ListSchemasRequest request =
* ListSchemasRequest.newBuilder()
Expand Down Expand Up @@ -493,6 +523,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ListSchemasRequest request =
* ListSchemasRequest.newBuilder()
Expand Down Expand Up @@ -527,6 +559,8 @@ public final UnaryCallable<ListSchemasRequest, ListSchemasResponse> listSchemasC
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
* schemaServiceClient.deleteSchema(name);
Expand All @@ -550,6 +584,8 @@ public final void deleteSchema(SchemaName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
* schemaServiceClient.deleteSchema(name);
Expand All @@ -572,6 +608,8 @@ public final void deleteSchema(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* DeleteSchemaRequest request =
* DeleteSchemaRequest.newBuilder()
Expand All @@ -595,6 +633,8 @@ public final void deleteSchema(DeleteSchemaRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* DeleteSchemaRequest request =
* DeleteSchemaRequest.newBuilder()
Expand All @@ -617,6 +657,8 @@ public final UnaryCallable<DeleteSchemaRequest, Empty> deleteSchemaCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* Schema schema = Schema.newBuilder().build();
Expand Down Expand Up @@ -645,6 +687,8 @@ public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema sc
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
* Schema schema = Schema.newBuilder().build();
Expand All @@ -670,6 +714,8 @@ public final ValidateSchemaResponse validateSchema(String parent, Schema schema)
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ValidateSchemaRequest request =
* ValidateSchemaRequest.newBuilder()
Expand All @@ -694,6 +740,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ValidateSchemaRequest request =
* ValidateSchemaRequest.newBuilder()
Expand All @@ -719,6 +767,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ValidateMessageRequest request =
* ValidateMessageRequest.newBuilder()
Expand All @@ -744,6 +794,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ValidateMessageRequest request =
* ValidateMessageRequest.newBuilder()
Expand Down Expand Up @@ -772,6 +824,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
Expand Down Expand Up @@ -799,6 +853,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
Expand All @@ -824,6 +880,8 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
Expand All @@ -849,6 +907,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
Expand Down Expand Up @@ -877,6 +937,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
Expand Down Expand Up @@ -906,6 +968,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -68,6 +68,8 @@
* <p>For example, to set the total timeout of createSchema to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
* schemaServiceSettingsBuilder
* .createSchemaSettings()
Expand Down
Loading