pubsub.rb 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # Copyright 2015 gRPC authors.
  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. # http://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. # Generated by the protocol buffer compiler. DO NOT EDIT!
  15. # source: tech/pubsub/proto/pubsub.proto
  16. require 'google/protobuf'
  17. require 'google/protobuf/empty'
  18. Google::Protobuf::DescriptorPool.generated_pool.build do
  19. add_message "tech.pubsub.Topic" do
  20. optional :name, :string, 1
  21. end
  22. add_message "tech.pubsub.PubsubMessage" do
  23. optional :data, :string, 1
  24. optional :message_id, :string, 3
  25. end
  26. add_message "tech.pubsub.GetTopicRequest" do
  27. optional :topic, :string, 1
  28. end
  29. add_message "tech.pubsub.PublishRequest" do
  30. optional :topic, :string, 1
  31. optional :message, :message, 2, "tech.pubsub.PubsubMessage"
  32. end
  33. add_message "tech.pubsub.PublishBatchRequest" do
  34. optional :topic, :string, 1
  35. repeated :messages, :message, 2, "tech.pubsub.PubsubMessage"
  36. end
  37. add_message "tech.pubsub.PublishBatchResponse" do
  38. repeated :message_ids, :string, 1
  39. end
  40. add_message "tech.pubsub.ListTopicsRequest" do
  41. optional :query, :string, 1
  42. optional :max_results, :int32, 2
  43. optional :page_token, :string, 3
  44. end
  45. add_message "tech.pubsub.ListTopicsResponse" do
  46. repeated :topic, :message, 1, "tech.pubsub.Topic"
  47. optional :next_page_token, :string, 2
  48. end
  49. add_message "tech.pubsub.DeleteTopicRequest" do
  50. optional :topic, :string, 1
  51. end
  52. add_message "tech.pubsub.Subscription" do
  53. optional :name, :string, 1
  54. optional :topic, :string, 2
  55. optional :query, :string, 3
  56. optional :truncation_policy, :message, 4, "tech.pubsub.Subscription.TruncationPolicy"
  57. optional :push_config, :message, 5, "tech.pubsub.PushConfig"
  58. optional :ack_deadline_seconds, :int32, 6
  59. optional :garbage_collect_seconds, :int64, 7
  60. end
  61. add_message "tech.pubsub.Subscription.TruncationPolicy" do
  62. optional :max_bytes, :int64, 1
  63. optional :max_age_seconds, :int64, 2
  64. end
  65. add_message "tech.pubsub.PushConfig" do
  66. optional :push_endpoint, :string, 1
  67. end
  68. add_message "tech.pubsub.PubsubEvent" do
  69. optional :subscription, :string, 1
  70. optional :message, :message, 2, "tech.pubsub.PubsubMessage"
  71. optional :truncated, :bool, 3
  72. optional :deleted, :bool, 4
  73. end
  74. add_message "tech.pubsub.GetSubscriptionRequest" do
  75. optional :subscription, :string, 1
  76. end
  77. add_message "tech.pubsub.ListSubscriptionsRequest" do
  78. optional :query, :string, 1
  79. optional :max_results, :int32, 3
  80. optional :page_token, :string, 4
  81. end
  82. add_message "tech.pubsub.ListSubscriptionsResponse" do
  83. repeated :subscription, :message, 1, "tech.pubsub.Subscription"
  84. optional :next_page_token, :string, 2
  85. end
  86. add_message "tech.pubsub.TruncateSubscriptionRequest" do
  87. optional :subscription, :string, 1
  88. end
  89. add_message "tech.pubsub.DeleteSubscriptionRequest" do
  90. optional :subscription, :string, 1
  91. end
  92. add_message "tech.pubsub.ModifyPushConfigRequest" do
  93. optional :subscription, :string, 1
  94. optional :push_config, :message, 2, "tech.pubsub.PushConfig"
  95. end
  96. add_message "tech.pubsub.PullRequest" do
  97. optional :subscription, :string, 1
  98. optional :return_immediately, :bool, 2
  99. end
  100. add_message "tech.pubsub.PullResponse" do
  101. optional :ack_id, :string, 1
  102. optional :pubsub_event, :message, 2, "tech.pubsub.PubsubEvent"
  103. end
  104. add_message "tech.pubsub.PullBatchRequest" do
  105. optional :subscription, :string, 1
  106. optional :return_immediately, :bool, 2
  107. optional :max_events, :int32, 3
  108. end
  109. add_message "tech.pubsub.PullBatchResponse" do
  110. repeated :pull_responses, :message, 2, "tech.pubsub.PullResponse"
  111. end
  112. add_message "tech.pubsub.ModifyAckDeadlineRequest" do
  113. optional :subscription, :string, 1
  114. optional :ack_id, :string, 2
  115. optional :ack_deadline_seconds, :int32, 3
  116. end
  117. add_message "tech.pubsub.AcknowledgeRequest" do
  118. optional :subscription, :string, 1
  119. repeated :ack_id, :string, 2
  120. end
  121. add_message "tech.pubsub.NackRequest" do
  122. optional :subscription, :string, 1
  123. repeated :ack_id, :string, 2
  124. end
  125. end
  126. module Tech
  127. module Pubsub
  128. Topic = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.Topic").msgclass
  129. PubsubMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PubsubMessage").msgclass
  130. GetTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.GetTopicRequest").msgclass
  131. PublishRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PublishRequest").msgclass
  132. PublishBatchRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PublishBatchRequest").msgclass
  133. PublishBatchResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PublishBatchResponse").msgclass
  134. ListTopicsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.ListTopicsRequest").msgclass
  135. ListTopicsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.ListTopicsResponse").msgclass
  136. DeleteTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.DeleteTopicRequest").msgclass
  137. Subscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.Subscription").msgclass
  138. Subscription::TruncationPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.Subscription.TruncationPolicy").msgclass
  139. PushConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PushConfig").msgclass
  140. PubsubEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PubsubEvent").msgclass
  141. GetSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.GetSubscriptionRequest").msgclass
  142. ListSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.ListSubscriptionsRequest").msgclass
  143. ListSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.ListSubscriptionsResponse").msgclass
  144. TruncateSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.TruncateSubscriptionRequest").msgclass
  145. DeleteSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.DeleteSubscriptionRequest").msgclass
  146. ModifyPushConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.ModifyPushConfigRequest").msgclass
  147. PullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PullRequest").msgclass
  148. PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PullResponse").msgclass
  149. PullBatchRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PullBatchRequest").msgclass
  150. PullBatchResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.PullBatchResponse").msgclass
  151. ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.ModifyAckDeadlineRequest").msgclass
  152. AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.AcknowledgeRequest").msgclass
  153. NackRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("tech.pubsub.NackRequest").msgclass
  154. end
  155. end