google-cloud-pubsub-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-pubsub-v1.rb +21 -0
- data/lib/google/cloud/pubsub/v1.rb +37 -0
- data/lib/google/cloud/pubsub/v1/iam_policy.rb +72 -0
- data/lib/google/cloud/pubsub/v1/iam_policy/client.rb +562 -0
- data/lib/google/cloud/pubsub/v1/iam_policy/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/publisher.rb +50 -0
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +1093 -0
- data/lib/google/cloud/pubsub/v1/publisher/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/publisher/helpers.rb +23 -0
- data/lib/google/cloud/pubsub/v1/publisher/paths.rb +98 -0
- data/lib/google/cloud/pubsub/v1/subscriber.rb +51 -0
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +1861 -0
- data/lib/google/cloud/pubsub/v1/subscriber/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/subscriber/helpers.rb +23 -0
- data/lib/google/cloud/pubsub/v1/subscriber/paths.rb +115 -0
- data/lib/google/cloud/pubsub/v1/version.rb +28 -0
- data/lib/google/iam/v1/iam_policy_services_pb.rb +81 -0
- data/lib/google/pubsub/v1/pubsub_pb.rb +269 -0
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +213 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +80 -0
- data/proto_docs/google/iam/v1/options.rb +40 -0
- data/proto_docs/google/iam/v1/policy.rb +248 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/pubsub/v1/pubsub.rb +1023 -0
- data/proto_docs/google/type/expr.rb +52 -0
- metadata +238 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module PubSub
|
24
|
+
module V1
|
25
|
+
module Subscriber
|
26
|
+
# Credentials for the Subscriber API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
+
"https://www.googleapis.com/auth/pubsub"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"PUBSUB_CREDENTIALS",
|
34
|
+
"PUBSUB_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
37
|
+
"GCLOUD_KEYFILE",
|
38
|
+
"PUBSUB_CREDENTIALS_JSON",
|
39
|
+
"PUBSUB_KEYFILE_JSON",
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
43
|
+
]
|
44
|
+
self.paths = [
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
+
]
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
Google::Cloud::PubSub::V1::Subscriber::Client.configure do |config|
|
19
|
+
config.channel_args ||= {}
|
20
|
+
config.channel_args["grpc.max_send_message_length"] = -1
|
21
|
+
config.channel_args["grpc.max_receive_message_length"] = -1
|
22
|
+
config.channel_args["grpc.keepalive_time_ms"] = 300_000
|
23
|
+
end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module PubSub
|
23
|
+
module V1
|
24
|
+
module Subscriber
|
25
|
+
# Path helper methods for the Subscriber API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Project resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
#
|
36
|
+
# @return [::String]
|
37
|
+
def project_path project:
|
38
|
+
"projects/#{project}"
|
39
|
+
end
|
40
|
+
|
41
|
+
##
|
42
|
+
# Create a fully-qualified Snapshot resource string.
|
43
|
+
#
|
44
|
+
# The resource will be in the following format:
|
45
|
+
#
|
46
|
+
# `projects/{project}/snapshots/{snapshot}`
|
47
|
+
#
|
48
|
+
# @param project [String]
|
49
|
+
# @param snapshot [String]
|
50
|
+
#
|
51
|
+
# @return [::String]
|
52
|
+
def snapshot_path project:, snapshot:
|
53
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
54
|
+
|
55
|
+
"projects/#{project}/snapshots/#{snapshot}"
|
56
|
+
end
|
57
|
+
|
58
|
+
##
|
59
|
+
# Create a fully-qualified Subscription resource string.
|
60
|
+
#
|
61
|
+
# The resource will be in the following format:
|
62
|
+
#
|
63
|
+
# `projects/{project}/subscriptions/{subscription}`
|
64
|
+
#
|
65
|
+
# @param project [String]
|
66
|
+
# @param subscription [String]
|
67
|
+
#
|
68
|
+
# @return [::String]
|
69
|
+
def subscription_path project:, subscription:
|
70
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
71
|
+
|
72
|
+
"projects/#{project}/subscriptions/#{subscription}"
|
73
|
+
end
|
74
|
+
|
75
|
+
##
|
76
|
+
# Create a fully-qualified Topic resource string.
|
77
|
+
#
|
78
|
+
# @overload topic_path(project:, topic:)
|
79
|
+
# The resource will be in the following format:
|
80
|
+
#
|
81
|
+
# `projects/{project}/topics/{topic}`
|
82
|
+
#
|
83
|
+
# @param project [String]
|
84
|
+
# @param topic [String]
|
85
|
+
#
|
86
|
+
# @overload topic_path()
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `_deleted-topic_`
|
90
|
+
#
|
91
|
+
# @return [::String]
|
92
|
+
def topic_path **args
|
93
|
+
resources = {
|
94
|
+
"project:topic" => (proc do |project:, topic:|
|
95
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
96
|
+
|
97
|
+
"projects/#{project}/topics/#{topic}"
|
98
|
+
end),
|
99
|
+
"" => (proc do
|
100
|
+
"_deleted-topic_"
|
101
|
+
end)
|
102
|
+
}
|
103
|
+
|
104
|
+
resource = resources[args.keys.sort.join(":")]
|
105
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
106
|
+
resource.call(**args)
|
107
|
+
end
|
108
|
+
|
109
|
+
extend self
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module PubSub
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/iam/v1/iam_policy.proto for package 'google.iam.v1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2019 Google LLC.
|
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/iam/v1/iam_policy_pb'
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Iam
|
25
|
+
module V1
|
26
|
+
module IAMPolicy
|
27
|
+
# ## API Overview
|
28
|
+
#
|
29
|
+
# Manages Identity and Access Management (IAM) policies.
|
30
|
+
#
|
31
|
+
# Any implementation of an API that offers access control features
|
32
|
+
# implements the google.iam.v1.IAMPolicy interface.
|
33
|
+
#
|
34
|
+
# ## Data model
|
35
|
+
#
|
36
|
+
# Access control is applied when a principal (user or service account), takes
|
37
|
+
# some action on a resource exposed by a service. Resources, identified by
|
38
|
+
# URI-like names, are the unit of access control specification. Service
|
39
|
+
# implementations can choose the granularity of access control and the
|
40
|
+
# supported permissions for their resources.
|
41
|
+
# For example one database service may allow access control to be
|
42
|
+
# specified only at the Table level, whereas another might allow access control
|
43
|
+
# to also be specified at the Column level.
|
44
|
+
#
|
45
|
+
# ## Policy Structure
|
46
|
+
#
|
47
|
+
# See google.iam.v1.Policy
|
48
|
+
#
|
49
|
+
# This is intentionally not a CRUD style API because access control policies
|
50
|
+
# are created and deleted implicitly with the resources to which they are
|
51
|
+
# attached.
|
52
|
+
class Service
|
53
|
+
|
54
|
+
include GRPC::GenericService
|
55
|
+
|
56
|
+
self.marshal_class_method = :encode
|
57
|
+
self.unmarshal_class_method = :decode
|
58
|
+
self.service_name = 'google.iam.v1.IAMPolicy'
|
59
|
+
|
60
|
+
# Sets the access control policy on the specified resource. Replaces any
|
61
|
+
# existing policy.
|
62
|
+
rpc :SetIamPolicy, SetIamPolicyRequest, Policy
|
63
|
+
# Gets the access control policy for a resource.
|
64
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
65
|
+
# set.
|
66
|
+
rpc :GetIamPolicy, GetIamPolicyRequest, Policy
|
67
|
+
# Returns permissions that a caller has on the specified resource.
|
68
|
+
# If the resource does not exist, this will return an empty set of
|
69
|
+
# permissions, not a NOT_FOUND error.
|
70
|
+
#
|
71
|
+
# Note: This operation is designed to be used for building permission-aware
|
72
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
73
|
+
# may "fail open" without warning.
|
74
|
+
rpc :TestIamPermissions, TestIamPermissionsRequest, TestIamPermissionsResponse
|
75
|
+
end
|
76
|
+
|
77
|
+
Stub = Service.rpc_stub_class
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,269 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/pubsub/v1/pubsub.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/protobuf/duration_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/protobuf/timestamp_pb'
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/pubsub/v1/pubsub.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.pubsub.v1.MessageStoragePolicy" do
|
17
|
+
repeated :allowed_persistence_regions, :string, 1
|
18
|
+
end
|
19
|
+
add_message "google.pubsub.v1.Topic" do
|
20
|
+
optional :name, :string, 1
|
21
|
+
map :labels, :string, :string, 2
|
22
|
+
optional :message_storage_policy, :message, 3, "google.pubsub.v1.MessageStoragePolicy"
|
23
|
+
optional :kms_key_name, :string, 5
|
24
|
+
end
|
25
|
+
add_message "google.pubsub.v1.PubsubMessage" do
|
26
|
+
optional :data, :bytes, 1
|
27
|
+
map :attributes, :string, :string, 2
|
28
|
+
optional :message_id, :string, 3
|
29
|
+
optional :publish_time, :message, 4, "google.protobuf.Timestamp"
|
30
|
+
optional :ordering_key, :string, 5
|
31
|
+
end
|
32
|
+
add_message "google.pubsub.v1.GetTopicRequest" do
|
33
|
+
optional :topic, :string, 1
|
34
|
+
end
|
35
|
+
add_message "google.pubsub.v1.UpdateTopicRequest" do
|
36
|
+
optional :topic, :message, 1, "google.pubsub.v1.Topic"
|
37
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
38
|
+
end
|
39
|
+
add_message "google.pubsub.v1.PublishRequest" do
|
40
|
+
optional :topic, :string, 1
|
41
|
+
repeated :messages, :message, 2, "google.pubsub.v1.PubsubMessage"
|
42
|
+
end
|
43
|
+
add_message "google.pubsub.v1.PublishResponse" do
|
44
|
+
repeated :message_ids, :string, 1
|
45
|
+
end
|
46
|
+
add_message "google.pubsub.v1.ListTopicsRequest" do
|
47
|
+
optional :project, :string, 1
|
48
|
+
optional :page_size, :int32, 2
|
49
|
+
optional :page_token, :string, 3
|
50
|
+
end
|
51
|
+
add_message "google.pubsub.v1.ListTopicsResponse" do
|
52
|
+
repeated :topics, :message, 1, "google.pubsub.v1.Topic"
|
53
|
+
optional :next_page_token, :string, 2
|
54
|
+
end
|
55
|
+
add_message "google.pubsub.v1.ListTopicSubscriptionsRequest" do
|
56
|
+
optional :topic, :string, 1
|
57
|
+
optional :page_size, :int32, 2
|
58
|
+
optional :page_token, :string, 3
|
59
|
+
end
|
60
|
+
add_message "google.pubsub.v1.ListTopicSubscriptionsResponse" do
|
61
|
+
repeated :subscriptions, :string, 1
|
62
|
+
optional :next_page_token, :string, 2
|
63
|
+
end
|
64
|
+
add_message "google.pubsub.v1.ListTopicSnapshotsRequest" do
|
65
|
+
optional :topic, :string, 1
|
66
|
+
optional :page_size, :int32, 2
|
67
|
+
optional :page_token, :string, 3
|
68
|
+
end
|
69
|
+
add_message "google.pubsub.v1.ListTopicSnapshotsResponse" do
|
70
|
+
repeated :snapshots, :string, 1
|
71
|
+
optional :next_page_token, :string, 2
|
72
|
+
end
|
73
|
+
add_message "google.pubsub.v1.DeleteTopicRequest" do
|
74
|
+
optional :topic, :string, 1
|
75
|
+
end
|
76
|
+
add_message "google.pubsub.v1.DetachSubscriptionRequest" do
|
77
|
+
optional :subscription, :string, 1
|
78
|
+
end
|
79
|
+
add_message "google.pubsub.v1.DetachSubscriptionResponse" do
|
80
|
+
end
|
81
|
+
add_message "google.pubsub.v1.Subscription" do
|
82
|
+
optional :name, :string, 1
|
83
|
+
optional :topic, :string, 2
|
84
|
+
optional :push_config, :message, 4, "google.pubsub.v1.PushConfig"
|
85
|
+
optional :ack_deadline_seconds, :int32, 5
|
86
|
+
optional :retain_acked_messages, :bool, 7
|
87
|
+
optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
|
88
|
+
map :labels, :string, :string, 9
|
89
|
+
optional :enable_message_ordering, :bool, 10
|
90
|
+
optional :expiration_policy, :message, 11, "google.pubsub.v1.ExpirationPolicy"
|
91
|
+
optional :filter, :string, 12
|
92
|
+
optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
|
93
|
+
optional :retry_policy, :message, 14, "google.pubsub.v1.RetryPolicy"
|
94
|
+
optional :detached, :bool, 15
|
95
|
+
end
|
96
|
+
add_message "google.pubsub.v1.RetryPolicy" do
|
97
|
+
optional :minimum_backoff, :message, 1, "google.protobuf.Duration"
|
98
|
+
optional :maximum_backoff, :message, 2, "google.protobuf.Duration"
|
99
|
+
end
|
100
|
+
add_message "google.pubsub.v1.DeadLetterPolicy" do
|
101
|
+
optional :dead_letter_topic, :string, 1
|
102
|
+
optional :max_delivery_attempts, :int32, 2
|
103
|
+
end
|
104
|
+
add_message "google.pubsub.v1.ExpirationPolicy" do
|
105
|
+
optional :ttl, :message, 1, "google.protobuf.Duration"
|
106
|
+
end
|
107
|
+
add_message "google.pubsub.v1.PushConfig" do
|
108
|
+
optional :push_endpoint, :string, 1
|
109
|
+
map :attributes, :string, :string, 2
|
110
|
+
oneof :authentication_method do
|
111
|
+
optional :oidc_token, :message, 3, "google.pubsub.v1.PushConfig.OidcToken"
|
112
|
+
end
|
113
|
+
end
|
114
|
+
add_message "google.pubsub.v1.PushConfig.OidcToken" do
|
115
|
+
optional :service_account_email, :string, 1
|
116
|
+
optional :audience, :string, 2
|
117
|
+
end
|
118
|
+
add_message "google.pubsub.v1.ReceivedMessage" do
|
119
|
+
optional :ack_id, :string, 1
|
120
|
+
optional :message, :message, 2, "google.pubsub.v1.PubsubMessage"
|
121
|
+
optional :delivery_attempt, :int32, 3
|
122
|
+
end
|
123
|
+
add_message "google.pubsub.v1.GetSubscriptionRequest" do
|
124
|
+
optional :subscription, :string, 1
|
125
|
+
end
|
126
|
+
add_message "google.pubsub.v1.UpdateSubscriptionRequest" do
|
127
|
+
optional :subscription, :message, 1, "google.pubsub.v1.Subscription"
|
128
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
129
|
+
end
|
130
|
+
add_message "google.pubsub.v1.ListSubscriptionsRequest" do
|
131
|
+
optional :project, :string, 1
|
132
|
+
optional :page_size, :int32, 2
|
133
|
+
optional :page_token, :string, 3
|
134
|
+
end
|
135
|
+
add_message "google.pubsub.v1.ListSubscriptionsResponse" do
|
136
|
+
repeated :subscriptions, :message, 1, "google.pubsub.v1.Subscription"
|
137
|
+
optional :next_page_token, :string, 2
|
138
|
+
end
|
139
|
+
add_message "google.pubsub.v1.DeleteSubscriptionRequest" do
|
140
|
+
optional :subscription, :string, 1
|
141
|
+
end
|
142
|
+
add_message "google.pubsub.v1.ModifyPushConfigRequest" do
|
143
|
+
optional :subscription, :string, 1
|
144
|
+
optional :push_config, :message, 2, "google.pubsub.v1.PushConfig"
|
145
|
+
end
|
146
|
+
add_message "google.pubsub.v1.PullRequest" do
|
147
|
+
optional :subscription, :string, 1
|
148
|
+
optional :return_immediately, :bool, 2
|
149
|
+
optional :max_messages, :int32, 3
|
150
|
+
end
|
151
|
+
add_message "google.pubsub.v1.PullResponse" do
|
152
|
+
repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
|
153
|
+
end
|
154
|
+
add_message "google.pubsub.v1.ModifyAckDeadlineRequest" do
|
155
|
+
optional :subscription, :string, 1
|
156
|
+
repeated :ack_ids, :string, 4
|
157
|
+
optional :ack_deadline_seconds, :int32, 3
|
158
|
+
end
|
159
|
+
add_message "google.pubsub.v1.AcknowledgeRequest" do
|
160
|
+
optional :subscription, :string, 1
|
161
|
+
repeated :ack_ids, :string, 2
|
162
|
+
end
|
163
|
+
add_message "google.pubsub.v1.StreamingPullRequest" do
|
164
|
+
optional :subscription, :string, 1
|
165
|
+
repeated :ack_ids, :string, 2
|
166
|
+
repeated :modify_deadline_seconds, :int32, 3
|
167
|
+
repeated :modify_deadline_ack_ids, :string, 4
|
168
|
+
optional :stream_ack_deadline_seconds, :int32, 5
|
169
|
+
optional :client_id, :string, 6
|
170
|
+
optional :max_outstanding_messages, :int64, 7
|
171
|
+
optional :max_outstanding_bytes, :int64, 8
|
172
|
+
end
|
173
|
+
add_message "google.pubsub.v1.StreamingPullResponse" do
|
174
|
+
repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
|
175
|
+
end
|
176
|
+
add_message "google.pubsub.v1.CreateSnapshotRequest" do
|
177
|
+
optional :name, :string, 1
|
178
|
+
optional :subscription, :string, 2
|
179
|
+
map :labels, :string, :string, 3
|
180
|
+
end
|
181
|
+
add_message "google.pubsub.v1.UpdateSnapshotRequest" do
|
182
|
+
optional :snapshot, :message, 1, "google.pubsub.v1.Snapshot"
|
183
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
184
|
+
end
|
185
|
+
add_message "google.pubsub.v1.Snapshot" do
|
186
|
+
optional :name, :string, 1
|
187
|
+
optional :topic, :string, 2
|
188
|
+
optional :expire_time, :message, 3, "google.protobuf.Timestamp"
|
189
|
+
map :labels, :string, :string, 4
|
190
|
+
end
|
191
|
+
add_message "google.pubsub.v1.GetSnapshotRequest" do
|
192
|
+
optional :snapshot, :string, 1
|
193
|
+
end
|
194
|
+
add_message "google.pubsub.v1.ListSnapshotsRequest" do
|
195
|
+
optional :project, :string, 1
|
196
|
+
optional :page_size, :int32, 2
|
197
|
+
optional :page_token, :string, 3
|
198
|
+
end
|
199
|
+
add_message "google.pubsub.v1.ListSnapshotsResponse" do
|
200
|
+
repeated :snapshots, :message, 1, "google.pubsub.v1.Snapshot"
|
201
|
+
optional :next_page_token, :string, 2
|
202
|
+
end
|
203
|
+
add_message "google.pubsub.v1.DeleteSnapshotRequest" do
|
204
|
+
optional :snapshot, :string, 1
|
205
|
+
end
|
206
|
+
add_message "google.pubsub.v1.SeekRequest" do
|
207
|
+
optional :subscription, :string, 1
|
208
|
+
oneof :target do
|
209
|
+
optional :time, :message, 2, "google.protobuf.Timestamp"
|
210
|
+
optional :snapshot, :string, 3
|
211
|
+
end
|
212
|
+
end
|
213
|
+
add_message "google.pubsub.v1.SeekResponse" do
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
module Google
|
219
|
+
module Cloud
|
220
|
+
module PubSub
|
221
|
+
module V1
|
222
|
+
MessageStoragePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.MessageStoragePolicy").msgclass
|
223
|
+
Topic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic").msgclass
|
224
|
+
PubsubMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PubsubMessage").msgclass
|
225
|
+
GetTopicRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetTopicRequest").msgclass
|
226
|
+
UpdateTopicRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateTopicRequest").msgclass
|
227
|
+
PublishRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishRequest").msgclass
|
228
|
+
PublishResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishResponse").msgclass
|
229
|
+
ListTopicsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsRequest").msgclass
|
230
|
+
ListTopicsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsResponse").msgclass
|
231
|
+
ListTopicSubscriptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsRequest").msgclass
|
232
|
+
ListTopicSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsResponse").msgclass
|
233
|
+
ListTopicSnapshotsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsRequest").msgclass
|
234
|
+
ListTopicSnapshotsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsResponse").msgclass
|
235
|
+
DeleteTopicRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteTopicRequest").msgclass
|
236
|
+
DetachSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DetachSubscriptionRequest").msgclass
|
237
|
+
DetachSubscriptionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DetachSubscriptionResponse").msgclass
|
238
|
+
Subscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Subscription").msgclass
|
239
|
+
RetryPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.RetryPolicy").msgclass
|
240
|
+
DeadLetterPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeadLetterPolicy").msgclass
|
241
|
+
ExpirationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ExpirationPolicy").msgclass
|
242
|
+
PushConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig").msgclass
|
243
|
+
PushConfig::OidcToken = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig.OidcToken").msgclass
|
244
|
+
ReceivedMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ReceivedMessage").msgclass
|
245
|
+
GetSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSubscriptionRequest").msgclass
|
246
|
+
UpdateSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSubscriptionRequest").msgclass
|
247
|
+
ListSubscriptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsRequest").msgclass
|
248
|
+
ListSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsResponse").msgclass
|
249
|
+
DeleteSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSubscriptionRequest").msgclass
|
250
|
+
ModifyPushConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyPushConfigRequest").msgclass
|
251
|
+
PullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullRequest").msgclass
|
252
|
+
PullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullResponse").msgclass
|
253
|
+
ModifyAckDeadlineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyAckDeadlineRequest").msgclass
|
254
|
+
AcknowledgeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
|
255
|
+
StreamingPullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
|
256
|
+
StreamingPullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
|
257
|
+
CreateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
|
258
|
+
UpdateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
|
259
|
+
Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Snapshot").msgclass
|
260
|
+
GetSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSnapshotRequest").msgclass
|
261
|
+
ListSnapshotsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsRequest").msgclass
|
262
|
+
ListSnapshotsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsResponse").msgclass
|
263
|
+
DeleteSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSnapshotRequest").msgclass
|
264
|
+
SeekRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SeekRequest").msgclass
|
265
|
+
SeekResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SeekResponse").msgclass
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|