google-cloud-pubsub-v1 0.6.0 → 0.7.1

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.
@@ -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
@@ -100,6 +100,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
100
100
  optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
101
101
  optional :retry_policy, :message, 14, "google.pubsub.v1.RetryPolicy"
102
102
  optional :detached, :bool, 15
103
+ optional :enable_exactly_once_delivery, :bool, 16
103
104
  optional :topic_message_retention_duration, :message, 17, "google.protobuf.Duration"
104
105
  end
105
106
  add_message "google.pubsub.v1.RetryPolicy" do
@@ -181,9 +182,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
181
182
  end
182
183
  add_message "google.pubsub.v1.StreamingPullResponse" do
183
184
  repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
185
+ optional :acknowledge_confirmation, :message, 5, "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation"
186
+ optional :modify_ack_deadline_confirmation, :message, 3, "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation"
184
187
  optional :subscription_properties, :message, 4, "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties"
185
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
186
198
  add_message "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties" do
199
+ optional :exactly_once_delivery_enabled, :bool, 1
187
200
  optional :message_ordering_enabled, :bool, 2
188
201
  end
189
202
  add_message "google.pubsub.v1.CreateSnapshotRequest" do
@@ -268,6 +281,8 @@ module Google
268
281
  AcknowledgeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
269
282
  StreamingPullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
270
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
271
286
  StreamingPullResponse::SubscriptionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.SubscriptionProperties").msgclass
272
287
  CreateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
273
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
@@ -434,6 +434,19 @@ module Google
434
434
  # backlog. `Pull` and `StreamingPull` requests will return
435
435
  # FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
436
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.
437
450
  # @!attribute [r] topic_message_retention_duration
438
451
  # @return [::Google::Protobuf::Duration]
439
452
  # Output only. Indicates the minimum duration for which a message is retained
@@ -869,6 +882,14 @@ module Google
869
882
  # @!attribute [rw] received_messages
870
883
  # @return [::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>]
871
884
  # Received Pub/Sub messages. This will not be empty.
885
+ # @!attribute [rw] acknowledge_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`.
872
893
  # @!attribute [rw] subscription_properties
873
894
  # @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::SubscriptionProperties]
874
895
  # Properties associated with this subscription.
@@ -876,7 +897,41 @@ module Google
876
897
  include ::Google::Protobuf::MessageExts
877
898
  extend ::Google::Protobuf::MessageExts::ClassMethods
878
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
+
879
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.
880
935
  # @!attribute [rw] message_ordering_enabled
881
936
  # @return [::Boolean]
882
937
  # True iff message ordering is enabled for this subscription.
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.6.0
4
+ version: 0.7.1
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-08-11 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -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