Skip to content

Commit

Permalink
feat!: Update default transport type for Connect Gateway v1 client to…
Browse files Browse the repository at this point in the history
… "rest"

BREAKING CHANGE: gRPC support is being removed in favor of HTTP support, as gRPC is not currently supported by Connect Gateway.

PiperOrigin-RevId: 695803161
  • Loading branch information
Google APIs authored and copybara-github committed Nov 12, 2024
1 parent 86ab496 commit de97a5f
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions google/cloud/gkeconnect/gateway/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ load(
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
"java_grpc_library",
"java_proto_library",
)

Expand All @@ -59,12 +58,6 @@ java_proto_library(
deps = [":gateway_proto"],
)

java_grpc_library(
name = "gateway_java_grpc",
srcs = [":gateway_proto"],
deps = [":gateway_java_proto"],
)

java_gapic_library(
name = "gateway_java_gapic",
srcs = [":gateway_proto_with_info"],
Expand All @@ -73,9 +66,8 @@ java_gapic_library(
rest_numeric_enums = True,
service_yaml = "connectgateway_v1.yaml",
test_deps = [
":gateway_java_grpc",
],
transport = "grpc+rest",
transport = "rest",
deps = [
":gateway_java_proto",
"//google/api:api_java_proto",
Expand All @@ -85,7 +77,6 @@ java_gapic_library(
java_gapic_test(
name = "gateway_java_gapic_test_suite",
test_classes = [
"com.google.cloud.gkeconnect.gateway.v1.GatewayControlClientHttpJsonTest",
"com.google.cloud.gkeconnect.gateway.v1.GatewayControlClientTest",
],
runtime_deps = [":gateway_java_gapic_test"],
Expand All @@ -95,10 +86,9 @@ java_gapic_test(
java_gapic_assembly_gradle_pkg(
name = "google-cloud-gkeconnect-gateway-v1-java",
include_samples = True,
transport = "grpc+rest",
transport = "rest",
deps = [
":gateway_java_gapic",
":gateway_java_grpc",
":gateway_java_proto",
":gateway_proto",
],
Expand Down Expand Up @@ -134,7 +124,7 @@ go_gapic_library(
release_level = "beta",
rest_numeric_enums = True,
service_yaml = "connectgateway_v1.yaml",
transport = "grpc+rest",
transport = "rest",
deps = [
":gateway_go_proto",
],
Expand Down Expand Up @@ -170,8 +160,9 @@ py_gapic_library(
opt_args = ["warehouse-package-name=google-cloud-gke-connect-gateway"],
rest_numeric_enums = True,
service_yaml = "connectgateway_v1.yaml",
transport = "grpc+rest",
deps = [],
transport = "rest",
deps = [
],
)

py_test(
Expand Down Expand Up @@ -215,7 +206,7 @@ php_gapic_library(
migration_mode = "NEW_SURFACE_ONLY",
rest_numeric_enums = True,
service_yaml = "connectgateway_v1.yaml",
transport = "grpc+rest",
transport = "rest",
deps = [
":gateway_php_proto",
],
Expand Down Expand Up @@ -249,7 +240,7 @@ nodejs_gapic_library(
package = "google.cloud.gkeconnect.gateway.v1",
rest_numeric_enums = True,
service_yaml = "connectgateway_v1.yaml",
transport = "grpc+rest",
transport = "rest",
deps = [],
)

Expand Down Expand Up @@ -287,13 +278,11 @@ ruby_grpc_library(
ruby_cloud_gapic_library(
name = "gateway_ruby_gapic",
srcs = [":gateway_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-gke_connect-gateway-v1",
],
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-gke_connect-gateway-v1"],
grpc_service_config = "connectgateway_v1_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "connectgateway_v1.yaml",
transport = "grpc+rest",
transport = "rest",
deps = [
":gateway_ruby_grpc",
":gateway_ruby_proto",
Expand Down Expand Up @@ -324,7 +313,6 @@ load(

csharp_proto_library(
name = "gateway_csharp_proto",
extra_opts = [],
deps = [":gateway_proto"],
)

Expand All @@ -341,7 +329,7 @@ csharp_gapic_library(
grpc_service_config = "connectgateway_v1_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "connectgateway_v1.yaml",
transport = "grpc+rest",
transport = "rest",
deps = [
":gateway_csharp_grpc",
":gateway_csharp_proto",
Expand Down

0 comments on commit de97a5f

Please sign in to comment.