google-cloud-pubsub-v1 0.5.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "0.5.2"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/pubsub/v1/pubsub.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -12,6 +10,8 @@ require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
14
12
  require 'google/pubsub/v1/schema_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/pubsub/v1/pubsub.proto", :syntax => :proto3) do
17
17
  add_message "google.pubsub.v1.MessageStoragePolicy" do
@@ -28,6 +28,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
28
  optional :kms_key_name, :string, 5
29
29
  optional :schema_settings, :message, 6, "google.pubsub.v1.SchemaSettings"
30
30
  optional :satisfies_pzs, :bool, 7
31
+ optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
31
32
  end
32
33
  add_message "google.pubsub.v1.PubsubMessage" do
33
34
  optional :data, :bytes, 1
@@ -99,6 +100,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
99
100
  optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
100
101
  optional :retry_policy, :message, 14, "google.pubsub.v1.RetryPolicy"
101
102
  optional :detached, :bool, 15
103
+ optional :enable_exactly_once_delivery, :bool, 16
104
+ optional :topic_message_retention_duration, :message, 17, "google.protobuf.Duration"
102
105
  end
103
106
  add_message "google.pubsub.v1.RetryPolicy" do
104
107
  optional :minimum_backoff, :message, 1, "google.protobuf.Duration"
@@ -179,9 +182,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
179
182
  end
180
183
  add_message "google.pubsub.v1.StreamingPullResponse" do
181
184
  repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
185
+ optional :acknowlege_confirmation, :message, 2, "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation"
186
+ optional :modify_ack_deadline_confirmation, :message, 3, "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation"
182
187
  optional :subscription_properties, :message, 4, "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties"
183
188
  end
189
+ add_message "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation" do
190
+ repeated :ack_ids, :string, 1
191
+ repeated :invalid_ack_ids, :string, 2
192
+ repeated :unordered_ack_ids, :string, 3
193
+ end
194
+ add_message "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation" do
195
+ repeated :ack_ids, :string, 1
196
+ repeated :invalid_ack_ids, :string, 2
197
+ end
184
198
  add_message "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties" do
199
+ optional :exactly_once_delivery_enabled, :bool, 1
185
200
  optional :message_ordering_enabled, :bool, 2
186
201
  end
187
202
  add_message "google.pubsub.v1.CreateSnapshotRequest" do
@@ -266,6 +281,8 @@ module Google
266
281
  AcknowledgeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
267
282
  StreamingPullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
268
283
  StreamingPullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
284
+ StreamingPullResponse::AcknowledgeConfirmation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation").msgclass
285
+ StreamingPullResponse::ModifyAckDeadlineConfirmation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation").msgclass
269
286
  StreamingPullResponse::SubscriptionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.SubscriptionProperties").msgclass
270
287
  CreateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
271
288
  UpdateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
@@ -28,7 +28,7 @@ module Google
28
28
  # messages to a topic.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -76,7 +76,7 @@ module Google
76
76
  # establishing a bi-directional stream using the `StreamingPull` method.
77
77
  class Service
78
78
 
79
- include GRPC::GenericService
79
+ include ::GRPC::GenericService
80
80
 
81
81
  self.marshal_class_method = :encode
82
82
  self.unmarshal_class_method = :decode
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/pubsub/v1/schema.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
9
7
  require 'google/api/resource_pb'
10
8
  require 'google/protobuf/empty_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/pubsub/v1/schema.proto", :syntax => :proto3) do
13
13
  add_message "google.pubsub.v1.Schema" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for doing schema-related operations.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -80,6 +80,16 @@ module Google
80
80
  # @return [::Boolean]
81
81
  # Reserved for future use. This field is set only in responses from the
82
82
  # server; it is ignored if it is set in any requests.
83
+ # @!attribute [rw] message_retention_duration
84
+ # @return [::Google::Protobuf::Duration]
85
+ # Indicates the minimum duration to retain a message after it is published to
86
+ # the topic. If this field is set, messages published to the topic in the
87
+ # last `message_retention_duration` are always available to subscribers. For
88
+ # instance, it allows any attached subscription to [seek to a
89
+ # timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
90
+ # that is up to `message_retention_duration` in the past. If this field is
91
+ # not set, message retention is controlled by settings on individual
92
+ # subscriptions. Cannot be more than 7 days or less than 10 minutes.
83
93
  class Topic
84
94
  include ::Google::Protobuf::MessageExts
85
95
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -362,8 +372,9 @@ module Google
362
372
  # Indicates whether to retain acknowledged messages. If true, then
363
373
  # messages are not expunged from the subscription's backlog, even if they are
364
374
  # acknowledged, until they fall out of the `message_retention_duration`
365
- # window. This must be true if you would like to [Seek to a timestamp]
366
- # (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time).
375
+ # window. This must be true if you would like to [`Seek` to a timestamp]
376
+ # (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in
377
+ # the past to replay previously-acknowledged messages.
367
378
  # @!attribute [rw] message_retention_duration
368
379
  # @return [::Google::Protobuf::Duration]
369
380
  # How long to retain unacknowledged messages in the subscription's backlog,
