pubsub_services.rb 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 for package 'tech.pubsub'
  16. require 'grpc'
  17. require 'google/protobuf/empty'
  18. require 'tech/pubsub/proto/pubsub'
  19. module Tech
  20. module Pubsub
  21. module PublisherService
  22. # TODO: add proto service documentation here
  23. class Service
  24. include GRPC::GenericService
  25. self.marshal_class_method = :encode
  26. self.unmarshal_class_method = :decode
  27. self.service_name = 'tech.pubsub.PublisherService'
  28. rpc :CreateTopic, Topic, Topic
  29. rpc :Publish, PublishRequest, Google::Protobuf::Empty
  30. rpc :PublishBatch, PublishBatchRequest, PublishBatchResponse
  31. rpc :GetTopic, GetTopicRequest, Topic
  32. rpc :ListTopics, ListTopicsRequest, ListTopicsResponse
  33. rpc :DeleteTopic, DeleteTopicRequest, Google::Protobuf::Empty
  34. end
  35. Stub = Service.rpc_stub_class
  36. end
  37. module SubscriberService
  38. # TODO: add proto service documentation here
  39. class Service
  40. include GRPC::GenericService
  41. self.marshal_class_method = :encode
  42. self.unmarshal_class_method = :decode
  43. self.service_name = 'tech.pubsub.SubscriberService'
  44. rpc :CreateSubscription, Subscription, Subscription
  45. rpc :GetSubscription, GetSubscriptionRequest, Subscription
  46. rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
  47. rpc :DeleteSubscription, DeleteSubscriptionRequest, Google::Protobuf::Empty
  48. rpc :TruncateSubscription, TruncateSubscriptionRequest, Google::Protobuf::Empty
  49. rpc :ModifyPushConfig, ModifyPushConfigRequest, Google::Protobuf::Empty
  50. rpc :Pull, PullRequest, PullResponse
  51. rpc :PullBatch, PullBatchRequest, PullBatchResponse
  52. rpc :ModifyAckDeadline, ModifyAckDeadlineRequest, Google::Protobuf::Empty
  53. rpc :Acknowledge, AcknowledgeRequest, Google::Protobuf::Empty
  54. rpc :Nack, NackRequest, Google::Protobuf::Empty
  55. end
  56. Stub = Service.rpc_stub_class
  57. end
  58. module PushEndpointService
  59. # TODO: add proto service documentation here
  60. class Service
  61. include GRPC::GenericService
  62. self.marshal_class_method = :encode
  63. self.unmarshal_class_method = :decode
  64. self.service_name = 'tech.pubsub.PushEndpointService'
  65. rpc :HandlePubsubEvent, PubsubEvent, Google::Protobuf::Empty
  66. end
  67. Stub = Service.rpc_stub_class
  68. end
  69. end
  70. end