google-cloud-pubsub-v1 0.20.2 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +33 -29
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +2 -2
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +60 -57
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/pubsub/v1/pubsub_pb.rb +6 -2
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +7 -5
- data/lib/google/pubsub/v1/schema_pb.rb +2 -2
- data/proto_docs/google/pubsub/v1/pubsub.rb +348 -230
- data/proto_docs/google/pubsub/v1/schema.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7f0fd155e6a774e4b19c140793afcf776e7e0bf952ad3b4afbbfa93ebd9e8e9
|
4
|
+
data.tar.gz: 283e69532c149dba6fec298fd4aaccbad81b1d47a8d8e5511a45fffc26cb200c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abdd83c11f888f9a5be0b4b984dea2dbb762d8e442d9f188d3e901bf1a031454b6949709613e31cc9fcc053b43b33d93510d8661922899a3ec33261a41ffb7f1
|
7
|
+
data.tar.gz: 198418f4d1087b3d42f2882f687b6c4f97674be1a1e626b131a4715320bfcad31bd35f7e9313d05304bd8bc5b8b263960cb7cb7788aa2c71c167fb45a2c36de3
|
@@ -81,7 +81,7 @@ module Google
|
|
81
81
|
|
82
82
|
default_config.rpcs.publish.timeout = 60.0
|
83
83
|
default_config.rpcs.publish.retry_policy = {
|
84
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 4
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 4, retry_codes: [10, 1, 13, 8, 2, 14, 4]
|
85
85
|
}
|
86
86
|
|
87
87
|
default_config.rpcs.get_topic.timeout = 60.0
|
@@ -235,7 +235,7 @@ module Google
|
|
235
235
|
# @param options [::Gapic::CallOptions, ::Hash]
|
236
236
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
237
237
|
#
|
238
|
-
# @overload create_topic(name: nil, labels: nil, message_storage_policy: nil, kms_key_name: nil, schema_settings: nil, satisfies_pzs: nil, message_retention_duration: nil)
|
238
|
+
# @overload create_topic(name: nil, labels: nil, message_storage_policy: nil, kms_key_name: nil, schema_settings: nil, satisfies_pzs: nil, message_retention_duration: nil, ingestion_data_source_settings: nil)
|
239
239
|
# Pass arguments to `create_topic` via keyword arguments. Note that at
|
240
240
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
241
241
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -248,31 +248,35 @@ module Google
|
|
248
248
|
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
249
249
|
# must not start with `"goog"`.
|
250
250
|
# @param labels [::Hash{::String => ::String}]
|
251
|
-
# See [Creating and managing labels]
|
251
|
+
# Optional. See [Creating and managing labels]
|
252
252
|
# (https://cloud.google.com/pubsub/docs/labels).
|
253
253
|
# @param message_storage_policy [::Google::Cloud::PubSub::V1::MessageStoragePolicy, ::Hash]
|
254
|
-
# Policy constraining the set of Google Cloud Platform regions
|
255
|
-
# published to the topic may be stored. If not present, then
|
256
|
-
# are in effect.
|
254
|
+
# Optional. Policy constraining the set of Google Cloud Platform regions
|
255
|
+
# where messages published to the topic may be stored. If not present, then
|
256
|
+
# no constraints are in effect.
|
257
257
|
# @param kms_key_name [::String]
|
258
|
-
# The resource name of the Cloud KMS CryptoKey to be used to
|
259
|
-
# to messages published on this topic.
|
258
|
+
# Optional. The resource name of the Cloud KMS CryptoKey to be used to
|
259
|
+
# protect access to messages published on this topic.
|
260
260
|
#
|
261
261
|
# The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
262
262
|
# @param schema_settings [::Google::Cloud::PubSub::V1::SchemaSettings, ::Hash]
|
263
|
-
# Settings for validating messages published against a schema.
|
263
|
+
# Optional. Settings for validating messages published against a schema.
|
264
264
|
# @param satisfies_pzs [::Boolean]
|
265
|
-
# Reserved for future use. This field is set only in responses from
|
266
|
-
# server; it is ignored if it is set in any requests.
|
265
|
+
# Optional. Reserved for future use. This field is set only in responses from
|
266
|
+
# the server; it is ignored if it is set in any requests.
|
267
267
|
# @param message_retention_duration [::Google::Protobuf::Duration, ::Hash]
|
268
|
-
# Indicates the minimum duration to retain a message after it is
|
269
|
-
# the topic. If this field is set, messages published to the
|
270
|
-
# last `message_retention_duration` are always available to
|
271
|
-
# instance, it allows any attached subscription to [seek to
|
268
|
+
# Optional. Indicates the minimum duration to retain a message after it is
|
269
|
+
# published to the topic. If this field is set, messages published to the
|
270
|
+
# topic in the last `message_retention_duration` are always available to
|
271
|
+
# subscribers. For instance, it allows any attached subscription to [seek to
|
272
|
+
# a
|
272
273
|
# timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
|
273
274
|
# that is up to `message_retention_duration` in the past. If this field is
|
274
275
|
# not set, message retention is controlled by settings on individual
|
275
276
|
# subscriptions. Cannot be more than 31 days or less than 10 minutes.
|
277
|
+
# @param ingestion_data_source_settings [::Google::Cloud::PubSub::V1::IngestionDataSourceSettings, ::Hash]
|
278
|
+
# Optional. Settings for managed ingestion from a data source into this
|
279
|
+
# topic.
|
276
280
|
#
|
277
281
|
# @yield [response, operation] Access the result along with the RPC operation
|
278
282
|
# @yieldparam response [::Google::Cloud::PubSub::V1::Topic]
|
@@ -339,8 +343,8 @@ module Google
|
|
339
343
|
end
|
340
344
|
|
341
345
|
##
|
342
|
-
# Updates an existing topic
|
343
|
-
# topic are not modifiable.
|
346
|
+
# Updates an existing topic by updating the fields specified in the update
|
347
|
+
# mask. Note that certain properties of a topic are not modifiable.
|
344
348
|
#
|
345
349
|
# @overload update_topic(request, options = nil)
|
346
350
|
# Pass arguments to `update_topic` via a request object, either of type
|
@@ -627,11 +631,11 @@ module Google
|
|
627
631
|
# Required. The name of the project in which to list topics.
|
628
632
|
# Format is `projects/{project-id}`.
|
629
633
|
# @param page_size [::Integer]
|
630
|
-
# Maximum number of topics to return.
|
634
|
+
# Optional. Maximum number of topics to return.
|
631
635
|
# @param page_token [::String]
|
632
|
-
# The value returned by the last `ListTopicsResponse`; indicates
|
633
|
-
# a continuation of a prior `ListTopics` call, and that the
|
634
|
-
# return the next page of data.
|
636
|
+
# Optional. The value returned by the last `ListTopicsResponse`; indicates
|
637
|
+
# that this is a continuation of a prior `ListTopics` call, and that the
|
638
|
+
# system should return the next page of data.
|
635
639
|
#
|
636
640
|
# @yield [response, operation] Access the result along with the RPC operation
|
637
641
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::PubSub::V1::Topic>]
|
@@ -724,11 +728,11 @@ module Google
|
|
724
728
|
# Required. The name of the topic that subscriptions are attached to.
|
725
729
|
# Format is `projects/{project}/topics/{topic}`.
|
726
730
|
# @param page_size [::Integer]
|
727
|
-
# Maximum number of subscription names to return.
|
731
|
+
# Optional. Maximum number of subscription names to return.
|
728
732
|
# @param page_token [::String]
|
729
|
-
# The value returned by the last `ListTopicSubscriptionsResponse`;
|
730
|
-
# that this is a continuation of a prior `ListTopicSubscriptions`
|
731
|
-
# that the system should return the next page of data.
|
733
|
+
# Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
|
734
|
+
# indicates that this is a continuation of a prior `ListTopicSubscriptions`
|
735
|
+
# call, and that the system should return the next page of data.
|
732
736
|
#
|
733
737
|
# @yield [response, operation] Access the result along with the RPC operation
|
734
738
|
# @yieldparam response [::Google::Cloud::PubSub::V1::ListTopicSubscriptionsResponse]
|
@@ -820,11 +824,11 @@ module Google
|
|
820
824
|
# Required. The name of the topic that snapshots are attached to.
|
821
825
|
# Format is `projects/{project}/topics/{topic}`.
|
822
826
|
# @param page_size [::Integer]
|
823
|
-
# Maximum number of snapshot names to return.
|
827
|
+
# Optional. Maximum number of snapshot names to return.
|
824
828
|
# @param page_token [::String]
|
825
|
-
# The value returned by the last `ListTopicSnapshotsResponse`;
|
826
|
-
# that this is a continuation of a prior `ListTopicSnapshots` call,
|
827
|
-
# that the system should return the next page of data.
|
829
|
+
# Optional. The value returned by the last `ListTopicSnapshotsResponse`;
|
830
|
+
# indicates that this is a continuation of a prior `ListTopicSnapshots` call,
|
831
|
+
# and that the system should return the next page of data.
|
828
832
|
#
|
829
833
|
# @yield [response, operation] Access the result along with the RPC operation
|
830
834
|
# @yieldparam response [::Google::Cloud::PubSub::V1::ListTopicSnapshotsResponse]
|
@@ -256,8 +256,8 @@ module Google
|
|
256
256
|
# The ID to use for the schema, which will become the final component of
|
257
257
|
# the schema's resource name.
|
258
258
|
#
|
259
|
-
# See https://cloud.google.com/pubsub/docs/
|
260
|
-
# name constraints.
|
259
|
+
# See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for
|
260
|
+
# resource name constraints.
|
261
261
|
#
|
262
262
|
# @yield [response, operation] Access the result along with the RPC operation
|
263
263
|
# @yieldparam response [::Google::Cloud::PubSub::V1::Schema]
|
@@ -112,7 +112,7 @@ module Google
|
|
112
112
|
|
113
113
|
default_config.rpcs.streaming_pull.timeout = 900.0
|
114
114
|
default_config.rpcs.streaming_pull.retry_policy = {
|
115
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 4
|
115
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 4, retry_codes: [4, 8, 10, 13, 14]
|
116
116
|
}
|
117
117
|
|
118
118
|
default_config.rpcs.modify_push_config.timeout = 60.0
|
@@ -297,20 +297,20 @@ module Google
|
|
297
297
|
# messages. Format is `projects/{project}/topics/{topic}`. The value of this
|
298
298
|
# field will be `_deleted-topic_` if the topic has been deleted.
|
299
299
|
# @param push_config [::Google::Cloud::PubSub::V1::PushConfig, ::Hash]
|
300
|
-
# If push delivery is used with this subscription, this field is
|
300
|
+
# Optional. If push delivery is used with this subscription, this field is
|
301
301
|
# used to configure it.
|
302
302
|
# @param bigquery_config [::Google::Cloud::PubSub::V1::BigQueryConfig, ::Hash]
|
303
|
-
# If delivery to BigQuery is used with this subscription, this
|
304
|
-
# used to configure it.
|
305
|
-
# @param cloud_storage_config [::Google::Cloud::PubSub::V1::CloudStorageConfig, ::Hash]
|
306
|
-
# If delivery to Google Cloud Storage is used with this subscription, this
|
303
|
+
# Optional. If delivery to BigQuery is used with this subscription, this
|
307
304
|
# field is used to configure it.
|
305
|
+
# @param cloud_storage_config [::Google::Cloud::PubSub::V1::CloudStorageConfig, ::Hash]
|
306
|
+
# Optional. If delivery to Google Cloud Storage is used with this
|
307
|
+
# subscription, this field is used to configure it.
|
308
308
|
# @param ack_deadline_seconds [::Integer]
|
309
|
-
# The approximate amount of time (on a best-effort basis) Pub/Sub
|
310
|
-
# the subscriber to acknowledge receipt before resending the
|
311
|
-
# interval after the message is delivered and before it is
|
312
|
-
# is considered to be _outstanding_. During that time
|
313
|
-
# message will not be redelivered (on a best-effort basis).
|
309
|
+
# Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
|
310
|
+
# waits for the subscriber to acknowledge receipt before resending the
|
311
|
+
# message. In the interval after the message is delivered and before it is
|
312
|
+
# acknowledged, it is considered to be _outstanding_. During that time
|
313
|
+
# period, the message will not be redelivered (on a best-effort basis).
|
314
314
|
#
|
315
315
|
# For pull subscriptions, this value is used as the initial value for the ack
|
316
316
|
# deadline. To override this value for a given message, call
|
@@ -327,67 +327,67 @@ module Google
|
|
327
327
|
# If the subscriber never acknowledges the message, the Pub/Sub
|
328
328
|
# system will eventually redeliver the message.
|
329
329
|
# @param retain_acked_messages [::Boolean]
|
330
|
-
# Indicates whether to retain acknowledged messages. If true, then
|
330
|
+
# Optional. Indicates whether to retain acknowledged messages. If true, then
|
331
331
|
# messages are not expunged from the subscription's backlog, even if they are
|
332
332
|
# acknowledged, until they fall out of the `message_retention_duration`
|
333
333
|
# window. This must be true if you would like to [`Seek` to a timestamp]
|
334
334
|
# (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in
|
335
335
|
# the past to replay previously-acknowledged messages.
|
336
336
|
# @param message_retention_duration [::Google::Protobuf::Duration, ::Hash]
|
337
|
-
# How long to retain unacknowledged messages in the subscription's
|
338
|
-
# from the moment a message is published.
|
339
|
-
#
|
340
|
-
#
|
341
|
-
#
|
342
|
-
# minutes.
|
337
|
+
# Optional. How long to retain unacknowledged messages in the subscription's
|
338
|
+
# backlog, from the moment a message is published. If `retain_acked_messages`
|
339
|
+
# is true, then this also configures the retention of acknowledged messages,
|
340
|
+
# and thus configures how far back in time a `Seek` can be done. Defaults to
|
341
|
+
# 7 days. Cannot be more than 7 days or less than 10 minutes.
|
343
342
|
# @param labels [::Hash{::String => ::String}]
|
344
|
-
# See [Creating and managing
|
343
|
+
# Optional. See [Creating and managing
|
345
344
|
# labels](https://cloud.google.com/pubsub/docs/labels).
|
346
345
|
# @param enable_message_ordering [::Boolean]
|
347
|
-
# If true, messages published with the same `ordering_key` in
|
348
|
-
# will be delivered to the subscribers in the order in which
|
349
|
-
# are received by the Pub/Sub system. Otherwise, they may be delivered
|
350
|
-
# any order.
|
346
|
+
# Optional. If true, messages published with the same `ordering_key` in
|
347
|
+
# `PubsubMessage` will be delivered to the subscribers in the order in which
|
348
|
+
# they are received by the Pub/Sub system. Otherwise, they may be delivered
|
349
|
+
# in any order.
|
351
350
|
# @param expiration_policy [::Google::Cloud::PubSub::V1::ExpirationPolicy, ::Hash]
|
352
|
-
# A policy that specifies the conditions for this subscription's
|
353
|
-
# A subscription is considered active as long as any connected
|
354
|
-
# successfully consuming messages from the subscription or is
|
355
|
-
# operations on the subscription. If `expiration_policy` is not set,
|
356
|
-
# *default policy* with `ttl` of 31 days will be used. The minimum allowed
|
351
|
+
# Optional. A policy that specifies the conditions for this subscription's
|
352
|
+
# expiration. A subscription is considered active as long as any connected
|
353
|
+
# subscriber is successfully consuming messages from the subscription or is
|
354
|
+
# issuing operations on the subscription. If `expiration_policy` is not set,
|
355
|
+
# a *default policy* with `ttl` of 31 days will be used. The minimum allowed
|
357
356
|
# value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set,
|
358
357
|
# but `expiration_policy.ttl` is not set, the subscription never expires.
|
359
358
|
# @param filter [::String]
|
360
|
-
# An expression written in the Pub/Sub [filter
|
359
|
+
# Optional. An expression written in the Pub/Sub [filter
|
361
360
|
# language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
|
362
361
|
# then only `PubsubMessage`s whose `attributes` field matches the filter are
|
363
362
|
# delivered on this subscription. If empty, then no messages are filtered
|
364
363
|
# out.
|
365
364
|
# @param dead_letter_policy [::Google::Cloud::PubSub::V1::DeadLetterPolicy, ::Hash]
|
366
|
-
# A policy that specifies the conditions for dead lettering
|
367
|
-
# this subscription. If dead_letter_policy is not set, dead
|
368
|
-
# is disabled.
|
365
|
+
# Optional. A policy that specifies the conditions for dead lettering
|
366
|
+
# messages in this subscription. If dead_letter_policy is not set, dead
|
367
|
+
# lettering is disabled.
|
369
368
|
#
|
370
|
-
# The
|
369
|
+
# The Pub/Sub service account associated with this subscriptions's
|
371
370
|
# parent project (i.e.,
|
372
371
|
# service-\\{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
|
373
372
|
# permission to Acknowledge() messages on this subscription.
|
374
373
|
# @param retry_policy [::Google::Cloud::PubSub::V1::RetryPolicy, ::Hash]
|
375
|
-
# A policy that specifies how Pub/Sub retries message delivery for
|
376
|
-
# subscription.
|
374
|
+
# Optional. A policy that specifies how Pub/Sub retries message delivery for
|
375
|
+
# this subscription.
|
377
376
|
#
|
378
377
|
# If not set, the default retry policy is applied. This generally implies
|
379
378
|
# that messages will be retried as soon as possible for healthy subscribers.
|
380
379
|
# RetryPolicy will be triggered on NACKs or acknowledgement deadline
|
381
380
|
# exceeded events for a given message.
|
382
381
|
# @param detached [::Boolean]
|
383
|
-
# Indicates whether the subscription is detached from its topic.
|
384
|
-
# subscriptions don't receive messages from their topic and don't
|
385
|
-
# backlog. `Pull` and `StreamingPull` requests will return
|
382
|
+
# Optional. Indicates whether the subscription is detached from its topic.
|
383
|
+
# Detached subscriptions don't receive messages from their topic and don't
|
384
|
+
# retain any backlog. `Pull` and `StreamingPull` requests will return
|
386
385
|
# FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
|
387
386
|
# the endpoint will not be made.
|
388
387
|
# @param enable_exactly_once_delivery [::Boolean]
|
389
|
-
# If true, Pub/Sub provides the following guarantees for the
|
390
|
-
# a message with a given value of `message_id` on this
|
388
|
+
# Optional. If true, Pub/Sub provides the following guarantees for the
|
389
|
+
# delivery of a message with a given value of `message_id` on this
|
390
|
+
# subscription:
|
391
391
|
#
|
392
392
|
# * The message sent to a subscriber is guaranteed not to be resent
|
393
393
|
# before the message's acknowledgement deadline expires.
|
@@ -549,8 +549,9 @@ module Google
|
|
549
549
|
end
|
550
550
|
|
551
551
|
##
|
552
|
-
# Updates an existing subscription
|
553
|
-
# subscription, such as its
|
552
|
+
# Updates an existing subscription by updating the fields specified in the
|
553
|
+
# update mask. Note that certain properties of a subscription, such as its
|
554
|
+
# topic, are not modifiable.
|
554
555
|
#
|
555
556
|
# @overload update_subscription(request, options = nil)
|
556
557
|
# Pass arguments to `update_subscription` via a request object, either of type
|
@@ -659,11 +660,11 @@ module Google
|
|
659
660
|
# Required. The name of the project in which to list subscriptions.
|
660
661
|
# Format is `projects/{project-id}`.
|
661
662
|
# @param page_size [::Integer]
|
662
|
-
# Maximum number of subscriptions to return.
|
663
|
+
# Optional. Maximum number of subscriptions to return.
|
663
664
|
# @param page_token [::String]
|
664
|
-
# The value returned by the last `ListSubscriptionsResponse`;
|
665
|
-
# this is a continuation of a prior `ListSubscriptions` call,
|
666
|
-
# system should return the next page of data.
|
665
|
+
# Optional. The value returned by the last `ListSubscriptionsResponse`;
|
666
|
+
# indicates that this is a continuation of a prior `ListSubscriptions` call,
|
667
|
+
# and that the system should return the next page of data.
|
667
668
|
#
|
668
669
|
# @yield [response, operation] Access the result along with the RPC operation
|
669
670
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::PubSub::V1::Subscription>]
|
@@ -859,7 +860,8 @@ module Google
|
|
859
860
|
# delivery to another subscriber client. This typically results in an
|
860
861
|
# increase in the rate of message redeliveries (that is, duplicates).
|
861
862
|
# The minimum deadline you can specify is 0 seconds.
|
862
|
-
# The maximum deadline you can specify is 600 seconds
|
863
|
+
# The maximum deadline you can specify in a single request is 600 seconds
|
864
|
+
# (10 minutes).
|
863
865
|
#
|
864
866
|
# @yield [response, operation] Access the result along with the RPC operation
|
865
867
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -1417,11 +1419,11 @@ module Google
|
|
1417
1419
|
# Required. The name of the project in which to list snapshots.
|
1418
1420
|
# Format is `projects/{project-id}`.
|
1419
1421
|
# @param page_size [::Integer]
|
1420
|
-
# Maximum number of snapshots to return.
|
1422
|
+
# Optional. Maximum number of snapshots to return.
|
1421
1423
|
# @param page_token [::String]
|
1422
|
-
# The value returned by the last `ListSnapshotsResponse`; indicates
|
1423
|
-
# is a continuation of a prior `ListSnapshots` call, and that the
|
1424
|
-
# should return the next page of data.
|
1424
|
+
# Optional. The value returned by the last `ListSnapshotsResponse`; indicates
|
1425
|
+
# that this is a continuation of a prior `ListSnapshots` call, and that the
|
1426
|
+
# system should return the next page of data.
|
1425
1427
|
#
|
1426
1428
|
# @yield [response, operation] Access the result along with the RPC operation
|
1427
1429
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::PubSub::V1::Snapshot>]
|
@@ -1543,7 +1545,7 @@ module Google
|
|
1543
1545
|
# successful completion of the CreateSnapshot request.
|
1544
1546
|
# Format is `projects/{project}/subscriptions/{sub}`.
|
1545
1547
|
# @param labels [::Hash{::String => ::String}]
|
1546
|
-
# See [Creating and managing
|
1548
|
+
# Optional. See [Creating and managing
|
1547
1549
|
# labels](https://cloud.google.com/pubsub/docs/labels).
|
1548
1550
|
#
|
1549
1551
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1611,7 +1613,8 @@ module Google
|
|
1611
1613
|
end
|
1612
1614
|
|
1613
1615
|
##
|
1614
|
-
# Updates an existing snapshot
|
1616
|
+
# Updates an existing snapshot by updating the fields specified in the update
|
1617
|
+
# mask. Snapshots are used in
|
1615
1618
|
# [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
|
1616
1619
|
# which allow you to manage message acknowledgments in bulk. That is, you can
|
1617
1620
|
# set the acknowledgment state of messages in an existing subscription to the
|
@@ -1823,7 +1826,7 @@ module Google
|
|
1823
1826
|
# @param subscription [::String]
|
1824
1827
|
# Required. The subscription to affect.
|
1825
1828
|
# @param time [::Google::Protobuf::Timestamp, ::Hash]
|
1826
|
-
# The time to seek to.
|
1829
|
+
# Optional. The time to seek to.
|
1827
1830
|
# Messages retained in the subscription that were published before this
|
1828
1831
|
# time are marked as acknowledged, and messages retained in the
|
1829
1832
|
# subscription that were published after this time are marked as
|
@@ -1835,9 +1838,9 @@ module Google
|
|
1835
1838
|
# creation time), only retained messages will be marked as unacknowledged,
|
1836
1839
|
# and already-expunged messages will not be restored.
|
1837
1840
|
# @param snapshot [::String]
|
1838
|
-
# The snapshot to seek to. The snapshot's topic must be the same
|
1839
|
-
# the provided subscription.
|
1840
|
-
#
|
1841
|
+
# Optional. The snapshot to seek to. The snapshot's topic must be the same
|
1842
|
+
# as that of the provided subscription. Format is
|
1843
|
+
# `projects/{project}/snapshots/{snap}`.
|
1841
1844
|
#
|
1842
1845
|
# @yield [response, operation] Access the result along with the RPC operation
|
1843
1846
|
# @yieldparam response [::Google::Cloud::PubSub::V1::SeekResponse]
|
@@ -15,13 +15,13 @@ require 'google/protobuf/timestamp_pb'
|
|
15
15
|
require 'google/pubsub/v1/schema_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n\x1dgoogle/pubsub/v1/pubsub.proto\x12\x10google.pubsub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dgoogle/pubsub/v1/schema.proto\";\n\x14MessageStoragePolicy\x12#\n\x1b\x61llowed_persistence_regions\x18\x01 \x03(\t\"\xa9\x01\n\x0eSchemaSettings\x12\x34\n\x06schema\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12,\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32\x1a.google.pubsub.v1.Encoding\x12\x19\n\x11\x66irst_revision_id\x18\x03 \x01(\t\x12\x18\n\x10last_revision_id\x18\x04 \x01(\t\"\xc3\x03\n\x05Topic\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x06labels\x18\x02 \x03(\x0b\x32#.google.pubsub.v1.Topic.LabelsEntry\x12\x46\n\x16message_storage_policy\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.MessageStoragePolicy\x12\x14\n\x0ckms_key_name\x18\x05 \x01(\t\x12\x39\n\x0fschema_settings\x18\x06 \x01(\x0b\x32 .google.pubsub.v1.SchemaSettings\x12\x15\n\rsatisfies_pzs\x18\x07 \x01(\x08\x12=\n\x1amessage_retention_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:T\xea\x41Q\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\x12\x0f_deleted-topic_\"\xf1\x01\n\rPubsubMessage\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x43\n\nattributes\x18\x02 \x03(\x0b\x32/.google.pubsub.v1.PubsubMessage.AttributesEntry\x12\x12\n\nmessage_id\x18\x03 \x01(\t\x12\x30\n\x0cpublish_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cordering_key\x18\x05 \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x0fGetTopicRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\"w\n\x12UpdateTopicRequest\x12+\n\x05topic\x18\x01 \x01(\x0b\x32\x17.google.pubsub.v1.TopicB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"|\n\x0ePublishRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x36\n\x08messages\x18\x02 \x03(\x0b\x32\x1f.google.pubsub.v1.PubsubMessageB\x03\xe0\x41\x02\"&\n\x0fPublishResponse\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\"\x80\x01\n\x11ListTopicsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"V\n\x12ListTopicsResponse\x12\'\n\x06topics\x18\x01 \x03(\x0b\x32\x17.google.pubsub.v1.Topic\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"z\n\x1dListTopicSubscriptionsRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x1eListTopicSubscriptionsResponse\x12>\n\rsubscriptions\x18\x01 \x03(\tB\'\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"v\n\x19ListTopicSnapshotsRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"H\n\x1aListTopicSnapshotsResponse\x12\x11\n\tsnapshots\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"H\n\x12\x44\x65leteTopicRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\"]\n\x19\x44\x65tachSubscriptionRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\"\x1c\n\x1a\x44\x65tachSubscriptionResponse\"\xa9\x08\n\x0cSubscription\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x05topic\x18\x02 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x31\n\x0bpush_config\x18\x04 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfig\x12\x39\n\x0f\x62igquery_config\x18\x12 \x01(\x0b\x32 .google.pubsub.v1.BigQueryConfig\x12\x42\n\x14\x63loud_storage_config\x18\x16 \x01(\x0b\x32$.google.pubsub.v1.CloudStorageConfig\x12\x1c\n\x14\x61\x63k_deadline_seconds\x18\x05 \x01(\x05\x12\x1d\n\x15retain_acked_messages\x18\x07 \x01(\x08\x12=\n\x1amessage_retention_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x06labels\x18\t \x03(\x0b\x32*.google.pubsub.v1.Subscription.LabelsEntry\x12\x1f\n\x17\x65nable_message_ordering\x18\n \x01(\x08\x12=\n\x11\x65xpiration_policy\x18\x0b \x01(\x0b\x32\".google.pubsub.v1.ExpirationPolicy\x12\x0e\n\x06\x66ilter\x18\x0c \x01(\t\x12>\n\x12\x64\x65\x61\x64_letter_policy\x18\r \x01(\x0b\x32\".google.pubsub.v1.DeadLetterPolicy\x12\x33\n\x0cretry_policy\x18\x0e \x01(\x0b\x32\x1d.google.pubsub.v1.RetryPolicy\x12\x10\n\x08\x64\x65tached\x18\x0f \x01(\x08\x12$\n\x1c\x65nable_exactly_once_delivery\x18\x10 \x01(\x08\x12H\n topic_message_retention_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x38\n\x05state\x18\x13 \x01(\x0e\x32$.google.pubsub.v1.Subscription.StateB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\">\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x12\n\x0eRESOURCE_ERROR\x10\x02:X\xea\x41U\n\"pubsub.googleapis.com/Subscription\x12/projects/{project}/subscriptions/{subscription}\"u\n\x0bRetryPolicy\x12\x32\n\x0fminimum_backoff\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0fmaximum_backoff\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"L\n\x10\x44\x65\x61\x64LetterPolicy\x12\x19\n\x11\x64\x65\x61\x64_letter_topic\x18\x01 \x01(\t\x12\x1d\n\x15max_delivery_attempts\x18\x02 \x01(\x05\":\n\x10\x45xpirationPolicy\x12&\n\x03ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xf2\x03\n\nPushConfig\x12\x15\n\rpush_endpoint\x18\x01 \x01(\t\x12@\n\nattributes\x18\x02 \x03(\x0b\x32,.google.pubsub.v1.PushConfig.AttributesEntry\x12<\n\noidc_token\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.PushConfig.OidcTokenH\x00\x12\x44\n\x0epubsub_wrapper\x18\x04 \x01(\x0b\x32*.google.pubsub.v1.PushConfig.PubsubWrapperH\x01\x12<\n\nno_wrapper\x18\x05 \x01(\x0b\x32&.google.pubsub.v1.PushConfig.NoWrapperH\x01\x1a<\n\tOidcToken\x12\x1d\n\x15service_account_email\x18\x01 \x01(\t\x12\x10\n\x08\x61udience\x18\x02 \x01(\t\x1a\x0f\n\rPubsubWrapper\x1a#\n\tNoWrapper\x12\x16\n\x0ewrite_metadata\x18\x01 \x01(\x08\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x15\x61uthentication_methodB\t\n\x07wrapper\"\xb5\x02\n\x0e\x42igQueryConfig\x12\r\n\x05table\x18\x01 \x01(\t\x12\x1d\n\x10use_topic_schema\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x16\n\x0ewrite_metadata\x18\x03 \x01(\x08\x12\x1b\n\x13\x64rop_unknown_fields\x18\x04 \x01(\x08\x12:\n\x05state\x18\x05 \x01(\x0e\x32&.google.pubsub.v1.BigQueryConfig.StateB\x03\xe0\x41\x03\x12\x1d\n\x10use_table_schema\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x15\n\x11PERMISSION_DENIED\x10\x02\x12\r\n\tNOT_FOUND\x10\x03\x12\x13\n\x0fSCHEMA_MISMATCH\x10\x04\"\x86\x04\n\x12\x43loudStorageConfig\x12\x13\n\x06\x62ucket\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\x0f\x66ilename_prefix\x18\x02 \x01(\t\x12\x17\n\x0f\x66ilename_suffix\x18\x03 \x01(\t\x12\x46\n\x0btext_config\x18\x04 \x01(\x0b\x32/.google.pubsub.v1.CloudStorageConfig.TextConfigH\x00\x12\x46\n\x0b\x61vro_config\x18\x05 \x01(\x0b\x32/.google.pubsub.v1.CloudStorageConfig.AvroConfigH\x00\x12/\n\x0cmax_duration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x11\n\tmax_bytes\x18\x07 \x01(\x03\x12>\n\x05state\x18\t \x01(\x0e\x32*.google.pubsub.v1.CloudStorageConfig.StateB\x03\xe0\x41\x03\x1a\x0c\n\nTextConfig\x1a$\n\nAvroConfig\x12\x16\n\x0ewrite_metadata\x18\x01 \x01(\x08\"P\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x15\n\x11PERMISSION_DENIED\x10\x02\x12\r\n\tNOT_FOUND\x10\x03\x42\x0f\n\routput_format\"m\n\x0fReceivedMessage\x12\x0e\n\x06\x61\x63k_id\x18\x01 \x01(\t\x12\x30\n\x07message\x18\x02 \x01(\x0b\x32\x1f.google.pubsub.v1.PubsubMessage\x12\x18\n\x10\x64\x65livery_attempt\x18\x03 \x01(\x05\"Z\n\x16GetSubscriptionRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\"\x8c\x01\n\x19UpdateSubscriptionRequest\x12\x39\n\x0csubscription\x18\x01 \x01(\x0b\x32\x1e.google.pubsub.v1.SubscriptionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x87\x01\n\x18ListSubscriptionsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"k\n\x19ListSubscriptionsResponse\x12\x35\n\rsubscriptions\x18\x01 \x03(\x0b\x32\x1e.google.pubsub.v1.Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x19\x44\x65leteSubscriptionRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\"\x93\x01\n\x17ModifyPushConfigRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x36\n\x0bpush_config\x18\x02 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfigB\x03\xe0\x41\x02\"\x8d\x01\n\x0bPullRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12!\n\x12return_immediately\x18\x02 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x12\x19\n\x0cmax_messages\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"L\n\x0cPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage\"\x95\x01\n\x18ModifyAckDeadlineRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x14\n\x07\x61\x63k_ids\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12!\n\x14\x61\x63k_deadline_seconds\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"l\n\x12\x41\x63knowledgeRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x14\n\x07\x61\x63k_ids\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\xa9\x02\n\x14StreamingPullRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x0f\n\x07\x61\x63k_ids\x18\x02 \x03(\t\x12\x1f\n\x17modify_deadline_seconds\x18\x03 \x03(\x05\x12\x1f\n\x17modify_deadline_ack_ids\x18\x04 \x03(\t\x12(\n\x1bstream_ack_deadline_seconds\x18\x05 \x01(\x05\x42\x03\xe0\x41\x02\x12\x11\n\tclient_id\x18\x06 \x01(\t\x12 \n\x18max_outstanding_messages\x18\x07 \x01(\x03\x12\x1d\n\x15max_outstanding_bytes\x18\x08 \x01(\x03\"\xdd\x05\n\x15StreamingPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage\x12\x61\n\x18\x61\x63knowledge_confirmation\x18\x05 \x01(\x0b\x32?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation\x12o\n modify_ack_deadline_confirmation\x18\x03 \x01(\x0b\x32\x45.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation\x12_\n\x17subscription_properties\x18\x04 \x01(\x0b\x32>.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties\x1a\x80\x01\n\x17\x41\x63knowledgeConfirmation\x12\x0f\n\x07\x61\x63k_ids\x18\x01 \x03(\t\x12\x17\n\x0finvalid_ack_ids\x18\x02 \x03(\t\x12\x19\n\x11unordered_ack_ids\x18\x03 \x03(\t\x12 \n\x18temporary_failed_ack_ids\x18\x04 \x03(\t\x1ak\n\x1dModifyAckDeadlineConfirmation\x12\x0f\n\x07\x61\x63k_ids\x18\x01 \x03(\t\x12\x17\n\x0finvalid_ack_ids\x18\x02 \x03(\t\x12 \n\x18temporary_failed_ack_ids\x18\x03 \x03(\t\x1a\x61\n\x16SubscriptionProperties\x12%\n\x1d\x65xactly_once_delivery_enabled\x18\x01 \x01(\x08\x12 \n\x18message_ordering_enabled\x18\x02 \x01(\x08\"\x83\x02\n\x15\x43reateSnapshotRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot\x12@\n\x0csubscription\x18\x02 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x43\n\x06labels\x18\x03 \x03(\x0b\x32\x33.google.pubsub.v1.CreateSnapshotRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x80\x01\n\x15UpdateSnapshotRequest\x12\x31\n\x08snapshot\x18\x01 \x01(\x0b\x32\x1a.google.pubsub.v1.SnapshotB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xaf\x02\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x05topic\x18\x02 \x01(\tB \xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x06labels\x18\x04 \x03(\x0b\x32&.google.pubsub.v1.Snapshot.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:L\xea\x41I\n\x1epubsub.googleapis.com/Snapshot\x12\'projects/{project}/snapshots/{snapshot}\"N\n\x12GetSnapshotRequest\x12\x38\n\x08snapshot\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot\"\x83\x01\n\x14ListSnapshotsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"_\n\x15ListSnapshotsResponse\x12-\n\tsnapshots\x18\x01 \x03(\x0b\x32\x1a.google.pubsub.v1.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x15\x44\x65leteSnapshotRequest\x12\x38\n\x08snapshot\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot\"\xbe\x01\n\x0bSeekRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12*\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x37\n\x08snapshot\x18\x03 \x01(\tB#\xfa\x41 \n\x1epubsub.googleapis.com/SnapshotH\x00\x42\x08\n\x06target\"\x0e\n\x0cSeekResponse2\xb8\x0b\n\tPublisher\x12q\n\x0b\x43reateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.google.pubsub.v1.Topic\"0\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/topics/*}:\x01*\xda\x41\x04name\x12\x91\x01\n\x0bUpdateTopic\x12$.google.pubsub.v1.UpdateTopicRequest\x1a\x17.google.pubsub.v1.Topic\"C\x82\xd3\xe4\x93\x02)2$/v1/{topic.name=projects/*/topics/*}:\x01*\xda\x41\x11topic,update_mask\x12\x93\x01\n\x07Publish\x12 .google.pubsub.v1.PublishRequest\x1a!.google.pubsub.v1.PublishResponse\"C\x82\xd3\xe4\x93\x02,\"\'/v1/{topic=projects/*/topics/*}:publish:\x01*\xda\x41\x0etopic,messages\x12w\n\x08GetTopic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topic\"/\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\xda\x41\x05topic\x12\x8a\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a$.google.pubsub.v1.ListTopicsResponse\"1\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{project=projects/*}/topics\xda\x41\x07project\x12\xba\x01\n\x16ListTopicSubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a\x30.google.pubsub.v1.ListTopicSubscriptionsResponse\"=\x82\xd3\xe4\x93\x02/\x12-/v1/{topic=projects/*/topics/*}/subscriptions\xda\x41\x05topic\x12\xaa\x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshotsRequest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse\"9\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\xda\x41\x05topic\x12|\n\x0b\x44\x65leteTopic\x12$.google.pubsub.v1.DeleteTopicRequest\x1a\x16.google.protobuf.Empty\"/\x82\xd3\xe4\x93\x02!*\x1f/v1/{topic=projects/*/topics/*}\xda\x41\x05topic\x12\xad\x01\n\x12\x44\x65tachSubscription\x12+.google.pubsub.v1.DetachSubscriptionRequest\x1a,.google.pubsub.v1.DetachSubscriptionResponse\"<\x82\xd3\xe4\x93\x02\x36\"4/v1/{subscription=projects/*/subscriptions/*}:detach\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub2\xd2\x15\n\nSubscriber\x12\xb4\x01\n\x12\x43reateSubscription\x12\x1e.google.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription\"^\x82\xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\xda\x41+name,topic,push_config,ack_deadline_seconds\x12\xa1\x01\n\x0fGetSubscription\x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription\"D\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/subscriptions/*}\xda\x41\x0csubscription\x12\xbb\x01\n\x12UpdateSubscription\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription\"X\x82\xd3\xe4\x93\x02\x37\x32\x32/v1/{subscription.name=projects/*/subscriptions/*}:\x01*\xda\x41\x18subscription,update_mask\x12\xa6\x01\n\x11ListSubscriptions\x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.ListSubscriptionsResponse\"8\x82\xd3\xe4\x93\x02(\x12&/v1/{project=projects/*}/subscriptions\xda\x41\x07project\x12\x9f\x01\n\x12\x44\x65leteSubscription\x12+.google.pubsub.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty\"D\x82\xd3\xe4\x93\x02/*-/v1/{subscription=projects/*/subscriptions/*}\xda\x41\x0csubscription\x12\xcf\x01\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\x1a\x16.google.protobuf.Empty\"v\x82\xd3\xe4\x93\x02\x44\"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\x01*\xda\x41)subscription,ack_ids,ack_deadline_seconds\x12\xa8\x01\n\x0b\x41\x63knowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.protobuf.Empty\"[\x82\xd3\xe4\x93\x02>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\x01*\xda\x41\x14subscription,ack_ids\x12\xd0\x01\n\x04Pull\x12\x1d.google.pubsub.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullResponse\"\x88\x01\x82\xd3\xe4\x93\x02\x37\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\xda\x41,subscription,return_immediately,max_messages\xda\x41\x19subscription,max_messages\x12\x66\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a\'.google.pubsub.v1.StreamingPullResponse\"\x00(\x01\x30\x01\x12\xbb\x01\n\x10ModifyPushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.protobuf.Empty\"d\x82\xd3\xe4\x93\x02\x43\">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\x01*\xda\x41\x18subscription,push_config\x12\x89\x01\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"8\x82\xd3\xe4\x93\x02\'\x12%/v1/{snapshot=projects/*/snapshots/*}\xda\x41\x08snapshot\x12\x96\x01\n\rListSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a\'.google.pubsub.v1.ListSnapshotsResponse\"4\x82\xd3\xe4\x93\x02$\x12\"/v1/{project=projects/*}/snapshots\xda\x41\x07project\x12\x97\x01\n\x0e\x43reateSnapshot\x12\'.google.pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"@\x82\xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\xda\x41\x11name,subscription\x12\xa3\x01\n\x0eUpdateSnapshot\x12\'.google.pubsub.v1.UpdateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"L\x82\xd3\xe4\x93\x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\xda\x41\x14snapshot,update_mask\x12\x8b\x01\n\x0e\x44\x65leteSnapshot\x12\'.google.pubsub.v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"8\x82\xd3\xe4\x93\x02\'*%/v1/{snapshot=projects/*/snapshots/*}\xda\x41\x08snapshot\x12\x84\x01\n\x04Seek\x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{subscription=projects/*/subscriptions/*}:seek:\x01*\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\xaa\x01\n\x14\x63om.google.pubsub.v1B\x0bPubsubProtoP\x01Z2cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud::PubSub::V1b\x06proto3"
|
18
|
+
descriptor_data = "\n\x1dgoogle/pubsub/v1/pubsub.proto\x12\x10google.pubsub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dgoogle/pubsub/v1/schema.proto\"c\n\x14MessageStoragePolicy\x12)\n\x1b\x61llowed_persistence_regions\x18\x01 \x03(\tB\x04\xe2\x41\x01\x01\x12 \n\x12\x65nforce_in_transit\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\xbc\x01\n\x0eSchemaSettings\x12\x35\n\x06schema\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12\x32\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32\x1a.google.pubsub.v1.EncodingB\x04\xe2\x41\x01\x01\x12\x1f\n\x11\x66irst_revision_id\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1e\n\x10last_revision_id\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\"\xf0\x03\n\x1bIngestionDataSourceSettings\x12U\n\x0b\x61ws_kinesis\x18\x01 \x01(\x0b\x32\x38.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisB\x04\xe2\x41\x01\x01H\x00\x1a\xef\x02\n\nAwsKinesis\x12S\n\x05state\x18\x01 \x01(\x0e\x32>.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.StateB\x04\xe2\x41\x01\x03\x12\x18\n\nstream_arn\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1a\n\x0c\x63onsumer_arn\x18\x03 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1a\n\x0c\x61ws_role_arn\x18\x04 \x01(\tB\x04\xe2\x41\x01\x02\x12!\n\x13gcp_service_account\x18\x05 \x01(\tB\x04\xe2\x41\x01\x02\"\x96\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x1d\n\x19KINESIS_PERMISSION_DENIED\x10\x02\x12\x1d\n\x19PUBLISH_PERMISSION_DENIED\x10\x03\x12\x14\n\x10STREAM_NOT_FOUND\x10\x04\x12\x16\n\x12\x43ONSUMER_NOT_FOUND\x10\x05\x42\x08\n\x06source\"\xc3\x05\n\x05Topic\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x39\n\x06labels\x18\x02 \x03(\x0b\x32#.google.pubsub.v1.Topic.LabelsEntryB\x04\xe2\x41\x01\x01\x12L\n\x16message_storage_policy\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.MessageStoragePolicyB\x04\xe2\x41\x01\x01\x12\x1a\n\x0ckms_key_name\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12?\n\x0fschema_settings\x18\x06 \x01(\x0b\x32 .google.pubsub.v1.SchemaSettingsB\x04\xe2\x41\x01\x01\x12\x1b\n\rsatisfies_pzs\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x43\n\x1amessage_retention_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x01\x12\x32\n\x05state\x18\t \x01(\x0e\x32\x1d.google.pubsub.v1.Topic.StateB\x04\xe2\x41\x01\x03\x12[\n\x1eingestion_data_source_settings\x18\n \x01(\x0b\x32-.google.pubsub.v1.IngestionDataSourceSettingsB\x04\xe2\x41\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"H\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x1c\n\x18INGESTION_RESOURCE_ERROR\x10\x02:T\xea\x41Q\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\x12\x0f_deleted-topic_\"\x83\x02\n\rPubsubMessage\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x42\x04\xe2\x41\x01\x01\x12I\n\nattributes\x18\x02 \x03(\x0b\x32/.google.pubsub.v1.PubsubMessage.AttributesEntryB\x04\xe2\x41\x01\x01\x12\x12\n\nmessage_id\x18\x03 \x01(\t\x12\x30\n\x0cpublish_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x0cordering_key\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x0fGetTopicRequest\x12\x33\n\x05topic\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\"y\n\x12UpdateTopicRequest\x12,\n\x05topic\x18\x01 \x01(\x0b\x32\x17.google.pubsub.v1.TopicB\x04\xe2\x41\x01\x02\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\"~\n\x0ePublishRequest\x12\x33\n\x05topic\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x37\n\x08messages\x18\x02 \x03(\x0b\x32\x1f.google.pubsub.v1.PubsubMessageB\x04\xe2\x41\x01\x02\",\n\x0fPublishResponse\x12\x19\n\x0bmessage_ids\x18\x01 \x03(\tB\x04\xe2\x41\x01\x01\"\x8d\x01\n\x11ListTopicsRequest\x12\x45\n\x07project\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"b\n\x12ListTopicsResponse\x12-\n\x06topics\x18\x01 \x03(\x0b\x32\x17.google.pubsub.v1.TopicB\x04\xe2\x41\x01\x01\x12\x1d\n\x0fnext_page_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\x87\x01\n\x1dListTopicSubscriptionsRequest\x12\x33\n\x05topic\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"\x83\x01\n\x1eListTopicSubscriptionsResponse\x12\x42\n\rsubscriptions\x18\x01 \x03(\tB+\xe2\x41\x01\x01\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x1d\n\x0fnext_page_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\x83\x01\n\x19ListTopicSnapshotsRequest\x12\x33\n\x05topic\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"T\n\x1aListTopicSnapshotsResponse\x12\x17\n\tsnapshots\x18\x01 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1d\n\x0fnext_page_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"I\n\x12\x44\x65leteTopicRequest\x12\x33\n\x05topic\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\"^\n\x19\x44\x65tachSubscriptionRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\"\x1c\n\x1a\x44\x65tachSubscriptionResponse\"\x81\t\n\x0cSubscription\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x33\n\x05topic\x18\x02 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x37\n\x0bpush_config\x18\x04 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfigB\x04\xe2\x41\x01\x01\x12?\n\x0f\x62igquery_config\x18\x12 \x01(\x0b\x32 .google.pubsub.v1.BigQueryConfigB\x04\xe2\x41\x01\x01\x12H\n\x14\x63loud_storage_config\x18\x16 \x01(\x0b\x32$.google.pubsub.v1.CloudStorageConfigB\x04\xe2\x41\x01\x01\x12\"\n\x14\x61\x63k_deadline_seconds\x18\x05 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12#\n\x15retain_acked_messages\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x43\n\x1amessage_retention_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x01\x12@\n\x06labels\x18\t \x03(\x0b\x32*.google.pubsub.v1.Subscription.LabelsEntryB\x04\xe2\x41\x01\x01\x12%\n\x17\x65nable_message_ordering\x18\n \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x43\n\x11\x65xpiration_policy\x18\x0b \x01(\x0b\x32\".google.pubsub.v1.ExpirationPolicyB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x0c \x01(\tB\x04\xe2\x41\x01\x01\x12\x44\n\x12\x64\x65\x61\x64_letter_policy\x18\r \x01(\x0b\x32\".google.pubsub.v1.DeadLetterPolicyB\x04\xe2\x41\x01\x01\x12\x39\n\x0cretry_policy\x18\x0e \x01(\x0b\x32\x1d.google.pubsub.v1.RetryPolicyB\x04\xe2\x41\x01\x01\x12\x16\n\x08\x64\x65tached\x18\x0f \x01(\x08\x42\x04\xe2\x41\x01\x01\x12*\n\x1c\x65nable_exactly_once_delivery\x18\x10 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12I\n topic_message_retention_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x03\x12\x39\n\x05state\x18\x13 \x01(\x0e\x32$.google.pubsub.v1.Subscription.StateB\x04\xe2\x41\x01\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\">\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x12\n\x0eRESOURCE_ERROR\x10\x02:X\xea\x41U\n\"pubsub.googleapis.com/Subscription\x12/projects/{project}/subscriptions/{subscription}\"\x81\x01\n\x0bRetryPolicy\x12\x38\n\x0fminimum_backoff\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x01\x12\x38\n\x0fmaximum_backoff\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x01\"X\n\x10\x44\x65\x61\x64LetterPolicy\x12\x1f\n\x11\x64\x65\x61\x64_letter_topic\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12#\n\x15max_delivery_attempts\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\"@\n\x10\x45xpirationPolicy\x12,\n\x03ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x01\"\xa2\x04\n\nPushConfig\x12\x1b\n\rpush_endpoint\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x46\n\nattributes\x18\x02 \x03(\x0b\x32,.google.pubsub.v1.PushConfig.AttributesEntryB\x04\xe2\x41\x01\x01\x12\x42\n\noidc_token\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.PushConfig.OidcTokenB\x04\xe2\x41\x01\x01H\x00\x12J\n\x0epubsub_wrapper\x18\x04 \x01(\x0b\x32*.google.pubsub.v1.PushConfig.PubsubWrapperB\x04\xe2\x41\x01\x01H\x01\x12\x42\n\nno_wrapper\x18\x05 \x01(\x0b\x32&.google.pubsub.v1.PushConfig.NoWrapperB\x04\xe2\x41\x01\x01H\x01\x1aH\n\tOidcToken\x12#\n\x15service_account_email\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08\x61udience\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x1a\x0f\n\rPubsubWrapper\x1a)\n\tNoWrapper\x12\x1c\n\x0ewrite_metadata\x18\x01 \x01(\x08\x42\x04\xe2\x41\x01\x01\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x15\x61uthentication_methodB\t\n\x07wrapper\"\xf0\x02\n\x0e\x42igQueryConfig\x12\x13\n\x05table\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1e\n\x10use_topic_schema\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x1c\n\x0ewrite_metadata\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12!\n\x13\x64rop_unknown_fields\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12;\n\x05state\x18\x05 \x01(\x0e\x32&.google.pubsub.v1.BigQueryConfig.StateB\x04\xe2\x41\x01\x03\x12\x1e\n\x10use_table_schema\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\x8a\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x15\n\x11PERMISSION_DENIED\x10\x02\x12\r\n\tNOT_FOUND\x10\x03\x12\x13\n\x0fSCHEMA_MISMATCH\x10\x04\x12#\n\x1fIN_TRANSIT_LOCATION_RESTRICTION\x10\x05\"\xd7\x04\n\x12\x43loudStorageConfig\x12\x14\n\x06\x62ucket\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1d\n\x0f\x66ilename_prefix\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1d\n\x0f\x66ilename_suffix\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12L\n\x0btext_config\x18\x04 \x01(\x0b\x32/.google.pubsub.v1.CloudStorageConfig.TextConfigB\x04\xe2\x41\x01\x01H\x00\x12L\n\x0b\x61vro_config\x18\x05 \x01(\x0b\x32/.google.pubsub.v1.CloudStorageConfig.AvroConfigB\x04\xe2\x41\x01\x01H\x00\x12\x35\n\x0cmax_duration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x01\x12\x17\n\tmax_bytes\x18\x07 \x01(\x03\x42\x04\xe2\x41\x01\x01\x12?\n\x05state\x18\t \x01(\x0e\x32*.google.pubsub.v1.CloudStorageConfig.StateB\x04\xe2\x41\x01\x03\x1a\x0c\n\nTextConfig\x1a*\n\nAvroConfig\x12\x1c\n\x0ewrite_metadata\x18\x01 \x01(\x08\x42\x04\xe2\x41\x01\x01\"u\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x15\n\x11PERMISSION_DENIED\x10\x02\x12\r\n\tNOT_FOUND\x10\x03\x12#\n\x1fIN_TRANSIT_LOCATION_RESTRICTION\x10\x04\x42\x0f\n\routput_format\"\x7f\n\x0fReceivedMessage\x12\x14\n\x06\x61\x63k_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x36\n\x07message\x18\x02 \x01(\x0b\x32\x1f.google.pubsub.v1.PubsubMessageB\x04\xe2\x41\x01\x01\x12\x1e\n\x10\x64\x65livery_attempt\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\"[\n\x16GetSubscriptionRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\"\x8e\x01\n\x19UpdateSubscriptionRequest\x12:\n\x0csubscription\x18\x01 \x01(\x0b\x32\x1e.google.pubsub.v1.SubscriptionB\x04\xe2\x41\x01\x02\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\"\x94\x01\n\x18ListSubscriptionsRequest\x12\x45\n\x07project\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"w\n\x19ListSubscriptionsResponse\x12;\n\rsubscriptions\x18\x01 \x03(\x0b\x32\x1e.google.pubsub.v1.SubscriptionB\x04\xe2\x41\x01\x01\x12\x1d\n\x0fnext_page_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"^\n\x19\x44\x65leteSubscriptionRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\"\x95\x01\n\x17ModifyPushConfigRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x37\n\x0bpush_config\x18\x02 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfigB\x04\xe2\x41\x01\x02\"\x90\x01\n\x0bPullRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\"\n\x12return_immediately\x18\x02 \x01(\x08\x42\x06\x18\x01\xe2\x41\x01\x01\x12\x1a\n\x0cmax_messages\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x02\"R\n\x0cPullResponse\x12\x42\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessageB\x04\xe2\x41\x01\x01\"\x98\x01\n\x18ModifyAckDeadlineRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x15\n\x07\x61\x63k_ids\x18\x04 \x03(\tB\x04\xe2\x41\x01\x02\x12\"\n\x14\x61\x63k_deadline_seconds\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x02\"n\n\x12\x41\x63knowledgeRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x15\n\x07\x61\x63k_ids\x18\x02 \x03(\tB\x04\xe2\x41\x01\x02\"\xcf\x02\n\x14StreamingPullRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x15\n\x07\x61\x63k_ids\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01\x12%\n\x17modify_deadline_seconds\x18\x03 \x03(\x05\x42\x04\xe2\x41\x01\x01\x12%\n\x17modify_deadline_ack_ids\x18\x04 \x03(\tB\x04\xe2\x41\x01\x01\x12)\n\x1bstream_ack_deadline_seconds\x18\x05 \x01(\x05\x42\x04\xe2\x41\x01\x02\x12\x17\n\tclient_id\x18\x06 \x01(\tB\x04\xe2\x41\x01\x01\x12&\n\x18max_outstanding_messages\x18\x07 \x01(\x03\x42\x04\xe2\x41\x01\x01\x12#\n\x15max_outstanding_bytes\x18\x08 \x01(\x03\x42\x04\xe2\x41\x01\x01\"\xab\x06\n\x15StreamingPullResponse\x12\x42\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessageB\x04\xe2\x41\x01\x01\x12g\n\x18\x61\x63knowledge_confirmation\x18\x05 \x01(\x0b\x32?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\x04\xe2\x41\x01\x01\x12u\n modify_ack_deadline_confirmation\x18\x03 \x01(\x0b\x32\x45.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\x04\xe2\x41\x01\x01\x12\x65\n\x17subscription_properties\x18\x04 \x01(\x0b\x32>.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\x04\xe2\x41\x01\x01\x1a\x98\x01\n\x17\x41\x63knowledgeConfirmation\x12\x15\n\x07\x61\x63k_ids\x18\x01 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1d\n\x0finvalid_ack_ids\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1f\n\x11unordered_ack_ids\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01\x12&\n\x18temporary_failed_ack_ids\x18\x04 \x03(\tB\x04\xe2\x41\x01\x01\x1a}\n\x1dModifyAckDeadlineConfirmation\x12\x15\n\x07\x61\x63k_ids\x18\x01 \x03(\tB\x04\xe2\x41\x01\x01\x12\x1d\n\x0finvalid_ack_ids\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01\x12&\n\x18temporary_failed_ack_ids\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01\x1am\n\x16SubscriptionProperties\x12+\n\x1d\x65xactly_once_delivery_enabled\x18\x01 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12&\n\x18message_ordering_enabled\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\x8b\x02\n\x15\x43reateSnapshotRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe2\x41\x01\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot\x12\x41\n\x0csubscription\x18\x02 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x33.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\x04\xe2\x41\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x82\x01\n\x15UpdateSnapshotRequest\x12\x32\n\x08snapshot\x18\x01 \x01(\x0b\x32\x1a.google.pubsub.v1.SnapshotB\x04\xe2\x41\x01\x02\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\"\xc5\x02\n\x08Snapshot\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x33\n\x05topic\x18\x02 \x01(\tB$\xe2\x41\x01\x01\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x35\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x01\x12<\n\x06labels\x18\x04 \x03(\x0b\x32&.google.pubsub.v1.Snapshot.LabelsEntryB\x04\xe2\x41\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:L\xea\x41I\n\x1epubsub.googleapis.com/Snapshot\x12\'projects/{project}/snapshots/{snapshot}\"O\n\x12GetSnapshotRequest\x12\x39\n\x08snapshot\x18\x01 \x01(\tB\'\xe2\x41\x01\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot\"\x90\x01\n\x14ListSnapshotsRequest\x12\x45\n\x07project\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"k\n\x15ListSnapshotsResponse\x12\x33\n\tsnapshots\x18\x01 \x03(\x0b\x32\x1a.google.pubsub.v1.SnapshotB\x04\xe2\x41\x01\x01\x12\x1d\n\x0fnext_page_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"R\n\x15\x44\x65leteSnapshotRequest\x12\x39\n\x08snapshot\x18\x01 \x01(\tB\'\xe2\x41\x01\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot\"\xc9\x01\n\x0bSeekRequest\x12\x41\n\x0csubscription\x18\x01 \x01(\tB+\xe2\x41\x01\x02\xfa\x41$\n\"pubsub.googleapis.com/Subscription\x12\x30\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x01H\x00\x12;\n\x08snapshot\x18\x03 \x01(\tB\'\xe2\x41\x01\x01\xfa\x41 \n\x1epubsub.googleapis.com/SnapshotH\x00\x42\x08\n\x06target\"\x0e\n\x0cSeekResponse2\xb8\x0b\n\tPublisher\x12q\n\x0b\x43reateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.google.pubsub.v1.Topic\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/topics/*}:\x01*\x12\x91\x01\n\x0bUpdateTopic\x12$.google.pubsub.v1.UpdateTopicRequest\x1a\x17.google.pubsub.v1.Topic\"C\xda\x41\x11topic,update_mask\x82\xd3\xe4\x93\x02)2$/v1/{topic.name=projects/*/topics/*}:\x01*\x12\x93\x01\n\x07Publish\x12 .google.pubsub.v1.PublishRequest\x1a!.google.pubsub.v1.PublishResponse\"C\xda\x41\x0etopic,messages\x82\xd3\xe4\x93\x02,\"\'/v1/{topic=projects/*/topics/*}:publish:\x01*\x12w\n\x08GetTopic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topic\"/\xda\x41\x05topic\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\x12\x8a\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a$.google.pubsub.v1.ListTopicsResponse\"1\xda\x41\x07project\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{project=projects/*}/topics\x12\xba\x01\n\x16ListTopicSubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a\x30.google.pubsub.v1.ListTopicSubscriptionsResponse\"=\xda\x41\x05topic\x82\xd3\xe4\x93\x02/\x12-/v1/{topic=projects/*/topics/*}/subscriptions\x12\xaa\x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshotsRequest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse\"9\xda\x41\x05topic\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\x12|\n\x0b\x44\x65leteTopic\x12$.google.pubsub.v1.DeleteTopicRequest\x1a\x16.google.protobuf.Empty\"/\xda\x41\x05topic\x82\xd3\xe4\x93\x02!*\x1f/v1/{topic=projects/*/topics/*}\x12\xad\x01\n\x12\x44\x65tachSubscription\x12+.google.pubsub.v1.DetachSubscriptionRequest\x1a,.google.pubsub.v1.DetachSubscriptionResponse\"<\x82\xd3\xe4\x93\x02\x36\"4/v1/{subscription=projects/*/subscriptions/*}:detach\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub2\xd2\x15\n\nSubscriber\x12\xb4\x01\n\x12\x43reateSubscription\x12\x1e.google.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription\"^\xda\x41+name,topic,push_config,ack_deadline_seconds\x82\xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\x12\xa1\x01\n\x0fGetSubscription\x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription\"D\xda\x41\x0csubscription\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/subscriptions/*}\x12\xbb\x01\n\x12UpdateSubscription\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription\"X\xda\x41\x18subscription,update_mask\x82\xd3\xe4\x93\x02\x37\x32\x32/v1/{subscription.name=projects/*/subscriptions/*}:\x01*\x12\xa6\x01\n\x11ListSubscriptions\x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.ListSubscriptionsResponse\"8\xda\x41\x07project\x82\xd3\xe4\x93\x02(\x12&/v1/{project=projects/*}/subscriptions\x12\x9f\x01\n\x12\x44\x65leteSubscription\x12+.google.pubsub.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x0csubscription\x82\xd3\xe4\x93\x02/*-/v1/{subscription=projects/*/subscriptions/*}\x12\xcf\x01\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\x1a\x16.google.protobuf.Empty\"v\xda\x41)subscription,ack_ids,ack_deadline_seconds\x82\xd3\xe4\x93\x02\x44\"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\x01*\x12\xa8\x01\n\x0b\x41\x63knowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.protobuf.Empty\"[\xda\x41\x14subscription,ack_ids\x82\xd3\xe4\x93\x02>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\x01*\x12\xd0\x01\n\x04Pull\x12\x1d.google.pubsub.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullResponse\"\x88\x01\xda\x41,subscription,return_immediately,max_messages\xda\x41\x19subscription,max_messages\x82\xd3\xe4\x93\x02\x37\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\x12\x66\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a\'.google.pubsub.v1.StreamingPullResponse\"\x00(\x01\x30\x01\x12\xbb\x01\n\x10ModifyPushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.protobuf.Empty\"d\xda\x41\x18subscription,push_config\x82\xd3\xe4\x93\x02\x43\">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\x01*\x12\x89\x01\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"8\xda\x41\x08snapshot\x82\xd3\xe4\x93\x02\'\x12%/v1/{snapshot=projects/*/snapshots/*}\x12\x96\x01\n\rListSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a\'.google.pubsub.v1.ListSnapshotsResponse\"4\xda\x41\x07project\x82\xd3\xe4\x93\x02$\x12\"/v1/{project=projects/*}/snapshots\x12\x97\x01\n\x0e\x43reateSnapshot\x12\'.google.pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"@\xda\x41\x11name,subscription\x82\xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\x12\xa3\x01\n\x0eUpdateSnapshot\x12\'.google.pubsub.v1.UpdateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"L\xda\x41\x14snapshot,update_mask\x82\xd3\xe4\x93\x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\x12\x8b\x01\n\x0e\x44\x65leteSnapshot\x12\'.google.pubsub.v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"8\xda\x41\x08snapshot\x82\xd3\xe4\x93\x02\'*%/v1/{snapshot=projects/*/snapshots/*}\x12\x84\x01\n\x04Seek\x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{subscription=projects/*/subscriptions/*}:seek:\x01*\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\xaa\x01\n\x14\x63om.google.pubsub.v1B\x0bPubsubProtoP\x01Z2cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud::PubSub::V1b\x06proto3"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
22
22
|
begin
|
23
23
|
pool.add_serialized_file(descriptor_data)
|
24
|
-
rescue TypeError
|
24
|
+
rescue TypeError
|
25
25
|
# Compatibility code: will be removed in the next major version.
|
26
26
|
require 'google/protobuf/descriptor_pb'
|
27
27
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -50,7 +50,11 @@ module Google
|
|
50
50
|
module V1
|
51
51
|
MessageStoragePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.MessageStoragePolicy").msgclass
|
52
52
|
SchemaSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SchemaSettings").msgclass
|
53
|
+
IngestionDataSourceSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.IngestionDataSourceSettings").msgclass
|
54
|
+
IngestionDataSourceSettings::AwsKinesis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis").msgclass
|
55
|
+
IngestionDataSourceSettings::AwsKinesis::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State").enummodule
|
53
56
|
Topic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic").msgclass
|
57
|
+
Topic::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic.State").enummodule
|
54
58
|
PubsubMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PubsubMessage").msgclass
|
55
59
|
GetTopicRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetTopicRequest").msgclass
|
56
60
|
UpdateTopicRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateTopicRequest").msgclass
|
@@ -37,8 +37,8 @@ module Google
|
|
37
37
|
# Creates the given topic with the given name. See the [resource name rules]
|
38
38
|
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
39
39
|
rpc :CreateTopic, ::Google::Cloud::PubSub::V1::Topic, ::Google::Cloud::PubSub::V1::Topic
|
40
|
-
# Updates an existing topic
|
41
|
-
# topic are not modifiable.
|
40
|
+
# Updates an existing topic by updating the fields specified in the update
|
41
|
+
# mask. Note that certain properties of a topic are not modifiable.
|
42
42
|
rpc :UpdateTopic, ::Google::Cloud::PubSub::V1::UpdateTopicRequest, ::Google::Cloud::PubSub::V1::Topic
|
43
43
|
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
44
44
|
# does not exist.
|
@@ -96,8 +96,9 @@ module Google
|
|
96
96
|
rpc :CreateSubscription, ::Google::Cloud::PubSub::V1::Subscription, ::Google::Cloud::PubSub::V1::Subscription
|
97
97
|
# Gets the configuration details of a subscription.
|
98
98
|
rpc :GetSubscription, ::Google::Cloud::PubSub::V1::GetSubscriptionRequest, ::Google::Cloud::PubSub::V1::Subscription
|
99
|
-
# Updates an existing subscription
|
100
|
-
# subscription, such as its
|
99
|
+
# Updates an existing subscription by updating the fields specified in the
|
100
|
+
# update mask. Note that certain properties of a subscription, such as its
|
101
|
+
# topic, are not modifiable.
|
101
102
|
rpc :UpdateSubscription, ::Google::Cloud::PubSub::V1::UpdateSubscriptionRequest, ::Google::Cloud::PubSub::V1::Subscription
|
102
103
|
# Lists matching subscriptions.
|
103
104
|
rpc :ListSubscriptions, ::Google::Cloud::PubSub::V1::ListSubscriptionsRequest, ::Google::Cloud::PubSub::V1::ListSubscriptionsResponse
|
@@ -167,7 +168,8 @@ module Google
|
|
167
168
|
# generated name is populated in the returned Snapshot object. Note that for
|
168
169
|
# REST API requests, you must specify a name in the request.
|
169
170
|
rpc :CreateSnapshot, ::Google::Cloud::PubSub::V1::CreateSnapshotRequest, ::Google::Cloud::PubSub::V1::Snapshot
|
170
|
-
# Updates an existing snapshot
|
171
|
+
# Updates an existing snapshot by updating the fields specified in the update
|
172
|
+
# mask. Snapshots are used in
|
171
173
|
# [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
|
172
174
|
# which allow you to manage message acknowledgments in bulk. That is, you can
|
173
175
|
# set the acknowledgment state of messages in an existing subscription to the
|
@@ -12,13 +12,13 @@ require 'google/protobuf/empty_pb'
|
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
13
13
|
|
14
14
|
|
15
|
-
descriptor_data = "\n\x1dgoogle/pubsub/v1/schema.proto\x12\x10google.pubsub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
15
|
+
descriptor_data = "\n\x1dgoogle/pubsub/v1/schema.proto\x12\x10google.pubsub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbe\x02\n\x06Schema\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12+\n\x04type\x18\x02 \x01(\x0e\x32\x1d.google.pubsub.v1.Schema.Type\x12\x12\n\ndefinition\x18\x03 \x01(\t\x12\x1a\n\x0brevision_id\x18\x04 \x01(\tB\x05\xe2\x41\x02\x05\x03\x12>\n\x14revision_create_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fPROTOCOL_BUFFER\x10\x01\x12\x08\n\x04\x41VRO\x10\x02:F\xea\x41\x43\n\x1cpubsub.googleapis.com/Schema\x12#projects/{project}/schemas/{schema}\"\x8f\x01\n\x13\x43reateSchemaRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\x12\x1cpubsub.googleapis.com/Schema\x12.\n\x06schema\x18\x02 \x01(\x0b\x32\x18.google.pubsub.v1.SchemaB\x04\xe2\x41\x01\x02\x12\x11\n\tschema_id\x18\x03 \x01(\t\"s\n\x10GetSchemaRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12*\n\x04view\x18\x02 \x01(\x0e\x32\x1c.google.pubsub.v1.SchemaView\"\xad\x01\n\x12ListSchemasRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12*\n\x04view\x18\x02 \x01(\x0e\x32\x1c.google.pubsub.v1.SchemaView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"Y\n\x13ListSchemasResponse\x12)\n\x07schemas\x18\x01 \x03(\x0b\x32\x18.google.pubsub.v1.Schema\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa4\x01\n\x1aListSchemaRevisionsRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12*\n\x04view\x18\x02 \x01(\x0e\x32\x1c.google.pubsub.v1.SchemaView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"a\n\x1bListSchemaRevisionsResponse\x12)\n\x07schemas\x18\x01 \x03(\x0b\x32\x18.google.pubsub.v1.Schema\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"z\n\x13\x43ommitSchemaRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12.\n\x06schema\x18\x02 \x01(\x0b\x32\x18.google.pubsub.v1.SchemaB\x04\xe2\x41\x01\x02\"g\n\x15RollbackSchemaRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12\x19\n\x0brevision_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\"o\n\x1b\x44\x65leteSchemaRevisionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12\x1b\n\x0brevision_id\x18\x02 \x01(\tB\x06\x18\x01\xe2\x41\x01\x01\"J\n\x13\x44\x65leteSchemaRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe2\x41\x01\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\"\x8d\x01\n\x15ValidateSchemaRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12.\n\x06schema\x18\x02 \x01(\x0b\x32\x18.google.pubsub.v1.SchemaB\x04\xe2\x41\x01\x02\"\x18\n\x16ValidateSchemaResponse\"\x8b\x02\n\x16ValidateMessageRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x31\n\x04name\x18\x02 \x01(\tB!\xfa\x41\x1e\n\x1cpubsub.googleapis.com/SchemaH\x00\x12*\n\x06schema\x18\x03 \x01(\x0b\x32\x18.google.pubsub.v1.SchemaH\x00\x12\x0f\n\x07message\x18\x04 \x01(\x0c\x12,\n\x08\x65ncoding\x18\x05 \x01(\x0e\x32\x1a.google.pubsub.v1.EncodingB\r\n\x0bschema_spec\"\x19\n\x17ValidateMessageResponse*>\n\nSchemaView\x12\x1b\n\x17SCHEMA_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02*:\n\x08\x45ncoding\x12\x18\n\x14\x45NCODING_UNSPECIFIED\x10\x00\x12\x08\n\x04JSON\x10\x01\x12\n\n\x06\x42INARY\x10\x02\x32\x88\r\n\rSchemaService\x12\x9a\x01\n\x0c\x43reateSchema\x12%.google.pubsub.v1.CreateSchemaRequest\x1a\x18.google.pubsub.v1.Schema\"I\xda\x41\x17parent,schema,schema_id\x82\xd3\xe4\x93\x02)\"\x1f/v1/{parent=projects/*}/schemas:\x06schema\x12y\n\tGetSchema\x12\".google.pubsub.v1.GetSchemaRequest\x1a\x18.google.pubsub.v1.Schema\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=projects/*/schemas/*}\x12\x8c\x01\n\x0bListSchemas\x12$.google.pubsub.v1.ListSchemasRequest\x1a%.google.pubsub.v1.ListSchemasResponse\"0\xda\x41\x06parent\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{parent=projects/*}/schemas\x12\xb0\x01\n\x13ListSchemaRevisions\x12,.google.pubsub.v1.ListSchemaRevisionsRequest\x1a-.google.pubsub.v1.ListSchemaRevisionsResponse\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/schemas/*}:listRevisions\x12\x90\x01\n\x0c\x43ommitSchema\x12%.google.pubsub.v1.CommitSchemaRequest\x1a\x18.google.pubsub.v1.Schema\"?\xda\x41\x0bname,schema\x82\xd3\xe4\x93\x02+\"&/v1/{name=projects/*/schemas/*}:commit:\x01*\x12\x9b\x01\n\x0eRollbackSchema\x12\'.google.pubsub.v1.RollbackSchemaRequest\x1a\x18.google.pubsub.v1.Schema\"F\xda\x41\x10name,revision_id\x82\xd3\xe4\x93\x02-\"(/v1/{name=projects/*/schemas/*}:rollback:\x01*\x12\xaa\x01\n\x14\x44\x65leteSchemaRevision\x12-.google.pubsub.v1.DeleteSchemaRevisionRequest\x1a\x18.google.pubsub.v1.Schema\"I\xda\x41\x10name,revision_id\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/schemas/*}:deleteRevision\x12}\n\x0c\x44\x65leteSchema\x12%.google.pubsub.v1.DeleteSchemaRequest\x1a\x16.google.protobuf.Empty\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!*\x1f/v1/{name=projects/*/schemas/*}\x12\xa8\x01\n\x0eValidateSchema\x12\'.google.pubsub.v1.ValidateSchemaRequest\x1a(.google.pubsub.v1.ValidateSchemaResponse\"C\xda\x41\rparent,schema\x82\xd3\xe4\x93\x02-\"(/v1/{parent=projects/*}/schemas:validate:\x01*\x12\xa2\x01\n\x0fValidateMessage\x12(.google.pubsub.v1.ValidateMessageRequest\x1a).google.pubsub.v1.ValidateMessageResponse\":\x82\xd3\xe4\x93\x02\x34\"//v1/{parent=projects/*}/schemas:validateMessage:\x01*\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\xaa\x01\n\x14\x63om.google.pubsub.v1B\x0bSchemaProtoP\x01Z2cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud::PubSub::V1b\x06proto3"
|
16
16
|
|
17
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
18
|
|
19
19
|
begin
|
20
20
|
pool.add_serialized_file(descriptor_data)
|
21
|
-
rescue TypeError
|
21
|
+
rescue TypeError
|
22
22
|
# Compatibility code: will be removed in the next major version.
|
23
23
|
require 'google/protobuf/descriptor_pb'
|
24
24
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|