PiperOrigin-RevId: 375542076pull/744/head
parent
a185afb982
commit
fc4139da94
6 changed files with 192 additions and 49 deletions
@ -1,19 +0,0 @@ |
||||
type: google.api.Service |
||||
config_version: 2 |
||||
name: language.googleapis.com |
||||
title: Google Cloud Natural Language API |
||||
|
||||
apis: |
||||
- name: google.cloud.language.v1beta2.LanguageService |
||||
|
||||
documentation: |
||||
summary: |
||||
'Google Cloud Natural Language API provides natural language understanding |
||||
technologies to developers. Examples include sentiment analysis, entity |
||||
recognition, and text annotations.' |
||||
|
||||
authentication: |
||||
rules: |
||||
- selector: '*' |
||||
oauth: |
||||
canonical_scopes: https://www.googleapis.com/auth/cloud-platform |
@ -0,0 +1,162 @@ |
||||
# This file was automatically generated by BuildFileGenerator |
||||
|
||||
# This is an API workspace, having public visibility by default makes perfect sense. |
||||
package(default_visibility = ["//visibility:public"]) |
||||
|
||||
############################################################################## |
||||
# Common |
||||
############################################################################## |
||||
load("@rules_proto//proto:defs.bzl", "proto_library") |
||||
|
||||
proto_library( |
||||
name = "language_proto", |
||||
srcs = [ |
||||
"language_service.proto", |
||||
], |
||||
deps = [ |
||||
"//google/api:annotations_proto", |
||||
], |
||||
) |
||||
|
||||
############################################################################## |
||||
# Java |
||||
############################################################################## |
||||
load( |
||||
"@com_google_googleapis_imports//:imports.bzl", |
||||
"java_grpc_library", |
||||
"java_proto_library", |
||||
) |
||||
|
||||
java_proto_library( |
||||
name = "language_java_proto", |
||||
deps = [":language_proto"], |
||||
) |
||||
|
||||
java_grpc_library( |
||||
name = "language_java_grpc", |
||||
srcs = [":language_proto"], |
||||
deps = [":language_java_proto"], |
||||
) |
||||
|
||||
############################################################################## |
||||
# Go |
||||
############################################################################## |
||||
load( |
||||
"@com_google_googleapis_imports//:imports.bzl", |
||||
"go_proto_library", |
||||
) |
||||
|
||||
go_proto_library( |
||||
name = "language_go_proto", |
||||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], |
||||
importpath = "google.golang.org/genproto/googleapis/cloud/language/v1beta1", |
||||
protos = [":language_proto"], |
||||
deps = [ |
||||
"//google/api:annotations_go_proto", |
||||
], |
||||
) |
||||
|
||||
############################################################################## |
||||
# Python |
||||
############################################################################## |
||||
load( |
||||
"@com_google_googleapis_imports//:imports.bzl", |
||||
"moved_proto_library", |
||||
"py_grpc_library", |
||||
"py_proto_library", |
||||
) |
||||
|
||||
moved_proto_library( |
||||
name = "language_moved_proto", |
||||
srcs = [":language_proto"], |
||||
deps = [ |
||||
"//google/api:annotations_proto", |
||||
], |
||||
) |
||||
|
||||
py_proto_library( |
||||
name = "language_py_proto", |
||||
plugin = "@protoc_docs_plugin//:docs_plugin", |
||||
deps = [":language_moved_proto"], |
||||
) |
||||
|
||||
py_grpc_library( |
||||
name = "language_py_grpc", |
||||
srcs = [":language_moved_proto"], |
||||
deps = [":language_py_proto"], |
||||
) |
||||
|
||||
############################################################################## |
||||
# PHP |
||||
############################################################################## |
||||
load( |
||||
"@com_google_googleapis_imports//:imports.bzl", |
||||
"php_grpc_library", |
||||
"php_proto_library", |
||||
) |
||||
|
||||
php_proto_library( |
||||
name = "language_php_proto", |
||||
deps = [":language_proto"], |
||||
) |
||||
|
||||
php_grpc_library( |
||||
name = "language_php_grpc", |
||||
srcs = [":language_proto"], |
||||
deps = [":language_php_proto"], |
||||
) |
||||
|
||||
############################################################################## |
||||
# Node.js |
||||
############################################################################## |
||||
load( |
||||
"@com_google_googleapis_imports//:imports.bzl", |
||||
"nodejs_gapic_assembly_pkg", |
||||
"nodejs_gapic_library", |
||||
) |
||||
|
||||
|
||||
############################################################################## |
||||
# Ruby |
||||
############################################################################## |
||||
load( |
||||
"@com_google_googleapis_imports//:imports.bzl", |
||||
"ruby_grpc_library", |
||||
"ruby_proto_library", |
||||
) |
||||
|
||||
ruby_proto_library( |
||||
name = "language_ruby_proto", |
||||
deps = [":language_proto"], |
||||
) |
||||
|
||||
ruby_grpc_library( |
||||
name = "language_ruby_grpc", |
||||
srcs = [":language_proto"], |
||||
deps = [":language_ruby_proto"], |
||||
) |
||||
|
||||
############################################################################## |
||||
# C# |
||||
############################################################################## |
||||
load( |
||||
"@com_google_googleapis_imports//:imports.bzl", |
||||
"csharp_grpc_library", |
||||
"csharp_proto_library", |
||||
) |
||||
|
||||
csharp_proto_library( |
||||
name = "language_csharp_proto", |
||||
deps = [":language_proto"], |
||||
) |
||||
|
||||
csharp_grpc_library( |
||||
name = "language_csharp_grpc", |
||||
srcs = [":language_proto"], |
||||
deps = [":language_csharp_proto"], |
||||
) |
||||
|
||||
############################################################################## |
||||
# C++ |
||||
############################################################################## |
||||
# Put your C++ code here |
@ -1,21 +1,19 @@ |
||||
type: google.api.Service |
||||
config_version: 3 |
||||
config_version: 2 |
||||
name: language.googleapis.com |
||||
title: Cloud Natural Language API |
||||
title: Google Cloud Natural Language API |
||||
|
||||
apis: |
||||
- name: google.cloud.language.v1beta2.LanguageService |
||||
|
||||
documentation: |
||||
summary: |- |
||||
Provides natural language understanding technologies, such as sentiment |
||||
analysis, entity recognition, entity sentiment analysis, and other text |
||||
annotations, to developers. |
||||
summary: |
||||
'Google Cloud Natural Language API provides natural language understanding |
||||
technologies to developers. Examples include sentiment analysis, entity |
||||
recognition, and text annotations.' |
||||
|
||||
authentication: |
||||
rules: |
||||
- selector: 'google.cloud.language.v1beta2.LanguageService.*' |
||||
- selector: '*' |
||||
oauth: |
||||
canonical_scopes: |- |
||||
https://www.googleapis.com/auth/cloud-language, |
||||
https://www.googleapis.com/auth/cloud-platform |
||||
canonical_scopes: https://www.googleapis.com/auth/cloud-platform |
||||
|
Loading…
Reference in new issue