google-cloud-pubsub-v1 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef2b50623ab3e258fe7b1095de46db9a1c038e4ac881927e725715da7094a47d
4
- data.tar.gz: 5317692433c1dd6b31d79df6a6f91630aaaaa2ce522fb53222a0aa32cc4ed1dd
3
+ metadata.gz: 6bced1f4bc0ef50d280341581d62ebb391a0b5b277554e23f9d23a06b65982e0
4
+ data.tar.gz: d7b6f3f3601415d85a9b0611db7c0b3e441796b8dbe7b34a4baecc5a7f8532a3
5
5
  SHA512:
6
- metadata.gz: 953a676423d8161d13b27f4a49b7c54868ec4802add7bc7d75049b5c98011b20750bd06e0e449cbbc538dbe54210dd9677452d82fd47599187c155d202ceec8a
7
- data.tar.gz: f8a65ec54c6ffbcb68d05bc3ff3586a763e3b40fc8a84c96674543ac3ab1db8f88006eba30c56276730100201615dca30861395783fea35803ea60bfc041c319
6
+ metadata.gz: 011b0497a357b60bebf0073c828163319c474ad1ad82f6fdf8be389b479478bc3bfbb6d2d21fe0782c493dbb837a8333ffcd01f14b78488ba68a875e4cb90267
7
+ data.tar.gz: 87c8da9f77dac0c3d2f4b5295a9f97cd2e5095f54967456748d29115bf788b99277211f3f4393c0953ec907ef529ef54bc3ff448047b0be47d6563fb0ff23ae5
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "0.16.0"
24
+ VERSION = "0.17.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/pubsub/v1/pubsub.proto
3
4
 
@@ -13,282 +14,34 @@ require 'google/protobuf/field_mask_pb'
13
14
  require 'google/protobuf/timestamp_pb'
14
15
  require 'google/pubsub/v1/schema_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/pubsub/v1/pubsub.proto", :syntax => :proto3) do
