Skip to content

Commit

Permalink
feat: enable transport = "grpc+rest" by default for nodejs and php …
Browse files Browse the repository at this point in the history
…rules (#118)

For both of these langauges `transport = "grpc+rest"` is a default behavior. Enabling it here for consistency and for easier regapic rollout and clearer description of what is actually being generated in every build file (i.e. by looking into the file it is easy to see which transport is being generated without going into default transports considerations).
  • Loading branch information
vam-google committed Nov 2, 2022
1 parent e4e39ee commit 4c04cbb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ php_gapic_library(
grpc_service_config = {{grpc_service_config}},
rest_numeric_enums = {{rest_numeric_enums}},
service_yaml = {{service_yaml}},
transport = {{transport}},
deps = [
":{{name}}_php_grpc",
":{{name}}_php_proto",
Expand Down Expand Up @@ -251,6 +252,7 @@ nodejs_gapic_library(
package = "{{package}}",
rest_numeric_enums = {{rest_numeric_enums}},
service_yaml = {{service_yaml}},
transport = {{transport}},
deps = [],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ php_gapic_library(
grpc_service_config = "library_example_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "library_example_v1.yaml",
transport = "grpc+rest",
deps = [
":library_php_grpc",
":library_php_proto",
Expand Down Expand Up @@ -277,6 +278,7 @@ nodejs_gapic_library(
package = "google.example.library.v1",
rest_numeric_enums = True,
service_yaml = "library_example_v1.yaml",
transport = "grpc+rest",
deps = [],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ php_gapic_library(
grpc_service_config = "library_example_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "library_example_v1.yaml",
transport = "grpc+rest",
deps = [
":library_php_grpc",
":library_php_proto",
Expand Down Expand Up @@ -280,6 +281,7 @@ nodejs_gapic_library(
package = "google.example.library.v1",
rest_numeric_enums = True,
service_yaml = "library_example_v1.yaml",
transport = "grpc+rest",
deps = [],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ php_gapic_library(
grpc_service_config = "library_example_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "//google/example/library:library_example_v1.yaml",
transport = "grpc+rest",
deps = [
":library_php_grpc",
":library_php_proto",
Expand Down Expand Up @@ -268,6 +269,7 @@ nodejs_gapic_library(
package = "google.example.library.v1",
rest_numeric_enums = True,
service_yaml = "//google/example/library:library_example_v1.yaml",
transport = "grpc+rest",
deps = [],
)

Expand Down

0 comments on commit 4c04cbb

Please sign in to comment.