google-cloud-pubsub 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66cc2fd88b1019a4e8cb4ab038d1dca597aad7ac0ece7496745cf8b26d7d282a
4
- data.tar.gz: fbc06da0aab3bb5ca81dfe09be11d3e9f405c91ccadf724a136d6ffeecd724a6
3
+ metadata.gz: 6eb38845984e78d2c7f5e3fb376e7e384323c08ed6e1ed03dc341f6936577a5a
4
+ data.tar.gz: 6530343d9396bbf325cd7a9667a3e0e185063a9fcc42c81e522d83c82c83ec5e
5
5
  SHA512:
6
- metadata.gz: 4c173e2e28ebee15b439764d6d7819b14e5a26b90da400b3a6b3dddbcdd809754d4307de3d0ff642135599f506d442bf6e4db2abbc2fb64b3fdd9bcb314f8083
7
- data.tar.gz: aa6e23e46ad3072f9c7256a9292030471599175a88583958a96b2e4150877c52dc8bfdec4dcd2ad6bf1e9fab348ab7caa21ca877379e45164005f614b52bc68d
6
+ metadata.gz: e3ae4aa5ba8c61842a62eedb7ac896bedfddff137603a3c49948a094cd335ab5d0879aeeca0f59be0c7e4729e34fd71352751dbd2946118e7d5a7c6893afd568
7
+ data.tar.gz: b7236c32fca695dc77d35813c5acdd62375c575c8ccf1e1568d39e79ccdc6a6f16604008f81dcecb64ec6ab91ecf4666b35c7428a9e06eeacf7cd5c054f00e97
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.2.2 / 2020-02-04
4
+
5
+ #### Performance Improvements
6
+
7
+ * Add StreamingPullRequest#client_id to the lower-level API
8
+
3
9
  ### 1.2.1 / 2020-01-23
4
10
 
5
11
  #### Documentation
@@ -66,7 +66,8 @@ module Google
66
66
  # at least one attribute.
67
67
  # @!attribute [rw] attributes
68
68
  # @return [Hash{String => String}]
69
- # Optional attributes for this message.
69
+ # Attributes for this message. If this field is empty, the message must
70
+ # contain non-empty data.
70
71
  # @!attribute [rw] message_id
71
72
  # @return [String]
72
73
  # ID of this message, assigned by the server when the message is published.
@@ -80,10 +81,12 @@ module Google
80
81
  # publisher in a `Publish` call.
81
82
  # @!attribute [rw] ordering_key
82
83
  # @return [String]
83
- # Identifies related messages for which publish order should be respected.
84
- # If a `Subscription` has `enable_message_ordering` set to `true`, messages
85
- # published with the same `ordering_key` value will be delivered to
86
- # subscribers in the order in which they are received by the Pub/Sub system.
84
+ # If non-empty, identifies related messages for which publish order should be
85
+ # respected. If a `Subscription` has `enable_message_ordering` set to `true`,
86
+ # messages published with the same non-empty `ordering_key` value will be
87
+ # delivered to subscribers in the order in which they are received by the
88
+ # Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest`
89
+ # must specify the same `ordering_key` value.
87
90
  # <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
88
91
  # API might be changed in backward-incompatible ways and is not recommended
89
92
  # for production use. It is not subject to any SLA or deprecation policy.
@@ -597,6 +600,14 @@ module Google
597
600
  # first request on the stream, but it can also be updated on subsequent
598
601
  # requests from client to server. The minimum deadline you can specify is 10
599
602
  # seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
603
+ # @!attribute [rw] client_id
604
+ # @return [String]
605
+ # A unique identifier that is used to distinguish client instances from each
606
+ # other. Only needs to be provided on the initial request. When a stream
607
+ # disconnects and reconnects for the same stream, the client_id should be set
608
+ # to the same value so that state associated with the old stream can be
609
+ # transferred to the new stream. The same client_id should not be used for
610
+ # different client instances.
600
611
  class StreamingPullRequest; end
601
612
 
602
613
  # Response for the `StreamingPull` method. This response is used to stream
@@ -609,13 +620,12 @@ module Google
609
620
  # Request for the `CreateSnapshot` method.
610
621
  # @!attribute [rw] name
611
622
  # @return [String]
612
- # Optional user-provided name for this snapshot.
613
- # If the name is not provided in the request, the server will assign a random
614
- # name for this snapshot on the same project as the subscription.
615
- # Note that for REST API requests, you must specify a name. See the
616
- # <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
617
- # resource name rules</a>.
618
- # Format is `projects/{project}/snapshots/{snap}`.
623
+ # User-provided name for this snapshot. If the name is not provided in the
624
+ # request, the server will assign a random name for this snapshot on the same
625
+ # project as the subscription. Note that for REST API requests, you must
626
+ # specify a name. See the <a
627
+ # href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
628
+ # name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
619
629
  # @!attribute [rw] subscription
620
630
  # @return [String]
621
631
  # The subscription whose backlog the snapshot retains.
@@ -1047,13 +1047,12 @@ module Google
1047
1047
  # REST API requests, you must specify a name in the request.
1048
1048
  #
1049
1049
  # @param name [String]
1050
- # Optional user-provided name for this snapshot.
1051
- # If the name is not provided in the request, the server will assign a random
1052
- # name for this snapshot on the same project as the subscription.
1053
- # Note that for REST API requests, you must specify a name. See the
1054
- # <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
1055
- # resource name rules</a>.
1056
- # Format is `projects/{project}/snapshots/{snap}`.
1050
+ # User-provided name for this snapshot. If the name is not provided in the
1051
+ # request, the server will assign a random name for this snapshot on the same
1052
+ # project as the subscription. Note that for REST API requests, you must
1053
+ # specify a name. See the <a
1054
+ # href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
1055
+ # name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
1057
1056
  # @param subscription [String]
1058
1057
  # The subscription whose backlog the snapshot retains.
1059
1058
  # Specifically, the created snapshot is guaranteed to retain:
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module PubSub
19
- VERSION = "1.2.1".freeze
19
+ VERSION = "1.2.2".freeze
20
20
  end
21
21
 
22
22
  Pubsub = PubSub unless const_defined? :Pubsub
@@ -152,6 +152,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
152
152
  repeated :modify_deadline_seconds, :int32, 3
153
153
  repeated :modify_deadline_ack_ids, :string, 4
154
154
  optional :stream_ack_deadline_seconds, :int32, 5
155
+ optional :client_id, :string, 6
155
156
  end
156
157
  add_message "google.pubsub.v1.StreamingPullResponse" do
157
158
  repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-23 00:00:00.000000000 Z
12
+ date: 2020-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby