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 Install the client library with <a href="https://www.npmjs.com/">npm</a>:
|
36 | * ```
|
37 | * npm install @google-cloud/pubsub
|
38 | *
|
39 | * ```
|
40 | * @example Import the client library
|
41 | * ```
|
42 | * const {PubSub} = require('@google-cloud/pubsub');
|
43 | *
|
44 | * ```
|
45 | * @example Create a client that uses <a href="https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application">Application Default Credentials (ADC)</a>:
|
46 | * ```
|
47 | * const pubsub = new PubSub();
|
48 | *
|
49 | * ```
|
50 | * @example Create a client with <a href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually">explicit credentials</a>:
|
51 | * ```
|
52 | * const pubsub = new PubSub({
|
53 | * projectId: 'your-project-id',
|
54 | * keyFilename: '/path/to/keyfile.json'
|
55 | * });
|
56 | *
|
57 | * ```
|
58 | * @example <caption>include:samples/quickstart.js</caption>
|
59 | * region_tag:pubsub_quickstart_create_topic
|
60 | * Full quickstart example:
|
61 | */
|
62 | /**
|
63 | * Reference to internal generated clients, advanced use only.
|
64 | *
|
65 | * @name PubSub.v1
|
66 | * @see v1.PublisherClient
|
67 | * @see v1.SubscriberClient
|
68 | * @type {object}
|
69 | * @property {constructor} PublisherClient
|
70 | * Reference to {@link v1.PublisherClient}.
|
71 | * @property {constructor} SubscriberClient
|
72 | * Reference to {@link v1.SubscriberClient}.
|
73 | */
|
74 | /**
|
75 | * Reference to internal generated clients, advanced use only.
|
76 | *
|
77 | * @name module:@google-cloud/pubsub.v1
|
78 | * @see v1.PublisherClient
|
79 | * @see v1.SubscriberClient
|
80 | * @type {object}
|
81 | * @property {constructor} PublisherClient
|
82 | * Reference to {@link v1.PublisherClient}.
|
83 | * @property {constructor} SubscriberClient
|
84 | * Reference to {@link v1.SubscriberClient}.
|
85 | */
|
86 | const v1 = require("./v1");
|
87 | exports.v1 = v1;
|
88 | var iam_1 = require("./iam");
|
89 | Object.defineProperty(exports, "IAM", { enumerable: true, get: function () { return iam_1.IAM; } });
|
90 | var publish_error_1 = require("./publisher/publish-error");
|
91 | Object.defineProperty(exports, "PublishError", { enumerable: true, get: function () { return publish_error_1.PublishError; } });
|
92 | var pubsub_1 = require("./pubsub");
|
93 | Object.defineProperty(exports, "PubSub", { enumerable: true, get: function () { return pubsub_1.PubSub; } });
|
94 | var snapshot_1 = require("./snapshot");
|
95 | Object.defineProperty(exports, "Snapshot", { enumerable: true, get: function () { return snapshot_1.Snapshot; } });
|
96 | var subscriber_1 = require("./subscriber");
|
97 | Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return subscriber_1.Message; } });
|
98 | var schema_1 = require("./schema");
|
99 | Object.defineProperty(exports, "Schema", { enumerable: true, get: function () { return schema_1.Schema; } });
|
100 | Object.defineProperty(exports, "SchemaTypes", { enumerable: true, get: function () { return schema_1.SchemaTypes; } });
|
101 | Object.defineProperty(exports, "SchemaViews", { enumerable: true, get: function () { return schema_1.SchemaViews; } });
|
102 | Object.defineProperty(exports, "Encodings", { enumerable: true, get: function () { return schema_1.Encodings; } });
|
103 | var subscription_1 = require("./subscription");
|
104 | Object.defineProperty(exports, "Subscription", { enumerable: true, get: function () { return subscription_1.Subscription; } });
|
105 | var topic_1 = require("./topic");
|
106 | Object.defineProperty(exports, "Topic", { enumerable: true, get: function () { return topic_1.Topic; } });
|
107 | if (process.env.DEBUG_GRPC) {
|
108 | console.info('gRPC logging set to verbose');
|
109 | const grpc = require('google-gax').grpc;
|
110 | grpc.setLogger(console);
|
111 | grpc.setLogVerbosity(grpc.logVerbosity.DEBUG);
|
112 | }
|
113 | const protos = require("../protos/protos");
|
114 | exports.protos = protos;
|
115 | //# sourceMappingURL=index.js.map |
\ | No newline at end of file |