1 | ;
|
2 | /*!
|
3 | * Copyright 2014 Google Inc. All Rights Reserved.
|
4 | *
|
5 | * Licensed under the Apache License, Version 2.0 (the "License");
|
6 | * you may not use this file except in compliance with the License.
|
7 | * You may obtain a copy of the License at
|
8 | *
|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
10 | *
|
11 | * Unless required by applicable law or agreed to in writing, software
|
12 | * distributed under the License is distributed on an "AS IS" BASIS,
|
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 | * See the License for the specific language governing permissions and
|
15 | * limitations under the License.
|
16 | */
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | exports.protos = exports.v1 = void 0;
|
19 | /**
|
20 | * @namespace google.pubsub.v1
|
21 | */
|
22 | /**
|
23 | * @namespace google.protobuf
|
24 | */
|
25 | /**
|
26 | * The default export of the `@google-cloud/pubsub` package is the
|
27 | * {@link PubSub} class.
|
28 | *
|
29 | * See {@link PubSub} and {@link ClientConfig} for client methods and
|
30 | * configuration options.
|
31 | *
|
32 | * @module {PubSub} @google-cloud/pubsub
|
33 | * @alias nodejs-pubsub
|
34 | *
|
35 | * @example <caption>Install the client library with <a href="https://www.npmjs.com/">npm</a>:</caption>
|
36 | * npm install @google-cloud/pubsub
|
37 | *
|
38 | * @example <caption>Import the client library</caption>
|
39 | * const {PubSub} = require('@google-cloud/pubsub');
|
40 | *
|
41 | * @example <caption>Create a client that uses <a href="https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application">Application Default Credentials (ADC)</a>:</caption>
|
42 | * const pubsub = new PubSub();
|
43 | *
|
44 | * @example <caption>Create a client with <a href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually">explicit credentials</a>:</caption>
|
45 | * const pubsub = new PubSub({
|
46 | * projectId: 'your-project-id',
|
47 | * keyFilename: '/path/to/keyfile.json'
|
48 | * });
|
49 | *
|
50 | * @example <caption>include:samples/quickstart.js</caption>
|
51 | * region_tag:pubsub_quickstart_create_topic
|
52 | * Full quickstart example:
|
53 | */
|
54 | /**
|
55 | * Reference to internal generated clients, advanced use only.
|
56 | *
|
57 | * @name PubSub.v1
|
58 | * @see v1.PublisherClient
|
59 | * @see v1.SubscriberClient
|
60 | * @type {object}
|
61 | * @property {constructor} PublisherClient
|
62 | * Reference to {@link v1.PublisherClient}.
|
63 | * @property {constructor} SubscriberClient
|
64 | * Reference to {@link v1.SubscriberClient}.
|
65 | */
|
66 | /**
|
67 | * Reference to internal generated clients, advanced use only.
|
68 | *
|
69 | * @name module:@google-cloud/pubsub.v1
|
70 | * @see v1.PublisherClient
|
71 | * @see v1.SubscriberClient
|
72 | * @type {object}
|
73 | * @property {constructor} PublisherClient
|
74 | * Reference to {@link v1.PublisherClient}.
|
75 | * @property {constructor} SubscriberClient
|
76 | * Reference to {@link v1.SubscriberClient}.
|
77 | */
|
78 | const v1 = require("./v1");
|
79 | exports.v1 = v1;
|
80 | var iam_1 = require("./iam");
|
81 | Object.defineProperty(exports, "IAM", { enumerable: true, get: function () { return iam_1.IAM; } });
|
82 | var publish_error_1 = require("./publisher/publish-error");
|
83 | Object.defineProperty(exports, "PublishError", { enumerable: true, get: function () { return publish_error_1.PublishError; } });
|
84 | var pubsub_1 = require("./pubsub");
|
85 | Object.defineProperty(exports, "PubSub", { enumerable: true, get: function () { return pubsub_1.PubSub; } });
|
86 | var snapshot_1 = require("./snapshot");
|
87 | Object.defineProperty(exports, "Snapshot", { enumerable: true, get: function () { return snapshot_1.Snapshot; } });
|
88 | var subscriber_1 = require("./subscriber");
|
89 | Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return subscriber_1.Message; } });
|
90 | var subscription_1 = require("./subscription");
|
91 | Object.defineProperty(exports, "Subscription", { enumerable: true, get: function () { return subscription_1.Subscription; } });
|
92 | var topic_1 = require("./topic");
|
93 | Object.defineProperty(exports, "Topic", { enumerable: true, get: function () { return topic_1.Topic; } });
|
94 | if (process.env.DEBUG_GRPC) {
|
95 | console.info('gRPC logging set to verbose');
|
96 | const grpc = require('google-gax').grpc;
|
97 | grpc.setLogger(console);
|
98 | grpc.setLogVerbosity(grpc.logVerbosity.DEBUG);
|
99 | }
|
100 | const protos = require("../protos/protos");
|
101 | exports.protos = protos;
|
102 | //# sourceMappingURL=index.js.map |
\ | No newline at end of file |