google-cloud-pubsub-v1 0.15.1 → 0.17.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df22077865f40614c9ed5928131219a1d5fa701544ed37098d8001dba60fe6a1
4
- data.tar.gz: f04965f673450e00fd3d4d7668d6e6f637bdbf007349c41bd13fa3732487c500
3
+ metadata.gz: 6bced1f4bc0ef50d280341581d62ebb391a0b5b277554e23f9d23a06b65982e0
4
+ data.tar.gz: d7b6f3f3601415d85a9b0611db7c0b3e441796b8dbe7b34a4baecc5a7f8532a3
5
5
  SHA512:
6
- metadata.gz: ce82c20e79a9a46a279d210f74c612b9f45cb13b2f347a1d093175df6539169cf6995813464b3486cda681a263c3a3f6689a8b94329d00c4881f00d82c6747af
7
- data.tar.gz: 3412f06d1d5e8a4e29fdd7101fdfe61e7a30eb485100bb0e038d31e1d766f50cfb50ff7f7f4f9961271c9a1558e39e60dfc04c9786c5c36fba3ae5cf25a12210
6
+ metadata.gz: 011b0497a357b60bebf0073c828163319c474ad1ad82f6fdf8be389b479478bc3bfbb6d2d21fe0782c493dbb837a8333ffcd01f14b78488ba68a875e4cb90267
7
+ data.tar.gz: 87c8da9f77dac0c3d2f4b5295a9f97cd2e5095f54967456748d29115bf788b99277211f3f4393c0953ec907ef529ef54bc3ff448047b0be47d6563fb0ff23ae5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Pub/Sub V1 API
2
2
 
3
- API Client library for the Cloud Pub/Sub V1 API
3
+ Provides reliable, many-to-many, asynchronous messaging between applications.
4
4
 
5
5
  Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications.
6
6
 
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -1090,9 +1090,9 @@ module Google
1090
1090
  # * (`String`) The path to a service account key file in JSON format
1091
1091
  # * (`Hash`) A service account key as a Hash
1092
1092
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1093
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1093
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1094
1094
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1095
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1095
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1096
1096
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1097
1097
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1098
1098
  # * (`nil`) indicating no credentials
@@ -65,6 +65,56 @@ module Google
65
65
  end
66
66
  default_config = Client::Configuration.new parent_config
67
67
 
68
+ default_config.rpcs.create_schema.timeout = 60.0
69
+ default_config.rpcs.create_schema.retry_policy = {
70
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
71
+ }
72
+
73
+ default_config.rpcs.get_schema.timeout = 60.0
74
+ default_config.rpcs.get_schema.retry_policy = {
75
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
76
+ }
77
+
78
+ default_config.rpcs.list_schemas.timeout = 60.0
79
+ default_config.rpcs.list_schemas.retry_policy = {
80
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
81
+ }
82
+
83
+ default_config.rpcs.list_schema_revisions.timeout = 60.0
84
+ default_config.rpcs.list_schema_revisions.retry_policy = {
85
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
86
+ }
87
+
88
+ default_config.rpcs.commit_schema.timeout = 60.0
89
+ default_config.rpcs.commit_schema.retry_policy = {
90
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
91
+ }
92
+
93
+ default_config.rpcs.rollback_schema.timeout = 60.0
94
+ default_config.rpcs.rollback_schema.retry_policy = {
95
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
96
+ }
97
+
98
+ default_config.rpcs.delete_schema_revision.timeout = 60.0
99
+ default_config.rpcs.delete_schema_revision.retry_policy = {
100
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
101
+ }
102
+
103
+ default_config.rpcs.delete_schema.timeout = 60.0
104
+ default_config.rpcs.delete_schema.retry_policy = {
105
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
106
+ }
107
+
108
+ default_config.rpcs.validate_schema.timeout = 60.0
109
+ default_config.rpcs.validate_schema.retry_policy = {
110
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
111
+ }
112
+
113
+ default_config.rpcs.validate_message.timeout = 60.0
114
+ default_config.rpcs.validate_message.retry_policy = {
115
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
116
+ }
117
+
68
118
  default_config
69
119
  end
70
120
  yield @configure if block_given?
@@ -1123,9 +1173,9 @@ module Google
1123
1173
  # * (`String`) The path to a service account key file in JSON format
1124
1174
  # * (`Hash`) A service account key as a Hash
1125
1175
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1126
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1176
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1127
1177
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1128
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1178
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1129
1179
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1130
1180
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1131
1181
  # * (`nil`) indicating no credentials
