google-cloud-pubsub 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,6 +66,11 @@
66
66
  "retry_codes_name": "non_idempotent",
67
67
  "retry_params_name": "messaging"
68
68
  },
69
+ "StreamingPull": {
70
+ "timeout_millis": 60000,
71
+ "retry_codes_name": "non_idempotent",
72
+ "retry_params_name": "messaging"
73
+ },
69
74
  "ModifyPushConfig": {
70
75
  "timeout_millis": 60000,
71
76
  "retry_codes_name": "non_idempotent",
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Pubsub
19
- VERSION = "0.21.0"
19
+ VERSION = "0.22.0"
20
20
  end
21
21
  end
22
22
  end
@@ -97,6 +97,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
97
97
  optional :subscription, :string, 1
98
98
  repeated :ack_ids, :string, 2
99
99
  end
100
+ add_message "google.pubsub.v1.StreamingPullRequest" do
101
+ optional :subscription, :string, 1
102
+ repeated :ack_ids, :string, 2
103
+ repeated :modify_deadline_seconds, :int32, 3
104
+ repeated :modify_deadline_ack_ids, :string, 4
105
+ optional :stream_ack_deadline_seconds, :int32, 5
106
+ end
107
+ add_message "google.pubsub.v1.StreamingPullResponse" do
108
+ repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
109
+ end
100
110
  end
101
111
 
102
112
  module Google
@@ -124,6 +134,8 @@ module Google
124
134
  PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullResponse").msgclass
125
135
  ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyAckDeadlineRequest").msgclass
126
136
  AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
137
+ StreamingPullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
138
+ StreamingPullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
127
139
  end
128
140
  end
129
141
  end
@@ -38,18 +38,21 @@ module Google
38
38
  # If the corresponding topic doesn't exist, returns `NOT_FOUND`.
39
39
  #
40
40
  # If the name is not provided in the request, the server will assign a random
41
- # name for this subscription on the same project as the topic. Note that
42
- # for REST API requests, you must specify a name.
41
+ # name for this subscription on the same project as the topic, conforming
42
+ # to the
43
+ # [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
44
+ # The generated name is populated in the returned Subscription object.
45
+ # Note that for REST API requests, you must specify a name in the request.
43
46
  rpc :CreateSubscription, Subscription, Subscription
44
47
  # Gets the configuration details of a subscription.
45
48
  rpc :GetSubscription, GetSubscriptionRequest, Subscription
46
49
  # Lists matching subscriptions.
47
50
  rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
48
- # Deletes an existing subscription. All pending messages in the subscription
51
+ # Deletes an existing subscription. All messages retained in the subscription
49
52
  # are immediately dropped. Calls to `Pull` after deletion will return
50
53
  # `NOT_FOUND`. After a subscription is deleted, a new one may be created with
51
54
  # the same name, but the new one has no association with the old
52
- # subscription, or its topic unless the same topic is specified.
55
+ # subscription or its topic unless the same topic is specified.
53
56
  rpc :DeleteSubscription, DeleteSubscriptionRequest, Google::Protobuf::Empty
54
57
  # Modifies the ack deadline for a specific message. This method is useful
55
58
  # to indicate that more time is needed to process a message by the
@@ -70,6 +73,19 @@ module Google
70
73
  # there are too many concurrent pull requests pending for the given
71
74
  # subscription.
72
75
  rpc :Pull, PullRequest, PullResponse
76
+ # (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will
77
+ # respond with UNIMPLEMENTED errors unless you have been invited to test
78
+ # this feature. Contact cloud-pubsub@google.com with any questions.
79
+ #
80
+ # Establishes a stream with the server, which sends messages down to the
81
+ # client. The client streams acknowledgements and ack deadline modifications
82
+ # back to the server. The server will close the stream and return the status
83
+ # on any error. The server may close the stream with status `OK` to reassign
84
+ # server-side resources, in which case, the client should re-establish the
85
+ # stream. `UNAVAILABLE` may also be returned in the case of a transient error
86
+ # (e.g., a server restart). These should also be retried by the client. Flow
87
+ # control can be achieved by configuring the underlying RPC channel.
88
+ rpc :StreamingPull, stream(StreamingPullRequest), stream(StreamingPullResponse)
73
89
  # Modifies the `PushConfig` for a specified subscription.
74
90
  #
75
91
  # This may be used to change a push subscription to a pull one (signified by
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: 0.21.0
4
+ version: 0.22.0
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: 2016-10-20 00:00:00.000000000 Z
12
+ date: 2017-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -211,16 +211,16 @@ dependencies:
211
211
  name: yard-doctest
212
212
  requirement: !ruby/object:Gem::Requirement
213
213
  requirements:
214
- - - "~>"
214
+ - - "<="
215
215
  - !ruby/object:Gem::Version
216
- version: 0.1.6
216
+ version: 0.1.8
217
217
  type: :development
218
218
  prerelease: false
219
219
  version_requirements: !ruby/object:Gem::Requirement
220
220
  requirements:
221
- - - "~>"
221
+ - - "<="
222
222
  - !ruby/object:Gem::Version
223
- version: 0.1.6
223
+ version: 0.1.8
224
224
  description: google-cloud-pubsub is the official library for Google Cloud Pub/Sub.
225
225
  email:
226
226
  - mike@blowmage.com
@@ -229,6 +229,9 @@ executables: []
229
229
  extensions: []
230
230
  extra_rdoc_files: []
231
231
  files:
232
+ - ".yardopts"
233
+ - LICENSE
234
+ - README.md
232
235
  - lib/google-cloud-pubsub.rb
233
236
  - lib/google/cloud/pubsub.rb
234
237
  - lib/google/cloud/pubsub/credentials.rb
@@ -243,9 +246,11 @@ files:
243
246
  - lib/google/cloud/pubsub/topic/list.rb
244
247
  - lib/google/cloud/pubsub/topic/publisher.rb
245
248
  - lib/google/cloud/pubsub/v1.rb
246
- - lib/google/cloud/pubsub/v1/publisher_api.rb
249
+ - lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb
250
+ - lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
251
+ - lib/google/cloud/pubsub/v1/publisher_client.rb
247
252
  - lib/google/cloud/pubsub/v1/publisher_client_config.json
248
- - lib/google/cloud/pubsub/v1/subscriber_api.rb
253
+ - lib/google/cloud/pubsub/v1/subscriber_client.rb
249
254
  - lib/google/cloud/pubsub/v1/subscriber_client_config.json
250
255
  - lib/google/cloud/pubsub/version.rb
251
256
  - lib/google/pubsub/v1/pubsub_pb.rb
@@ -270,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
275
  version: '0'
271
276
  requirements: []
272
277
  rubyforge_project:
273
- rubygems_version: 2.6.4
278
+ rubygems_version: 2.6.10
274
279
  signing_key:
275
280
  specification_version: 4
276
281
  summary: API Client library for Google Cloud Pub/Sub