google-cloud-pubsub 1.1.3 → 2.0.0

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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +2 -1
  3. data/CHANGELOG.md +145 -0
  4. data/EMULATOR.md +1 -1
  5. data/TROUBLESHOOTING.md +2 -8
  6. data/lib/google/cloud/pubsub/async_publisher.rb +16 -21
  7. data/lib/google/cloud/pubsub/credentials.rb +2 -2
  8. data/lib/google/cloud/pubsub/project.rb +18 -26
  9. data/lib/google/cloud/pubsub/received_message.rb +38 -0
  10. data/lib/google/cloud/pubsub/retry_policy.rb +90 -0
  11. data/lib/google/cloud/pubsub/service.rb +125 -252
  12. data/lib/google/cloud/pubsub/subscriber/inventory.rb +43 -15
  13. data/lib/google/cloud/pubsub/subscriber/stream.rb +8 -10
  14. data/lib/google/cloud/pubsub/subscriber.rb +86 -15
  15. data/lib/google/cloud/pubsub/subscription/push_config.rb +2 -2
  16. data/lib/google/cloud/pubsub/subscription.rb +297 -7
  17. data/lib/google/cloud/pubsub/topic.rb +65 -2
  18. data/lib/google/cloud/pubsub/version.rb +1 -1
  19. data/lib/google/cloud/pubsub.rb +15 -18
  20. data/lib/google-cloud-pubsub.rb +13 -13
  21. metadata +11 -81
  22. data/lib/google/cloud/pubsub/v1/credentials.rb +0 -41
  23. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -21
  24. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb +0 -21
  25. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -21
  26. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
  27. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
  28. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -222
  29. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -113
  30. data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -744
  31. data/lib/google/cloud/pubsub/v1/doc/google/type/expr.rb +0 -19
  32. data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -786
  33. data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
  34. data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1385
  35. data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -144
  36. data/lib/google/cloud/pubsub/v1.rb +0 -17
  37. data/lib/google/pubsub/v1/pubsub_pb.rb +0 -249
  38. data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -211