18
- add_message "google.pubsub.v1.MessageStoragePolicy" do
19
- repeated :allowed_persistence_regions, :string, 1
20
- end
21
- add_message "google.pubsub.v1.SchemaSettings" do
22
- optional :schema, :string, 1
23
- optional :encoding, :enum, 2, "google.pubsub.v1.Encoding"
24
- optional :first_revision_id, :string, 3
25
- optional :last_revision_id, :string, 4
26
- end
27
- add_message "google.pubsub.v1.Topic" do
28
- optional :name, :string, 1
29
- map :labels, :string, :string, 2
30
- optional :message_storage_policy, :message, 3, "google.pubsub.v1.MessageStoragePolicy"
31
- optional :kms_key_name, :string, 5
32
- optional :schema_settings, :message, 6, "google.pubsub.v1.SchemaSettings"
33
- optional :satisfies_pzs, :bool, 7
34
- optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
35
- end
36
- add_message "google.pubsub.v1.PubsubMessage" do
37
- optional :data, :bytes, 1
38
- map :attributes, :string, :string, 2
39
- optional :message_id, :string, 3
40
- optional :publish_time, :message, 4, "google.protobuf.Timestamp"
41
- optional :ordering_key, :string, 5
42
- end
43
- add_message "google.pubsub.v1.GetTopicRequest" do
44
- optional :topic, :string, 1
45
- end
46
- add_message "google.pubsub.v1.UpdateTopicRequest" do
47
- optional :topic, :message, 1, "google.pubsub.v1.Topic"
48
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
49
- end
50
- add_message "google.pubsub.v1.PublishRequest" do
51
- optional :topic, :string, 1
52
- repeated :messages, :message, 2, "google.pubsub.v1.PubsubMessage"
53
- end
54
- add_message "google.pubsub.v1.PublishResponse" do
55
- repeated :message_ids, :string, 1
56
- end
57
- add_message "google.pubsub.v1.ListTopicsRequest" do
58
- optional :project, :string, 1
59
- optional :page_size, :int32, 2
60
- optional :page_token, :string, 3
61
- end
62
- add_message "google.pubsub.v1.ListTopicsResponse" do
63
- repeated :topics, :message, 1, "google.pubsub.v1.Topic"
64
- optional :next_page_token, :string, 2
65
- end
66
- add_message "google.pubsub.v1.ListTopicSubscriptionsRequest" do
67
- optional :topic, :string, 1
68
- optional :page_size, :int32, 2
69
- optional :page_token, :string, 3
70
- end
71
- add_message "google.pubsub.v1.ListTopicSubscriptionsResponse" do
72
- repeated :subscriptions, :string, 1
73
- optional :next_page_token, :string, 2
74
- end
75
- add_message "google.pubsub.v1.ListTopicSnapshotsRequest" do
76
- optional :topic, :string, 1
77
- optional :page_size, :int32, 2
78
- optional :page_token, :string, 3
79
- end
80
- add_message "google.pubsub.v1.ListTopicSnapshotsResponse" do
81
- repeated :snapshots, :string, 1
82
- optional :next_page_token, :string, 2
83
- end
84
- add_message "google.pubsub.v1.DeleteTopicRequest" do
85
- optional :topic, :string, 1
86
- end
87
- add_message "google.pubsub.v1.DetachSubscriptionRequest" do
88
- optional :subscription, :string, 1
89
- end
90
- add_message "google.pubsub.v1.DetachSubscriptionResponse" do
91
- end
92
- add_message "google.pubsub.v1.Subscription" do
93
- optional :name, :string, 1
94
- optional :topic, :string, 2
95
- optional :push_config, :message, 4, "google.pubsub.v1.PushConfig"
96
- optional :bigquery_config, :message, 18, "google.pubsub.v1.BigQueryConfig"
97
- optional :cloud_storage_config, :message, 22, "google.pubsub.v1.CloudStorageConfig"
98
- optional :ack_deadline_seconds, :int32, 5
99
- optional :retain_acked_messages, :bool, 7
100
- optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
101
- map :labels, :string, :string, 9
102
- optional :enable_message_ordering, :bool, 10
103
- optional :expiration_policy, :message, 11, "google.pubsub.v1.ExpirationPolicy"
104
- optional :filter, :string, 12
105
- optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
106
- optional :retry_policy, :message, 14, "google.pubsub.v1.RetryPolicy"
107
- optional :detached, :bool, 15
108
- optional :enable_exactly_once_delivery, :bool, 16
109
- optional :topic_message_retention_duration, :message, 17, "google.protobuf.Duration"
110
- optional :state, :enum, 19, "google.pubsub.v1.Subscription.State"
111
- end
112
- add_enum "google.pubsub.v1.Subscription.State" do
113
- value :STATE_UNSPECIFIED, 0
114
- value :ACTIVE, 1
115
- value :RESOURCE_ERROR, 2
116
- end
117
- add_message "google.pubsub.v1.RetryPolicy" do
118
- optional :minimum_backoff, :message, 1, "google.protobuf.Duration"
119
- optional :maximum_backoff, :message, 2, "google.protobuf.Duration"
120
- end
121
- add_message "google.pubsub.v1.DeadLetterPolicy" do
122
- optional :dead_letter_topic, :string, 1
123
- optional :max_delivery_attempts, :int32, 2
124
- end
125
- add_message "google.pubsub.v1.ExpirationPolicy" do
126
- optional :ttl, :message, 1, "google.protobuf.Duration"
127
- end
128
- add_message "google.pubsub.v1.PushConfig" do
129
- optional :push_endpoint, :string, 1
130
- map :attributes, :string, :string, 2
131
- oneof :authentication_method do
132
- optional :oidc_token, :message, 3, "google.pubsub.v1.PushConfig.OidcToken"
133
- end
134
- end
135
- add_message "google.pubsub.v1.PushConfig.OidcToken" do
136
- optional :service_account_email, :string, 1
137
- optional :audience, :string, 2
138
- end
139
- add_message "google.pubsub.v1.BigQueryConfig" do
140
- optional :table, :string, 1
141
- optional :use_topic_schema, :bool, 2
142
- optional :write_metadata, :bool, 3
143
- optional :drop_unknown_fields, :bool, 4
144
- optional :state, :enum, 5, "google.pubsub.v1.BigQueryConfig.State"
145
- end
146
- add_enum "google.pubsub.v1.BigQueryConfig.State" do
147
- value :STATE_UNSPECIFIED, 0
148
- value :ACTIVE, 1
149
- value :PERMISSION_DENIED, 2
150
- value :NOT_FOUND, 3
151
- value :SCHEMA_MISMATCH, 4
152
- end
153
- add_message "google.pubsub.v1.CloudStorageConfig" do
154
- optional :bucket, :string, 1
155
- optional :filename_prefix, :string, 2
156
- optional :filename_suffix, :string, 3
157
- optional :max_duration, :message, 6, "google.protobuf.Duration"
158
- optional :max_bytes, :int64, 7
159
- optional :state, :enum, 9, "google.pubsub.v1.CloudStorageConfig.State"
160
- oneof :output_format do
161
- optional :text_config, :message, 4, "google.pubsub.v1.CloudStorageConfig.TextConfig"
162
- optional :avro_config, :message, 5, "google.pubsub.v1.CloudStorageConfig.AvroConfig"
163
- end
164
- end
165
- add_message "google.pubsub.v1.CloudStorageConfig.TextConfig" do
166
- end
167
- add_message "google.pubsub.v1.CloudStorageConfig.AvroConfig" do
168
- optional :write_metadata, :bool, 1
169
- end
170
- add_enum "google.pubsub.v1.CloudStorageConfig.State" do
171
- value :STATE_UNSPECIFIED, 0
172
- value :ACTIVE, 1
173
- value :PERMISSION_DENIED, 2
174
- value :NOT_FOUND, 3
175
- end
176
- add_message "google.pubsub.v1.ReceivedMessage" do
177
- optional :ack_id, :string, 1
178
- optional :message, :message, 2, "google.pubsub.v1.PubsubMessage"
179
- optional :delivery_attempt, :int32, 3
180
- end
181
- add_message "google.pubsub.v1.GetSubscriptionRequest" do
182
- optional :subscription, :string, 1
183
- end
184
- add_message "google.pubsub.v1.UpdateSubscriptionRequest" do
185
- optional :subscription, :message, 1, "google.pubsub.v1.Subscription"
186
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
187
- end
188
- add_message "google.pubsub.v1.ListSubscriptionsRequest" do
189
- optional :project, :string, 1
190
- optional :page_size, :int32, 2
191
- optional :page_token, :string, 3
192
- end
193
- add_message "google.pubsub.v1.ListSubscriptionsResponse" do
194
- repeated :subscriptions, :message, 1, "google.pubsub.v1.Subscription"
195
- optional :next_page_token, :string, 2
196
- end
197
- add_message "google.pubsub.v1.DeleteSubscriptionRequest" do
198
- optional :subscription, :string, 1
199
- end
200
- add_message "google.pubsub.v1.ModifyPushConfigRequest" do
201
- optional :subscription, :string, 1
202
- optional :push_config, :message, 2, "google.pubsub.v1.PushConfig"
203
- end
204
- add_message "google.pubsub.v1.PullRequest" do
205
- optional :subscription, :string, 1
206
- optional :return_immediately, :bool, 2
207
- optional :max_messages, :int32, 3
208
- end
209
- add_message "google.pubsub.v1.PullResponse" do
210
- repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
211
- end
212
- add_message "google.pubsub.v1.ModifyAckDeadlineRequest" do
213
- optional :subscription, :string, 1
214
- repeated :ack_ids, :string, 4
215
- optional :ack_deadline_seconds, :int32, 3
216
- end
217
- add_message "google.pubsub.v1.AcknowledgeRequest" do
218
- optional :subscription, :string, 1
219
- repeated :ack_ids, :string, 2
220
- end
221
- add_message "google.pubsub.v1.StreamingPullRequest" do
222
- optional :subscription, :string, 1
223
- repeated :ack_ids, :string, 2
224
- repeated :modify_deadline_seconds, :int32, 3
225
- repeated :modify_deadline_ack_ids, :string, 4
226
- optional :stream_ack_deadline_seconds, :int32, 5
227
- optional :client_id, :string, 6
228
- optional :max_outstanding_messages, :int64, 7
229
- optional :max_outstanding_bytes, :int64, 8
230
- end
231
- add_message "google.pubsub.v1.StreamingPullResponse" do
232
- repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
233
- optional :acknowledge_confirmation, :message, 5, "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation"
234
- optional :modify_ack_deadline_confirmation, :message, 3, "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation"
235
- optional :subscription_properties, :message, 4, "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties"
236
- end
237
- add_message "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation" do
238
- repeated :ack_ids, :string, 1
239
- repeated :invalid_ack_ids, :string, 2
240
- repeated :unordered_ack_ids, :string, 3
241
- repeated :temporary_failed_ack_ids, :string, 4
242
- end
243
- add_message "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation" do
244
- repeated :ack_ids, :string, 1
245
- repeated :invalid_ack_ids, :string, 2
246
- repeated :temporary_failed_ack_ids, :string, 3
247
- end
248
- add_message "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties" do
249
- optional :exactly_once_delivery_enabled, :bool, 1
250
- optional :message_ordering_enabled, :bool, 2
251
- end
252
- add_message "google.pubsub.v1.CreateSnapshotRequest" do
253
- optional :name, :string, 1
254
- optional :subscription, :string, 2
255
- map :labels, :string, :string, 3
256
- end
257
- add_message "google.pubsub.v1.UpdateSnapshotRequest" do
258
- optional :snapshot, :message, 1, "google.pubsub.v1.Snapshot"
259
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
260
- end
261
- add_message "google.pubsub.v1.Snapshot" do
262
- optional :name, :string, 1
263
- optional :topic, :string, 2
264
- optional :expire_time, :message, 3, "google.protobuf.Timestamp"
265
- map :labels, :string, :string, 4
266
- end
267
- add_message "google.pubsub.v1.GetSnapshotRequest" do
268
- optional :snapshot, :string, 1
269
- end
270
- add_message "google.pubsub.v1.ListSnapshotsRequest" do
271
- optional :project, :string, 1
272
- optional :page_size, :int32, 2
273
- optional :page_token, :string, 3
274
- end
275
- add_message "google.pubsub.v1.ListSnapshotsResponse" do
276
- repeated :snapshots, :message, 1, "google.pubsub.v1.Snapshot"
277
- optional :next_page_token, :string, 2
278
- end
279
- add_message "google.pubsub.v1.DeleteSnapshotRequest" do
280
- optional :snapshot, :string, 1
281
- end
282
- add_message "google.pubsub.v1.SeekRequest" do
283
- optional :subscription, :string, 1
284
- oneof :target do
285
- optional :time, :message, 2, "google.protobuf.Timestamp"
286
- optional :snapshot, :string, 3
287
- end
288
- end
289
- add_message "google.pubsub.v1.SeekResponse" do
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\"\x91\x02\n\x0e\x42igQueryConfig\x12\r\n\x05table\x18\x01 \x01(\t\x12\x18\n\x10use_topic_schema\x18\x02 \x01(\x08\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\"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"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
34
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
35
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
36
+ ]
37
+ imports.each do |type_name, expected_filename|
38
+ import_file = pool.lookup(type_name).file_descriptor
39
+ if import_file.name != expected_filename
40
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
290
41
  end