@@ -263,7 +263,7 @@ module Google
263
263
  # @param options [::Gapic::CallOptions, ::Hash]
264
264
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
265
265
  #
266
- # @overload create_subscription(name: nil, topic: nil, push_config: nil, bigquery_config: nil, ack_deadline_seconds: nil, retain_acked_messages: nil, message_retention_duration: nil, labels: nil, enable_message_ordering: nil, expiration_policy: nil, filter: nil, dead_letter_policy: nil, retry_policy: nil, detached: nil, enable_exactly_once_delivery: nil)
266
+ # @overload create_subscription(name: nil, topic: nil, push_config: nil, bigquery_config: nil, cloud_storage_config: nil, ack_deadline_seconds: nil, retain_acked_messages: nil, message_retention_duration: nil, labels: nil, enable_message_ordering: nil, expiration_policy: nil, filter: nil, dead_letter_policy: nil, retry_policy: nil, detached: nil, enable_exactly_once_delivery: nil)
267
267
  # Pass arguments to `create_subscription` via keyword arguments. Note that at
268
268
  # least one keyword argument is required. To specify no parameters, or to keep all
269
269
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -285,6 +285,9 @@ module Google
285
285
  # @param bigquery_config [::Google::Cloud::PubSub::V1::BigQueryConfig, ::Hash]
286
286
  # If delivery to BigQuery is used with this subscription, this field is
287
287
  # used to configure it.
288
+ # @param cloud_storage_config [::Google::Cloud::PubSub::V1::CloudStorageConfig, ::Hash]
289
+ # If delivery to Google Cloud Storage is used with this subscription, this
290
+ # field is used to configure it.
288
291
  # @param ack_deadline_seconds [::Integer]
289
292
  # The approximate amount of time (on a best-effort basis) Pub/Sub waits for
290
293
  # the subscriber to acknowledge receipt before resending the message. In the
@@ -1921,9 +1924,9 @@ module Google
1921
1924
  # * (`String`) The path to a service account key file in JSON format
1922
1925
  # * (`Hash`) A service account key as a Hash
