Skip to content

Commit

Permalink
chore: Set rest_numeric_enums = False for all gapic rules explicitly (
Browse files Browse the repository at this point in the history
#265)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 485623855

Source-Link: https://togithub.com/googleapis/googleapis/commit/807125e7953e32535710924fe4bf0362ac93754d

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c4ddd6d651da69658a4762c5eafff5cd8f0e25c5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzRkZGQ2ZDY1MWRhNjk2NThhNDc2MmM1ZWFmZmY1Y2Q4ZjBlMjVjNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 8, 2022
1 parent 40a9f3a commit 7e00909
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@
* // - 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(
* ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* ConnectionServiceSettings.newHttpJsonBuilder().build();
* ConnectionServiceClient connectionServiceClient =
* ConnectionServiceClient.create(connectionServiceSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@
* // - 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(
* TetherSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* TetherSettings tetherSettings = TetherSettings.newHttpJsonBuilder().build();
* TetherClient tetherClient = TetherClient.create(tetherSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionserviceclient_create_setcredentialsprovider_sync]
// [START apigeeconnect_v1_generated_ConnectionService_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
ConnectionServiceClient.create(connectionServiceSettings);
}
}
// [END apigeeconnect_v1_generated_connectionserviceclient_create_setcredentialsprovider_sync]
// [END apigeeconnect_v1_generated_ConnectionService_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionserviceclient_create_setcredentialsprovider1_sync]
// [START apigeeconnect_v1_generated_ConnectionService_Create_SetCredentialsProvider1_sync]
import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings;

Expand All @@ -33,12 +33,9 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
// - 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(
ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
ConnectionServiceSettings.newHttpJsonBuilder().build();
ConnectionServiceClient connectionServiceClient =
ConnectionServiceClient.create(connectionServiceSettings);
}
}
// [END apigeeconnect_v1_generated_connectionserviceclient_create_setcredentialsprovider1_sync]
// [END apigeeconnect_v1_generated_ConnectionService_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionserviceclient_create_setendpoint_sync]
// [START apigeeconnect_v1_generated_ConnectionService_Create_SetEndpoint_sync]
import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings;
import com.google.cloud.apigeeconnect.v1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
ConnectionServiceClient.create(connectionServiceSettings);
}
}
// [END apigeeconnect_v1_generated_connectionserviceclient_create_setendpoint_sync]
// [END apigeeconnect_v1_generated_ConnectionService_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_async]
// [START apigeeconnect_v1_generated_ConnectionService_ListConnections_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.apigeeconnect.v1.Connection;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncListConnections() throws Exception {
}
}
}
// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_async]
// [END apigeeconnect_v1_generated_ConnectionService_ListConnections_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_paged_async]
// [START apigeeconnect_v1_generated_ConnectionService_ListConnections_Paged_async]
import com.google.cloud.apigeeconnect.v1.Connection;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient;
import com.google.cloud.apigeeconnect.v1.EndpointName;
Expand Down Expand Up @@ -59,4 +59,4 @@ public static void asyncListConnectionsPaged() throws Exception {
}
}
}
// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_paged_async]
// [END apigeeconnect_v1_generated_ConnectionService_ListConnections_Paged_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_sync]
// [START apigeeconnect_v1_generated_ConnectionService_ListConnections_sync]
import com.google.cloud.apigeeconnect.v1.Connection;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient;
import com.google.cloud.apigeeconnect.v1.EndpointName;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void syncListConnections() throws Exception {
}
}
}
// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_sync]
// [END apigeeconnect_v1_generated_ConnectionService_ListConnections_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_endpointname_sync]
// [START apigeeconnect_v1_generated_ConnectionService_ListConnections_Endpointname_sync]
import com.google.cloud.apigeeconnect.v1.Connection;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient;
import com.google.cloud.apigeeconnect.v1.EndpointName;
Expand All @@ -41,4 +41,4 @@ public static void syncListConnectionsEndpointname() throws Exception {
}
}
}
// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_endpointname_sync]
// [END apigeeconnect_v1_generated_ConnectionService_ListConnections_Endpointname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_string_sync]
// [START apigeeconnect_v1_generated_ConnectionService_ListConnections_String_sync]
import com.google.cloud.apigeeconnect.v1.Connection;
import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient;
import com.google.cloud.apigeeconnect.v1.EndpointName;
Expand All @@ -41,4 +41,4 @@ public static void syncListConnectionsString() throws Exception {
}
}
}
// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_string_sync]
// [END apigeeconnect_v1_generated_ConnectionService_ListConnections_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_connectionservicesettings_listconnections_sync]
// [START apigeeconnect_v1_generated_ConnectionServiceSettings_ListConnections_sync]
import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings;
import java.time.Duration;

Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncListConnections() throws Exception {
ConnectionServiceSettings connectionServiceSettings = connectionServiceSettingsBuilder.build();
}
}
// [END apigeeconnect_v1_generated_connectionservicesettings_listconnections_sync]
// [END apigeeconnect_v1_generated_ConnectionServiceSettings_ListConnections_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.stub.samples;