291
42
  end
43
+ warn "Each proto file must use a consistent fully-qualified name."
44
+ warn "This will become an error in the next major version."
292
45
  end
293
46
 
294
47
  module Google
@@ -319,6 +72,8 @@ module Google
319
72
  ExpirationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ExpirationPolicy").msgclass
320
73
  PushConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig").msgclass
321
74
  PushConfig::OidcToken = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig.OidcToken").msgclass
75
+ PushConfig::PubsubWrapper = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig.PubsubWrapper").msgclass
76
+ PushConfig::NoWrapper = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig.NoWrapper").msgclass
322
77
  BigQueryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.BigQueryConfig").msgclass
323
78
  BigQueryConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.BigQueryConfig.State").enummodule
324
79
  CloudStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CloudStorageConfig").msgclass
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/pubsub/v1/schema.proto
3
4
 
@@ -10,92 +11,32 @@ require 'google/api/resource_pb'
10
11
  require 'google/protobuf/empty_pb'
11
12
  require 'google/protobuf/timestamp_pb'
12
13
 
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/pubsub/v1/schema.proto", :syntax => :proto3) do
15
- add_message "google.pubsub.v1.Schema" do
16
- optional :name, :string, 1
17
- optional :type, :enum, 2, "google.pubsub.v1.Schema.Type"
18
- optional :definition, :string, 3
19
- optional :revision_id, :string, 4
20
- optional :revision_create_time, :message, 6, "google.protobuf.Timestamp"
21
- end
22
- add_enum "google.pubsub.v1.Schema.Type" do
23
- value :TYPE_UNSPECIFIED, 0
24
- value :PROTOCOL_BUFFER, 1
25
- value :AVRO, 2
26
- end
27
- add_message "google.pubsub.v1.CreateSchemaRequest" do
28
- optional :parent, :string, 1
29
- optional :schema, :message, 2, "google.pubsub.v1.Schema"
30
- optional :schema_id, :string, 3
31
- end
32
- add_message "google.pubsub.v1.GetSchemaRequest" do
33
- optional :name, :string, 1
34
- optional :view, :enum, 2, "google.pubsub.v1.SchemaView"
35
- end
36
- add_message "google.pubsub.v1.ListSchemasRequest" do
37
- optional :parent, :string, 1
38
- optional :view, :enum, 2, "google.pubsub.v1.SchemaView"
39
- optional :page_size, :int32, 3
40
- optional :page_token, :string, 4
41
- end
42
- add_message "google.pubsub.v1.ListSchemasResponse" do
43
- repeated :schemas, :message, 1, "google.pubsub.v1.Schema"
44
- optional :next_page_token, :string, 2
45
- end
46
- add_message "google.pubsub.v1.ListSchemaRevisionsRequest" do
47
- optional :name, :string, 1
48
- optional :view, :enum, 2, "google.pubsub.v1.SchemaView"
49
- optional :page_size, :int32, 3
50
- optional :page_token, :string, 4
51
- end
52
- add_message "google.pubsub.v1.ListSchemaRevisionsResponse" do
53
- repeated :schemas, :message, 1, "google.pubsub.v1.Schema"
54
- optional :next_page_token, :string, 2
55
- end
56
- add_message "google.pubsub.v1.CommitSchemaRequest" do
57
- optional :name, :string, 1
58
- optional :schema, :message, 2, "google.pubsub.v1.Schema"
59
- end
60
- add_message "google.pubsub.v1.RollbackSchemaRequest" do
61
- optional :name, :string, 1
62
- optional :revision_id, :string, 2
63
- end
64
- add_message "google.pubsub.v1.DeleteSchemaRevisionRequest" do
65
- optional :name, :string, 1
66
- optional :revision_id, :string, 2
67
- end
68
- add_message "google.pubsub.v1.DeleteSchemaRequest" do
69
- optional :name, :string, 1
70
- end
71
- add_message "google.pubsub.v1.ValidateSchemaRequest" do
72
- optional :parent, :string, 1
73
- optional :schema, :message, 2, "google.pubsub.v1.Schema"
74
- end
75
- add_message "google.pubsub.v1.ValidateSchemaResponse" do
76
- end
77
- add_message "google.pubsub.v1.ValidateMessageRequest" do
78
- optional :parent, :string, 1
79
- optional :message, :bytes, 4
80
- optional :encoding, :enum, 5, "google.pubsub.v1.Encoding"
81
- oneof :schema_spec do
82
- optional :name, :string, 2
83
- optional :schema, :message, 3, "google.pubsub.v1.Schema"
84
- end
85
- end
86
- add_message "google.pubsub.v1.ValidateMessageResponse" do
87
- end
88
- add_enum "google.pubsub.v1.SchemaView" do
89
- value :SCHEMA_VIEW_UNSPECIFIED, 0
90
- value :BASIC, 1
91
- value :FULL, 2
92
- end
93
- add_enum "google.pubsub.v1.Encoding" do
94
- value :ENCODING_UNSPECIFIED, 0
95
- value :JSON, 1
96
- value :BINARY, 2
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\"\xbd\x02\n\x06Schema\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\x04type\x18\x02 \x01(\x0e\x32\x1d.google.pubsub.v1.Schema.Type\x12\x12\n\ndefinition\x18\x03 \x01(\t\x12\x1b\n\x0brevision_id\x18\x04 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12=\n\x14revision_create_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\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}\"\x8d\x01\n\x13\x43reateSchemaRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1cpubsub.googleapis.com/Schema\x12-\n\x06schema\x18\x02 \x01(\x0b\x32\x18.google.pubsub.v1.SchemaB\x03\xe0\x41\x02\x12\x11\n\tschema_id\x18\x03 \x01(\t\"r\n\x10GetSchemaRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12*\n\x04view\x18\x02 \x01(\x0e\x32\x1c.google.pubsub.v1.SchemaView\"\xac\x01\n\x12ListSchemasRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\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\"\xa3\x01\n\x1aListSchemaRevisionsRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\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\"x\n\x13\x43ommitSchemaRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12-\n\x06schema\x18\x02 \x01(\x0b\x32\x18.google.pubsub.v1.SchemaB\x03\xe0\x41\x02\"e\n\x15RollbackSchemaRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12\x18\n\x0brevision_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"m\n\x1b\x44\x65leteSchemaRevisionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\x12\x1a\n\x0brevision_id\x18\x02 \x01(\tB\x05\x18\x01\xe0\x41\x01\"I\n\x13\x44\x65leteSchemaRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cpubsub.googleapis.com/Schema\"\x8b\x01\n\x15ValidateSchemaRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12-\n\x06schema\x18\x02 \x01(\x0b\x32\x18.google.pubsub.v1.SchemaB\x03\xe0\x41\x02\"\x18\n\x16ValidateSchemaResponse\"\x8a\x02\n\x16ValidateMessageRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\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\x82\xd3\xe4\x93\x02)\"\x1f/v1/{parent=projects/*}/schemas:\x06schema\xda\x41\x17parent,schema,schema_id\x12y\n\tGetSchema\x12\".google.pubsub.v1.GetSchemaRequest\x1a\x18.google.pubsub.v1.Schema\".\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=projects/*/schemas/*}\xda\x41\x04name\x12\x8c\x01\n\x0bListSchemas\x12$.google.pubsub.v1.ListSchemasRequest\x1a%.google.pubsub.v1.ListSchemasResponse\"0\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{parent=projects/*}/schemas\xda\x41\x06parent\x12\xb0\x01\n\x13ListSchemaRevisions\x12,.google.pubsub.v1.ListSchemaRevisionsRequest\x1a-.google.pubsub.v1.ListSchemaRevisionsResponse\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/schemas/*}:listRevisions\xda\x41\x04name\x12\x90\x01\n\x0c\x43ommitSchema\x12%.google.pubsub.v1.CommitSchemaRequest\x1a\x18.google.pubsub.v1.Schema\"?\x82\xd3\xe4\x93\x02+\"&/v1/{name=projects/*/schemas/*}:commit:\x01*\xda\x41\x0bname,schema\x12\x9b\x01\n\x0eRollbackSchema\x12\'.google.pubsub.v1.RollbackSchemaRequest\x1a\x18.google.pubsub.v1.Schema\"F\x82\xd3\xe4\x93\x02-\"(/v1/{name=projects/*/schemas/*}:rollback:\x01*\xda\x41\x10name,revision_id\x12\xaa\x01\n\x14\x44\x65leteSchemaRevision\x12-.google.pubsub.v1.DeleteSchemaRevisionRequest\x1a\x18.google.pubsub.v1.Schema\"I\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/schemas/*}:deleteRevision\xda\x41\x10name,revision_id\x12}\n\x0c\x44\x65leteSchema\x12%.google.pubsub.v1.DeleteSchemaRequest\x1a\x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02!*\x1f/v1/{name=projects/*/schemas/*}\xda\x41\x04name\x12\xa8\x01\n\x0eValidateSchema\x12\'.google.pubsub.v1.ValidateSchemaRequest\x1a(.google.pubsub.v1.ValidateSchemaResponse\"C\x82\xd3\xe4\x93\x02-\"(/v1/{parent=projects/*}/schemas:validate:\x01*\xda\x41\rparent,schema\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
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError => e
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
97
36
  end
98
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
99
40
  end
100
41
 
101
42
  module Google
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
@@ -616,6 +616,14 @@ module Google
616
616
  # @return [::Google::Cloud::PubSub::V1::PushConfig::OidcToken]
617
617
  # If specified, Pub/Sub will generate and attach an OIDC JWT token as an
618
618
  # `Authorization` header in the HTTP request for every pushed message.
619
+ # @!attribute [rw] pubsub_wrapper
620
+ # @return [::Google::Cloud::PubSub::V1::PushConfig::PubsubWrapper]
621
+ # When set, the payload to the push endpoint is in the form of the JSON
622
+ # representation of a PubsubMessage
623
+ # (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
624
+ # @!attribute [rw] no_wrapper
625
+ # @return [::Google::Cloud::PubSub::V1::PushConfig::NoWrapper]
626
+ # When set, the payload to the push endpoint is not wrapped.
619
627
  class PushConfig
620
628
  include ::Google::Protobuf::MessageExts
621
629
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -643,6 +651,25 @@ module Google
643
651
  extend ::Google::Protobuf::MessageExts::ClassMethods
644
652
  end
645
653
 
654
+ # The payload to the push endpoint is in the form of the JSON representation
655
+ # of a PubsubMessage
656
+ # (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
657
+ class PubsubWrapper
658
+ include ::Google::Protobuf::MessageExts
659
+ extend ::Google::Protobuf::MessageExts::ClassMethods
660
+ end
661
+
662
+ # Sets the `data` field as the HTTP body for delivery.
663
+ # @!attribute [rw] write_metadata
664
+ # @return [::Boolean]
665
+ # When true, writes the Pub/Sub message metadata to
666
+ # `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
667
+ # Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
668
+ class NoWrapper
669
+ include ::Google::Protobuf::MessageExts
670
+ extend ::Google::Protobuf::MessageExts::ClassMethods
671
+ end
672
+
646
673
  # @!attribute [rw] key
647
674
  # @return [::String]
648
675
  # @!attribute [rw] value
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-18 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a