1923
1926
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1924
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1927
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1925
1928
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1926
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1929
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1927
1930
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1928
1931
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1929
1932
  # * (`nil`) indicating no credentials
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "0.15.1"
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,258 +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 :ack_deadline_seconds, :int32, 5
98
- optional :retain_acked_messages, :bool, 7
99
- optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
100
- map :labels, :string, :string, 9
101
- optional :enable_message_ordering, :bool, 10
102
- optional :expiration_policy, :message, 11, "google.pubsub.v1.ExpirationPolicy"
103
- optional :filter, :string, 12
104
- optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
105
- optional :retry_policy, :message, 14, "google.pubsub.v1.RetryPolicy"
106
- optional :detached, :bool, 15
107
- optional :enable_exactly_once_delivery, :bool, 16
108
- optional :topic_message_retention_duration, :message, 17, "google.protobuf.Duration"
109
- optional :state, :enum, 19, "google.pubsub.v1.Subscription.State"
110
- end
111
- add_enum "google.pubsub.v1.Subscription.State" do
112
- value :STATE_UNSPECIFIED, 0
113
- value :ACTIVE, 1
114
- value :RESOURCE_ERROR, 2
115
- end
116
- add_message "google.pubsub.v1.RetryPolicy" do
117
- optional :minimum_backoff, :message, 1, "google.protobuf.Duration"
118
- optional :maximum_backoff, :message, 2, "google.protobuf.Duration"
119
- end
120
- add_message "google.pubsub.v1.DeadLetterPolicy" do
121
- optional :dead_letter_topic, :string, 1
122
- optional :max_delivery_attempts, :int32, 2
123
- end
124
- add_message "google.pubsub.v1.ExpirationPolicy" do
125
- optional :ttl, :message, 1, "google.protobuf.Duration"
126
- end
127
- add_message "google.pubsub.v1.PushConfig" do
128
- optional :push_endpoint, :string, 1
129
- map :attributes, :string, :string, 2
130
- oneof :authentication_method do
131
- optional :oidc_token, :message, 3, "google.pubsub.v1.PushConfig.OidcToken"
132
- end
133
- end
134
- add_message "google.pubsub.v1.PushConfig.OidcToken" do
135
- optional :service_account_email, :string, 1
136
- optional :audience, :string, 2
137
- end
138
- add_message "google.pubsub.v1.BigQueryConfig" do
139
- optional :table, :string, 1
140
- optional :use_topic_schema, :bool, 2
141
- optional :write_metadata, :bool, 3
142
- optional :drop_unknown_fields, :bool, 4
143
- optional :state, :enum, 5, "google.pubsub.v1.BigQueryConfig.State"
144
- end
145
- add_enum "google.pubsub.v1.BigQueryConfig.State" do
146
- value :STATE_UNSPECIFIED, 0
147
- value :ACTIVE, 1
148
- value :PERMISSION_DENIED, 2
149
- value :NOT_FOUND, 3
150
- value :SCHEMA_MISMATCH, 4
151
- end
152
- add_message "google.pubsub.v1.ReceivedMessage" do
153
- optional :ack_id, :string, 1
154
- optional :message, :message, 2, "google.pubsub.v1.PubsubMessage"
155
- optional :delivery_attempt, :int32, 3
156
- end
157
- add_message "google.pubsub.v1.GetSubscriptionRequest" do
158
- optional :subscription, :string, 1
159
- end
160
- add_message "google.pubsub.v1.UpdateSubscriptionRequest" do
161
- optional :subscription, :message, 1, "google.pubsub.v1.Subscription"
162
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
163
- end
164
- add_message "google.pubsub.v1.ListSubscriptionsRequest" do
165
- optional :project, :string, 1
166
- optional :page_size, :int32, 2
167
- optional :page_token, :string, 3
168
- end
169
- add_message "google.pubsub.v1.ListSubscriptionsResponse" do
170
- repeated :subscriptions, :message, 1, "google.pubsub.v1.Subscription"
171
- optional :next_page_token, :string, 2
172
- end
173
- add_message "google.pubsub.v1.DeleteSubscriptionRequest" do
174
- optional :subscription, :string, 1
175
- end
176
- add_message "google.pubsub.v1.ModifyPushConfigRequest" do
177
- optional :subscription, :string, 1
178
- optional :push_config, :message, 2, "google.pubsub.v1.PushConfig"
179
- end
180
- add_message "google.pubsub.v1.PullRequest" do
181
- optional :subscription, :string, 1
182
- optional :return_immediately, :bool, 2
183
- optional :max_messages, :int32, 3
184
- end
185
- add_message "google.pubsub.v1.PullResponse" do
186
- repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
187
- end
188
- add_message "google.pubsub.v1.ModifyAckDeadlineRequest" do
189
- optional :subscription, :string, 1
190
- repeated :ack_ids, :string, 4
191
- optional :ack_deadline_seconds, :int32, 3
192
- end
193
- add_message "google.pubsub.v1.AcknowledgeRequest" do
194
- optional :subscription, :string, 1
195
- repeated :ack_ids, :string, 2
196
- end
197
- add_message "google.pubsub.v1.StreamingPullRequest" do
198
- optional :subscription, :string, 1
199
- repeated :ack_ids, :string, 2
200
- repeated :modify_deadline_seconds, :int32, 3
201
- repeated :modify_deadline_ack_ids, :string, 4
202
- optional :stream_ack_deadline_seconds, :int32, 5
203
- optional :client_id, :string, 6
204
- optional :max_outstanding_messages, :int64, 7
205
- optional :max_outstanding_bytes, :int64, 8
206
- end
207
- add_message "google.pubsub.v1.StreamingPullResponse" do
208
- repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
209
- optional :acknowledge_confirmation, :message, 5, "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation"
210
- optional :modify_ack_deadline_confirmation, :message, 3, "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation"
211
- optional :subscription_properties, :message, 4, "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties"
212
- end
213
- add_message "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation" do
214
- repeated :ack_ids, :string, 1
215
- repeated :invalid_ack_ids, :string, 2
216
- repeated :unordered_ack_ids, :string, 3
217
- repeated :temporary_failed_ack_ids, :string, 4
218
- end
219
- add_message "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation" do
220
- repeated :ack_ids, :string, 1
221
- repeated :invalid_ack_ids, :string, 2
222
- repeated :temporary_failed_ack_ids, :string, 3
223
- end
224
- add_message "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties" do
225
- optional :exactly_once_delivery_enabled, :bool, 1
226
- optional :message_ordering_enabled, :bool, 2
227
- end
228
- add_message "google.pubsub.v1.CreateSnapshotRequest" do
229
- optional :name, :string, 1
230
- optional :subscription, :string, 2
231
- map :labels, :string, :string, 3
232
- end
233
- add_message "google.pubsub.v1.UpdateSnapshotRequest" do
234
- optional :snapshot, :message, 1, "google.pubsub.v1.Snapshot"
235
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
236
- end
237
- add_message "google.pubsub.v1.Snapshot" do
238
- optional :name, :string, 1
239
- optional :topic, :string, 2
240
- optional :expire_time, :message, 3, "google.protobuf.Timestamp"
241
- map :labels, :string, :string, 4
242
- end
243
- add_message "google.pubsub.v1.GetSnapshotRequest" do
244
- optional :snapshot, :string, 1
245
- end
246
- add_message "google.pubsub.v1.ListSnapshotsRequest" do
247
- optional :project, :string, 1
248
- optional :page_size, :int32, 2
249
- optional :page_token, :string, 3
250
- end
251
- add_message "google.pubsub.v1.ListSnapshotsResponse" do
252
- repeated :snapshots, :message, 1, "google.pubsub.v1.Snapshot"
253
- optional :next_page_token, :string, 2
254
- end
255
- add_message "google.pubsub.v1.DeleteSnapshotRequest" do
256
- optional :snapshot, :string, 1
257
- end
258
- add_message "google.pubsub.v1.SeekRequest" do
259
- optional :subscription, :string, 1
260
- oneof :target do
261
- optional :time, :message, 2, "google.protobuf.Timestamp"
262
- optional :snapshot, :string, 3
263
- end
264
- end
265
- 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}"
266
41
  end
