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 (#207)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
gcf-owl-bot[bot] authored Sep 8, 2022
1 parent 6c9b881 commit 42c4e62
Showing 23 changed files with 184 additions and 88 deletions.
Original file line number Diff line number Diff line change
@@ -40,8 +40,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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]");
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -80,8 +83,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
* ConnectionServiceSettings connectionServiceSettings =
* ConnectionServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,8 +99,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
* ConnectionServiceSettings connectionServiceSettings =
* ConnectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* ConnectionServiceClient connectionServiceClient =
@@ -105,8 +114,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
* ConnectionServiceSettings connectionServiceSettings =
* ConnectionServiceSettings.newBuilder()
* .setTransportChannelProvider(
@@ -175,8 +187,11 @@ public ConnectionServiceStub 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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]");
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -204,8 +219,11 @@ public final ListConnectionsPagedResponse listConnections(EndpointName 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.
* // 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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String parent = EndpointName.of("[PROJECT]", "[ENDPOINT]").toString();
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -230,8 +248,11 @@ public final ListConnectionsPagedResponse listConnections(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.
* // 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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ListConnectionsRequest request =
* ListConnectionsRequest.newBuilder()
@@ -259,8 +280,11 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest
* <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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ListConnectionsRequest request =
* ListConnectionsRequest.newBuilder()
@@ -289,8 +313,11 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest
* <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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ListConnectionsRequest request =
* ListConnectionsRequest.newBuilder()
Original file line number Diff line number Diff line change
@@ -53,8 +53,11 @@
* <p>For example, to set the total timeout of listConnections 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
* ConnectionServiceSettings.Builder connectionServiceSettingsBuilder =
* ConnectionServiceSettings.newBuilder();
* connectionServiceSettingsBuilder
Original file line number Diff line number Diff line change
@@ -34,8 +34,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 (TetherClient tetherClient = TetherClient.create()) {
* BidiStream<EgressResponse, EgressRequest> bidiStream = tetherClient.egressCallable().call();
* EgressResponse request =
@@ -84,8 +87,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
* TetherSettings tetherSettings =
* TetherSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,8 +102,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
* TetherSettings tetherSettings = TetherSettings.newBuilder().setEndpoint(myEndpoint).build();
* TetherClient tetherClient = TetherClient.create(tetherSettings);
* }</pre>
@@ -106,8 +115,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
* TetherSettings tetherSettings =
* TetherSettings.newBuilder()
* .setTransportChannelProvider(
@@ -177,8 +189,11 @@ public TetherStub 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 (TetherClient tetherClient = TetherClient.create()) {
* BidiStream<EgressResponse, EgressRequest> bidiStream = tetherClient.egressCallable().call();
* EgressResponse request =
Original file line number Diff line number Diff line change
@@ -51,16 +51,16 @@
* <p>For example, to set the total timeout of egress 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
* TetherSettings.Builder tetherSettingsBuilder = TetherSettings.newBuilder();
* tetherSettingsBuilder
* .egressSettings()
* .setRetrySettings(
* tetherSettingsBuilder
* .egressSettings()
* .getRetrySettings()
* .toBuilder()
* tetherSettingsBuilder.egressSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TetherSettings tetherSettings = tetherSettingsBuilder.build();
Original file line number Diff line number Diff line change
@@ -24,8 +24,11 @@
* <p>Sample for ConnectionServiceClient:
*
* <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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]");
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -43,8 +46,11 @@
* <p>Sample for TetherClient:
*
* <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 (TetherClient tetherClient = TetherClient.create()) {
* BidiStream<EgressResponse, EgressRequest> bidiStream = tetherClient.egressCallable().call();
* EgressResponse request =
Original file line number Diff line number Diff line change
@@ -73,8 +73,11 @@
* <p>For example, to set the total timeout of listConnections 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
* ConnectionServiceStubSettings.Builder connectionServiceSettingsBuilder =
* ConnectionServiceStubSettings.newBuilder();
* connectionServiceSettingsBuilder
Original file line number Diff line number Diff line change
@@ -63,16 +63,16 @@
* <p>For example, to set the total timeout of egress 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
* TetherStubSettings.Builder tetherSettingsBuilder = TetherStubSettings.newBuilder();
* tetherSettingsBuilder
* .egressSettings()
* .setRetrySettings(
* tetherSettingsBuilder
* .egressSettings()
* .getRetrySettings()
* .toBuilder()
* tetherSettingsBuilder.egressSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TetherStubSettings tetherSettings = tetherSettingsBuilder.build();
Original file line number Diff line number Diff line change
@@ -29,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
ConnectionServiceSettings connectionServiceSettings =
ConnectionServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Original file line number Diff line number Diff line change
@@ -27,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
ConnectionServiceSettings connectionServiceSettings =
ConnectionServiceSettings.newBuilder()
.setTransportChannelProvider(
Original file line number Diff line number Diff line change
@@ -28,8 +28,11 @@ 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
ConnectionServiceSettings connectionServiceSettings =
ConnectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
ConnectionServiceClient connectionServiceClient =
Original file line number Diff line number Diff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncListConnections() 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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
ListConnectionsRequest request =
ListConnectionsRequest.newBuilder()
Original file line number Diff line number Diff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncListConnectionsPaged() 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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
ListConnectionsRequest request =
ListConnectionsRequest.newBuilder()
Original file line number Diff line number Diff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncListConnections() 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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
ListConnectionsRequest request =
ListConnectionsRequest.newBuilder()
Original file line number Diff line number Diff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncListConnectionsEndpointname() 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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]");
for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
Original file line number Diff line number Diff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncListConnectionsString() 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 (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
String parent = EndpointName.of("[PROJECT]", "[ENDPOINT]").toString();
for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
Original file line number Diff line number Diff line change
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncListConnections() 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
ConnectionServiceSettings.Builder connectionServiceSettingsBuilder =
ConnectionServiceSettings.newBuilder();
connectionServiceSettingsBuilder
Original file line number Diff line number Diff line change
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncListConnections() 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
ConnectionServiceStubSettings.Builder connectionServiceSettingsBuilder =
ConnectionServiceStubSettings.newBuilder();
connectionServiceSettingsBuilder
Original file line number Diff line number Diff line change
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
}

public static void syncEgress() 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
TetherStubSettings.Builder tetherSettingsBuilder = TetherStubSettings.newBuilder();
tetherSettingsBuilder
.egressSettings()
.setRetrySettings(
tetherSettingsBuilder
.egressSettings()
.getRetrySettings()
.toBuilder()
tetherSettingsBuilder.egressSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
TetherStubSettings tetherSettings = tetherSettingsBuilder.build();
Original file line number Diff line number Diff line change
@@ -29,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
TetherSettings tetherSettings =
TetherSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Original file line number Diff line number Diff line change
@@ -27,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
TetherSettings tetherSettings =
TetherSettings.newBuilder()
.setTransportChannelProvider(
Original file line number Diff line number Diff line change
@@ -28,8 +28,11 @@ 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
TetherSettings tetherSettings = TetherSettings.newBuilder().setEndpoint(myEndpoint).build();
TetherClient tetherClient = TetherClient.create(tetherSettings);
}
Original file line number Diff line number Diff line change
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncEgress() 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 (TetherClient tetherClient = TetherClient.create()) {
BidiStream<EgressResponse, EgressRequest> bidiStream = tetherClient.egressCallable().call();
EgressResponse request =
Original file line number Diff line number Diff line change
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
}

public static void syncEgress() 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
TetherSettings.Builder tetherSettingsBuilder = TetherSettings.newBuilder();
tetherSettingsBuilder
.egressSettings()
.setRetrySettings(
tetherSettingsBuilder
.egressSettings()
.getRetrySettings()
.toBuilder()
tetherSettingsBuilder.egressSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
TetherSettings tetherSettings = tetherSettingsBuilder.build();

0 comments on commit 42c4e62

Please sign in to comment.