Skip to content

Commit 05b99f9

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add support for V1 and V2 classification models for the V1 API
PiperOrigin-RevId: 475599241
1 parent eda7bc0 commit 05b99f9

2 files changed

Lines changed: 163 additions & 84 deletions

File tree

google/cloud/language/v1/BUILD.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,17 @@ java_grpc_library(
6464
java_gapic_library(
6565
name = "language_java_gapic",
6666
srcs = [":language_proto_with_info"],
67+
gapic_yaml = None,
6768
grpc_service_config = "language_grpc_service_config.json",
69+
rest_numeric_enums = False,
70+
service_yaml = "language_v1.yaml",
6871
test_deps = [
6972
":language_java_grpc",
7073
],
7174
transport = "grpc+rest",
7275
deps = [
7376
":language_java_proto",
77+
"//google/api:api_java_proto",
7478
],
7579
)
7680

@@ -123,6 +127,7 @@ go_gapic_library(
123127
grpc_service_config = "language_grpc_service_config.json",
124128
importpath = "cloud.google.com/go/language/apiv1;language",
125129
metadata = True,
130+
rest_numeric_enums = False,
126131
service_yaml = "language_v1.yaml",
127132
transport = "grpc+rest",
128133
deps = [
@@ -162,7 +167,11 @@ py_gapic_library(
162167
name = "language_py_gapic",
163168
srcs = [":language_proto"],
164169
grpc_service_config = "language_grpc_service_config.json",
170+
rest_numeric_enums = False,
171+
service_yaml = "language_v1.yaml",
165172
transport = "grpc",
173+
deps = [
174+
],
166175
)
167176

168177
py_test(
@@ -209,6 +218,7 @@ php_gapic_library(
209218
name = "language_php_gapic",
210219
srcs = [":language_proto_with_info"],
211220
grpc_service_config = "language_grpc_service_config.json",
221+
rest_numeric_enums = False,
212222
service_yaml = "language_v1.yaml",
213223
deps = [
214224
":language_php_grpc",
@@ -242,6 +252,7 @@ nodejs_gapic_library(
242252
extra_protoc_parameters = ["metadata"],
243253
grpc_service_config = "language_grpc_service_config.json",
244254
package = "google.cloud.language.v1",
255+
rest_numeric_enums = False,
245256
service_yaml = "language_v1.yaml",
246257
deps = [],
247258
)
@@ -287,8 +298,10 @@ ruby_cloud_gapic_library(
287298
"ruby-cloud-product-url=https://cloud.google.com/natural-language",
288299
],
289300
grpc_service_config = "language_grpc_service_config.json",
301+
rest_numeric_enums = False,
290302
ruby_cloud_description = "Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations.",
291303
ruby_cloud_title = "Natural Language V1",
304+
service_yaml = "language_v1.yaml",
292305
deps = [
293306
":language_ruby_grpc",
294307
":language_ruby_proto",
@@ -332,6 +345,7 @@ csharp_gapic_library(
332345
srcs = [":language_proto_with_info"],
333346
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
334347
grpc_service_config = "language_grpc_service_config.json",
348+
rest_numeric_enums = False,
335349
service_yaml = "language_v1.yaml",
336350
deps = [
337351
":language_csharp_grpc",

0 commit comments

Comments
 (0)