267
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."
268
45
  end
269
46
 
270
47
  module Google
@@ -295,8 +72,14 @@ module Google
295
72
  ExpirationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ExpirationPolicy").msgclass
296
73
  PushConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig").msgclass
297
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
298
77
  BigQueryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.BigQueryConfig").msgclass
299
78
  BigQueryConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.BigQueryConfig.State").enummodule
79
+ CloudStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CloudStorageConfig").msgclass
80
+ CloudStorageConfig::TextConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CloudStorageConfig.TextConfig").msgclass
81
+ CloudStorageConfig::AvroConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CloudStorageConfig.AvroConfig").msgclass
82
+ CloudStorageConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CloudStorageConfig.State").enummodule
300
83
  ReceivedMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ReceivedMessage").msgclass
301
84
  GetSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSubscriptionRequest").msgclass
302
85
  UpdateSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSubscriptionRequest").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
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -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]
@@ -338,9 +338,9 @@ module Google
338
338
  extend ::Google::Protobuf::MessageExts::ClassMethods
339
339
  end
340
340
 
341
- # A subscription resource. If none of `push_config` or `bigquery_config` is
342
- # set, then the subscriber will pull and ack messages using API methods. At
343
- # most one of these fields may be set.
341
+ # A subscription resource. If none of `push_config`, `bigquery_config`, or
342
+ # `cloud_storage_config` is set, then the subscriber will pull and ack messages
343
+ # using API methods. At most one of these fields may be set.
344
344
  # @!attribute [rw] name
345
345
  # @return [::String]
346
346
  # Required. The name of the subscription. It must have the format
@@ -362,6 +362,10 @@ module Google
362
362
  # @return [::Google::Cloud::PubSub::V1::BigQueryConfig]
363
363
  # If delivery to BigQuery is used with this subscription, this field is
364
364
  # used to configure it.
365
+ # @!attribute [rw] cloud_storage_config
366
+ # @return [::Google::Cloud::PubSub::V1::CloudStorageConfig]
367
+ # If delivery to Google Cloud Storage is used with this subscription, this
368
+ # field is used to configure it.
365
369
  # @!attribute [rw] ack_deadline_seconds
366
370
  # @return [::Integer]
367
371
  # The approximate amount of time (on a best-effort basis) Pub/Sub waits for
@@ -612,6 +616,14 @@ module Google
612
616
  # @return [::Google::Cloud::PubSub::V1::PushConfig::OidcToken]
613
617
  # If specified, Pub/Sub will generate and attach an OIDC JWT token as an
614
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.
615
627
  class PushConfig
616
628
  include ::Google::Protobuf::MessageExts
617
629
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -623,9 +635,9 @@ module Google
623
635
  # @return [::String]
624
636
  # [Service account
625
637
  # email](https://cloud.google.com/iam/docs/service-accounts)
626
- # to be used for generating the OIDC token. The caller (for
627
- # CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
628
- # have the iam.serviceAccounts.actAs permission for the service account.
638
+ # used for generating the OIDC token. For more information
639
+ # on setting up authentication, see
640
+ # [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
629
641
  # @!attribute [rw] audience
630
642
  # @return [::String]
631
643
  # Audience to be used when generating OIDC token. The audience claim
