• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file was automatically generated by BuildFileGenerator
2# https://github.com/googleapis/rules_gapic/tree/master/bazel
3
4# Most of the manual changes to this file will be overwritten.
5# It's **only** allowed to change the following rule attribute values:
6# - names of *_gapic_assembly_* rules
7# - certain parameters of *_gapic_library rules, including but not limited to:
8#    * extra_protoc_parameters
9#    * extra_protoc_file_parameters
10# The complete list of preserved parameters can be found in the source code.
11
12# This is an API workspace, having public visibility by default makes perfect sense.
13package(default_visibility = ["//visibility:public"])
14
15##############################################################################
16# Common
17##############################################################################
18load("@rules_proto//proto:defs.bzl", "proto_library")
19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20
21proto_library(
22    name = "activity_proto",
23    srcs = [
24        "action.proto",
25        "actor.proto",
26        "common.proto",
27        "drive_activity_service.proto",
28        "query_drive_activity_request.proto",
29        "query_drive_activity_response.proto",
30        "target.proto",
31    ],
32    deps = [
33        "//google/api:annotations_proto",
34        "//google/api:client_proto",
35        "@com_google_protobuf//:timestamp_proto",
36    ],
37)
38
39proto_library_with_info(
40    name = "activity_proto_with_info",
41    deps = [
42        ":activity_proto",
43        "//google/cloud:common_resources_proto",
44    ],
45)
46
47##############################################################################
48# Java
49##############################################################################
50load(
51    "@com_google_googleapis_imports//:imports.bzl",
52    "java_gapic_assembly_gradle_pkg",
53    "java_gapic_library",
54    "java_gapic_test",
55    "java_grpc_library",
56    "java_proto_library",
57)
58
59java_proto_library(
60    name = "activity_java_proto",
61    deps = [":activity_proto"],
62)
63
64java_grpc_library(
65    name = "activity_java_grpc",
66    srcs = [":activity_proto"],
67    deps = [":activity_java_proto"],
68)
69
70java_gapic_library(
71    name = "activity_java_gapic",
72    srcs = [":activity_proto_with_info"],
73    gapic_yaml = None,
74    grpc_service_config = "driveactivity_grpc_service_config.json",
75    rest_numeric_enums = True,
76    service_yaml = "driveactivity_v2.yaml",
77    test_deps = [
78        ":activity_java_grpc",
79    ],
80    transport = "grpc+rest",
81    deps = [
82        ":activity_java_proto",
83        "//google/api:api_java_proto",
84    ],
85)
86
87java_gapic_test(
88    name = "activity_java_gapic_test_suite",
89    test_classes = [
90        "com.google.apps.drive.activity.v2.DriveActivityServiceClientHttpJsonTest",
91        "com.google.apps.drive.activity.v2.DriveActivityServiceClientTest",
92    ],
93    runtime_deps = [":activity_java_gapic_test"],
94)
95
96# Open Source Packages
97java_gapic_assembly_gradle_pkg(
98    name = "google-apps-drive-activity-v2-java",
99    include_samples = True,
100    transport = "grpc+rest",
101    deps = [
102        ":activity_java_gapic",
103        ":activity_java_grpc",
104        ":activity_java_proto",
105        ":activity_proto",
106    ],
107)
108
109##############################################################################
110# Go
111##############################################################################
112load(
113    "@com_google_googleapis_imports//:imports.bzl",
114    "go_gapic_assembly_pkg",
115    "go_gapic_library",
116    "go_proto_library",
117)
118
119go_proto_library(
120    name = "activity_go_proto",
121    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
122    importpath = "google.golang.org/genproto/googleapis/apps/drive/activity/v2",
123    protos = [":activity_proto"],
124    deps = [
125        "//google/api:annotations_go_proto",
126    ],
127)
128
129go_gapic_library(
130    name = "activity_go_gapic",
131    srcs = [":activity_proto_with_info"],
132    grpc_service_config = "driveactivity_grpc_service_config.json",
133    importpath = "google.golang.org/google/apps/drive/activity/v2;activity",
134    metadata = True,
135    rest_numeric_enums = True,
136    service_yaml = "driveactivity_v2.yaml",
137    transport = "grpc+rest",
138    deps = [
139        ":activity_go_proto",
140    ],
141)
142
143# Open Source Packages
144go_gapic_assembly_pkg(
145    name = "gapi-apps-drive-activity-v2-go",
146    deps = [
147        ":activity_go_gapic",
148        ":activity_go_gapic_srcjar-metadata.srcjar",
149        ":activity_go_gapic_srcjar-snippets.srcjar",
150        ":activity_go_gapic_srcjar-test.srcjar",
151        ":activity_go_proto",
152    ],
153)
154
155##############################################################################
156# Python
157##############################################################################
158load(
159    "@com_google_googleapis_imports//:imports.bzl",
160    "py_gapic_assembly_pkg",
161    "py_gapic_library",
162    "py_test",
163)
164
165py_gapic_library(
166    name = "activity_py_gapic",
167    srcs = [":activity_proto"],
168    grpc_service_config = "driveactivity_grpc_service_config.json",
169    rest_numeric_enums = True,
170    service_yaml = "driveactivity_v2.yaml",
171    transport = "grpc+rest",
172    deps = [
173    ],
174)
175
176py_test(
177    name = "activity_py_gapic_test",
178    srcs = [
179        "activity_py_gapic_pytest.py",
180        "activity_py_gapic_test.py",
181    ],
182    legacy_create_init = False,
183    deps = [":activity_py_gapic"],
184)
185
186# Open Source Packages
187py_gapic_assembly_pkg(
188    name = "drive-activity-v2-py",
189    deps = [
190        ":activity_py_gapic",
191    ],
192)
193
194##############################################################################
195# PHP
196##############################################################################
197load(
198    "@com_google_googleapis_imports//:imports.bzl",
199    "php_gapic_assembly_pkg",
200    "php_gapic_library",
201    "php_proto_library",
202)
203
204php_proto_library(
205    name = "activity_php_proto",
206    deps = [":activity_proto"],
207)
208
209php_gapic_library(
210    name = "activity_php_gapic",
211    srcs = [":activity_proto_with_info"],
212    grpc_service_config = "driveactivity_grpc_service_config.json",
213    rest_numeric_enums = True,
214    service_yaml = "driveactivity_v2.yaml",
215    transport = "grpc+rest",
216    deps = [":activity_php_proto"],
217)
218
219# Open Source Packages
220php_gapic_assembly_pkg(
221    name = "google-apps-drive-activity-v2-php",
222    deps = [
223        ":activity_php_gapic",
224        ":activity_php_proto",
225    ],
226)
227
228##############################################################################
229# Node.js
230##############################################################################
231load(
232    "@com_google_googleapis_imports//:imports.bzl",
233    "nodejs_gapic_assembly_pkg",
234    "nodejs_gapic_library",
235)
236
237nodejs_gapic_library(
238    name = "activity_nodejs_gapic",
239    package_name = "@google-cloud/drive-activity",
240    src = ":activity_proto_with_info",
241    extra_protoc_parameters = ["metadata"],
242    grpc_service_config = "driveactivity_grpc_service_config.json",
243    package = "google.apps.drive.activity.v2",
244    rest_numeric_enums = True,
245    service_yaml = "driveactivity_v2.yaml",
246    transport = "grpc+rest",
247    deps = [],
248)
249
250nodejs_gapic_assembly_pkg(
251    name = "drive-activity-v2-nodejs",
252    deps = [
253        ":activity_nodejs_gapic",
254        ":activity_proto",
255    ],
256)
257
258##############################################################################
259# Ruby
260##############################################################################
261load(
262    "@com_google_googleapis_imports//:imports.bzl",
263    "ruby_cloud_gapic_library",
264    "ruby_gapic_assembly_pkg",
265    "ruby_grpc_library",
266    "ruby_proto_library",
267)
268
269ruby_proto_library(
270    name = "activity_ruby_proto",
271    deps = [":activity_proto"],
272)
273
274ruby_grpc_library(
275    name = "activity_ruby_grpc",
276    srcs = [":activity_proto"],
277    deps = [":activity_ruby_proto"],
278)
279
280ruby_cloud_gapic_library(
281    name = "activity_ruby_gapic",
282    srcs = [":activity_proto_with_info"],
283    extra_protoc_parameters = ["ruby-cloud-gem-name=google-apps-drive-activity-v2"],
284    grpc_service_config = "driveactivity_grpc_service_config.json",
285    rest_numeric_enums = True,
286    service_yaml = "driveactivity_v2.yaml",
287    transport = "grpc+rest",
288    deps = [
289        ":activity_ruby_grpc",
290        ":activity_ruby_proto",
291    ],
292)
293
294# Open Source Packages
295ruby_gapic_assembly_pkg(
296    name = "google-apps-drive-activity-v2-ruby",
297    deps = [
298        ":activity_ruby_gapic",
299        ":activity_ruby_grpc",
300        ":activity_ruby_proto",
301    ],
302)
303
304##############################################################################
305# C#
306##############################################################################
307load(
308    "@com_google_googleapis_imports//:imports.bzl",
309    "csharp_gapic_assembly_pkg",
310    "csharp_gapic_library",
311    "csharp_grpc_library",
312    "csharp_proto_library",
313)
314
315csharp_proto_library(
316    name = "activity_csharp_proto",
317    deps = [":activity_proto"],
318)
319
320csharp_grpc_library(
321    name = "activity_csharp_grpc",
322    srcs = [":activity_proto"],
323    deps = [":activity_csharp_proto"],
324)
325
326csharp_gapic_library(
327    name = "activity_csharp_gapic",
328    srcs = [":activity_proto_with_info"],
329    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
330    grpc_service_config = "driveactivity_grpc_service_config.json",
331    rest_numeric_enums = True,
332    service_yaml = "driveactivity_v2.yaml",
333    transport = "grpc+rest",
334    deps = [
335        ":activity_csharp_grpc",
336        ":activity_csharp_proto",
337    ],
338)
339
340# Open Source Packages
341csharp_gapic_assembly_pkg(
342    name = "google-apps-drive-activity-v2-csharp",
343    deps = [
344        ":activity_csharp_gapic",
345        ":activity_csharp_grpc",
346        ":activity_csharp_proto",
347    ],
348)
349
350##############################################################################
351# C++
352##############################################################################
353# Put your C++ rules here
354