OLD | NEW |
(Empty) | |
| 1 # Copyright 2015, Google Inc. |
| 2 # All rights reserved. |
| 3 # |
| 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are |
| 6 # met: |
| 7 # |
| 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above |
| 11 # copyright notice, this list of conditions and the following disclaimer |
| 12 # in the documentation and/or other materials provided with the |
| 13 # distribution. |
| 14 # * Neither the name of Google Inc. nor the names of its |
| 15 # contributors may be used to endorse or promote products derived from |
| 16 # this software without specific prior written permission. |
| 17 # |
| 18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 |
| 30 # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 31 # source: tech/pubsub/proto/pubsub.proto |
| 32 |
| 33 require 'google/protobuf' |
| 34 |
| 35 require 'google/protobuf/empty' |
| 36 Google::Protobuf::DescriptorPool.generated_pool.build do |
| 37 add_message "tech.pubsub.Topic" do |
| 38 optional :name, :string, 1 |
| 39 end |
| 40 add_message "tech.pubsub.PubsubMessage" do |
| 41 optional :data, :string, 1 |
| 42 optional :message_id, :string, 3 |
| 43 end |
| 44 add_message "tech.pubsub.GetTopicRequest" do |
| 45 optional :topic, :string, 1 |
| 46 end |
| 47 add_message "tech.pubsub.PublishRequest" do |
| 48 optional :topic, :string, 1 |
| 49 optional :message, :message, 2, "tech.pubsub.PubsubMessage" |
| 50 end |
| 51 add_message "tech.pubsub.PublishBatchRequest" do |
| 52 optional :topic, :string, 1 |
| 53 repeated :messages, :message, 2, "tech.pubsub.PubsubMessage" |
| 54 end |
| 55 add_message "tech.pubsub.PublishBatchResponse" do |
| 56 repeated :message_ids, :string, 1 |
| 57 end |
| 58 add_message "tech.pubsub.ListTopicsRequest" do |
| 59 optional :query, :string, 1 |
| 60 optional :max_results, :int32, 2 |
| 61 optional :page_token, :string, 3 |
| 62 end |
| 63 add_message "tech.pubsub.ListTopicsResponse" do |
| 64 repeated :topic, :message, 1, "tech.pubsub.Topic" |
| 65 optional :next_page_token, :string, 2 |
| 66 end |
| 67 add_message "tech.pubsub.DeleteTopicRequest" do |
| 68 optional :topic, :string, 1 |
| 69 end |
| 70 add_message "tech.pubsub.Subscription" do |
| 71 optional :name, :string, 1 |
| 72 optional :topic, :string, 2 |
| 73 optional :query, :string, 3 |
| 74 optional :truncation_policy, :message, 4, "tech.pubsub.Subscription.Truncati
onPolicy" |
| 75 optional :push_config, :message, 5, "tech.pubsub.PushConfig" |
| 76 optional :ack_deadline_seconds, :int32, 6 |
| 77 optional :garbage_collect_seconds, :int64, 7 |
| 78 end |
| 79 add_message "tech.pubsub.Subscription.TruncationPolicy" do |
| 80 optional :max_bytes, :int64, 1 |
| 81 optional :max_age_seconds, :int64, 2 |
| 82 end |
| 83 add_message "tech.pubsub.PushConfig" do |
| 84 optional :push_endpoint, :string, 1 |
| 85 end |
| 86 add_message "tech.pubsub.PubsubEvent" do |
| 87 optional :subscription, :string, 1 |
| 88 optional :message, :message, 2, "tech.pubsub.PubsubMessage" |
| 89 optional :truncated, :bool, 3 |
| 90 optional :deleted, :bool, 4 |
| 91 end |
| 92 add_message "tech.pubsub.GetSubscriptionRequest" do |
| 93 optional :subscription, :string, 1 |
| 94 end |
| 95 add_message "tech.pubsub.ListSubscriptionsRequest" do |
| 96 optional :query, :string, 1 |
| 97 optional :max_results, :int32, 3 |
| 98 optional :page_token, :string, 4 |
| 99 end |
| 100 add_message "tech.pubsub.ListSubscriptionsResponse" do |
| 101 repeated :subscription, :message, 1, "tech.pubsub.Subscription" |
| 102 optional :next_page_token, :string, 2 |
| 103 end |
| 104 add_message "tech.pubsub.TruncateSubscriptionRequest" do |
| 105 optional :subscription, :string, 1 |
| 106 end |
| 107 add_message "tech.pubsub.DeleteSubscriptionRequest" do |
| 108 optional :subscription, :string, 1 |
| 109 end |
| 110 add_message "tech.pubsub.ModifyPushConfigRequest" do |
| 111 optional :subscription, :string, 1 |
| 112 optional :push_config, :message, 2, "tech.pubsub.PushConfig" |
| 113 end |
| 114 add_message "tech.pubsub.PullRequest" do |
| 115 optional :subscription, :string, 1 |
| 116 optional :return_immediately, :bool, 2 |
| 117 end |
| 118 add_message "tech.pubsub.PullResponse" do |
| 119 optional :ack_id, :string, 1 |
| 120 optional :pubsub_event, :message, 2, "tech.pubsub.PubsubEvent" |
| 121 end |
| 122 add_message "tech.pubsub.PullBatchRequest" do |
| 123 optional :subscription, :string, 1 |
| 124 optional :return_immediately, :bool, 2 |
| 125 optional :max_events, :int32, 3 |
| 126 end |
| 127 add_message "tech.pubsub.PullBatchResponse" do |
| 128 repeated :pull_responses, :message, 2, "tech.pubsub.PullResponse" |
| 129 end |
| 130 add_message "tech.pubsub.ModifyAckDeadlineRequest" do |
| 131 optional :subscription, :string, 1 |
| 132 optional :ack_id, :string, 2 |
| 133 optional :ack_deadline_seconds, :int32, 3 |
| 134 end |
| 135 add_message "tech.pubsub.AcknowledgeRequest" do |
| 136 optional :subscription, :string, 1 |
| 137 repeated :ack_id, :string, 2 |
| 138 end |
| 139 add_message "tech.pubsub.NackRequest" do |
| 140 optional :subscription, :string, 1 |
| 141 repeated :ack_id, :string, 2 |
| 142 end |
| 143 end |
| 144 |
| 145 module Tech |
| 146 module Pubsub |
| 147 Topic = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.
Topic").msgclass |
| 148 PubsubMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech
.pubsub.PubsubMessage").msgclass |
| 149 GetTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("te
ch.pubsub.GetTopicRequest").msgclass |
| 150 PublishRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tec
h.pubsub.PublishRequest").msgclass |
| 151 PublishBatchRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup
("tech.pubsub.PublishBatchRequest").msgclass |
| 152 PublishBatchResponse = Google::Protobuf::DescriptorPool.generated_pool.looku
p("tech.pubsub.PublishBatchResponse").msgclass |
| 153 ListTopicsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("
tech.pubsub.ListTopicsRequest").msgclass |
| 154 ListTopicsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup(
"tech.pubsub.ListTopicsResponse").msgclass |
| 155 DeleteTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup(
"tech.pubsub.DeleteTopicRequest").msgclass |
| 156 Subscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.
pubsub.Subscription").msgclass |
| 157 Subscription::TruncationPolicy = Google::Protobuf::DescriptorPool.generated_
pool.lookup("tech.pubsub.Subscription.TruncationPolicy").msgclass |
| 158 PushConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pu
bsub.PushConfig").msgclass |
| 159 PubsubEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.p
ubsub.PubsubEvent").msgclass |
| 160 GetSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.loo
kup("tech.pubsub.GetSubscriptionRequest").msgclass |
| 161 ListSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.l
ookup("tech.pubsub.ListSubscriptionsRequest").msgclass |
| 162 ListSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.
lookup("tech.pubsub.ListSubscriptionsResponse").msgclass |
| 163 TruncateSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_poo
l.lookup("tech.pubsub.TruncateSubscriptionRequest").msgclass |
| 164 DeleteSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.
lookup("tech.pubsub.DeleteSubscriptionRequest").msgclass |
| 165 ModifyPushConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lo
okup("tech.pubsub.ModifyPushConfigRequest").msgclass |
| 166 PullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.p
ubsub.PullRequest").msgclass |
| 167 PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.
pubsub.PullResponse").msgclass |
| 168 PullBatchRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("t
ech.pubsub.PullBatchRequest").msgclass |
| 169 PullBatchResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("
tech.pubsub.PullBatchResponse").msgclass |
| 170 ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.l
ookup("tech.pubsub.ModifyAckDeadlineRequest").msgclass |
| 171 AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup(
"tech.pubsub.AcknowledgeRequest").msgclass |
| 172 NackRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.p
ubsub.NackRequest").msgclass |
| 173 end |
| 174 end |
OLD | NEW |