Skip to content

Commit

Permalink
chore: Enable requesting numeric enums in "transport=rest" responses …
Browse files Browse the repository at this point in the history
…for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport

chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java)
PiperOrigin-RevId: 493113566
  • Loading branch information
Google APIs authored and Copybara-Service committed Dec 5, 2022
1 parent 45694d2 commit 758f0d1
Show file tree
Hide file tree
Showing 286 changed files with 1,926 additions and 1,894 deletions.
2 changes: 1 addition & 1 deletion google/actions/sdk/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ nodejs_gapic_library(
extra_protoc_parameters = ["metadata"],
grpc_service_config = "actions_grpc_service_config.json",
package = "google.actions.sdk.v2",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "actions_v2.yaml",
transport = "grpc+rest",
deps = [],
Expand Down
14 changes: 7 additions & 7 deletions google/ads/admob/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ java_gapic_library(
],
gapic_yaml = "admob_gapic.yaml",
grpc_service_config = "//google/ads/admob:admob_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
test_deps = [
":admob_java_grpc",
],
Expand Down Expand Up @@ -128,7 +128,7 @@ go_gapic_library(
srcs = [":admob_proto_with_info"],
grpc_service_config = None,
importpath = "google.golang.org/google/ads/admob/v1;admob",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "//google/ads/admob:admob_v1.yaml",
transport = "rest",
deps = [
Expand Down Expand Up @@ -181,7 +181,7 @@ py_gapic_library(
srcs = [
":admob_proto_with_info",
],
rest_numeric_enums = False,
rest_numeric_enums = True,
transport = "rest",
)

Expand Down Expand Up @@ -232,7 +232,7 @@ php_gapic_library(
srcs = [":admob_proto"],
gapic_yaml = "admob_gapic.yaml",
grpc_service_config = None,
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "//google/ads/admob:admob_v1.yaml",
transport = "rest",
deps = [
Expand Down Expand Up @@ -266,7 +266,7 @@ nodejs_gapic_library(
extra_protoc_parameters = ["metadata"],
grpc_service_config = None,
package = "google.ads.admob.v1",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "//google/ads/admob:admob_v1.yaml",
transport = "rest",
deps = [],
Expand Down Expand Up @@ -307,7 +307,7 @@ ruby_cloud_gapic_library(
srcs = [":admob_proto_with_info"],
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-admob-v1"],
grpc_service_config = None,
rest_numeric_enums = False,
rest_numeric_enums = True,
deps = [
":admob_ruby_grpc",
":admob_ruby_proto",
Expand Down Expand Up @@ -350,7 +350,7 @@ csharp_gapic_library(
name = "admob_csharp_gapic",
srcs = [":admob_proto_with_info"],
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
deps = [
":admob_csharp_grpc",
":admob_csharp_proto",
Expand Down
14 changes: 7 additions & 7 deletions google/analytics/admin/v1alpha/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ java_gapic_library(
srcs = [":admin_proto_with_info"],
gapic_yaml = "analyticsadmin_gapic.yaml",
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin_v1alpha.yaml",
test_deps = [
":admin_java_grpc",
Expand Down Expand Up @@ -136,7 +136,7 @@ go_gapic_library(
grpc_service_config = "admin_grpc_service_config.json",
importpath = "google.golang.org/google/analytics/admin/v1alpha;admin",
metadata = True,
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin_v1alpha.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -177,7 +177,7 @@ py_gapic_library(
name = "admin_py_gapic",
srcs = [":admin_proto"],
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin_v1alpha.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -228,7 +228,7 @@ php_gapic_library(
name = "admin_php_gapic",
srcs = [":admin_proto_with_info"],
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin_v1alpha.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -263,7 +263,7 @@ nodejs_gapic_library(
extra_protoc_parameters = ["metadata"],
grpc_service_config = "admin_grpc_service_config.json",
package = "google.analytics.admin.v1alpha",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin_v1alpha.yaml",
transport = "grpc+rest",
deps = [],
Expand Down Expand Up @@ -309,7 +309,7 @@ ruby_cloud_gapic_library(
"ruby-cloud-gem-name=google-analytics-admin-v1alpha",
],
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
ruby_cloud_description = "The Analytics Admin API allows for programmatic access to the Google Analytics App+Web configuration data. You can use the Google Analytics Admin API to manage accounts and App+Web properties.",
ruby_cloud_title = "Google Analytics Admin V1alpha",
service_yaml = "analyticsadmin_v1alpha.yaml",
Expand Down Expand Up @@ -356,7 +356,7 @@ csharp_gapic_library(
srcs = [":admin_proto_with_info"],
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin_v1alpha.yaml",
deps = [
":admin_csharp_grpc",
Expand Down
14 changes: 7 additions & 7 deletions google/analytics/admin/v1beta/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ java_gapic_library(
srcs = [":admin_proto_with_info"],
gapic_yaml = None,
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin.yaml",
test_deps = [
":admin_java_grpc",
Expand Down Expand Up @@ -133,7 +133,7 @@ go_gapic_library(
grpc_service_config = "admin_grpc_service_config.json",
importpath = "google.golang.org/google/analytics/admin/v1beta;admin",
metadata = True,
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -173,7 +173,7 @@ py_gapic_library(
name = "admin_py_gapic",
srcs = [":admin_proto"],
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin.yaml",
transport = "grpc+rest",
)
Expand Down Expand Up @@ -222,7 +222,7 @@ php_gapic_library(
name = "admin_php_gapic",
srcs = [":admin_proto_with_info"],
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -257,7 +257,7 @@ nodejs_gapic_library(
extra_protoc_parameters = ["metadata"],
grpc_service_config = "admin_grpc_service_config.json",
package = "google.analytics.admin.v1beta",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin.yaml",
transport = "grpc+rest",
deps = [],
Expand Down Expand Up @@ -300,7 +300,7 @@ ruby_cloud_gapic_library(
"ruby-cloud-gem-name=google-cloud-analytics-admin-v1beta",
],
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin.yaml",
deps = [
":admin_ruby_grpc",
Expand Down Expand Up @@ -345,7 +345,7 @@ csharp_gapic_library(
srcs = [":admin_proto_with_info"],
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
grpc_service_config = "admin_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsadmin.yaml",
deps = [
":admin_csharp_grpc",
Expand Down
14 changes: 7 additions & 7 deletions google/analytics/data/v1alpha/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ java_gapic_library(
srcs = [":data_proto_with_info"],
gapic_yaml = None,
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1alpha.yaml",
test_deps = [
":data_java_grpc",
Expand Down Expand Up @@ -136,7 +136,7 @@ go_gapic_library(
grpc_service_config = "analytics_data_grpc_service_config.json",
importpath = "google.golang.org/google/analytics/data/v1alpha;data",
metadata = True,
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1alpha.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -167,7 +167,7 @@ py_gapic_library(
name = "data_py_gapic",
srcs = [":data_proto"],
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1alpha.yaml",
transport = "grpc+rest",
)
Expand Down Expand Up @@ -205,7 +205,7 @@ php_gapic_library(
name = "data_php_gapic",
srcs = [":data_proto_with_info"],
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1alpha.yaml",
transport = "grpc+rest",
deps = [
Expand All @@ -231,7 +231,7 @@ nodejs_gapic_library(
extra_protoc_parameters = ["metadata"],
grpc_service_config = "analytics_data_grpc_service_config.json",
package = "google.analytics.data.v1alpha",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1alpha.yaml",
transport = "grpc+rest",
deps = [],
Expand Down Expand Up @@ -263,7 +263,7 @@ ruby_cloud_gapic_library(
"ruby-cloud-gem-name=google-cloud-analytics-data-v1alpha",
],
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
deps = [
":data_ruby_grpc",
":data_ruby_proto",
Expand Down Expand Up @@ -296,7 +296,7 @@ csharp_gapic_library(
srcs = [":data_proto_with_info"],
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1alpha.yaml",
deps = [
":data_csharp_grpc",
Expand Down
14 changes: 7 additions & 7 deletions google/analytics/data/v1beta/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ java_gapic_library(
srcs = [":data_proto_with_info"],
gapic_yaml = None,
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1beta.yaml",
test_deps = [
":data_java_grpc",
Expand Down Expand Up @@ -129,7 +129,7 @@ go_gapic_library(
grpc_service_config = "analytics_data_grpc_service_config.json",
importpath = "google.golang.org/google/analytics/data/v1beta;data",
metadata = True,
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1beta.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -169,7 +169,7 @@ py_gapic_library(
name = "data_py_gapic",
srcs = [":data_proto"],
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1beta.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -220,7 +220,7 @@ php_gapic_library(
name = "data_php_gapic",
srcs = [":data_proto_with_info"],
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1beta.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -255,7 +255,7 @@ nodejs_gapic_library(
extra_protoc_parameters = ["metadata"],
grpc_service_config = "analytics_data_grpc_service_config.json",
package = "google.analytics.data.v1beta",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1beta.yaml",
transport = "grpc+rest",
deps = [],
Expand Down Expand Up @@ -303,7 +303,7 @@ ruby_cloud_gapic_library(
"ruby-cloud-service-override=BetaAnalyticsData=AnalyticsData",
],
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
ruby_cloud_description = "The Google Analytics Data API provides programmatic methods to access report data in Google Analytics 4 (GA4) properties. Google Analytics 4 helps you understand how people use your web, iOS, or Android app.",
ruby_cloud_title = "Google Analytics Data V1beta",
service_yaml = "analyticsdata_v1beta.yaml",
Expand Down Expand Up @@ -350,7 +350,7 @@ csharp_gapic_library(
srcs = [":data_proto_with_info"],
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
grpc_service_config = "analytics_data_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "analyticsdata_v1beta.yaml",
deps = [
":data_csharp_grpc",
Expand Down
14 changes: 7 additions & 7 deletions google/api/apikeys/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ java_gapic_library(
srcs = [":apikeys_proto_with_info"],
gapic_yaml = None,
grpc_service_config = "apikeys_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "apikeys_v2.yaml",
test_deps = [
":apikeys_java_grpc",
Expand Down Expand Up @@ -133,7 +133,7 @@ go_gapic_library(
grpc_service_config = "apikeys_grpc_service_config.json",
importpath = "cloud.google.com/go/api/apikeys/apiv2;apikeys",
metadata = True,
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "apikeys_v2.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -181,7 +181,7 @@ py_gapic_library(
"python-gapic-namespace=google.cloud",
"python-gapic-name=api_keys",
],
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "apikeys_v2.yaml",
transport = "grpc+rest",
deps = [],
Expand Down Expand Up @@ -231,7 +231,7 @@ php_gapic_library(
name = "apikeys_php_gapic",
srcs = [":apikeys_proto_with_info"],
grpc_service_config = "apikeys_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "apikeys_v2.yaml",
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -266,7 +266,7 @@ nodejs_gapic_library(
extra_protoc_parameters = ["metadata"],
grpc_service_config = "apikeys_grpc_service_config.json",
package = "google.api.apikeys.v2",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "apikeys_v2.yaml",
transport = "grpc+rest",
deps = [],
Expand Down Expand Up @@ -312,7 +312,7 @@ ruby_cloud_gapic_library(
"ruby-cloud-product-url=https://cloud.google.com/api-keys/",
],
grpc_service_config = "apikeys_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
ruby_cloud_description = "An API key is a simple encrypted string that you can use when calling Google Cloud APIs. The API Keys service manages the API keys associated with developer projects.",
ruby_cloud_title = "API Keys V2",
service_yaml = "apikeys_v2.yaml",
Expand Down Expand Up @@ -359,7 +359,7 @@ csharp_gapic_library(
srcs = [":apikeys_proto_with_info"],
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
grpc_service_config = "apikeys_grpc_service_config.json",
rest_numeric_enums = False,
rest_numeric_enums = True,
service_yaml = "apikeys_v2.yaml",
deps = [
":apikeys_csharp_grpc",
Expand Down
Loading

0 comments on commit 758f0d1

Please sign in to comment.