UNPKG

4.29 kBJavaScriptView Raw
1"use strict";
2// Copyright 2020 Google LLC
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15Object.defineProperty(exports, "__esModule", { value: true });
16exports.vision = exports.videointelligence = exports.storagetransfer = exports.speech = exports.spanner = exports.pubsub = exports.monitoring = exports.logging = exports.language = exports.iam = exports.functions = exports.firestore = exports.embeddedAssistant = exports.dlp = exports.datastore = exports.container = exports.cloudtrace = exports.bigtable = exports.appengine = exports.loadSync = exports.load = exports.getProtoPath = void 0;
17const path = require("path");
18const loader = require("./load");
19function getProtoPath(...paths) {
20 return path.join(__dirname, '../../', 'google', ...paths);
21}
22exports.getProtoPath = getProtoPath;
23exports.load = loader.load;
24exports.loadSync = loader.loadSync;
25exports.appengine = {
26 v1: getProtoPath('appengine/v1/appengine.proto'),
27};
28exports.bigtable = {
29 v1: getProtoPath('bigtable/v1/bigtable_service.proto'),
30 v2: getProtoPath('bigtable/v2/bigtable.proto'),
31 admin: {
32 v1: getProtoPath('bigtable/admin/table/v1/bigtable_table_service.proto'),
33 v2: {
34 instance: getProtoPath('bigtable/admin/v2/bigtable_instance_admin.proto'),
35 table: getProtoPath('bigtable/admin/v2/bigtable_table_admin.proto'),
36 },
37 },
38};
39exports.cloudtrace = {
40 v1: getProtoPath('devtools/cloudtrace/v1/trace.proto'),
41};
42exports.container = {
43 v1: getProtoPath('container/v1/cluster_service.proto'),
44};
45exports.datastore = {
46 v1: getProtoPath('datastore/v1/datastore.proto'),
47 v1beta3: getProtoPath('datastore/v1beta3/datastore.proto'),
48};
49exports.dlp = {
50 v2beta1: getProtoPath('privacy/dlp/v2beta1/dlp.proto'),
51};
52exports.embeddedAssistant = {
53 v1alpha1: getProtoPath('assistant/embedded/v1alpha1/embedded_assistant.proto'),
54 v1alpha2: getProtoPath('assistant/embedded/v1alpha2/embedded_assistant.proto'),
55};
56exports.firestore = {
57 v1beta1: getProtoPath('firestore/v1beta1/firestore.proto'),
58 admin: {
59 v1beta1: getProtoPath('firestore/admin/v1beta1/firestore_admin.proto'),
60 },
61};
62exports.functions = {
63 v1beta2: getProtoPath('cloud/functions/v1beta2/functions.proto'),
64};
65exports.iam = {
66 v1: getProtoPath('iam/v1/iam_policy.proto'),
67 admin: {
68 v1: getProtoPath('iam/admin/v1/iam.proto'),
69 },
70};
71exports.language = {
72 v1beta1: getProtoPath('cloud/language/v1beta1/language_service.proto'),
73 v1: getProtoPath('cloud/language/v1/language_service.proto'),
74};
75exports.logging = {
76 v2: getProtoPath('logging/v2/logging.proto'),
77};
78exports.monitoring = {
79 v3: {
80 group: getProtoPath('monitoring/v3/group_service.proto'),
81 metric: getProtoPath('monitoring/v3/metric_service.proto'),
82 },
83};
84exports.pubsub = {
85 v1: getProtoPath('pubsub/v1/pubsub.proto'),
86 v1beta2: getProtoPath('pubsub/v1beta2/pubsub.proto'),
87};
88exports.spanner = {
89 v1: getProtoPath('spanner/v1/spanner.proto'),
90 admin: {
91 v1: {
92 database: getProtoPath('spanner/admin/database/v1/spanner_database_admin.proto'),
93 instance: getProtoPath('spanner/admin/instance/v1/spanner_instance_admin.proto'),
94 },
95 },
96};
97exports.speech = {
98 v1beta1: getProtoPath('cloud/speech/v1beta1/cloud_speech.proto'),
99 v1: getProtoPath('cloud/speech/v1/cloud_speech.proto'),
100 v2: getProtoPath('cloud/speech/v2/cloud_speech.proto'),
101};
102exports.storagetransfer = {
103 v1: getProtoPath('storagetransfer/v1/transfer.proto'),
104};
105exports.videointelligence = {
106 v1beta1: getProtoPath('cloud/videointelligence/v1beta1/video_intelligence.proto'),
107};
108exports.vision = {
109 v1: getProtoPath('cloud/vision/v1/image_annotator.proto'),
110};
111//# sourceMappingURL=index.js.map
\No newline at end of file