google-cloud-pubsub 0.33.1 → 2.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +41 -40
- data/CHANGELOG.md +610 -0
- data/CONTRIBUTING.md +328 -116
- data/EMULATOR.md +2 -2
- data/LOGGING.md +95 -3
- data/OVERVIEW.md +183 -90
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google/cloud/pubsub/acknowledge_result.rb +79 -0
- data/lib/google/cloud/pubsub/async_publisher/batch.rb +306 -0
- data/lib/google/cloud/pubsub/async_publisher.rb +270 -161
- data/lib/google/cloud/pubsub/batch_publisher.rb +65 -33
- data/lib/google/cloud/pubsub/convert.rb +36 -8
- data/lib/google/cloud/pubsub/credentials.rb +7 -5
- data/lib/google/cloud/pubsub/errors.rb +93 -0
- data/lib/google/cloud/pubsub/flow_controller.rb +139 -0
- data/lib/google/cloud/pubsub/message.rb +52 -7
- data/lib/google/cloud/pubsub/policy.rb +15 -12
- data/lib/google/cloud/pubsub/project.rb +341 -75
- data/lib/google/cloud/pubsub/publish_result.rb +9 -2
- data/lib/google/cloud/pubsub/received_message.rb +182 -20
- data/lib/google/cloud/pubsub/retry_policy.rb +88 -0
- data/lib/google/cloud/pubsub/schema/list.rb +180 -0
- data/lib/google/cloud/pubsub/schema.rb +310 -0
- data/lib/google/cloud/pubsub/service.rb +285 -258
- data/lib/google/cloud/pubsub/snapshot/list.rb +14 -14
- data/lib/google/cloud/pubsub/snapshot.rb +17 -12
- data/lib/google/cloud/pubsub/subscriber/enumerator_queue.rb +4 -4
- data/lib/google/cloud/pubsub/subscriber/inventory.rb +74 -33
- data/lib/google/cloud/pubsub/subscriber/sequencer.rb +115 -0
- data/lib/google/cloud/pubsub/subscriber/stream.rb +138 -91
- data/lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb +397 -0
- data/lib/google/cloud/pubsub/subscriber.rb +213 -51
- data/lib/google/cloud/pubsub/subscription/list.rb +16 -16
- data/lib/google/cloud/pubsub/subscription/push_config.rb +268 -0
- data/lib/google/cloud/pubsub/subscription.rb +827 -137
- data/lib/google/cloud/pubsub/topic/list.rb +14 -14
- data/lib/google/cloud/pubsub/topic.rb +565 -93
- data/lib/google/cloud/pubsub/version.rb +4 -2
- data/lib/google/cloud/pubsub.rb +50 -41
- data/lib/google-cloud-pubsub.rb +26 -29
- metadata +59 -53
- data/lib/google/cloud/pubsub/subscriber/async_stream_pusher.rb +0 -222
- data/lib/google/cloud/pubsub/subscriber/async_unary_pusher.rb +0 -270
- data/lib/google/cloud/pubsub/v1/credentials.rb +0 -39
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -63
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -128
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -230
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -109
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -628
- data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -734
- data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
- data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1267
- data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -144
- data/lib/google/cloud/pubsub/v1.rb +0 -17
- data/lib/google/pubsub/v1/pubsub_pb.rb +0 -222
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -192
@@ -1,144 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.pubsub.v1.Subscriber": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"UNAVAILABLE"
|
8
|
-
],
|
9
|
-
"pull": [
|
10
|
-
"DEADLINE_EXCEEDED",
|
11
|
-
"INTERNAL",
|
12
|
-
"RESOURCE_EXHAUSTED",
|
13
|
-
"UNAVAILABLE"
|
14
|
-
],
|
15
|
-
"http_get": [
|
16
|
-
"DEADLINE_EXCEEDED",
|
17
|
-
"UNAVAILABLE"
|
18
|
-
],
|
19
|
-
"non_idempotent": []
|
20
|
-
},
|
21
|
-
"retry_params": {
|
22
|
-
"default": {
|
23
|
-
"initial_retry_delay_millis": 100,
|
24
|
-
"retry_delay_multiplier": 1.3,
|
25
|
-
"max_retry_delay_millis": 60000,
|
26
|
-
"initial_rpc_timeout_millis": 60000,
|
27
|
-
"rpc_timeout_multiplier": 1.0,
|
28
|
-
"max_rpc_timeout_millis": 60000,
|
29
|
-
"total_timeout_millis": 600000
|
30
|
-
},
|
31
|
-
"messaging": {
|
32
|
-
"initial_retry_delay_millis": 100,
|
33
|
-
"retry_delay_multiplier": 1.3,
|
34
|
-
"max_retry_delay_millis": 60000,
|
35
|
-
"initial_rpc_timeout_millis": 12000,
|
36
|
-
"rpc_timeout_multiplier": 1.0,
|
37
|
-
"max_rpc_timeout_millis": 12000,
|
38
|
-
"total_timeout_millis": 600000
|
39
|
-
},
|
40
|
-
"streaming_messaging": {
|
41
|
-
"initial_retry_delay_millis": 100,
|
42
|
-
"retry_delay_multiplier": 1.3,
|
43
|
-
"max_retry_delay_millis": 60000,
|
44
|
-
"initial_rpc_timeout_millis": 600000,
|
45
|
-
"rpc_timeout_multiplier": 1.0,
|
46
|
-
"max_rpc_timeout_millis": 600000,
|
47
|
-
"total_timeout_millis": 600000
|
48
|
-
}
|
49
|
-
},
|
50
|
-
"methods": {
|
51
|
-
"CreateSubscription": {
|
52
|
-
"timeout_millis": 60000,
|
53
|
-
"retry_codes_name": "idempotent",
|
54
|
-
"retry_params_name": "default"
|
55
|
-
},
|
56
|
-
"GetSubscription": {
|
57
|
-
"timeout_millis": 60000,
|
58
|
-
"retry_codes_name": "idempotent",
|
59
|
-
"retry_params_name": "default"
|
60
|
-
},
|
61
|
-
"UpdateSubscription": {
|
62
|
-
"timeout_millis": 60000,
|
63
|
-
"retry_codes_name": "idempotent",
|
64
|
-
"retry_params_name": "default"
|
65
|
-
},
|
66
|
-
"ListSubscriptions": {
|
67
|
-
"timeout_millis": 60000,
|
68
|
-
"retry_codes_name": "idempotent",
|
69
|
-
"retry_params_name": "default"
|
70
|
-
},
|
71
|
-
"DeleteSubscription": {
|
72
|
-
"timeout_millis": 60000,
|
73
|
-
"retry_codes_name": "idempotent",
|
74
|
-
"retry_params_name": "default"
|
75
|
-
},
|
76
|
-
"ModifyAckDeadline": {
|
77
|
-
"timeout_millis": 60000,
|
78
|
-
"retry_codes_name": "non_idempotent",
|
79
|
-
"retry_params_name": "default"
|
80
|
-
},
|
81
|
-
"Acknowledge": {
|
82
|
-
"timeout_millis": 60000,
|
83
|
-
"retry_codes_name": "idempotent",
|
84
|
-
"retry_params_name": "messaging"
|
85
|
-
},
|
86
|
-
"Pull": {
|
87
|
-
"timeout_millis": 60000,
|
88
|
-
"retry_codes_name": "pull",
|
89
|
-
"retry_params_name": "messaging"
|
90
|
-
},
|
91
|
-
"StreamingPull": {
|
92
|
-
"timeout_millis": 900000,
|
93
|
-
"retry_codes_name": "pull",
|
94
|
-
"retry_params_name": "streaming_messaging"
|
95
|
-
},
|
96
|
-
"ModifyPushConfig": {
|
97
|
-
"timeout_millis": 60000,
|
98
|
-
"retry_codes_name": "non_idempotent",
|
99
|
-
"retry_params_name": "default"
|
100
|
-
},
|
101
|
-
"ListSnapshots": {
|
102
|
-
"timeout_millis": 60000,
|
103
|
-
"retry_codes_name": "idempotent",
|
104
|
-
"retry_params_name": "default"
|
105
|
-
},
|
106
|
-
"CreateSnapshot": {
|
107
|
-
"timeout_millis": 60000,
|
108
|
-
"retry_codes_name": "idempotent",
|
109
|
-
"retry_params_name": "default"
|
110
|
-
},
|
111
|
-
"UpdateSnapshot": {
|
112
|
-
"timeout_millis": 60000,
|
113
|
-
"retry_codes_name": "idempotent",
|
114
|
-
"retry_params_name": "default"
|
115
|
-
},
|
116
|
-
"DeleteSnapshot": {
|
117
|
-
"timeout_millis": 60000,
|
118
|
-
"retry_codes_name": "idempotent",
|
119
|
-
"retry_params_name": "default"
|
120
|
-
},
|
121
|
-
"Seek": {
|
122
|
-
"timeout_millis": 60000,
|
123
|
-
"retry_codes_name": "non_idempotent",
|
124
|
-
"retry_params_name": "default"
|
125
|
-
},
|
126
|
-
"SetIamPolicy": {
|
127
|
-
"timeout_millis": 60000,
|
128
|
-
"retry_codes_name": "non_idempotent",
|
129
|
-
"retry_params_name": "default"
|
130
|
-
},
|
131
|
-
"GetIamPolicy": {
|
132
|
-
"timeout_millis": 60000,
|
133
|
-
"retry_codes_name": "idempotent",
|
134
|
-
"retry_params_name": "default"
|
135
|
-
},
|
136
|
-
"TestIamPermissions": {
|
137
|
-
"timeout_millis": 60000,
|
138
|
-
"retry_codes_name": "non_idempotent",
|
139
|
-
"retry_params_name": "default"
|
140
|
-
}
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|
144
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
require "google/cloud/pubsub/v1/publisher_client"
|
17
|
-
require "google/cloud/pubsub/v1/subscriber_client"
|
@@ -1,222 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/pubsub/v1/pubsub.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/protobuf/duration_pb'
|
9
|
-
require 'google/protobuf/empty_pb'
|
10
|
-
require 'google/protobuf/field_mask_pb'
|
11
|
-
require 'google/protobuf/timestamp_pb'
|
12
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
-
add_message "google.pubsub.v1.MessageStoragePolicy" do
|
14
|
-
repeated :allowed_persistence_regions, :string, 1
|
15
|
-
end
|
16
|
-
add_message "google.pubsub.v1.Topic" do
|
17
|
-
optional :name, :string, 1
|
18
|
-
map :labels, :string, :string, 2
|
19
|
-
optional :message_storage_policy, :message, 3, "google.pubsub.v1.MessageStoragePolicy"
|
20
|
-
end
|
21
|
-
add_message "google.pubsub.v1.PubsubMessage" do
|
22
|
-
optional :data, :bytes, 1
|
23
|
-
map :attributes, :string, :string, 2
|
24
|
-
optional :message_id, :string, 3
|
25
|
-
optional :publish_time, :message, 4, "google.protobuf.Timestamp"
|
26
|
-
end
|
27
|
-
add_message "google.pubsub.v1.GetTopicRequest" do
|
28
|
-
optional :topic, :string, 1
|
29
|
-
end
|
30
|
-
add_message "google.pubsub.v1.UpdateTopicRequest" do
|
31
|
-
optional :topic, :message, 1, "google.pubsub.v1.Topic"
|
32
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
33
|
-
end
|
34
|
-
add_message "google.pubsub.v1.PublishRequest" do
|
35
|
-
optional :topic, :string, 1
|
36
|
-
repeated :messages, :message, 2, "google.pubsub.v1.PubsubMessage"
|
37
|
-
end
|
38
|
-
add_message "google.pubsub.v1.PublishResponse" do
|
39
|
-
repeated :message_ids, :string, 1
|
40
|
-
end
|
41
|
-
add_message "google.pubsub.v1.ListTopicsRequest" do
|
42
|
-
optional :project, :string, 1
|
43
|
-
optional :page_size, :int32, 2
|
44
|
-
optional :page_token, :string, 3
|
45
|
-
end
|
46
|
-
add_message "google.pubsub.v1.ListTopicsResponse" do
|
47
|
-
repeated :topics, :message, 1, "google.pubsub.v1.Topic"
|
48
|
-
optional :next_page_token, :string, 2
|
49
|
-
end
|
50
|
-
add_message "google.pubsub.v1.ListTopicSubscriptionsRequest" do
|
51
|
-
optional :topic, :string, 1
|
52
|
-
optional :page_size, :int32, 2
|
53
|
-
optional :page_token, :string, 3
|
54
|
-
end
|
55
|
-
add_message "google.pubsub.v1.ListTopicSubscriptionsResponse" do
|
56
|
-
repeated :subscriptions, :string, 1
|
57
|
-
optional :next_page_token, :string, 2
|
58
|
-
end
|
59
|
-
add_message "google.pubsub.v1.ListTopicSnapshotsRequest" do
|
60
|
-
optional :topic, :string, 1
|
61
|
-
optional :page_size, :int32, 2
|
62
|
-
optional :page_token, :string, 3
|
63
|
-
end
|
64
|
-
add_message "google.pubsub.v1.ListTopicSnapshotsResponse" do
|
65
|
-
repeated :snapshots, :string, 1
|
66
|
-
optional :next_page_token, :string, 2
|
67
|
-
end
|
68
|
-
add_message "google.pubsub.v1.DeleteTopicRequest" do
|
69
|
-
optional :topic, :string, 1
|
70
|
-
end
|
71
|
-
add_message "google.pubsub.v1.Subscription" do
|
72
|
-
optional :name, :string, 1
|
73
|
-
optional :topic, :string, 2
|
74
|
-
optional :push_config, :message, 4, "google.pubsub.v1.PushConfig"
|
75
|
-
optional :ack_deadline_seconds, :int32, 5
|
76
|
-
optional :retain_acked_messages, :bool, 7
|
77
|
-
optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
|
78
|
-
map :labels, :string, :string, 9
|
79
|
-
end
|
80
|
-
add_message "google.pubsub.v1.PushConfig" do
|
81
|
-
optional :push_endpoint, :string, 1
|
82
|
-
map :attributes, :string, :string, 2
|
83
|
-
end
|
84
|
-
add_message "google.pubsub.v1.ReceivedMessage" do
|
85
|
-
optional :ack_id, :string, 1
|
86
|
-
optional :message, :message, 2, "google.pubsub.v1.PubsubMessage"
|
87
|
-
end
|
88
|
-
add_message "google.pubsub.v1.GetSubscriptionRequest" do
|
89
|
-
optional :subscription, :string, 1
|
90
|
-
end
|
91
|
-
add_message "google.pubsub.v1.UpdateSubscriptionRequest" do
|
92
|
-
optional :subscription, :message, 1, "google.pubsub.v1.Subscription"
|
93
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
94
|
-
end
|
95
|
-
add_message "google.pubsub.v1.ListSubscriptionsRequest" do
|
96
|
-
optional :project, :string, 1
|
97
|
-
optional :page_size, :int32, 2
|
98
|
-
optional :page_token, :string, 3
|
99
|
-
end
|
100
|
-
add_message "google.pubsub.v1.ListSubscriptionsResponse" do
|
101
|
-
repeated :subscriptions, :message, 1, "google.pubsub.v1.Subscription"
|
102
|
-
optional :next_page_token, :string, 2
|
103
|
-
end
|
104
|
-
add_message "google.pubsub.v1.DeleteSubscriptionRequest" do
|
105
|
-
optional :subscription, :string, 1
|
106
|
-
end
|
107
|
-
add_message "google.pubsub.v1.ModifyPushConfigRequest" do
|
108
|
-
optional :subscription, :string, 1
|
109
|
-
optional :push_config, :message, 2, "google.pubsub.v1.PushConfig"
|
110
|
-
end
|
111
|
-
add_message "google.pubsub.v1.PullRequest" do
|
112
|
-
optional :subscription, :string, 1
|
113
|
-
optional :return_immediately, :bool, 2
|
114
|
-
optional :max_messages, :int32, 3
|
115
|
-
end
|
116
|
-
add_message "google.pubsub.v1.PullResponse" do
|
117
|
-
repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
|
118
|
-
end
|
119
|
-
add_message "google.pubsub.v1.ModifyAckDeadlineRequest" do
|
120
|
-
optional :subscription, :string, 1
|
121
|
-
repeated :ack_ids, :string, 4
|
122
|
-
optional :ack_deadline_seconds, :int32, 3
|
123
|
-
end
|
124
|
-
add_message "google.pubsub.v1.AcknowledgeRequest" do
|
125
|
-
optional :subscription, :string, 1
|
126
|
-
repeated :ack_ids, :string, 2
|
127
|
-
end
|
128
|
-
add_message "google.pubsub.v1.StreamingPullRequest" do
|
129
|
-
optional :subscription, :string, 1
|
130
|
-
repeated :ack_ids, :string, 2
|
131
|
-
repeated :modify_deadline_seconds, :int32, 3
|
132
|
-
repeated :modify_deadline_ack_ids, :string, 4
|
133
|
-
optional :stream_ack_deadline_seconds, :int32, 5
|
134
|
-
end
|
135
|
-
add_message "google.pubsub.v1.StreamingPullResponse" do
|
136
|
-
repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
|
137
|
-
end
|
138
|
-
add_message "google.pubsub.v1.CreateSnapshotRequest" do
|
139
|
-
optional :name, :string, 1
|
140
|
-
optional :subscription, :string, 2
|
141
|
-
map :labels, :string, :string, 3
|
142
|
-
end
|
143
|
-
add_message "google.pubsub.v1.UpdateSnapshotRequest" do
|
144
|
-
optional :snapshot, :message, 1, "google.pubsub.v1.Snapshot"
|
145
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
146
|
-
end
|
147
|
-
add_message "google.pubsub.v1.Snapshot" do
|
148
|
-
optional :name, :string, 1
|
149
|
-
optional :topic, :string, 2
|
150
|
-
optional :expire_time, :message, 3, "google.protobuf.Timestamp"
|
151
|
-
map :labels, :string, :string, 4
|
152
|
-
end
|
153
|
-
add_message "google.pubsub.v1.GetSnapshotRequest" do
|
154
|
-
optional :snapshot, :string, 1
|
155
|
-
end
|
156
|
-
add_message "google.pubsub.v1.ListSnapshotsRequest" do
|
157
|
-
optional :project, :string, 1
|
158
|
-
optional :page_size, :int32, 2
|
159
|
-
optional :page_token, :string, 3
|
160
|
-
end
|
161
|
-
add_message "google.pubsub.v1.ListSnapshotsResponse" do
|
162
|
-
repeated :snapshots, :message, 1, "google.pubsub.v1.Snapshot"
|
163
|
-
optional :next_page_token, :string, 2
|
164
|
-
end
|
165
|
-
add_message "google.pubsub.v1.DeleteSnapshotRequest" do
|
166
|
-
optional :snapshot, :string, 1
|
167
|
-
end
|
168
|
-
add_message "google.pubsub.v1.SeekRequest" do
|
169
|
-
optional :subscription, :string, 1
|
170
|
-
oneof :target do
|
171
|
-
optional :time, :message, 2, "google.protobuf.Timestamp"
|
172
|
-
optional :snapshot, :string, 3
|
173
|
-
end
|
174
|
-
end
|
175
|
-
add_message "google.pubsub.v1.SeekResponse" do
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
module Google
|
180
|
-
module Pubsub
|
181
|
-
module V1
|
182
|
-
MessageStoragePolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.MessageStoragePolicy").msgclass
|
183
|
-
Topic = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic").msgclass
|
184
|
-
PubsubMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PubsubMessage").msgclass
|
185
|
-
GetTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetTopicRequest").msgclass
|
186
|
-
UpdateTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateTopicRequest").msgclass
|
187
|
-
PublishRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishRequest").msgclass
|
188
|
-
PublishResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishResponse").msgclass
|
189
|
-
ListTopicsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsRequest").msgclass
|
190
|
-
ListTopicsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsResponse").msgclass
|
191
|
-
ListTopicSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsRequest").msgclass
|
192
|
-
ListTopicSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsResponse").msgclass
|
193
|
-
ListTopicSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsRequest").msgclass
|
194
|
-
ListTopicSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsResponse").msgclass
|
195
|
-
DeleteTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteTopicRequest").msgclass
|
196
|
-
Subscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Subscription").msgclass
|
197
|
-
PushConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig").msgclass
|
198
|
-
ReceivedMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ReceivedMessage").msgclass
|
199
|
-
GetSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSubscriptionRequest").msgclass
|
200
|
-
UpdateSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSubscriptionRequest").msgclass
|
201
|
-
ListSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsRequest").msgclass
|
202
|
-
ListSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsResponse").msgclass
|
203
|
-
DeleteSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSubscriptionRequest").msgclass
|
204
|
-
ModifyPushConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyPushConfigRequest").msgclass
|
205
|
-
PullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullRequest").msgclass
|
206
|
-
PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullResponse").msgclass
|
207
|
-
ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyAckDeadlineRequest").msgclass
|
208
|
-
AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
|
209
|
-
StreamingPullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
|
210
|
-
StreamingPullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
|
211
|
-
CreateSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
|
212
|
-
UpdateSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
|
213
|
-
Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Snapshot").msgclass
|
214
|
-
GetSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSnapshotRequest").msgclass
|
215
|
-
ListSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsRequest").msgclass
|
216
|
-
ListSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsResponse").msgclass
|
217
|
-
DeleteSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSnapshotRequest").msgclass
|
218
|
-
SeekRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SeekRequest").msgclass
|
219
|
-
SeekResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SeekResponse").msgclass
|
220
|
-
end
|
221
|
-
end
|
222
|
-
end
|
@@ -1,192 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/pubsub/v1/pubsub.proto for package 'google.pubsub.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2018 Google Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
|
20
|
-
require 'grpc'
|
21
|
-
require 'google/pubsub/v1/pubsub_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Pubsub
|
25
|
-
module V1
|
26
|
-
module Publisher
|
27
|
-
# The service that an application uses to manipulate topics, and to send
|
28
|
-
# messages to a topic.
|
29
|
-
class Service
|
30
|
-
|
31
|
-
include GRPC::GenericService
|
32
|
-
|
33
|
-
self.marshal_class_method = :encode
|
34
|
-
self.unmarshal_class_method = :decode
|
35
|
-
self.service_name = 'google.pubsub.v1.Publisher'
|
36
|
-
|
37
|
-
# Creates the given topic with the given name. See the
|
38
|
-
# <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
|
39
|
-
rpc :CreateTopic, Topic, Topic
|
40
|
-
# Updates an existing topic. Note that certain properties of a
|
41
|
-
# topic are not modifiable.
|
42
|
-
rpc :UpdateTopic, UpdateTopicRequest, Topic
|
43
|
-
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
44
|
-
# does not exist. The message payload must not be empty; it must contain
|
45
|
-
# either a non-empty data field, or at least one attribute.
|
46
|
-
rpc :Publish, PublishRequest, PublishResponse
|
47
|
-
# Gets the configuration of a topic.
|
48
|
-
rpc :GetTopic, GetTopicRequest, Topic
|
49
|
-
# Lists matching topics.
|
50
|
-
rpc :ListTopics, ListTopicsRequest, ListTopicsResponse
|
51
|
-
# Lists the names of the subscriptions on this topic.
|
52
|
-
rpc :ListTopicSubscriptions, ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse
|
53
|
-
# Lists the names of the snapshots on this topic.<br><br>
|
54
|
-
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
55
|
-
# changed in backward-incompatible ways and is not recommended for production
|
56
|
-
# use. It is not subject to any SLA or deprecation policy.
|
57
|
-
rpc :ListTopicSnapshots, ListTopicSnapshotsRequest, ListTopicSnapshotsResponse
|
58
|
-
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
|
59
|
-
# does not exist. After a topic is deleted, a new topic may be created with
|
60
|
-
# the same name; this is an entirely new topic with none of the old
|
61
|
-
# configuration or subscriptions. Existing subscriptions to this topic are
|
62
|
-
# not deleted, but their `topic` field is set to `_deleted-topic_`.
|
63
|
-
rpc :DeleteTopic, DeleteTopicRequest, Google::Protobuf::Empty
|
64
|
-
end
|
65
|
-
|
66
|
-
Stub = Service.rpc_stub_class
|
67
|
-
end
|
68
|
-
module Subscriber
|
69
|
-
# The service that an application uses to manipulate subscriptions and to
|
70
|
-
# consume messages from a subscription via the `Pull` method or by
|
71
|
-
# establishing a bi-directional stream using the `StreamingPull` method.
|
72
|
-
class Service
|
73
|
-
|
74
|
-
include GRPC::GenericService
|
75
|
-
|
76
|
-
self.marshal_class_method = :encode
|
77
|
-
self.unmarshal_class_method = :decode
|
78
|
-
self.service_name = 'google.pubsub.v1.Subscriber'
|
79
|
-
|
80
|
-
# Creates a subscription to a given topic. See the
|
81
|
-
# <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
|
82
|
-
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
83
|
-
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
84
|
-
#
|
85
|
-
# If the name is not provided in the request, the server will assign a random
|
86
|
-
# name for this subscription on the same project as the topic, conforming
|
87
|
-
# to the
|
88
|
-
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
89
|
-
# The generated name is populated in the returned Subscription object.
|
90
|
-
# Note that for REST API requests, you must specify a name in the request.
|
91
|
-
rpc :CreateSubscription, Subscription, Subscription
|
92
|
-
# Gets the configuration details of a subscription.
|
93
|
-
rpc :GetSubscription, GetSubscriptionRequest, Subscription
|
94
|
-
# Updates an existing subscription. Note that certain properties of a
|
95
|
-
# subscription, such as its topic, are not modifiable.
|
96
|
-
rpc :UpdateSubscription, UpdateSubscriptionRequest, Subscription
|
97
|
-
# Lists matching subscriptions.
|
98
|
-
rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
|
99
|
-
# Deletes an existing subscription. All messages retained in the subscription
|
100
|
-
# are immediately dropped. Calls to `Pull` after deletion will return
|
101
|
-
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
102
|
-
# the same name, but the new one has no association with the old
|
103
|
-
# subscription or its topic unless the same topic is specified.
|
104
|
-
rpc :DeleteSubscription, DeleteSubscriptionRequest, Google::Protobuf::Empty
|
105
|
-
# Modifies the ack deadline for a specific message. This method is useful
|
106
|
-
# to indicate that more time is needed to process a message by the
|
107
|
-
# subscriber, or to make the message available for redelivery if the
|
108
|
-
# processing was interrupted. Note that this does not modify the
|
109
|
-
# subscription-level `ackDeadlineSeconds` used for subsequent messages.
|
110
|
-
rpc :ModifyAckDeadline, ModifyAckDeadlineRequest, Google::Protobuf::Empty
|
111
|
-
# Acknowledges the messages associated with the `ack_ids` in the
|
112
|
-
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
113
|
-
# from the subscription.
|
114
|
-
#
|
115
|
-
# Acknowledging a message whose ack deadline has expired may succeed,
|
116
|
-
# but such a message may be redelivered later. Acknowledging a message more
|
117
|
-
# than once will not result in an error.
|
118
|
-
rpc :Acknowledge, AcknowledgeRequest, Google::Protobuf::Empty
|
119
|
-
# Pulls messages from the server. Returns an empty list if there are no
|
120
|
-
# messages available in the backlog. The server may return `UNAVAILABLE` if
|
121
|
-
# there are too many concurrent pull requests pending for the given
|
122
|
-
# subscription.
|
123
|
-
rpc :Pull, PullRequest, PullResponse
|
124
|
-
# Establishes a stream with the server, which sends messages down to the
|
125
|
-
# client. The client streams acknowledgements and ack deadline modifications
|
126
|
-
# back to the server. The server will close the stream and return the status
|
127
|
-
# on any error. The server may close the stream with status `UNAVAILABLE` to
|
128
|
-
# reassign server-side resources, in which case, the client should
|
129
|
-
# re-establish the stream. Flow control can be achieved by configuring the
|
130
|
-
# underlying RPC channel.
|
131
|
-
rpc :StreamingPull, stream(StreamingPullRequest), stream(StreamingPullResponse)
|
132
|
-
# Modifies the `PushConfig` for a specified subscription.
|
133
|
-
#
|
134
|
-
# This may be used to change a push subscription to a pull one (signified by
|
135
|
-
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other
|
136
|
-
# attributes of a push subscription. Messages will accumulate for delivery
|
137
|
-
# continuously through the call regardless of changes to the `PushConfig`.
|
138
|
-
rpc :ModifyPushConfig, ModifyPushConfigRequest, Google::Protobuf::Empty
|
139
|
-
# Gets the configuration details of a snapshot.<br><br>
|
140
|
-
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
141
|
-
# changed in backward-incompatible ways and is not recommended for production
|
142
|
-
# use. It is not subject to any SLA or deprecation policy.
|
143
|
-
rpc :GetSnapshot, GetSnapshotRequest, Snapshot
|
144
|
-
# Lists the existing snapshots.<br><br>
|
145
|
-
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
146
|
-
# changed in backward-incompatible ways and is not recommended for production
|
147
|
-
# use. It is not subject to any SLA or deprecation policy.
|
148
|
-
rpc :ListSnapshots, ListSnapshotsRequest, ListSnapshotsResponse
|
149
|
-
# Creates a snapshot from the requested subscription.<br><br>
|
150
|
-
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
151
|
-
# changed in backward-incompatible ways and is not recommended for production
|
152
|
-
# use. It is not subject to any SLA or deprecation policy.
|
153
|
-
# If the snapshot already exists, returns `ALREADY_EXISTS`.
|
154
|
-
# If the requested subscription doesn't exist, returns `NOT_FOUND`.
|
155
|
-
# If the backlog in the subscription is too old -- and the resulting snapshot
|
156
|
-
# would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
|
157
|
-
# See also the `Snapshot.expire_time` field. If the name is not provided in
|
158
|
-
# the request, the server will assign a random
|
159
|
-
# name for this snapshot on the same project as the subscription, conforming
|
160
|
-
# to the [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
161
|
-
# The generated
|
162
|
-
# name is populated in the returned Snapshot object. Note that for REST API
|
163
|
-
# requests, you must specify a name in the request.
|
164
|
-
rpc :CreateSnapshot, CreateSnapshotRequest, Snapshot
|
165
|
-
# Updates an existing snapshot.<br><br>
|
166
|
-
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
167
|
-
# changed in backward-incompatible ways and is not recommended for production
|
168
|
-
# use. It is not subject to any SLA or deprecation policy.
|
169
|
-
# Note that certain properties of a snapshot are not modifiable.
|
170
|
-
rpc :UpdateSnapshot, UpdateSnapshotRequest, Snapshot
|
171
|
-
# Removes an existing snapshot. <br><br>
|
172
|
-
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
173
|
-
# changed in backward-incompatible ways and is not recommended for production
|
174
|
-
# use. It is not subject to any SLA or deprecation policy.
|
175
|
-
# When the snapshot is deleted, all messages retained in the snapshot
|
176
|
-
# are immediately dropped. After a snapshot is deleted, a new one may be
|
177
|
-
# created with the same name, but the new one has no association with the old
|
178
|
-
# snapshot or its subscription, unless the same subscription is specified.
|
179
|
-
rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
|
180
|
-
# Seeks an existing subscription to a point in time or to a given snapshot,
|
181
|
-
# whichever is provided in the request.<br><br>
|
182
|
-
# <b>ALPHA:</b> This feature is part of an alpha release. This API might be
|
183
|
-
# changed in backward-incompatible ways and is not recommended for production
|
184
|
-
# use. It is not subject to any SLA or deprecation policy.
|
185
|
-
rpc :Seek, SeekRequest, SeekResponse
|
186
|
-
end
|
187
|
-
|
188
|
-
Stub = Service.rpc_stub_class
|
189
|
-
end
|
190
|
-
end
|
191
|
-
end
|
192
|
-
end
|