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
#866)

- [ ] 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 6c11ed4 commit 8798045
Show file tree
Hide file tree
Showing 110 changed files with 220 additions and 236 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,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
* RecommenderSettings recommenderSettings =
* RecommenderSettings.newBuilder()
* .setTransportChannelProvider(
* RecommenderSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* RecommenderSettings recommenderSettings = RecommenderSettings.newHttpJsonBuilder().build();
* RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,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
* RecommenderSettings recommenderSettings =
* RecommenderSettings.newBuilder()
* .setTransportChannelProvider(
* RecommenderSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* RecommenderSettings recommenderSettings = RecommenderSettings.newHttpJsonBuilder().build();
* RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_create_setcredentialsprovider_sync]
// [START recommender_v1_generated_Recommender_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.recommender.v1.RecommenderClient;
import com.google.cloud.recommender.v1.RecommenderSettings;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings);
}
}
// [END recommender_v1_generated_recommenderclient_create_setcredentialsprovider_sync]
// [END recommender_v1_generated_Recommender_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_create_setcredentialsprovider1_sync]
// [START recommender_v1_generated_Recommender_Create_SetCredentialsProvider1_sync]
import com.google.cloud.recommender.v1.RecommenderClient;
import com.google.cloud.recommender.v1.RecommenderSettings;

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
RecommenderSettings recommenderSettings =
RecommenderSettings.newBuilder()
.setTransportChannelProvider(
RecommenderSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
RecommenderSettings recommenderSettings = RecommenderSettings.newHttpJsonBuilder().build();
RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings);
}
}
// [END recommender_v1_generated_recommenderclient_create_setcredentialsprovider1_sync]
// [END recommender_v1_generated_Recommender_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_create_setendpoint_sync]
// [START recommender_v1_generated_Recommender_Create_SetEndpoint_sync]
import com.google.cloud.recommender.v1.RecommenderClient;
import com.google.cloud.recommender.v1.RecommenderSettings;
import com.google.cloud.recommender.v1.myEndpoint;
Expand All @@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception {
RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings);
}
}
// [END recommender_v1_generated_recommenderclient_create_setendpoint_sync]
// [END recommender_v1_generated_Recommender_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getinsight_async]
// [START recommender_v1_generated_Recommender_GetInsight_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.recommender.v1.GetInsightRequest;
import com.google.cloud.recommender.v1.Insight;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncGetInsight() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getinsight_async]
// [END recommender_v1_generated_Recommender_GetInsight_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getinsight_sync]
// [START recommender_v1_generated_Recommender_GetInsight_sync]
import com.google.cloud.recommender.v1.GetInsightRequest;
import com.google.cloud.recommender.v1.Insight;
import com.google.cloud.recommender.v1.InsightName;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncGetInsight() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getinsight_sync]
// [END recommender_v1_generated_Recommender_GetInsight_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getinsight_insightname_sync]
// [START recommender_v1_generated_Recommender_GetInsight_Insightname_sync]
import com.google.cloud.recommender.v1.Insight;
import com.google.cloud.recommender.v1.InsightName;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand All @@ -41,4 +41,4 @@ public static void syncGetInsightInsightname() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getinsight_insightname_sync]
// [END recommender_v1_generated_Recommender_GetInsight_Insightname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getinsight_string_sync]
// [START recommender_v1_generated_Recommender_GetInsight_String_sync]
import com.google.cloud.recommender.v1.Insight;
import com.google.cloud.recommender.v1.InsightName;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand All @@ -42,4 +42,4 @@ public static void syncGetInsightString() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getinsight_string_sync]
// [END recommender_v1_generated_Recommender_GetInsight_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getinsighttypeconfig_async]
// [START recommender_v1_generated_Recommender_GetInsightTypeConfig_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.recommender.v1.GetInsightTypeConfigRequest;
import com.google.cloud.recommender.v1.InsightTypeConfig;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncGetInsightTypeConfig() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getinsighttypeconfig_async]
// [END recommender_v1_generated_Recommender_GetInsightTypeConfig_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getinsighttypeconfig_sync]
// [START recommender_v1_generated_Recommender_GetInsightTypeConfig_sync]
import com.google.cloud.recommender.v1.GetInsightTypeConfigRequest;
import com.google.cloud.recommender.v1.InsightTypeConfig;
import com.google.cloud.recommender.v1.InsightTypeConfigName;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncGetInsightTypeConfig() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getinsighttypeconfig_sync]
// [END recommender_v1_generated_Recommender_GetInsightTypeConfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getinsighttypeconfig_insighttypeconfigname_sync]
// [START recommender_v1_generated_Recommender_GetInsightTypeConfig_Insighttypeconfigname_sync]
import com.google.cloud.recommender.v1.InsightTypeConfig;
import com.google.cloud.recommender.v1.InsightTypeConfigName;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand All @@ -41,4 +41,4 @@ public static void syncGetInsightTypeConfigInsighttypeconfigname() throws Except
}
}
}
// [END recommender_v1_generated_recommenderclient_getinsighttypeconfig_insighttypeconfigname_sync]
// [END recommender_v1_generated_Recommender_GetInsightTypeConfig_Insighttypeconfigname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getinsighttypeconfig_string_sync]
// [START recommender_v1_generated_Recommender_GetInsightTypeConfig_String_sync]
import com.google.cloud.recommender.v1.InsightTypeConfig;
import com.google.cloud.recommender.v1.InsightTypeConfigName;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand All @@ -42,4 +42,4 @@ public static void syncGetInsightTypeConfigString() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getinsighttypeconfig_string_sync]
// [END recommender_v1_generated_Recommender_GetInsightTypeConfig_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getrecommendation_async]
// [START recommender_v1_generated_Recommender_GetRecommendation_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.recommender.v1.GetRecommendationRequest;
import com.google.cloud.recommender.v1.Recommendation;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncGetRecommendation() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getrecommendation_async]
// [END recommender_v1_generated_Recommender_GetRecommendation_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getrecommendation_sync]
// [START recommender_v1_generated_Recommender_GetRecommendation_sync]
import com.google.cloud.recommender.v1.GetRecommendationRequest;
import com.google.cloud.recommender.v1.Recommendation;
import com.google.cloud.recommender.v1.RecommendationName;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncGetRecommendation() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getrecommendation_sync]
// [END recommender_v1_generated_Recommender_GetRecommendation_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getrecommendation_recommendationname_sync]
// [START recommender_v1_generated_Recommender_GetRecommendation_Recommendationname_sync]
import com.google.cloud.recommender.v1.Recommendation;
import com.google.cloud.recommender.v1.RecommendationName;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand All @@ -41,4 +41,4 @@ public static void syncGetRecommendationRecommendationname() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getrecommendation_recommendationname_sync]
// [END recommender_v1_generated_Recommender_GetRecommendation_Recommendationname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getrecommendation_string_sync]
// [START recommender_v1_generated_Recommender_GetRecommendation_String_sync]
import com.google.cloud.recommender.v1.Recommendation;
import com.google.cloud.recommender.v1.RecommendationName;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand All @@ -42,4 +42,4 @@ public static void syncGetRecommendationString() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getrecommendation_string_sync]
// [END recommender_v1_generated_Recommender_GetRecommendation_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getrecommenderconfig_async]
// [START recommender_v1_generated_Recommender_GetRecommenderConfig_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.recommender.v1.GetRecommenderConfigRequest;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncGetRecommenderConfig() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getrecommenderconfig_async]
// [END recommender_v1_generated_Recommender_GetRecommenderConfig_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getrecommenderconfig_sync]
// [START recommender_v1_generated_Recommender_GetRecommenderConfig_sync]
import com.google.cloud.recommender.v1.GetRecommenderConfigRequest;
import com.google.cloud.recommender.v1.RecommenderClient;
import com.google.cloud.recommender.v1.RecommenderConfig;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncGetRecommenderConfig() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getrecommenderconfig_sync]
// [END recommender_v1_generated_Recommender_GetRecommenderConfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getrecommenderconfig_recommenderconfigname_sync]
// [START recommender_v1_generated_Recommender_GetRecommenderConfig_Recommenderconfigname_sync]
import com.google.cloud.recommender.v1.RecommenderClient;
import com.google.cloud.recommender.v1.RecommenderConfig;
import com.google.cloud.recommender.v1.RecommenderConfigName;
Expand All @@ -41,4 +41,4 @@ public static void syncGetRecommenderConfigRecommenderconfigname() throws Except
}
}
}
// [END recommender_v1_generated_recommenderclient_getrecommenderconfig_recommenderconfigname_sync]
// [END recommender_v1_generated_Recommender_GetRecommenderConfig_Recommenderconfigname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_getrecommenderconfig_string_sync]
// [START recommender_v1_generated_Recommender_GetRecommenderConfig_String_sync]
import com.google.cloud.recommender.v1.RecommenderClient;
import com.google.cloud.recommender.v1.RecommenderConfig;
import com.google.cloud.recommender.v1.RecommenderConfigName;
Expand All @@ -42,4 +42,4 @@ public static void syncGetRecommenderConfigString() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_getrecommenderconfig_string_sync]
// [END recommender_v1_generated_Recommender_GetRecommenderConfig_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_listinsights_async]
// [START recommender_v1_generated_Recommender_ListInsights_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.recommender.v1.Insight;
import com.google.cloud.recommender.v1.InsightTypeName;
Expand Down Expand Up @@ -54,4 +54,4 @@ public static void asyncListInsights() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_listinsights_async]
// [END recommender_v1_generated_Recommender_ListInsights_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_listinsights_paged_async]
// [START recommender_v1_generated_Recommender_ListInsights_Paged_async]
import com.google.cloud.recommender.v1.Insight;
import com.google.cloud.recommender.v1.InsightTypeName;
import com.google.cloud.recommender.v1.ListInsightsRequest;
Expand Down Expand Up @@ -62,4 +62,4 @@ public static void asyncListInsightsPaged() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_listinsights_paged_async]
// [END recommender_v1_generated_Recommender_ListInsights_Paged_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_listinsights_sync]
// [START recommender_v1_generated_Recommender_ListInsights_sync]
import com.google.cloud.recommender.v1.Insight;
import com.google.cloud.recommender.v1.InsightTypeName;
import com.google.cloud.recommender.v1.ListInsightsRequest;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void syncListInsights() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_listinsights_sync]
// [END recommender_v1_generated_Recommender_ListInsights_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_listinsights_insighttypename_sync]
// [START recommender_v1_generated_Recommender_ListInsights_Insighttypename_sync]
import com.google.cloud.recommender.v1.Insight;
import com.google.cloud.recommender.v1.InsightTypeName;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand All @@ -43,4 +43,4 @@ public static void syncListInsightsInsighttypename() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_listinsights_insighttypename_sync]
// [END recommender_v1_generated_Recommender_ListInsights_Insighttypename_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START recommender_v1_generated_recommenderclient_listinsights_string_sync]
// [START recommender_v1_generated_Recommender_ListInsights_String_sync]
import com.google.cloud.recommender.v1.Insight;
import com.google.cloud.recommender.v1.InsightTypeName;
import com.google.cloud.recommender.v1.RecommenderClient;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void syncListInsightsString() throws Exception {
}
}
}
// [END recommender_v1_generated_recommenderclient_listinsights_string_sync]
// [END recommender_v1_generated_Recommender_ListInsights_String_sync]
Loading

0 comments on commit 8798045

Please sign in to comment.