@@ -423,6 +434,27 @@ module Google
423
434
  # backlog. `Pull` and `StreamingPull` requests will return
424
435
  # FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
425
436
  # the endpoint will not be made.
437
+ # @!attribute [rw] enable_exactly_once_delivery
438
+ # @return [::Boolean]
439
+ # If true, Pub/Sub provides the following guarantees for the delivery of
440
+ # a message with a given value of `message_id` on this subscription:
441
+ #
442
+ # * The message sent to a subscriber is guaranteed not to be resent
443
+ # before the message's acknowledgement deadline expires.
444
+ # * An acknowledged message will not be resent to a subscriber.
445
+ #
446
+ # Note that subscribers may still receive multiple copies of a message
447
+ # when `enable_exactly_once_delivery` is true if the message was published
448
+ # multiple times by a publisher client. These copies are considered distinct
449
+ # by Pub/Sub and have distinct `message_id` values.
450
+ # @!attribute [r] topic_message_retention_duration
451
+ # @return [::Google::Protobuf::Duration]
452
+ # Output only. Indicates the minimum duration for which a message is retained
453
+ # after it is published to the subscription's topic. If this field is set,
454
+ # messages published to the subscription's topic in the last
455
+ # `topic_message_retention_duration` are always available to subscribers. See
456
+ # the `message_retention_duration` field in `Topic`. This field is set only
457
+ # in responses from the server; it is ignored if it is set in any requests.
426
458
  class Subscription
427
459
  include ::Google::Protobuf::MessageExts
428
460
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -850,6 +882,14 @@ module Google
850
882
  # @!attribute [rw] received_messages
851
883
  # @return [::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>]
852
884
  # Received Pub/Sub messages. This will not be empty.
885
+ # @!attribute [rw] acknowlege_confirmation
886
+ # @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::AcknowledgeConfirmation]
887
+ # This field will only be set if `enable_exactly_once_delivery` is set to
888
+ # `true`.
889
+ # @!attribute [rw] modify_ack_deadline_confirmation
890
+ # @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::ModifyAckDeadlineConfirmation]
891
+ # This field will only be set if `enable_exactly_once_delivery` is set to
892
+ # `true`.
853
893
  # @!attribute [rw] subscription_properties
854
894
  # @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::SubscriptionProperties]
855
895
  # Properties associated with this subscription.
@@ -857,7 +897,41 @@ module Google
857
897
  include ::Google::Protobuf::MessageExts
858
898
  extend ::Google::Protobuf::MessageExts::ClassMethods
859
899
 
900
+ # Acknowledgement IDs sent in one or more previous requests to acknowledge a
901
+ # previously received message.
902
+ # @!attribute [rw] ack_ids
903
+ # @return [::Array<::String>]
904
+ # Successfully processed acknowledgement IDs.
905
+ # @!attribute [rw] invalid_ack_ids
906
+ # @return [::Array<::String>]
907
+ # List of acknowledgement IDs that were malformed or whose acknowledgement
908
+ # deadline has expired.
909
+ # @!attribute [rw] unordered_ack_ids
910
+ # @return [::Array<::String>]
911
+ # List of acknowledgement IDs that were out of order.
912
+ class AcknowledgeConfirmation
913
+ include ::Google::Protobuf::MessageExts
914
+ extend ::Google::Protobuf::MessageExts::ClassMethods
915
+ end
916
+
917
+ # Acknowledgement IDs sent in one or more previous requests to modify the
918
+ # deadline for a specific message.
919
+ # @!attribute [rw] ack_ids
920
+ # @return [::Array<::String>]
921
+ # Successfully processed acknowledgement IDs.
922
+ # @!attribute [rw] invalid_ack_ids
923
+ # @return [::Array<::String>]
924
+ # List of acknowledgement IDs that were malformed or whose acknowledgement
925
+ # deadline has expired.
926
+ class ModifyAckDeadlineConfirmation
927
+ include ::Google::Protobuf::MessageExts
928
+ extend ::Google::Protobuf::MessageExts::ClassMethods
929
+ end
930
+
860
931
  # Subscription properties sent as part of the response.
932
+ # @!attribute [rw] exactly_once_delivery_enabled
933
+ # @return [::Boolean]
934
+ # True iff exactly once delivery is enabled for this subscription.
861
935
  # @!attribute [rw] message_ordering_enabled
862
936
  # @return [::Boolean]
863
937
  # True iff message ordering is enabled for this subscription.
@@ -150,6 +150,7 @@ module Google
150
150
  end
151
151
 
152
152
  # Response for the `ValidateSchema` method.
153
+ # Empty for now.
153
154
  class ValidateSchemaResponse
154
155
  include ::Google::Protobuf::MessageExts
155
156
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -180,6 +181,7 @@ module Google
180
181
  end
181
182
 
182
183
  # Response for the `ValidateMessage` method.
184
+ # Empty for now.
183
185
  class ValidateMessageResponse
184
186
  include ::Google::Protobuf::MessageExts
185
187
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.5.2
4
+ version: 0.7.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: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2022-02-09 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.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
247
  requirements: []
248
- rubygems_version: 3.2.17
248
+ rubygems_version: 3.3.5
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: API Client library for the Cloud Pub/Sub V1 API