// [START apigeeconnect_v1_generated_connectionservicestubsettings_listconnections_sync]
// [START apigeeconnect_v1_generated_ConnectionServiceStubSettings_ListConnections_sync]
import com.google.cloud.apigeeconnect.v1.stub.ConnectionServiceStubSettings;
import java.time.Duration;

Expand Down Expand Up @@ -47,4 +47,4 @@ public static void syncListConnections() throws Exception {
connectionServiceSettingsBuilder.build();
}
}
// [END apigeeconnect_v1_generated_connectionservicestubsettings_listconnections_sync]
// [END apigeeconnect_v1_generated_ConnectionServiceStubSettings_ListConnections_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.stub.samples;

// [START apigeeconnect_v1_generated_tetherstubsettings_egress_sync]
// [START apigeeconnect_v1_generated_TetherStubSettings_Egress_sync]
import com.google.cloud.apigeeconnect.v1.stub.TetherStubSettings;
import java.time.Duration;

Expand All @@ -42,4 +42,4 @@ public static void syncEgress() throws Exception {
TetherStubSettings tetherSettings = tetherSettingsBuilder.build();
}
}
// [END apigeeconnect_v1_generated_tetherstubsettings_egress_sync]
// [END apigeeconnect_v1_generated_TetherStubSettings_Egress_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_tetherclient_create_setcredentialsprovider_sync]
// [START apigeeconnect_v1_generated_Tether_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.apigeeconnect.v1.TetherClient;
import com.google.cloud.apigeeconnect.v1.TetherSettings;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
TetherClient tetherClient = TetherClient.create(tetherSettings);
}
}
// [END apigeeconnect_v1_generated_tetherclient_create_setcredentialsprovider_sync]
// [END apigeeconnect_v1_generated_Tether_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_tetherclient_create_setcredentialsprovider1_sync]
// [START apigeeconnect_v1_generated_Tether_Create_SetCredentialsProvider1_sync]
import com.google.cloud.apigeeconnect.v1.TetherClient;
import com.google.cloud.apigeeconnect.v1.TetherSettings;

Expand All @@ -32,12 +32,8 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
// - 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(
TetherSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
TetherSettings tetherSettings = TetherSettings.newHttpJsonBuilder().build();
TetherClient tetherClient = TetherClient.create(tetherSettings);
}
}
// [END apigeeconnect_v1_generated_tetherclient_create_setcredentialsprovider1_sync]
// [END apigeeconnect_v1_generated_Tether_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_tetherclient_create_setendpoint_sync]
// [START apigeeconnect_v1_generated_Tether_Create_SetEndpoint_sync]
import com.google.cloud.apigeeconnect.v1.TetherClient;
import com.google.cloud.apigeeconnect.v1.TetherSettings;
import com.google.cloud.apigeeconnect.v1.myEndpoint;
Expand All @@ -37,4 +37,4 @@ public static void syncCreateSetEndpoint() throws Exception {
TetherClient tetherClient = TetherClient.create(tetherSettings);
}
}
// [END apigeeconnect_v1_generated_tetherclient_create_setendpoint_sync]
// [END apigeeconnect_v1_generated_Tether_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_tetherclient_egress_async]
// [START apigeeconnect_v1_generated_Tether_Egress_async]
import com.google.api.gax.rpc.BidiStream;
import com.google.cloud.apigeeconnect.v1.EgressRequest;
import com.google.cloud.apigeeconnect.v1.EgressResponse;
Expand Down Expand Up @@ -56,4 +56,4 @@ public static void asyncEgress() throws Exception {
}
}
}
// [END apigeeconnect_v1_generated_tetherclient_egress_async]
// [END apigeeconnect_v1_generated_Tether_Egress_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.apigeeconnect.v1.samples;

// [START apigeeconnect_v1_generated_tethersettings_egress_sync]
// [START apigeeconnect_v1_generated_TetherSettings_Egress_sync]
import com.google.cloud.apigeeconnect.v1.TetherSettings;
import java.time.Duration;

Expand All @@ -42,4 +42,4 @@ public static void syncEgress() throws Exception {
TetherSettings tetherSettings = tetherSettingsBuilder.build();
}
}
// [END apigeeconnect_v1_generated_tethersettings_egress_sync]
// [END apigeeconnect_v1_generated_TetherSettings_Egress_sync]

0 comments on commit 7e00909

Please sign in to comment.