Skip to content

Commit

Permalink
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
Browse files Browse the repository at this point in the history
…ator_java versions (#714)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: googleapis/googleapis-gen@230a558
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 9, 2022
1 parent 7e10d24 commit 8fcaaf3
Show file tree
Hide file tree
Showing 14 changed files with 119 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@
* 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.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
* PhishingProtectionServiceV1Beta1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
Expand Down Expand Up @@ -77,8 +80,11 @@
* <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.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
* PhishingProtectionServiceV1Beta1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -90,8 +96,11 @@
* <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.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
* PhishingProtectionServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
* PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
Expand All @@ -102,8 +111,11 @@
* the wire:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
* PhishingProtectionServiceV1Beta1Settings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -184,8 +196,11 @@ public PhishingProtectionServiceV1Beta1Stub 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.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
* PhishingProtectionServiceV1Beta1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
Expand Down Expand Up @@ -221,8 +236,11 @@ public final ReportPhishingResponse reportPhishing(ProjectName parent, String ur
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
* PhishingProtectionServiceV1Beta1Client.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
Expand Down Expand Up @@ -255,8 +273,11 @@ public final ReportPhishingResponse reportPhishing(String parent, String uri) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
* PhishingProtectionServiceV1Beta1Client.create()) {
* ReportPhishingRequest request =
Expand Down Expand Up @@ -288,8 +309,11 @@ public final ReportPhishingResponse reportPhishing(ReportPhishingRequest 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.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
* PhishingProtectionServiceV1Beta1Client.create()) {
* ReportPhishingRequest request =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@
* <p>For example, to set the total timeout of reportPhishing to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PhishingProtectionServiceV1Beta1Settings.Builder
* phishingProtectionServiceV1Beta1SettingsBuilder =
* PhishingProtectionServiceV1Beta1Settings.newBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
* <p>Sample for PhishingProtectionServiceV1Beta1Client:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
* PhishingProtectionServiceV1Beta1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class HttpJsonPhishingProtectionServiceV1Beta1Stub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ReportPhishingResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@
* <p>For example, to set the total timeout of reportPhishing to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PhishingProtectionServiceV1Beta1StubSettings.Builder
* phishingProtectionServiceV1Beta1SettingsBuilder =
* PhishingProtectionServiceV1Beta1StubSettings.newBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
Expand All @@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
PhishingProtectionServiceV1Beta1Settings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
}
}
// [END
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;

Expand All @@ -28,8 +27,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider1() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
PhishingProtectionServiceV1Beta1Settings.newBuilder()
.setTransportChannelProvider(
Expand All @@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
}
}
// [END
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
import com.google.cloud.phishingprotection.v1beta1.myEndpoint;
Expand All @@ -29,13 +28,15 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetEndpoint() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
PhishingProtectionServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
}
}
// [END
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.phishingprotection.v1beta1.ProjectName;
Expand All @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncReportPhishing() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
PhishingProtectionServiceV1Beta1Client.create()) {
ReportPhishingRequest request =
Expand All @@ -47,5 +49,4 @@ public static void asyncReportPhishing() throws Exception {
}
}
}
// [END
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.phishingprotection.v1beta1.ProjectName;
import com.google.phishingprotection.v1beta1.ReportPhishingRequest;
Expand All @@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncReportPhishing() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
PhishingProtectionServiceV1Beta1Client.create()) {
ReportPhishingRequest request =
Expand All @@ -44,5 +46,4 @@ public static void syncReportPhishing() throws Exception {
}
}
}
// [END
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
Loading

0 comments on commit 8fcaaf3

Please sign in to comment.