@@ -1,144 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.pubsub.v1.Subscriber": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "ABORTED",
7
- "UNAVAILABLE",
8
- "UNKNOWN"
9
- ],
10
- "non_idempotent": [
11
- "UNAVAILABLE"
12
- ],
13
- "streaming_pull": [
14
- "ABORTED",
15
- "DEADLINE_EXCEEDED",
16
- "INTERNAL",
17
- "RESOURCE_EXHAUSTED",
18
- "UNAVAILABLE"
19
- ]
20
- },
21
- "retry_params": {
22
- "default": {
23
- "initial_retry_delay_millis": 100,
24
- "retry_delay_multiplier": 1.3,
25
- "max_retry_delay_millis": 60000,
26
- "initial_rpc_timeout_millis": 60000,
27
- "rpc_timeout_multiplier": 1.0,
28
- "max_rpc_timeout_millis": 60000,
29
- "total_timeout_millis": 600000
30
- },
31
- "messaging": {
32
- "initial_retry_delay_millis": 100,
33
- "retry_delay_multiplier": 1.3,
34
- "max_retry_delay_millis": 60000,
35
- "initial_rpc_timeout_millis": 5000,
36
- "rpc_timeout_multiplier": 1.3,
37
- "max_rpc_timeout_millis": 600000,
38
- "total_timeout_millis": 600000
39
- },
40
- "streaming_messaging": {
41
- "initial_retry_delay_millis": 100,
42
- "retry_delay_multiplier": 1.3,
43
- "max_retry_delay_millis": 60000,
44
- "initial_rpc_timeout_millis": 600000,
45
- "rpc_timeout_multiplier": 1.0,
46
- "max_rpc_timeout_millis": 600000,
47
- "total_timeout_millis": 600000
48
- }
49
- },
50
- "methods": {
51
- "CreateSubscription": {
52
- "timeout_millis": 60000,
53
- "retry_codes_name": "idempotent",
54
- "retry_params_name": "default"
55
- },
56
- "GetSubscription": {
57
- "timeout_millis": 60000,
58
- "retry_codes_name": "idempotent",
59
- "retry_params_name": "default"
60
- },
61
- "UpdateSubscription": {
62
- "timeout_millis": 60000,
63
- "retry_codes_name": "non_idempotent",
64
- "retry_params_name": "default"
65
- },
66
- "ListSubscriptions": {
67
- "timeout_millis": 60000,
68
- "retry_codes_name": "idempotent",
69
- "retry_params_name": "default"
70
- },
71
- "DeleteSubscription": {
72
- "timeout_millis": 60000,
73
- "retry_codes_name": "non_idempotent",
74
- "retry_params_name": "default"
75
- },
76
- "ModifyAckDeadline": {
77
- "timeout_millis": 60000,
78
- "retry_codes_name": "non_idempotent",
79
- "retry_params_name": "default"
80
- },
81
- "Acknowledge": {
82
- "timeout_millis": 60000,
83
- "retry_codes_name": "non_idempotent",
84
- "retry_params_name": "messaging"
85
- },
86
- "Pull": {
87
- "timeout_millis": 60000,
88
- "retry_codes_name": "idempotent",
89
- "retry_params_name": "messaging"
90
- },
91
- "StreamingPull": {
92
- "timeout_millis": 900000,
93
- "retry_codes_name": "streaming_pull",
94
- "retry_params_name": "streaming_messaging"
95
- },
96
- "ModifyPushConfig": {
97
- "timeout_millis": 60000,
98
- "retry_codes_name": "non_idempotent",
99
- "retry_params_name": "default"
100
- },
101
- "ListSnapshots": {
102
- "timeout_millis": 60000,
103
- "retry_codes_name": "idempotent",
104
- "retry_params_name": "default"
105
- },
106
- "CreateSnapshot": {
107
- "timeout_millis": 60000,
108
- "retry_codes_name": "non_idempotent",
109
- "retry_params_name": "default"
110
- },
111
- "UpdateSnapshot": {
112
- "timeout_millis": 60000,
113
- "retry_codes_name": "non_idempotent",
114
- "retry_params_name": "default"
115
- },
116
- "DeleteSnapshot": {
117
- "timeout_millis": 60000,
118
- "retry_codes_name": "non_idempotent",
119
- "retry_params_name": "default"
120
- },
121
- "Seek": {
122
- "timeout_millis": 60000,
123
- "retry_codes_name": "idempotent",
124
- "retry_params_name": "default"
125
- },
126
- "SetIamPolicy": {
127
- "timeout_millis": 60000,
128
- "retry_codes_name": "non_idempotent",
129
- "retry_params_name": "default"
130
- },
131
- "GetIamPolicy": {
132
- "timeout_millis": 60000,
133
- "retry_codes_name": "idempotent",
134
- "retry_params_name": "default"
135
- },
136
- "TestIamPermissions": {
137
- "timeout_millis": 60000,
138
- "retry_codes_name": "non_idempotent",
139
- "retry_params_name": "default"
140
- }
141
- }
142
- }
143
- }
144
- }
@@ -1,17 +0,0 @@
1
- # Copyright 2015 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- require "google/cloud/pubsub/v1/publisher_client"
17
- require "google/cloud/pubsub/v1/subscriber_client"
@@ -1,249 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/pubsub/v1/pubsub.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/protobuf/duration_pb'
10
- require 'google/protobuf/empty_pb'
11
- require 'google/protobuf/field_mask_pb'
12
- require 'google/protobuf/timestamp_pb'
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_message "google.pubsub.v1.MessageStoragePolicy" do
15
- repeated :allowed_persistence_regions, :string, 1
16
- end
17
- add_message "google.pubsub.v1.Topic" do
18
- optional :name, :string, 1
19
- map :labels, :string, :string, 2
20
- optional :message_storage_policy, :message, 3, "google.pubsub.v1.MessageStoragePolicy"
21
- optional :kms_key_name, :string, 5
22
- end
23
- add_message "google.pubsub.v1.PubsubMessage" do
24
- optional :data, :bytes, 1
25
- map :attributes, :string, :string, 2
26
- optional :message_id, :string, 3
27
- optional :publish_time, :message, 4, "google.protobuf.Timestamp"
28
- optional :ordering_key, :string, 5
29
- end
30
- add_message "google.pubsub.v1.GetTopicRequest" do
31
- optional :topic, :string, 1
32
- end
33
- add_message "google.pubsub.v1.UpdateTopicRequest" do
34
- optional :topic, :message, 1, "google.pubsub.v1.Topic"
35
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
36
- end
37
- add_message "google.pubsub.v1.PublishRequest" do
38
- optional :topic, :string, 1
39
- repeated :messages, :message, 2, "google.pubsub.v1.PubsubMessage"
40
- end
41
- add_message "google.pubsub.v1.PublishResponse" do
42
- repeated :message_ids, :string, 1
43
- end
44
- add_message "google.pubsub.v1.ListTopicsRequest" do
45
- optional :project, :string, 1
46
- optional :page_size, :int32, 2
47
- optional :page_token, :string, 3
48
- end
49
- add_message "google.pubsub.v1.ListTopicsResponse" do
50
- repeated :topics, :message, 1, "google.pubsub.v1.Topic"
51
- optional :next_page_token, :string, 2
52
- end
53
- add_message "google.pubsub.v1.ListTopicSubscriptionsRequest" do
54
- optional :topic, :string, 1
55
- optional :page_size, :int32, 2
56
- optional :page_token, :string, 3
57
- end
58
- add_message "google.pubsub.v1.ListTopicSubscriptionsResponse" do
59
- repeated :subscriptions, :string, 1
60
- optional :next_page_token, :string, 2
61
- end
62
- add_message "google.pubsub.v1.ListTopicSnapshotsRequest" do
63
- optional :topic, :string, 1
64
- optional :page_size, :int32, 2
65
- optional :page_token, :string, 3
66
- end
67
- add_message "google.pubsub.v1.ListTopicSnapshotsResponse" do
68
- repeated :snapshots, :string, 1
69
- optional :next_page_token, :string, 2
70
- end
71
- add_message "google.pubsub.v1.DeleteTopicRequest" do
72
- optional :topic, :string, 1
73
- end
74
- add_message "google.pubsub.v1.Subscription" do
75
- optional :name, :string, 1
76
- optional :topic, :string, 2
77
- optional :push_config, :message, 4, "google.pubsub.v1.PushConfig"
78
- optional :ack_deadline_seconds, :int32, 5
79
- optional :retain_acked_messages, :bool, 7
80
- optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
81
- map :labels, :string, :string, 9
82
- optional :enable_message_ordering, :bool, 10
83
- optional :expiration_policy, :message, 11, "google.pubsub.v1.ExpirationPolicy"
84
- optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
85
- end
86
- add_message "google.pubsub.v1.DeadLetterPolicy" do
87
- optional :dead_letter_topic, :string, 1
88
- optional :max_delivery_attempts, :int32, 2
89
- end
90
- add_message "google.pubsub.v1.ExpirationPolicy" do
91
- optional :ttl, :message, 1, "google.protobuf.Duration"
92
- end
93
- add_message "google.pubsub.v1.PushConfig" do
94
- optional :push_endpoint, :string, 1
95
- map :attributes, :string, :string, 2
96
- oneof :authentication_method do
97
- optional :oidc_token, :message, 3, "google.pubsub.v1.PushConfig.OidcToken"
98
- end
99
- end
100
- add_message "google.pubsub.v1.PushConfig.OidcToken" do
101
- optional :service_account_email, :string, 1
102
- optional :audience, :string, 2
103
- end
104
- add_message "google.pubsub.v1.ReceivedMessage" do
105
- optional :ack_id, :string, 1
106
- optional :message, :message, 2, "google.pubsub.v1.PubsubMessage"
107
- optional :delivery_attempt, :int32, 3
108
- end
109
- add_message "google.pubsub.v1.GetSubscriptionRequest" do
110
- optional :subscription, :string, 1
111
- end
112
- add_message "google.pubsub.v1.UpdateSubscriptionRequest" do
113
- optional :subscription, :message, 1, "google.pubsub.v1.Subscription"
114
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
115
- end
116
- add_message "google.pubsub.v1.ListSubscriptionsRequest" do
117
- optional :project, :string, 1
118
- optional :page_size, :int32, 2
119
- optional :page_token, :string, 3
120
- end
121
- add_message "google.pubsub.v1.ListSubscriptionsResponse" do
122
- repeated :subscriptions, :message, 1, "google.pubsub.v1.Subscription"
123
- optional :next_page_token, :string, 2
124
- end
125
- add_message "google.pubsub.v1.DeleteSubscriptionRequest" do
126
- optional :subscription, :string, 1
127
- end
128
- add_message "google.pubsub.v1.ModifyPushConfigRequest" do
129
- optional :subscription, :string, 1
130
- optional :push_config, :message, 2, "google.pubsub.v1.PushConfig"
131
- end
132
- add_message "google.pubsub.v1.PullRequest" do
133
- optional :subscription, :string, 1
134
- optional :return_immediately, :bool, 2
135
- optional :max_messages, :int32, 3
136
- end
137
- add_message "google.pubsub.v1.PullResponse" do
138
- repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
139
- end
140
- add_message "google.pubsub.v1.ModifyAckDeadlineRequest" do
141
- optional :subscription, :string, 1
142
- repeated :ack_ids, :string, 4
143
- optional :ack_deadline_seconds, :int32, 3
144
- end
145
- add_message "google.pubsub.v1.AcknowledgeRequest" do
146
- optional :subscription, :string, 1
147
- repeated :ack_ids, :string, 2
148
- end
149
- add_message "google.pubsub.v1.StreamingPullRequest" do
150
- optional :subscription, :string, 1
151
- repeated :ack_ids, :string, 2
152
- repeated :modify_deadline_seconds, :int32, 3
153
- repeated :modify_deadline_ack_ids, :string, 4
154
- optional :stream_ack_deadline_seconds, :int32, 5
155
- end
156
- add_message "google.pubsub.v1.StreamingPullResponse" do
157
- repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
158
- end
159
- add_message "google.pubsub.v1.CreateSnapshotRequest" do
160
- optional :name, :string, 1
161
- optional :subscription, :string, 2
162
- map :labels, :string, :string, 3
163
- end
164
- add_message "google.pubsub.v1.UpdateSnapshotRequest" do
165
- optional :snapshot, :message, 1, "google.pubsub.v1.Snapshot"
166
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
167
- end
168
- add_message "google.pubsub.v1.Snapshot" do
169
- optional :name, :string, 1
170
- optional :topic, :string, 2
171
- optional :expire_time, :message, 3, "google.protobuf.Timestamp"
172
- map :labels, :string, :string, 4
173
- end
174
- add_message "google.pubsub.v1.GetSnapshotRequest" do
175
- optional :snapshot, :string, 1
176
- end
177
- add_message "google.pubsub.v1.ListSnapshotsRequest" do
178
- optional :project, :string, 1
179
- optional :page_size, :int32, 2
180
- optional :page_token, :string, 3
181
- end
182
- add_message "google.pubsub.v1.ListSnapshotsResponse" do
183
- repeated :snapshots, :message, 1, "google.pubsub.v1.Snapshot"
184
- optional :next_page_token, :string, 2
185
- end
186
- add_message "google.pubsub.v1.DeleteSnapshotRequest" do
187
- optional :snapshot, :string, 1
188
- end
189
- add_message "google.pubsub.v1.SeekRequest" do
190
- optional :subscription, :string, 1
191
- oneof :target do
192
- optional :time, :message, 2, "google.protobuf.Timestamp"
193
- optional :snapshot, :string, 3
194
- end
195
- end
196
- add_message "google.pubsub.v1.SeekResponse" do
197
- end
198
- end
199
-
200
- module Google
201
- module Cloud
202
- module PubSub
203
- end
204
- end
205
- Pubsub = Cloud::PubSub unless const_defined? :Pubsub
206
- end
207
- module Google::Cloud::PubSub::V1
208
- MessageStoragePolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.MessageStoragePolicy").msgclass
209
- Topic = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic").msgclass
210
- PubsubMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PubsubMessage").msgclass
211
- GetTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetTopicRequest").msgclass
212
- UpdateTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateTopicRequest").msgclass
213
- PublishRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishRequest").msgclass
214
- PublishResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishResponse").msgclass
215
- ListTopicsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsRequest").msgclass
216
- ListTopicsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsResponse").msgclass
217
- ListTopicSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsRequest").msgclass
218
- ListTopicSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsResponse").msgclass
219
- ListTopicSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsRequest").msgclass
220
- ListTopicSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsResponse").msgclass
221
- DeleteTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteTopicRequest").msgclass
222
- Subscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Subscription").msgclass
223
- DeadLetterPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeadLetterPolicy").msgclass
224
- ExpirationPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ExpirationPolicy").msgclass
225
- PushConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig").msgclass
226
- PushConfig::OidcToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig.OidcToken").msgclass
227
- ReceivedMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ReceivedMessage").msgclass
228
- GetSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSubscriptionRequest").msgclass
229
- UpdateSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSubscriptionRequest").msgclass
230
- ListSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsRequest").msgclass
231
- ListSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsResponse").msgclass
232
- DeleteSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSubscriptionRequest").msgclass
233
- ModifyPushConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyPushConfigRequest").msgclass
234
- PullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullRequest").msgclass
235
- PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullResponse").msgclass
236
- ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyAckDeadlineRequest").msgclass
237
- AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
238
- StreamingPullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
239
- StreamingPullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
240
- CreateSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
241
- UpdateSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
242
- Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Snapshot").msgclass
243
- GetSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSnapshotRequest").msgclass
244
- ListSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsRequest").msgclass
245
- ListSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsResponse").msgclass
246
- DeleteSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSnapshotRequest").msgclass
247
- SeekRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SeekRequest").msgclass
248
- SeekResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SeekResponse").msgclass
249
- end
@@ -1,211 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/pubsub/v1/pubsub.proto for package 'Google::Cloud::PubSub::V1'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
- #
19
-
20
-
21
- require 'grpc'
22
- require 'google/pubsub/v1/pubsub_pb'
23
-
24
- module Google
25
- module Cloud
26
- module PubSub
27
- end
28
- end
29
- Pubsub = Cloud::PubSub unless const_defined? :Pubsub
30
- end
31
- module Google::Cloud::PubSub::V1
32
- module Publisher
33
- # The service that an application uses to manipulate topics, and to send
34
- # messages to a topic.
35
- class Service
36
-
37
- include GRPC::GenericService
38
-
39
- self.marshal_class_method = :encode
40
- self.unmarshal_class_method = :decode
41
- self.service_name = 'google.pubsub.v1.Publisher'
42
-
43
- # Creates the given topic with the given name. See the
44
- # <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
45
- # resource name rules</a>.
46
- rpc :CreateTopic, Topic, Topic
47
- # Updates an existing topic. Note that certain properties of a
48
- # topic are not modifiable.
49
- rpc :UpdateTopic, UpdateTopicRequest, Topic
50
- # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
51
- # does not exist.
52
- rpc :Publish, PublishRequest, PublishResponse
53
- # Gets the configuration of a topic.
54
- rpc :GetTopic, GetTopicRequest, Topic
55
- # Lists matching topics.
56
- rpc :ListTopics, ListTopicsRequest, ListTopicsResponse
57
- # Lists the names of the subscriptions on this topic.
58
- rpc :ListTopicSubscriptions, ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse
59
- # Lists the names of the snapshots on this topic. Snapshots are used in
60
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
61
- # operations, which allow
62
- # you to manage message acknowledgments in bulk. That is, you can set the
63
- # acknowledgment state of messages in an existing subscription to the state
64
- # captured by a snapshot.
65
- rpc :ListTopicSnapshots, ListTopicSnapshotsRequest, ListTopicSnapshotsResponse
66
- # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
67
- # does not exist. After a topic is deleted, a new topic may be created with
68
- # the same name; this is an entirely new topic with none of the old
69
- # configuration or subscriptions. Existing subscriptions to this topic are
70
- # not deleted, but their `topic` field is set to `_deleted-topic_`.
71
- rpc :DeleteTopic, DeleteTopicRequest, Google::Protobuf::Empty
72
- end
73
-
74
- Stub = Service.rpc_stub_class
75
- end
76
- module Subscriber
77
- # The service that an application uses to manipulate subscriptions and to
78
- # consume messages from a subscription via the `Pull` method or by
79
- # establishing a bi-directional stream using the `StreamingPull` method.
80
- class Service
81
-
82
- include GRPC::GenericService
83
-
84
- self.marshal_class_method = :encode
85
- self.unmarshal_class_method = :decode
86
- self.service_name = 'google.pubsub.v1.Subscriber'
87
-
88
- # Creates a subscription to a given topic. See the
89
- # <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
90
- # resource name rules</a>.
91
- # If the subscription already exists, returns `ALREADY_EXISTS`.
92
- # If the corresponding topic doesn't exist, returns `NOT_FOUND`.
93
- #
94
- # If the name is not provided in the request, the server will assign a random
95
- # name for this subscription on the same project as the topic, conforming
96
- # to the
97
- # [resource name
98
- # format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
99
- # generated name is populated in the returned Subscription object. Note that
100
- # for REST API requests, you must specify a name in the request.
101
- rpc :CreateSubscription, Subscription, Subscription
102
- # Gets the configuration details of a subscription.
103
- rpc :GetSubscription, GetSubscriptionRequest, Subscription
104
- # Updates an existing subscription. Note that certain properties of a
105
- # subscription, such as its topic, are not modifiable.
106
- rpc :UpdateSubscription, UpdateSubscriptionRequest, Subscription
107
- # Lists matching subscriptions.
108
- rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
109
- # Deletes an existing subscription. All messages retained in the subscription
110
- # are immediately dropped. Calls to `Pull` after deletion will return
111
- # `NOT_FOUND`. After a subscription is deleted, a new one may be created with
112
- # the same name, but the new one has no association with the old
113
- # subscription or its topic unless the same topic is specified.
114
- rpc :DeleteSubscription, DeleteSubscriptionRequest, Google::Protobuf::Empty
115
- # Modifies the ack deadline for a specific message. This method is useful
116
- # to indicate that more time is needed to process a message by the
117
- # subscriber, or to make the message available for redelivery if the
118
- # processing was interrupted. Note that this does not modify the
119
- # subscription-level `ackDeadlineSeconds` used for subsequent messages.
120
- rpc :ModifyAckDeadline, ModifyAckDeadlineRequest, Google::Protobuf::Empty
121
- # Acknowledges the messages associated with the `ack_ids` in the
122
- # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
123
- # from the subscription.
124
- #
125
- # Acknowledging a message whose ack deadline has expired may succeed,
126
- # but such a message may be redelivered later. Acknowledging a message more
127
- # than once will not result in an error.
128
- rpc :Acknowledge, AcknowledgeRequest, Google::Protobuf::Empty
129
- # Pulls messages from the server. The server may return `UNAVAILABLE` if
130
- # there are too many concurrent pull requests pending for the given
131
- # subscription.
132
- rpc :Pull, PullRequest, PullResponse
133
- # Establishes a stream with the server, which sends messages down to the
134
- # client. The client streams acknowledgements and ack deadline modifications
135
- # back to the server. The server will close the stream and return the status
136
- # on any error. The server may close the stream with status `UNAVAILABLE` to
137
- # reassign server-side resources, in which case, the client should
138
- # re-establish the stream. Flow control can be achieved by configuring the
139
- # underlying RPC channel.
140
- rpc :StreamingPull, stream(StreamingPullRequest), stream(StreamingPullResponse)
141
- # Modifies the `PushConfig` for a specified subscription.
142
- #
143
- # This may be used to change a push subscription to a pull one (signified by
144
- # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
145
- # attributes of a push subscription. Messages will accumulate for delivery
146
- # continuously through the call regardless of changes to the `PushConfig`.
147
- rpc :ModifyPushConfig, ModifyPushConfigRequest, Google::Protobuf::Empty
148
- # Gets the configuration details of a snapshot. Snapshots are used in
149
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
150
- # operations, which allow you to manage message acknowledgments in bulk. That
151
- # is, you can set the acknowledgment state of messages in an existing
152
- # subscription to the state captured by a snapshot.
153
- rpc :GetSnapshot, GetSnapshotRequest, Snapshot
154
- # Lists the existing snapshots. Snapshots are used in
155
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
156
- # operations, which allow
157
- # you to manage message acknowledgments in bulk. That is, you can set the
158
- # acknowledgment state of messages in an existing subscription to the state
159
- # captured by a snapshot.
160
- rpc :ListSnapshots, ListSnapshotsRequest, ListSnapshotsResponse
161
- # Creates a snapshot from the requested subscription. Snapshots are used in
162
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
163
- # operations, which allow
164
- # you to manage message acknowledgments in bulk. That is, you can set the
165
- # acknowledgment state of messages in an existing subscription to the state
166
- # captured by a snapshot.
167
- # <br><br>If the snapshot already exists, returns `ALREADY_EXISTS`.
168
- # If the requested subscription doesn't exist, returns `NOT_FOUND`.
169
- # If the backlog in the subscription is too old -- and the resulting snapshot
170
- # would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
171
- # See also the `Snapshot.expire_time` field. If the name is not provided in
172
- # the request, the server will assign a random
173
- # name for this snapshot on the same project as the subscription, conforming
174
- # to the
175
- # [resource name
176
- # format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
177
- # generated name is populated in the returned Snapshot object. Note that for
178
- # REST API requests, you must specify a name in the request.
179
- rpc :CreateSnapshot, CreateSnapshotRequest, Snapshot
180
- # Updates an existing snapshot. Snapshots are used in
181
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
182
- # operations, which allow
183
- # you to manage message acknowledgments in bulk. That is, you can set the
184
- # acknowledgment state of messages in an existing subscription to the state
185
- # captured by a snapshot.
186
- rpc :UpdateSnapshot, UpdateSnapshotRequest, Snapshot
187
- # Removes an existing snapshot. Snapshots are used in
188
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
189
- # operations, which allow
190
- # you to manage message acknowledgments in bulk. That is, you can set the
191
- # acknowledgment state of messages in an existing subscription to the state
192
- # captured by a snapshot.<br><br>
193
- # When the snapshot is deleted, all messages retained in the snapshot
194
- # are immediately dropped. After a snapshot is deleted, a new one may be
195
- # created with the same name, but the new one has no association with the old
196
- # snapshot or its subscription, unless the same subscription is specified.
197
- rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
198
- # Seeks an existing subscription to a point in time or to a given snapshot,
199
- # whichever is provided in the request. Snapshots are used in
200
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
201
- # operations, which allow
202
- # you to manage message acknowledgments in bulk. That is, you can set the
203
- # acknowledgment state of messages in an existing subscription to the state
204
- # captured by a snapshot. Note that both the subscription and the snapshot
205
- # must be on the same topic.
206
- rpc :Seek, SeekRequest, SeekResponse
207
- end
208
-
209
- Stub = Service.rpc_stub_class
210
- end
211
- end