@google-cloud/pubsub 2.18.5 → 2.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +15 -14
- package/build/protos/google/pubsub/v1/pubsub.proto +50 -0
- package/build/protos/protos.d.ts +253 -31
- package/build/protos/protos.js +655 -33
- package/build/protos/protos.json +70 -0
- package/build/src/message-queues.js +4 -1
- package/build/src/message-queues.js.map +1 -1
- package/build/src/pubsub.js +9 -1
- package/build/src/pubsub.js.map +1 -1
- package/build/src/subscriber.js +1 -0
- package/build/src/subscriber.js.map +1 -1
- package/build/src/subscription.d.ts +6 -0
- package/build/src/subscription.js +8 -0
- package/build/src/subscription.js.map +1 -1
- package/build/src/v1/publisher_client.d.ts +0 -18
- package/build/src/v1/publisher_client.js +1 -8
- package/build/src/v1/publisher_client.js.map +1 -1
- package/build/src/v1/schema_service_client.d.ts +0 -12
- package/build/src/v1/schema_service_client.js +1 -4
- package/build/src/v1/schema_service_client.js.map +1 -1
- package/build/src/v1/subscriber_client.d.ts +12 -32
- package/build/src/v1/subscriber_client.js +10 -9
- package/build/src/v1/subscriber_client.js.map +1 -1
- package/package.json +3 -3
package/build/protos/protos.js
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
93
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|createTopic}.
|
|
94
94
|
* @memberof google.pubsub.v1.Publisher
|
|
95
95
|
* @typedef CreateTopicCallback
|
|
96
96
|
* @type {function}
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
*/
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
126
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|updateTopic}.
|
|
127
127
|
* @memberof google.pubsub.v1.Publisher
|
|
128
128
|
* @typedef UpdateTopicCallback
|
|
129
129
|
* @type {function}
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
*/
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
159
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|publish}.
|
|
160
160
|
* @memberof google.pubsub.v1.Publisher
|
|
161
161
|
* @typedef PublishCallback
|
|
162
162
|
* @type {function}
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
*/
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
192
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|getTopic}.
|
|
193
193
|
* @memberof google.pubsub.v1.Publisher
|
|
194
194
|
* @typedef GetTopicCallback
|
|
195
195
|
* @type {function}
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
*/
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
225
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|listTopics}.
|
|
226
226
|
* @memberof google.pubsub.v1.Publisher
|
|
227
227
|
* @typedef ListTopicsCallback
|
|
228
228
|
* @type {function}
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
*/
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
258
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|listTopicSubscriptions}.
|
|
259
259
|
* @memberof google.pubsub.v1.Publisher
|
|
260
260
|
* @typedef ListTopicSubscriptionsCallback
|
|
261
261
|
* @type {function}
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
*/
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
291
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|listTopicSnapshots}.
|
|
292
292
|
* @memberof google.pubsub.v1.Publisher
|
|
293
293
|
* @typedef ListTopicSnapshotsCallback
|
|
294
294
|
* @type {function}
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
*/
|
|
322
322
|
|
|
323
323
|
/**
|
|
324
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
324
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|deleteTopic}.
|
|
325
325
|
* @memberof google.pubsub.v1.Publisher
|
|
326
326
|
* @typedef DeleteTopicCallback
|
|
327
327
|
* @type {function}
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
*/
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
|
-
* Callback as used by {@link google.pubsub.v1.Publisher
|
|
357
|
+
* Callback as used by {@link google.pubsub.v1.Publisher|detachSubscription}.
|
|
358
358
|
* @memberof google.pubsub.v1.Publisher
|
|
359
359
|
* @typedef DetachSubscriptionCallback
|
|
360
360
|
* @type {function}
|
|
@@ -4304,7 +4304,7 @@
|
|
|
4304
4304
|
};
|
|
4305
4305
|
|
|
4306
4306
|
/**
|
|
4307
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4307
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|createSubscription}.
|
|
4308
4308
|
* @memberof google.pubsub.v1.Subscriber
|
|
4309
4309
|
* @typedef CreateSubscriptionCallback
|
|
4310
4310
|
* @type {function}
|
|
@@ -4337,7 +4337,7 @@
|
|
|
4337
4337
|
*/
|
|
4338
4338
|
|
|
4339
4339
|
/**
|
|
4340
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4340
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|getSubscription}.
|
|
4341
4341
|
* @memberof google.pubsub.v1.Subscriber
|
|
4342
4342
|
* @typedef GetSubscriptionCallback
|
|
4343
4343
|
* @type {function}
|
|
@@ -4370,7 +4370,7 @@
|
|
|
4370
4370
|
*/
|
|
4371
4371
|
|
|
4372
4372
|
/**
|
|
4373
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4373
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|updateSubscription}.
|
|
4374
4374
|
* @memberof google.pubsub.v1.Subscriber
|
|
4375
4375
|
* @typedef UpdateSubscriptionCallback
|
|
4376
4376
|
* @type {function}
|
|
@@ -4403,7 +4403,7 @@
|
|
|
4403
4403
|
*/
|
|
4404
4404
|
|
|
4405
4405
|
/**
|
|
4406
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4406
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|listSubscriptions}.
|
|
4407
4407
|
* @memberof google.pubsub.v1.Subscriber
|
|
4408
4408
|
* @typedef ListSubscriptionsCallback
|
|
4409
4409
|
* @type {function}
|
|
@@ -4436,7 +4436,7 @@
|
|
|
4436
4436
|
*/
|
|
4437
4437
|
|
|
4438
4438
|
/**
|
|
4439
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4439
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|deleteSubscription}.
|
|
4440
4440
|
* @memberof google.pubsub.v1.Subscriber
|
|
4441
4441
|
* @typedef DeleteSubscriptionCallback
|
|
4442
4442
|
* @type {function}
|
|
@@ -4469,7 +4469,7 @@
|
|
|
4469
4469
|
*/
|
|
4470
4470
|
|
|
4471
4471
|
/**
|
|
4472
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4472
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|modifyAckDeadline}.
|
|
4473
4473
|
* @memberof google.pubsub.v1.Subscriber
|
|
4474
4474
|
* @typedef ModifyAckDeadlineCallback
|
|
4475
4475
|
* @type {function}
|
|
@@ -4502,7 +4502,7 @@
|
|
|
4502
4502
|
*/
|
|
4503
4503
|
|
|
4504
4504
|
/**
|
|
4505
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4505
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|acknowledge}.
|
|
4506
4506
|
* @memberof google.pubsub.v1.Subscriber
|
|
4507
4507
|
* @typedef AcknowledgeCallback
|
|
4508
4508
|
* @type {function}
|
|
@@ -4535,7 +4535,7 @@
|
|
|
4535
4535
|
*/
|
|
4536
4536
|
|
|
4537
4537
|
/**
|
|
4538
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4538
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|pull}.
|
|
4539
4539
|
* @memberof google.pubsub.v1.Subscriber
|
|
4540
4540
|
* @typedef PullCallback
|
|
4541
4541
|
* @type {function}
|
|
@@ -4568,7 +4568,7 @@
|
|
|
4568
4568
|
*/
|
|
4569
4569
|
|
|
4570
4570
|
/**
|
|
4571
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4571
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|streamingPull}.
|
|
4572
4572
|
* @memberof google.pubsub.v1.Subscriber
|
|
4573
4573
|
* @typedef StreamingPullCallback
|
|
4574
4574
|
* @type {function}
|
|
@@ -4601,7 +4601,7 @@
|
|
|
4601
4601
|
*/
|
|
4602
4602
|
|
|
4603
4603
|
/**
|
|
4604
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4604
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|modifyPushConfig}.
|
|
4605
4605
|
* @memberof google.pubsub.v1.Subscriber
|
|
4606
4606
|
* @typedef ModifyPushConfigCallback
|
|
4607
4607
|
* @type {function}
|
|
@@ -4634,7 +4634,7 @@
|
|
|
4634
4634
|
*/
|
|
4635
4635
|
|
|
4636
4636
|
/**
|
|
4637
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4637
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|getSnapshot}.
|
|
4638
4638
|
* @memberof google.pubsub.v1.Subscriber
|
|
4639
4639
|
* @typedef GetSnapshotCallback
|
|
4640
4640
|
* @type {function}
|
|
@@ -4667,7 +4667,7 @@
|
|
|
4667
4667
|
*/
|
|
4668
4668
|
|
|
4669
4669
|
/**
|
|
4670
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4670
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|listSnapshots}.
|
|
4671
4671
|
* @memberof google.pubsub.v1.Subscriber
|
|
4672
4672
|
* @typedef ListSnapshotsCallback
|
|
4673
4673
|
* @type {function}
|
|
@@ -4700,7 +4700,7 @@
|
|
|
4700
4700
|
*/
|
|
4701
4701
|
|
|
4702
4702
|
/**
|
|
4703
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4703
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|createSnapshot}.
|
|
4704
4704
|
* @memberof google.pubsub.v1.Subscriber
|
|
4705
4705
|
* @typedef CreateSnapshotCallback
|
|
4706
4706
|
* @type {function}
|
|
@@ -4733,7 +4733,7 @@
|
|
|
4733
4733
|
*/
|
|
4734
4734
|
|
|
4735
4735
|
/**
|
|
4736
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4736
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|updateSnapshot}.
|
|
4737
4737
|
* @memberof google.pubsub.v1.Subscriber
|
|
4738
4738
|
* @typedef UpdateSnapshotCallback
|
|
4739
4739
|
* @type {function}
|
|
@@ -4766,7 +4766,7 @@
|
|
|
4766
4766
|
*/
|
|
4767
4767
|
|
|
4768
4768
|
/**
|
|
4769
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4769
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|deleteSnapshot}.
|
|
4770
4770
|
* @memberof google.pubsub.v1.Subscriber
|
|
4771
4771
|
* @typedef DeleteSnapshotCallback
|
|
4772
4772
|
* @type {function}
|
|
@@ -4799,7 +4799,7 @@
|
|
|
4799
4799
|
*/
|
|
4800
4800
|
|
|
4801
4801
|
/**
|
|
4802
|
-
* Callback as used by {@link google.pubsub.v1.Subscriber
|
|
4802
|
+
* Callback as used by {@link google.pubsub.v1.Subscriber|seek}.
|
|
4803
4803
|
* @memberof google.pubsub.v1.Subscriber
|
|
4804
4804
|
* @typedef SeekCallback
|
|
4805
4805
|
* @type {function}
|
|
@@ -4853,6 +4853,7 @@
|
|
|
4853
4853
|
* @property {google.pubsub.v1.IDeadLetterPolicy|null} [deadLetterPolicy] Subscription deadLetterPolicy
|
|
4854
4854
|
* @property {google.pubsub.v1.IRetryPolicy|null} [retryPolicy] Subscription retryPolicy
|
|
4855
4855
|
* @property {boolean|null} [detached] Subscription detached
|
|
4856
|
+
* @property {boolean|null} [enableExactlyOnceDelivery] Subscription enableExactlyOnceDelivery
|
|
4856
4857
|
* @property {google.protobuf.IDuration|null} [topicMessageRetentionDuration] Subscription topicMessageRetentionDuration
|
|
4857
4858
|
*/
|
|
4858
4859
|
|
|
@@ -4976,6 +4977,14 @@
|
|
|
4976
4977
|
*/
|
|
4977
4978
|
Subscription.prototype.detached = false;
|
|
4978
4979
|
|
|
4980
|
+
/**
|
|
4981
|
+
* Subscription enableExactlyOnceDelivery.
|
|
4982
|
+
* @member {boolean} enableExactlyOnceDelivery
|
|
4983
|
+
* @memberof google.pubsub.v1.Subscription
|
|
4984
|
+
* @instance
|
|
4985
|
+
*/
|
|
4986
|
+
Subscription.prototype.enableExactlyOnceDelivery = false;
|
|
4987
|
+
|
|
4979
4988
|
/**
|
|
4980
4989
|
* Subscription topicMessageRetentionDuration.
|
|
4981
4990
|
* @member {google.protobuf.IDuration|null|undefined} topicMessageRetentionDuration
|
|
@@ -5035,6 +5044,8 @@
|
|
|
5035
5044
|
$root.google.pubsub.v1.RetryPolicy.encode(message.retryPolicy, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
5036
5045
|
if (message.detached != null && Object.hasOwnProperty.call(message, "detached"))
|
|
5037
5046
|
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.detached);
|
|
5047
|
+
if (message.enableExactlyOnceDelivery != null && Object.hasOwnProperty.call(message, "enableExactlyOnceDelivery"))
|
|
5048
|
+
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.enableExactlyOnceDelivery);
|
|
5038
5049
|
if (message.topicMessageRetentionDuration != null && Object.hasOwnProperty.call(message, "topicMessageRetentionDuration"))
|
|
5039
5050
|
$root.google.protobuf.Duration.encode(message.topicMessageRetentionDuration, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
5040
5051
|
return writer;
|
|
@@ -5129,6 +5140,9 @@
|
|
|
5129
5140
|
case 15:
|
|
5130
5141
|
message.detached = reader.bool();
|
|
5131
5142
|
break;
|
|
5143
|
+
case 16:
|
|
5144
|
+
message.enableExactlyOnceDelivery = reader.bool();
|
|
5145
|
+
break;
|
|
5132
5146
|
case 17:
|
|
5133
5147
|
message.topicMessageRetentionDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
5134
5148
|
break;
|
|
@@ -5221,6 +5235,9 @@
|
|
|
5221
5235
|
if (message.detached != null && message.hasOwnProperty("detached"))
|
|
5222
5236
|
if (typeof message.detached !== "boolean")
|
|
5223
5237
|
return "detached: boolean expected";
|
|
5238
|
+
if (message.enableExactlyOnceDelivery != null && message.hasOwnProperty("enableExactlyOnceDelivery"))
|
|
5239
|
+
if (typeof message.enableExactlyOnceDelivery !== "boolean")
|
|
5240
|
+
return "enableExactlyOnceDelivery: boolean expected";
|
|
5224
5241
|
if (message.topicMessageRetentionDuration != null && message.hasOwnProperty("topicMessageRetentionDuration")) {
|
|
5225
5242
|
var error = $root.google.protobuf.Duration.verify(message.topicMessageRetentionDuration);
|
|
5226
5243
|
if (error)
|
|
@@ -5287,6 +5304,8 @@
|
|
|
5287
5304
|
}
|
|
5288
5305
|
if (object.detached != null)
|
|
5289
5306
|
message.detached = Boolean(object.detached);
|
|
5307
|
+
if (object.enableExactlyOnceDelivery != null)
|
|
5308
|
+
message.enableExactlyOnceDelivery = Boolean(object.enableExactlyOnceDelivery);
|
|
5290
5309
|
if (object.topicMessageRetentionDuration != null) {
|
|
5291
5310
|
if (typeof object.topicMessageRetentionDuration !== "object")
|
|
5292
5311
|
throw TypeError(".google.pubsub.v1.Subscription.topicMessageRetentionDuration: object expected");
|
|
@@ -5323,6 +5342,7 @@
|
|
|
5323
5342
|
object.deadLetterPolicy = null;
|
|
5324
5343
|
object.retryPolicy = null;
|
|
5325
5344
|
object.detached = false;
|
|
5345
|
+
object.enableExactlyOnceDelivery = false;
|
|
5326
5346
|
object.topicMessageRetentionDuration = null;
|
|
5327
5347
|
}
|
|
5328
5348
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
@@ -5355,6 +5375,8 @@
|
|
|
5355
5375
|
object.retryPolicy = $root.google.pubsub.v1.RetryPolicy.toObject(message.retryPolicy, options);
|
|
5356
5376
|
if (message.detached != null && message.hasOwnProperty("detached"))
|
|
5357
5377
|
object.detached = message.detached;
|
|
5378
|
+
if (message.enableExactlyOnceDelivery != null && message.hasOwnProperty("enableExactlyOnceDelivery"))
|
|
5379
|
+
object.enableExactlyOnceDelivery = message.enableExactlyOnceDelivery;
|
|
5358
5380
|
if (message.topicMessageRetentionDuration != null && message.hasOwnProperty("topicMessageRetentionDuration"))
|
|
5359
5381
|
object.topicMessageRetentionDuration = $root.google.protobuf.Duration.toObject(message.topicMessageRetentionDuration, options);
|
|
5360
5382
|
return object;
|
|
@@ -9357,6 +9379,8 @@
|
|
|
9357
9379
|
* @memberof google.pubsub.v1
|
|
9358
9380
|
* @interface IStreamingPullResponse
|
|
9359
9381
|
* @property {Array.<google.pubsub.v1.IReceivedMessage>|null} [receivedMessages] StreamingPullResponse receivedMessages
|
|
9382
|
+
* @property {google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation|null} [acknowledgeConfirmation] StreamingPullResponse acknowledgeConfirmation
|
|
9383
|
+
* @property {google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation|null} [modifyAckDeadlineConfirmation] StreamingPullResponse modifyAckDeadlineConfirmation
|
|
9360
9384
|
* @property {google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties|null} [subscriptionProperties] StreamingPullResponse subscriptionProperties
|
|
9361
9385
|
*/
|
|
9362
9386
|
|
|
@@ -9384,6 +9408,22 @@
|
|
|
9384
9408
|
*/
|
|
9385
9409
|
StreamingPullResponse.prototype.receivedMessages = $util.emptyArray;
|
|
9386
9410
|
|
|
9411
|
+
/**
|
|
9412
|
+
* StreamingPullResponse acknowledgeConfirmation.
|
|
9413
|
+
* @member {google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation|null|undefined} acknowledgeConfirmation
|
|
9414
|
+
* @memberof google.pubsub.v1.StreamingPullResponse
|
|
9415
|
+
* @instance
|
|
9416
|
+
*/
|
|
9417
|
+
StreamingPullResponse.prototype.acknowledgeConfirmation = null;
|
|
9418
|
+
|
|
9419
|
+
/**
|
|
9420
|
+
* StreamingPullResponse modifyAckDeadlineConfirmation.
|
|
9421
|
+
* @member {google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation|null|undefined} modifyAckDeadlineConfirmation
|
|
9422
|
+
* @memberof google.pubsub.v1.StreamingPullResponse
|
|
9423
|
+
* @instance
|
|
9424
|
+
*/
|
|
9425
|
+
StreamingPullResponse.prototype.modifyAckDeadlineConfirmation = null;
|
|
9426
|
+
|
|
9387
9427
|
/**
|
|
9388
9428
|
* StreamingPullResponse subscriptionProperties.
|
|
9389
9429
|
* @member {google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties|null|undefined} subscriptionProperties
|
|
@@ -9419,8 +9459,12 @@
|
|
|
9419
9459
|
if (message.receivedMessages != null && message.receivedMessages.length)
|
|
9420
9460
|
for (var i = 0; i < message.receivedMessages.length; ++i)
|
|
9421
9461
|
$root.google.pubsub.v1.ReceivedMessage.encode(message.receivedMessages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
9462
|
+
if (message.modifyAckDeadlineConfirmation != null && Object.hasOwnProperty.call(message, "modifyAckDeadlineConfirmation"))
|
|
9463
|
+
$root.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.encode(message.modifyAckDeadlineConfirmation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
9422
9464
|
if (message.subscriptionProperties != null && Object.hasOwnProperty.call(message, "subscriptionProperties"))
|
|
9423
9465
|
$root.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.encode(message.subscriptionProperties, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
9466
|
+
if (message.acknowledgeConfirmation != null && Object.hasOwnProperty.call(message, "acknowledgeConfirmation"))
|
|
9467
|
+
$root.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.encode(message.acknowledgeConfirmation, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
9424
9468
|
return writer;
|
|
9425
9469
|
};
|
|
9426
9470
|
|
|
@@ -9460,6 +9504,12 @@
|
|
|
9460
9504
|
message.receivedMessages = [];
|
|
9461
9505
|
message.receivedMessages.push($root.google.pubsub.v1.ReceivedMessage.decode(reader, reader.uint32()));
|
|
9462
9506
|
break;
|
|
9507
|
+
case 5:
|
|
9508
|
+
message.acknowledgeConfirmation = $root.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.decode(reader, reader.uint32());
|
|
9509
|
+
break;
|
|
9510
|
+
case 3:
|
|
9511
|
+
message.modifyAckDeadlineConfirmation = $root.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.decode(reader, reader.uint32());
|
|
9512
|
+
break;
|
|
9463
9513
|
case 4:
|
|
9464
9514
|
message.subscriptionProperties = $root.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.decode(reader, reader.uint32());
|
|
9465
9515
|
break;
|
|
@@ -9507,6 +9557,16 @@
|
|
|
9507
9557
|
return "receivedMessages." + error;
|
|
9508
9558
|
}
|
|
9509
9559
|
}
|
|
9560
|
+
if (message.acknowledgeConfirmation != null && message.hasOwnProperty("acknowledgeConfirmation")) {
|
|
9561
|
+
var error = $root.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.verify(message.acknowledgeConfirmation);
|
|
9562
|
+
if (error)
|
|
9563
|
+
return "acknowledgeConfirmation." + error;
|
|
9564
|
+
}
|
|
9565
|
+
if (message.modifyAckDeadlineConfirmation != null && message.hasOwnProperty("modifyAckDeadlineConfirmation")) {
|
|
9566
|
+
var error = $root.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.verify(message.modifyAckDeadlineConfirmation);
|
|
9567
|
+
if (error)
|
|
9568
|
+
return "modifyAckDeadlineConfirmation." + error;
|
|
9569
|
+
}
|
|
9510
9570
|
if (message.subscriptionProperties != null && message.hasOwnProperty("subscriptionProperties")) {
|
|
9511
9571
|
var error = $root.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.verify(message.subscriptionProperties);
|
|
9512
9572
|
if (error)
|
|
@@ -9537,6 +9597,16 @@
|
|
|
9537
9597
|
message.receivedMessages[i] = $root.google.pubsub.v1.ReceivedMessage.fromObject(object.receivedMessages[i]);
|
|
9538
9598
|
}
|
|
9539
9599
|
}
|
|
9600
|
+
if (object.acknowledgeConfirmation != null) {
|
|
9601
|
+
if (typeof object.acknowledgeConfirmation !== "object")
|
|
9602
|
+
throw TypeError(".google.pubsub.v1.StreamingPullResponse.acknowledgeConfirmation: object expected");
|
|
9603
|
+
message.acknowledgeConfirmation = $root.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.fromObject(object.acknowledgeConfirmation);
|
|
9604
|
+
}
|
|
9605
|
+
if (object.modifyAckDeadlineConfirmation != null) {
|
|
9606
|
+
if (typeof object.modifyAckDeadlineConfirmation !== "object")
|
|
9607
|
+
throw TypeError(".google.pubsub.v1.StreamingPullResponse.modifyAckDeadlineConfirmation: object expected");
|
|
9608
|
+
message.modifyAckDeadlineConfirmation = $root.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.fromObject(object.modifyAckDeadlineConfirmation);
|
|
9609
|
+
}
|
|
9540
9610
|
if (object.subscriptionProperties != null) {
|
|
9541
9611
|
if (typeof object.subscriptionProperties !== "object")
|
|
9542
9612
|
throw TypeError(".google.pubsub.v1.StreamingPullResponse.subscriptionProperties: object expected");
|
|
@@ -9560,15 +9630,22 @@
|
|
|
9560
9630
|
var object = {};
|
|
9561
9631
|
if (options.arrays || options.defaults)
|
|
9562
9632
|
object.receivedMessages = [];
|
|
9563
|
-
if (options.defaults)
|
|
9633
|
+
if (options.defaults) {
|
|
9634
|
+
object.modifyAckDeadlineConfirmation = null;
|
|
9564
9635
|
object.subscriptionProperties = null;
|
|
9636
|
+
object.acknowledgeConfirmation = null;
|
|
9637
|
+
}
|
|
9565
9638
|
if (message.receivedMessages && message.receivedMessages.length) {
|
|
9566
9639
|
object.receivedMessages = [];
|
|
9567
9640
|
for (var j = 0; j < message.receivedMessages.length; ++j)
|
|
9568
9641
|
object.receivedMessages[j] = $root.google.pubsub.v1.ReceivedMessage.toObject(message.receivedMessages[j], options);
|
|
9569
9642
|
}
|
|
9643
|
+
if (message.modifyAckDeadlineConfirmation != null && message.hasOwnProperty("modifyAckDeadlineConfirmation"))
|
|
9644
|
+
object.modifyAckDeadlineConfirmation = $root.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.toObject(message.modifyAckDeadlineConfirmation, options);
|
|
9570
9645
|
if (message.subscriptionProperties != null && message.hasOwnProperty("subscriptionProperties"))
|
|
9571
9646
|
object.subscriptionProperties = $root.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.toObject(message.subscriptionProperties, options);
|
|
9647
|
+
if (message.acknowledgeConfirmation != null && message.hasOwnProperty("acknowledgeConfirmation"))
|
|
9648
|
+
object.acknowledgeConfirmation = $root.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.toObject(message.acknowledgeConfirmation, options);
|
|
9572
9649
|
return object;
|
|
9573
9650
|
};
|
|
9574
9651
|
|
|
@@ -9583,12 +9660,535 @@
|
|
|
9583
9660
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9584
9661
|
};
|
|
9585
9662
|
|
|
9663
|
+
StreamingPullResponse.AcknowledgeConfirmation = (function() {
|
|
9664
|
+
|
|
9665
|
+
/**
|
|
9666
|
+
* Properties of an AcknowledgeConfirmation.
|
|
9667
|
+
* @memberof google.pubsub.v1.StreamingPullResponse
|
|
9668
|
+
* @interface IAcknowledgeConfirmation
|
|
9669
|
+
* @property {Array.<string>|null} [ackIds] AcknowledgeConfirmation ackIds
|
|
9670
|
+
* @property {Array.<string>|null} [invalidAckIds] AcknowledgeConfirmation invalidAckIds
|
|
9671
|
+
* @property {Array.<string>|null} [unorderedAckIds] AcknowledgeConfirmation unorderedAckIds
|
|
9672
|
+
*/
|
|
9673
|
+
|
|
9674
|
+
/**
|
|
9675
|
+
* Constructs a new AcknowledgeConfirmation.
|
|
9676
|
+
* @memberof google.pubsub.v1.StreamingPullResponse
|
|
9677
|
+
* @classdesc Represents an AcknowledgeConfirmation.
|
|
9678
|
+
* @implements IAcknowledgeConfirmation
|
|
9679
|
+
* @constructor
|
|
9680
|
+
* @param {google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation=} [properties] Properties to set
|
|
9681
|
+
*/
|
|
9682
|
+
function AcknowledgeConfirmation(properties) {
|
|
9683
|
+
this.ackIds = [];
|
|
9684
|
+
this.invalidAckIds = [];
|
|
9685
|
+
this.unorderedAckIds = [];
|
|
9686
|
+
if (properties)
|
|
9687
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9688
|
+
if (properties[keys[i]] != null)
|
|
9689
|
+
this[keys[i]] = properties[keys[i]];
|
|
9690
|
+
}
|
|
9691
|
+
|
|
9692
|
+
/**
|
|
9693
|
+
* AcknowledgeConfirmation ackIds.
|
|
9694
|
+
* @member {Array.<string>} ackIds
|
|
9695
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9696
|
+
* @instance
|
|
9697
|
+
*/
|
|
9698
|
+
AcknowledgeConfirmation.prototype.ackIds = $util.emptyArray;
|
|
9699
|
+
|
|
9700
|
+
/**
|
|
9701
|
+
* AcknowledgeConfirmation invalidAckIds.
|
|
9702
|
+
* @member {Array.<string>} invalidAckIds
|
|
9703
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9704
|
+
* @instance
|
|
9705
|
+
*/
|
|
9706
|
+
AcknowledgeConfirmation.prototype.invalidAckIds = $util.emptyArray;
|
|
9707
|
+
|
|
9708
|
+
/**
|
|
9709
|
+
* AcknowledgeConfirmation unorderedAckIds.
|
|
9710
|
+
* @member {Array.<string>} unorderedAckIds
|
|
9711
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9712
|
+
* @instance
|
|
9713
|
+
*/
|
|
9714
|
+
AcknowledgeConfirmation.prototype.unorderedAckIds = $util.emptyArray;
|
|
9715
|
+
|
|
9716
|
+
/**
|
|
9717
|
+
* Creates a new AcknowledgeConfirmation instance using the specified properties.
|
|
9718
|
+
* @function create
|
|
9719
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9720
|
+
* @static
|
|
9721
|
+
* @param {google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation=} [properties] Properties to set
|
|
9722
|
+
* @returns {google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} AcknowledgeConfirmation instance
|
|
9723
|
+
*/
|
|
9724
|
+
AcknowledgeConfirmation.create = function create(properties) {
|
|
9725
|
+
return new AcknowledgeConfirmation(properties);
|
|
9726
|
+
};
|
|
9727
|
+
|
|
9728
|
+
/**
|
|
9729
|
+
* Encodes the specified AcknowledgeConfirmation message. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.verify|verify} messages.
|
|
9730
|
+
* @function encode
|
|
9731
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9732
|
+
* @static
|
|
9733
|
+
* @param {google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation} message AcknowledgeConfirmation message or plain object to encode
|
|
9734
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9735
|
+
* @returns {$protobuf.Writer} Writer
|
|
9736
|
+
*/
|
|
9737
|
+
AcknowledgeConfirmation.encode = function encode(message, writer) {
|
|
9738
|
+
if (!writer)
|
|
9739
|
+
writer = $Writer.create();
|
|
9740
|
+
if (message.ackIds != null && message.ackIds.length)
|
|
9741
|
+
for (var i = 0; i < message.ackIds.length; ++i)
|
|
9742
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.ackIds[i]);
|
|
9743
|
+
if (message.invalidAckIds != null && message.invalidAckIds.length)
|
|
9744
|
+
for (var i = 0; i < message.invalidAckIds.length; ++i)
|
|
9745
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.invalidAckIds[i]);
|
|
9746
|
+
if (message.unorderedAckIds != null && message.unorderedAckIds.length)
|
|
9747
|
+
for (var i = 0; i < message.unorderedAckIds.length; ++i)
|
|
9748
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.unorderedAckIds[i]);
|
|
9749
|
+
return writer;
|
|
9750
|
+
};
|
|
9751
|
+
|
|
9752
|
+
/**
|
|
9753
|
+
* Encodes the specified AcknowledgeConfirmation message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.verify|verify} messages.
|
|
9754
|
+
* @function encodeDelimited
|
|
9755
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9756
|
+
* @static
|
|
9757
|
+
* @param {google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation} message AcknowledgeConfirmation message or plain object to encode
|
|
9758
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9759
|
+
* @returns {$protobuf.Writer} Writer
|
|
9760
|
+
*/
|
|
9761
|
+
AcknowledgeConfirmation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9762
|
+
return this.encode(message, writer).ldelim();
|
|
9763
|
+
};
|
|
9764
|
+
|
|
9765
|
+
/**
|
|
9766
|
+
* Decodes an AcknowledgeConfirmation message from the specified reader or buffer.
|
|
9767
|
+
* @function decode
|
|
9768
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9769
|
+
* @static
|
|
9770
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9771
|
+
* @param {number} [length] Message length if known beforehand
|
|
9772
|
+
* @returns {google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} AcknowledgeConfirmation
|
|
9773
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9774
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9775
|
+
*/
|
|
9776
|
+
AcknowledgeConfirmation.decode = function decode(reader, length) {
|
|
9777
|
+
if (!(reader instanceof $Reader))
|
|
9778
|
+
reader = $Reader.create(reader);
|
|
9779
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation();
|
|
9780
|
+
while (reader.pos < end) {
|
|
9781
|
+
var tag = reader.uint32();
|
|
9782
|
+
switch (tag >>> 3) {
|
|
9783
|
+
case 1:
|
|
9784
|
+
if (!(message.ackIds && message.ackIds.length))
|
|
9785
|
+
message.ackIds = [];
|
|
9786
|
+
message.ackIds.push(reader.string());
|
|
9787
|
+
break;
|
|
9788
|
+
case 2:
|
|
9789
|
+
if (!(message.invalidAckIds && message.invalidAckIds.length))
|
|
9790
|
+
message.invalidAckIds = [];
|
|
9791
|
+
message.invalidAckIds.push(reader.string());
|
|
9792
|
+
break;
|
|
9793
|
+
case 3:
|
|
9794
|
+
if (!(message.unorderedAckIds && message.unorderedAckIds.length))
|
|
9795
|
+
message.unorderedAckIds = [];
|
|
9796
|
+
message.unorderedAckIds.push(reader.string());
|
|
9797
|
+
break;
|
|
9798
|
+
default:
|
|
9799
|
+
reader.skipType(tag & 7);
|
|
9800
|
+
break;
|
|
9801
|
+
}
|
|
9802
|
+
}
|
|
9803
|
+
return message;
|
|
9804
|
+
};
|
|
9805
|
+
|
|
9806
|
+
/**
|
|
9807
|
+
* Decodes an AcknowledgeConfirmation message from the specified reader or buffer, length delimited.
|
|
9808
|
+
* @function decodeDelimited
|
|
9809
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9810
|
+
* @static
|
|
9811
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9812
|
+
* @returns {google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} AcknowledgeConfirmation
|
|
9813
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9814
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9815
|
+
*/
|
|
9816
|
+
AcknowledgeConfirmation.decodeDelimited = function decodeDelimited(reader) {
|
|
9817
|
+
if (!(reader instanceof $Reader))
|
|
9818
|
+
reader = new $Reader(reader);
|
|
9819
|
+
return this.decode(reader, reader.uint32());
|
|
9820
|
+
};
|
|
9821
|
+
|
|
9822
|
+
/**
|
|
9823
|
+
* Verifies an AcknowledgeConfirmation message.
|
|
9824
|
+
* @function verify
|
|
9825
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9826
|
+
* @static
|
|
9827
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9828
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9829
|
+
*/
|
|
9830
|
+
AcknowledgeConfirmation.verify = function verify(message) {
|
|
9831
|
+
if (typeof message !== "object" || message === null)
|
|
9832
|
+
return "object expected";
|
|
9833
|
+
if (message.ackIds != null && message.hasOwnProperty("ackIds")) {
|
|
9834
|
+
if (!Array.isArray(message.ackIds))
|
|
9835
|
+
return "ackIds: array expected";
|
|
9836
|
+
for (var i = 0; i < message.ackIds.length; ++i)
|
|
9837
|
+
if (!$util.isString(message.ackIds[i]))
|
|
9838
|
+
return "ackIds: string[] expected";
|
|
9839
|
+
}
|
|
9840
|
+
if (message.invalidAckIds != null && message.hasOwnProperty("invalidAckIds")) {
|
|
9841
|
+
if (!Array.isArray(message.invalidAckIds))
|
|
9842
|
+
return "invalidAckIds: array expected";
|
|
9843
|
+
for (var i = 0; i < message.invalidAckIds.length; ++i)
|
|
9844
|
+
if (!$util.isString(message.invalidAckIds[i]))
|
|
9845
|
+
return "invalidAckIds: string[] expected";
|
|
9846
|
+
}
|
|
9847
|
+
if (message.unorderedAckIds != null && message.hasOwnProperty("unorderedAckIds")) {
|
|
9848
|
+
if (!Array.isArray(message.unorderedAckIds))
|
|
9849
|
+
return "unorderedAckIds: array expected";
|
|
9850
|
+
for (var i = 0; i < message.unorderedAckIds.length; ++i)
|
|
9851
|
+
if (!$util.isString(message.unorderedAckIds[i]))
|
|
9852
|
+
return "unorderedAckIds: string[] expected";
|
|
9853
|
+
}
|
|
9854
|
+
return null;
|
|
9855
|
+
};
|
|
9856
|
+
|
|
9857
|
+
/**
|
|
9858
|
+
* Creates an AcknowledgeConfirmation message from a plain object. Also converts values to their respective internal types.
|
|
9859
|
+
* @function fromObject
|
|
9860
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9861
|
+
* @static
|
|
9862
|
+
* @param {Object.<string,*>} object Plain object
|
|
9863
|
+
* @returns {google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} AcknowledgeConfirmation
|
|
9864
|
+
*/
|
|
9865
|
+
AcknowledgeConfirmation.fromObject = function fromObject(object) {
|
|
9866
|
+
if (object instanceof $root.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
|
|
9867
|
+
return object;
|
|
9868
|
+
var message = new $root.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation();
|
|
9869
|
+
if (object.ackIds) {
|
|
9870
|
+
if (!Array.isArray(object.ackIds))
|
|
9871
|
+
throw TypeError(".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.ackIds: array expected");
|
|
9872
|
+
message.ackIds = [];
|
|
9873
|
+
for (var i = 0; i < object.ackIds.length; ++i)
|
|
9874
|
+
message.ackIds[i] = String(object.ackIds[i]);
|
|
9875
|
+
}
|
|
9876
|
+
if (object.invalidAckIds) {
|
|
9877
|
+
if (!Array.isArray(object.invalidAckIds))
|
|
9878
|
+
throw TypeError(".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.invalidAckIds: array expected");
|
|
9879
|
+
message.invalidAckIds = [];
|
|
9880
|
+
for (var i = 0; i < object.invalidAckIds.length; ++i)
|
|
9881
|
+
message.invalidAckIds[i] = String(object.invalidAckIds[i]);
|
|
9882
|
+
}
|
|
9883
|
+
if (object.unorderedAckIds) {
|
|
9884
|
+
if (!Array.isArray(object.unorderedAckIds))
|
|
9885
|
+
throw TypeError(".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.unorderedAckIds: array expected");
|
|
9886
|
+
message.unorderedAckIds = [];
|
|
9887
|
+
for (var i = 0; i < object.unorderedAckIds.length; ++i)
|
|
9888
|
+
message.unorderedAckIds[i] = String(object.unorderedAckIds[i]);
|
|
9889
|
+
}
|
|
9890
|
+
return message;
|
|
9891
|
+
};
|
|
9892
|
+
|
|
9893
|
+
/**
|
|
9894
|
+
* Creates a plain object from an AcknowledgeConfirmation message. Also converts values to other types if specified.
|
|
9895
|
+
* @function toObject
|
|
9896
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9897
|
+
* @static
|
|
9898
|
+
* @param {google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} message AcknowledgeConfirmation
|
|
9899
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9900
|
+
* @returns {Object.<string,*>} Plain object
|
|
9901
|
+
*/
|
|
9902
|
+
AcknowledgeConfirmation.toObject = function toObject(message, options) {
|
|
9903
|
+
if (!options)
|
|
9904
|
+
options = {};
|
|
9905
|
+
var object = {};
|
|
9906
|
+
if (options.arrays || options.defaults) {
|
|
9907
|
+
object.ackIds = [];
|
|
9908
|
+
object.invalidAckIds = [];
|
|
9909
|
+
object.unorderedAckIds = [];
|
|
9910
|
+
}
|
|
9911
|
+
if (message.ackIds && message.ackIds.length) {
|
|
9912
|
+
object.ackIds = [];
|
|
9913
|
+
for (var j = 0; j < message.ackIds.length; ++j)
|
|
9914
|
+
object.ackIds[j] = message.ackIds[j];
|
|
9915
|
+
}
|
|
9916
|
+
if (message.invalidAckIds && message.invalidAckIds.length) {
|
|
9917
|
+
object.invalidAckIds = [];
|
|
9918
|
+
for (var j = 0; j < message.invalidAckIds.length; ++j)
|
|
9919
|
+
object.invalidAckIds[j] = message.invalidAckIds[j];
|
|
9920
|
+
}
|
|
9921
|
+
if (message.unorderedAckIds && message.unorderedAckIds.length) {
|
|
9922
|
+
object.unorderedAckIds = [];
|
|
9923
|
+
for (var j = 0; j < message.unorderedAckIds.length; ++j)
|
|
9924
|
+
object.unorderedAckIds[j] = message.unorderedAckIds[j];
|
|
9925
|
+
}
|
|
9926
|
+
return object;
|
|
9927
|
+
};
|
|
9928
|
+
|
|
9929
|
+
/**
|
|
9930
|
+
* Converts this AcknowledgeConfirmation to JSON.
|
|
9931
|
+
* @function toJSON
|
|
9932
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
|
|
9933
|
+
* @instance
|
|
9934
|
+
* @returns {Object.<string,*>} JSON object
|
|
9935
|
+
*/
|
|
9936
|
+
AcknowledgeConfirmation.prototype.toJSON = function toJSON() {
|
|
9937
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9938
|
+
};
|
|
9939
|
+
|
|
9940
|
+
return AcknowledgeConfirmation;
|
|
9941
|
+
})();
|
|
9942
|
+
|
|
9943
|
+
StreamingPullResponse.ModifyAckDeadlineConfirmation = (function() {
|
|
9944
|
+
|
|
9945
|
+
/**
|
|
9946
|
+
* Properties of a ModifyAckDeadlineConfirmation.
|
|
9947
|
+
* @memberof google.pubsub.v1.StreamingPullResponse
|
|
9948
|
+
* @interface IModifyAckDeadlineConfirmation
|
|
9949
|
+
* @property {Array.<string>|null} [ackIds] ModifyAckDeadlineConfirmation ackIds
|
|
9950
|
+
* @property {Array.<string>|null} [invalidAckIds] ModifyAckDeadlineConfirmation invalidAckIds
|
|
9951
|
+
*/
|
|
9952
|
+
|
|
9953
|
+
/**
|
|
9954
|
+
* Constructs a new ModifyAckDeadlineConfirmation.
|
|
9955
|
+
* @memberof google.pubsub.v1.StreamingPullResponse
|
|
9956
|
+
* @classdesc Represents a ModifyAckDeadlineConfirmation.
|
|
9957
|
+
* @implements IModifyAckDeadlineConfirmation
|
|
9958
|
+
* @constructor
|
|
9959
|
+
* @param {google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation=} [properties] Properties to set
|
|
9960
|
+
*/
|
|
9961
|
+
function ModifyAckDeadlineConfirmation(properties) {
|
|
9962
|
+
this.ackIds = [];
|
|
9963
|
+
this.invalidAckIds = [];
|
|
9964
|
+
if (properties)
|
|
9965
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9966
|
+
if (properties[keys[i]] != null)
|
|
9967
|
+
this[keys[i]] = properties[keys[i]];
|
|
9968
|
+
}
|
|
9969
|
+
|
|
9970
|
+
/**
|
|
9971
|
+
* ModifyAckDeadlineConfirmation ackIds.
|
|
9972
|
+
* @member {Array.<string>} ackIds
|
|
9973
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
9974
|
+
* @instance
|
|
9975
|
+
*/
|
|
9976
|
+
ModifyAckDeadlineConfirmation.prototype.ackIds = $util.emptyArray;
|
|
9977
|
+
|
|
9978
|
+
/**
|
|
9979
|
+
* ModifyAckDeadlineConfirmation invalidAckIds.
|
|
9980
|
+
* @member {Array.<string>} invalidAckIds
|
|
9981
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
9982
|
+
* @instance
|
|
9983
|
+
*/
|
|
9984
|
+
ModifyAckDeadlineConfirmation.prototype.invalidAckIds = $util.emptyArray;
|
|
9985
|
+
|
|
9986
|
+
/**
|
|
9987
|
+
* Creates a new ModifyAckDeadlineConfirmation instance using the specified properties.
|
|
9988
|
+
* @function create
|
|
9989
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
9990
|
+
* @static
|
|
9991
|
+
* @param {google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation=} [properties] Properties to set
|
|
9992
|
+
* @returns {google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} ModifyAckDeadlineConfirmation instance
|
|
9993
|
+
*/
|
|
9994
|
+
ModifyAckDeadlineConfirmation.create = function create(properties) {
|
|
9995
|
+
return new ModifyAckDeadlineConfirmation(properties);
|
|
9996
|
+
};
|
|
9997
|
+
|
|
9998
|
+
/**
|
|
9999
|
+
* Encodes the specified ModifyAckDeadlineConfirmation message. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.verify|verify} messages.
|
|
10000
|
+
* @function encode
|
|
10001
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
10002
|
+
* @static
|
|
10003
|
+
* @param {google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation} message ModifyAckDeadlineConfirmation message or plain object to encode
|
|
10004
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10005
|
+
* @returns {$protobuf.Writer} Writer
|
|
10006
|
+
*/
|
|
10007
|
+
ModifyAckDeadlineConfirmation.encode = function encode(message, writer) {
|
|
10008
|
+
if (!writer)
|
|
10009
|
+
writer = $Writer.create();
|
|
10010
|
+
if (message.ackIds != null && message.ackIds.length)
|
|
10011
|
+
for (var i = 0; i < message.ackIds.length; ++i)
|
|
10012
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.ackIds[i]);
|
|
10013
|
+
if (message.invalidAckIds != null && message.invalidAckIds.length)
|
|
10014
|
+
for (var i = 0; i < message.invalidAckIds.length; ++i)
|
|
10015
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.invalidAckIds[i]);
|
|
10016
|
+
return writer;
|
|
10017
|
+
};
|
|
10018
|
+
|
|
10019
|
+
/**
|
|
10020
|
+
* Encodes the specified ModifyAckDeadlineConfirmation message, length delimited. Does not implicitly {@link google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.verify|verify} messages.
|
|
10021
|
+
* @function encodeDelimited
|
|
10022
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
10023
|
+
* @static
|
|
10024
|
+
* @param {google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation} message ModifyAckDeadlineConfirmation message or plain object to encode
|
|
10025
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10026
|
+
* @returns {$protobuf.Writer} Writer
|
|
10027
|
+
*/
|
|
10028
|
+
ModifyAckDeadlineConfirmation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10029
|
+
return this.encode(message, writer).ldelim();
|
|
10030
|
+
};
|
|
10031
|
+
|
|
10032
|
+
/**
|
|
10033
|
+
* Decodes a ModifyAckDeadlineConfirmation message from the specified reader or buffer.
|
|
10034
|
+
* @function decode
|
|
10035
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
10036
|
+
* @static
|
|
10037
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10038
|
+
* @param {number} [length] Message length if known beforehand
|
|
10039
|
+
* @returns {google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} ModifyAckDeadlineConfirmation
|
|
10040
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10041
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10042
|
+
*/
|
|
10043
|
+
ModifyAckDeadlineConfirmation.decode = function decode(reader, length) {
|
|
10044
|
+
if (!(reader instanceof $Reader))
|
|
10045
|
+
reader = $Reader.create(reader);
|
|
10046
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation();
|
|
10047
|
+
while (reader.pos < end) {
|
|
10048
|
+
var tag = reader.uint32();
|
|
10049
|
+
switch (tag >>> 3) {
|
|
10050
|
+
case 1:
|
|
10051
|
+
if (!(message.ackIds && message.ackIds.length))
|
|
10052
|
+
message.ackIds = [];
|
|
10053
|
+
message.ackIds.push(reader.string());
|
|
10054
|
+
break;
|
|
10055
|
+
case 2:
|
|
10056
|
+
if (!(message.invalidAckIds && message.invalidAckIds.length))
|
|
10057
|
+
message.invalidAckIds = [];
|
|
10058
|
+
message.invalidAckIds.push(reader.string());
|
|
10059
|
+
break;
|
|
10060
|
+
default:
|
|
10061
|
+
reader.skipType(tag & 7);
|
|
10062
|
+
break;
|
|
10063
|
+
}
|
|
10064
|
+
}
|
|
10065
|
+
return message;
|
|
10066
|
+
};
|
|
10067
|
+
|
|
10068
|
+
/**
|
|
10069
|
+
* Decodes a ModifyAckDeadlineConfirmation message from the specified reader or buffer, length delimited.
|
|
10070
|
+
* @function decodeDelimited
|
|
10071
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
10072
|
+
* @static
|
|
10073
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10074
|
+
* @returns {google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} ModifyAckDeadlineConfirmation
|
|
10075
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10076
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10077
|
+
*/
|
|
10078
|
+
ModifyAckDeadlineConfirmation.decodeDelimited = function decodeDelimited(reader) {
|
|
10079
|
+
if (!(reader instanceof $Reader))
|
|
10080
|
+
reader = new $Reader(reader);
|
|
10081
|
+
return this.decode(reader, reader.uint32());
|
|
10082
|
+
};
|
|
10083
|
+
|
|
10084
|
+
/**
|
|
10085
|
+
* Verifies a ModifyAckDeadlineConfirmation message.
|
|
10086
|
+
* @function verify
|
|
10087
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
10088
|
+
* @static
|
|
10089
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10090
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10091
|
+
*/
|
|
10092
|
+
ModifyAckDeadlineConfirmation.verify = function verify(message) {
|
|
10093
|
+
if (typeof message !== "object" || message === null)
|
|
10094
|
+
return "object expected";
|
|
10095
|
+
if (message.ackIds != null && message.hasOwnProperty("ackIds")) {
|
|
10096
|
+
if (!Array.isArray(message.ackIds))
|
|
10097
|
+
return "ackIds: array expected";
|
|
10098
|
+
for (var i = 0; i < message.ackIds.length; ++i)
|
|
10099
|
+
if (!$util.isString(message.ackIds[i]))
|
|
10100
|
+
return "ackIds: string[] expected";
|
|
10101
|
+
}
|
|
10102
|
+
if (message.invalidAckIds != null && message.hasOwnProperty("invalidAckIds")) {
|
|
10103
|
+
if (!Array.isArray(message.invalidAckIds))
|
|
10104
|
+
return "invalidAckIds: array expected";
|
|
10105
|
+
for (var i = 0; i < message.invalidAckIds.length; ++i)
|
|
10106
|
+
if (!$util.isString(message.invalidAckIds[i]))
|
|
10107
|
+
return "invalidAckIds: string[] expected";
|
|
10108
|
+
}
|
|
10109
|
+
return null;
|
|
10110
|
+
};
|
|
10111
|
+
|
|
10112
|
+
/**
|
|
10113
|
+
* Creates a ModifyAckDeadlineConfirmation message from a plain object. Also converts values to their respective internal types.
|
|
10114
|
+
* @function fromObject
|
|
10115
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
10116
|
+
* @static
|
|
10117
|
+
* @param {Object.<string,*>} object Plain object
|
|
10118
|
+
* @returns {google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} ModifyAckDeadlineConfirmation
|
|
10119
|
+
*/
|
|
10120
|
+
ModifyAckDeadlineConfirmation.fromObject = function fromObject(object) {
|
|
10121
|
+
if (object instanceof $root.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)
|
|
10122
|
+
return object;
|
|
10123
|
+
var message = new $root.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation();
|
|
10124
|
+
if (object.ackIds) {
|
|
10125
|
+
if (!Array.isArray(object.ackIds))
|
|
10126
|
+
throw TypeError(".google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.ackIds: array expected");
|
|
10127
|
+
message.ackIds = [];
|
|
10128
|
+
for (var i = 0; i < object.ackIds.length; ++i)
|
|
10129
|
+
message.ackIds[i] = String(object.ackIds[i]);
|
|
10130
|
+
}
|
|
10131
|
+
if (object.invalidAckIds) {
|
|
10132
|
+
if (!Array.isArray(object.invalidAckIds))
|
|
10133
|
+
throw TypeError(".google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.invalidAckIds: array expected");
|
|
10134
|
+
message.invalidAckIds = [];
|
|
10135
|
+
for (var i = 0; i < object.invalidAckIds.length; ++i)
|
|
10136
|
+
message.invalidAckIds[i] = String(object.invalidAckIds[i]);
|
|
10137
|
+
}
|
|
10138
|
+
return message;
|
|
10139
|
+
};
|
|
10140
|
+
|
|
10141
|
+
/**
|
|
10142
|
+
* Creates a plain object from a ModifyAckDeadlineConfirmation message. Also converts values to other types if specified.
|
|
10143
|
+
* @function toObject
|
|
10144
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
10145
|
+
* @static
|
|
10146
|
+
* @param {google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} message ModifyAckDeadlineConfirmation
|
|
10147
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10148
|
+
* @returns {Object.<string,*>} Plain object
|
|
10149
|
+
*/
|
|
10150
|
+
ModifyAckDeadlineConfirmation.toObject = function toObject(message, options) {
|
|
10151
|
+
if (!options)
|
|
10152
|
+
options = {};
|
|
10153
|
+
var object = {};
|
|
10154
|
+
if (options.arrays || options.defaults) {
|
|
10155
|
+
object.ackIds = [];
|
|
10156
|
+
object.invalidAckIds = [];
|
|
10157
|
+
}
|
|
10158
|
+
if (message.ackIds && message.ackIds.length) {
|
|
10159
|
+
object.ackIds = [];
|
|
10160
|
+
for (var j = 0; j < message.ackIds.length; ++j)
|
|
10161
|
+
object.ackIds[j] = message.ackIds[j];
|
|
10162
|
+
}
|
|
10163
|
+
if (message.invalidAckIds && message.invalidAckIds.length) {
|
|
10164
|
+
object.invalidAckIds = [];
|
|
10165
|
+
for (var j = 0; j < message.invalidAckIds.length; ++j)
|
|
10166
|
+
object.invalidAckIds[j] = message.invalidAckIds[j];
|
|
10167
|
+
}
|
|
10168
|
+
return object;
|
|
10169
|
+
};
|
|
10170
|
+
|
|
10171
|
+
/**
|
|
10172
|
+
* Converts this ModifyAckDeadlineConfirmation to JSON.
|
|
10173
|
+
* @function toJSON
|
|
10174
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
|
|
10175
|
+
* @instance
|
|
10176
|
+
* @returns {Object.<string,*>} JSON object
|
|
10177
|
+
*/
|
|
10178
|
+
ModifyAckDeadlineConfirmation.prototype.toJSON = function toJSON() {
|
|
10179
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10180
|
+
};
|
|
10181
|
+
|
|
10182
|
+
return ModifyAckDeadlineConfirmation;
|
|
10183
|
+
})();
|
|
10184
|
+
|
|
9586
10185
|
StreamingPullResponse.SubscriptionProperties = (function() {
|
|
9587
10186
|
|
|
9588
10187
|
/**
|
|
9589
10188
|
* Properties of a SubscriptionProperties.
|
|
9590
10189
|
* @memberof google.pubsub.v1.StreamingPullResponse
|
|
9591
10190
|
* @interface ISubscriptionProperties
|
|
10191
|
+
* @property {boolean|null} [exactlyOnceDeliveryEnabled] SubscriptionProperties exactlyOnceDeliveryEnabled
|
|
9592
10192
|
* @property {boolean|null} [messageOrderingEnabled] SubscriptionProperties messageOrderingEnabled
|
|
9593
10193
|
*/
|
|
9594
10194
|
|
|
@@ -9607,6 +10207,14 @@
|
|
|
9607
10207
|
this[keys[i]] = properties[keys[i]];
|
|
9608
10208
|
}
|
|
9609
10209
|
|
|
10210
|
+
/**
|
|
10211
|
+
* SubscriptionProperties exactlyOnceDeliveryEnabled.
|
|
10212
|
+
* @member {boolean} exactlyOnceDeliveryEnabled
|
|
10213
|
+
* @memberof google.pubsub.v1.StreamingPullResponse.SubscriptionProperties
|
|
10214
|
+
* @instance
|
|
10215
|
+
*/
|
|
10216
|
+
SubscriptionProperties.prototype.exactlyOnceDeliveryEnabled = false;
|
|
10217
|
+
|
|
9610
10218
|
/**
|
|
9611
10219
|
* SubscriptionProperties messageOrderingEnabled.
|
|
9612
10220
|
* @member {boolean} messageOrderingEnabled
|
|
@@ -9639,6 +10247,8 @@
|
|
|
9639
10247
|
SubscriptionProperties.encode = function encode(message, writer) {
|
|
9640
10248
|
if (!writer)
|
|
9641
10249
|
writer = $Writer.create();
|
|
10250
|
+
if (message.exactlyOnceDeliveryEnabled != null && Object.hasOwnProperty.call(message, "exactlyOnceDeliveryEnabled"))
|
|
10251
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.exactlyOnceDeliveryEnabled);
|
|
9642
10252
|
if (message.messageOrderingEnabled != null && Object.hasOwnProperty.call(message, "messageOrderingEnabled"))
|
|
9643
10253
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.messageOrderingEnabled);
|
|
9644
10254
|
return writer;
|
|
@@ -9675,6 +10285,9 @@
|
|
|
9675
10285
|
while (reader.pos < end) {
|
|
9676
10286
|
var tag = reader.uint32();
|
|
9677
10287
|
switch (tag >>> 3) {
|
|
10288
|
+
case 1:
|
|
10289
|
+
message.exactlyOnceDeliveryEnabled = reader.bool();
|
|
10290
|
+
break;
|
|
9678
10291
|
case 2:
|
|
9679
10292
|
message.messageOrderingEnabled = reader.bool();
|
|
9680
10293
|
break;
|
|
@@ -9713,6 +10326,9 @@
|
|
|
9713
10326
|
SubscriptionProperties.verify = function verify(message) {
|
|
9714
10327
|
if (typeof message !== "object" || message === null)
|
|
9715
10328
|
return "object expected";
|
|
10329
|
+
if (message.exactlyOnceDeliveryEnabled != null && message.hasOwnProperty("exactlyOnceDeliveryEnabled"))
|
|
10330
|
+
if (typeof message.exactlyOnceDeliveryEnabled !== "boolean")
|
|
10331
|
+
return "exactlyOnceDeliveryEnabled: boolean expected";
|
|
9716
10332
|
if (message.messageOrderingEnabled != null && message.hasOwnProperty("messageOrderingEnabled"))
|
|
9717
10333
|
if (typeof message.messageOrderingEnabled !== "boolean")
|
|
9718
10334
|
return "messageOrderingEnabled: boolean expected";
|
|
@@ -9731,6 +10347,8 @@
|
|
|
9731
10347
|
if (object instanceof $root.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)
|
|
9732
10348
|
return object;
|
|
9733
10349
|
var message = new $root.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties();
|
|
10350
|
+
if (object.exactlyOnceDeliveryEnabled != null)
|
|
10351
|
+
message.exactlyOnceDeliveryEnabled = Boolean(object.exactlyOnceDeliveryEnabled);
|
|
9734
10352
|
if (object.messageOrderingEnabled != null)
|
|
9735
10353
|
message.messageOrderingEnabled = Boolean(object.messageOrderingEnabled);
|
|
9736
10354
|
return message;
|
|
@@ -9749,8 +10367,12 @@
|
|
|
9749
10367
|
if (!options)
|
|
9750
10368
|
options = {};
|
|
9751
10369
|
var object = {};
|
|
9752
|
-
if (options.defaults)
|
|
10370
|
+
if (options.defaults) {
|
|
10371
|
+
object.exactlyOnceDeliveryEnabled = false;
|
|
9753
10372
|
object.messageOrderingEnabled = false;
|
|
10373
|
+
}
|
|
10374
|
+
if (message.exactlyOnceDeliveryEnabled != null && message.hasOwnProperty("exactlyOnceDeliveryEnabled"))
|
|
10375
|
+
object.exactlyOnceDeliveryEnabled = message.exactlyOnceDeliveryEnabled;
|
|
9754
10376
|
if (message.messageOrderingEnabled != null && message.hasOwnProperty("messageOrderingEnabled"))
|
|
9755
10377
|
object.messageOrderingEnabled = message.messageOrderingEnabled;
|
|
9756
10378
|
return object;
|
|
@@ -11848,7 +12470,7 @@
|
|
|
11848
12470
|
};
|
|
11849
12471
|
|
|
11850
12472
|
/**
|
|
11851
|
-
* Callback as used by {@link google.pubsub.v1.SchemaService
|
|
12473
|
+
* Callback as used by {@link google.pubsub.v1.SchemaService|createSchema}.
|
|
11852
12474
|
* @memberof google.pubsub.v1.SchemaService
|
|
11853
12475
|
* @typedef CreateSchemaCallback
|
|
11854
12476
|
* @type {function}
|
|
@@ -11881,7 +12503,7 @@
|
|
|
11881
12503
|
*/
|
|
11882
12504
|
|
|
11883
12505
|
/**
|
|
11884
|
-
* Callback as used by {@link google.pubsub.v1.SchemaService
|
|
12506
|
+
* Callback as used by {@link google.pubsub.v1.SchemaService|getSchema}.
|
|
11885
12507
|
* @memberof google.pubsub.v1.SchemaService
|
|
11886
12508
|
* @typedef GetSchemaCallback
|
|
11887
12509
|
* @type {function}
|
|
@@ -11914,7 +12536,7 @@
|
|
|
11914
12536
|
*/
|
|
11915
12537
|
|
|
11916
12538
|
/**
|
|
11917
|
-
* Callback as used by {@link google.pubsub.v1.SchemaService
|
|
12539
|
+
* Callback as used by {@link google.pubsub.v1.SchemaService|listSchemas}.
|
|
11918
12540
|
* @memberof google.pubsub.v1.SchemaService
|
|
11919
12541
|
* @typedef ListSchemasCallback
|
|
11920
12542
|
* @type {function}
|
|
@@ -11947,7 +12569,7 @@
|
|
|
11947
12569
|
*/
|
|
11948
12570
|
|
|
11949
12571
|
/**
|
|
11950
|
-
* Callback as used by {@link google.pubsub.v1.SchemaService
|
|
12572
|
+
* Callback as used by {@link google.pubsub.v1.SchemaService|deleteSchema}.
|
|
11951
12573
|
* @memberof google.pubsub.v1.SchemaService
|
|
11952
12574
|
* @typedef DeleteSchemaCallback
|
|
11953
12575
|
* @type {function}
|
|
@@ -11980,7 +12602,7 @@
|
|
|
11980
12602
|
*/
|
|
11981
12603
|
|
|
11982
12604
|
/**
|
|
11983
|
-
* Callback as used by {@link google.pubsub.v1.SchemaService
|
|
12605
|
+
* Callback as used by {@link google.pubsub.v1.SchemaService|validateSchema}.
|
|
11984
12606
|
* @memberof google.pubsub.v1.SchemaService
|
|
11985
12607
|
* @typedef ValidateSchemaCallback
|
|
11986
12608
|
* @type {function}
|
|
@@ -12013,7 +12635,7 @@
|
|
|
12013
12635
|
*/
|
|
12014
12636
|
|
|
12015
12637
|
/**
|
|
12016
|
-
* Callback as used by {@link google.pubsub.v1.SchemaService
|
|
12638
|
+
* Callback as used by {@link google.pubsub.v1.SchemaService|validateMessage}.
|
|
12017
12639
|
* @memberof google.pubsub.v1.SchemaService
|
|
12018
12640
|
* @typedef ValidateMessageCallback
|
|
12019
12641
|
* @type {function}
|