@@ -639,6 +651,25 @@ module Google
639
651
  extend ::Google::Protobuf::MessageExts::ClassMethods
640
652
  end
641
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
+
642
673
  # @!attribute [rw] key
643
674
  # @return [::String]
644
675
  # @!attribute [rw] value
@@ -704,6 +735,81 @@ module Google
704
735
  end
705
736
  end
706
737
 
738
+ # Configuration for a Cloud Storage subscription.
739
+ # @!attribute [rw] bucket
740
+ # @return [::String]
741
+ # Required. User-provided name for the Cloud Storage bucket.
742
+ # The bucket must be created by the user. The bucket name must be without
743
+ # any prefix like "gs://". See the [bucket naming
744
+ # requirements] (https://cloud.google.com/storage/docs/buckets#naming).
745
+ # @!attribute [rw] filename_prefix
746
+ # @return [::String]
747
+ # User-provided prefix for Cloud Storage filename. See the [object naming
748
+ # requirements](https://cloud.google.com/storage/docs/objects#naming).
749
+ # @!attribute [rw] filename_suffix
750
+ # @return [::String]
751
+ # User-provided suffix for Cloud Storage filename. See the [object naming
752
+ # requirements](https://cloud.google.com/storage/docs/objects#naming).
753
+ # @!attribute [rw] text_config
754
+ # @return [::Google::Cloud::PubSub::V1::CloudStorageConfig::TextConfig]
755
+ # If set, message data will be written to Cloud Storage in text format.
756
+ # @!attribute [rw] avro_config
757
+ # @return [::Google::Cloud::PubSub::V1::CloudStorageConfig::AvroConfig]
758
+ # If set, message data will be written to Cloud Storage in Avro format.
759
+ # @!attribute [rw] max_duration
760
+ # @return [::Google::Protobuf::Duration]
761
+ # The maximum duration that can elapse before a new Cloud Storage file is
762
+ # created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
763
+ # the subscription's acknowledgement deadline.
764
+ # @!attribute [rw] max_bytes
765
+ # @return [::Integer]
766
+ # The maximum bytes that can be written to a Cloud Storage file before a new
767
+ # file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
768
+ # in cases where messages are larger than the limit.
769
+ # @!attribute [r] state
770
+ # @return [::Google::Cloud::PubSub::V1::CloudStorageConfig::State]
771
+ # Output only. An output-only field that indicates whether or not the
772
+ # subscription can receive messages.
773
+ class CloudStorageConfig
774
+ include ::Google::Protobuf::MessageExts
775
+ extend ::Google::Protobuf::MessageExts::ClassMethods
776
+
777
+ # Configuration for writing message data in text format.
778
+ # Message payloads will be written to files as raw text, separated by a
779
+ # newline.
780
+ class TextConfig
781
+ include ::Google::Protobuf::MessageExts
782
+ extend ::Google::Protobuf::MessageExts::ClassMethods
783
+ end
784
+
785
+ # Configuration for writing message data in Avro format.
786
+ # Message payloads and metadata will be written to files as an Avro binary.
787
+ # @!attribute [rw] write_metadata
788
+ # @return [::Boolean]
789
+ # When true, write the subscription name, message_id, publish_time,
790
+ # attributes, and ordering_key as additional fields in the output.
791
+ class AvroConfig
792
+ include ::Google::Protobuf::MessageExts
793
+ extend ::Google::Protobuf::MessageExts::ClassMethods
794
+ end
795
+
796
+ # Possible states for a Cloud Storage subscription.
797
+ module State
798
+ # Default value. This value is unused.
799
+ STATE_UNSPECIFIED = 0
800
+
801
+ # The subscription can actively send messages to Cloud Storage.
802
+ ACTIVE = 1
803
+
804
+ # Cannot write to the Cloud Storage bucket because of permission denied
805
+ # errors.
806
+ PERMISSION_DENIED = 2
807
+
808
+ # Cannot write to the Cloud Storage bucket because it does not exist.
809
+ NOT_FOUND = 3
810
+ end
811
+ end
812
+
707
813
  # A message and its corresponding acknowledgment ID.
708
814
  # @!attribute [rw] ack_id
709
815
  # @return [::String]
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.15.1
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-02-23 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.17.1
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.17.1
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -248,5 +248,5 @@ requirements: []
248
248
  rubygems_version: 3.4.2
249
249
  signing_key:
250
250
  specification_version: 4
251
- summary: API Client library for the Cloud Pub/Sub V1 API
251
+ summary: Provides reliable, many-to-many, asynchronous messaging between applications.
252
252
  test_files: []