courier_spec 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af915ce00dad022d3e23c6238730d7c669118268b395a2f84bcfc42064a585d9
4
- data.tar.gz: 911e123c5fbb12c145298280aaa459cf0dc118a748d6dc8937fa85e7321dd96d
3
+ metadata.gz: e0a7462582da5fd7e16164f004ea5b32cc15202c970f9bfb4563e51c48bc5012
4
+ data.tar.gz: a6ac31b4d35ebe3d8f06530d2cb0690b184cab1188f3fb754c7e186bc5b6d34e
5
5
  SHA512:
6
- metadata.gz: 264e45e5ac53a8c0f6c18536a9ae8c881ec12757b2cbc18d277d56d8a30fc407734cdce05f3e1b83ee7c7dac4a142741f7325275d13afef47114d23fb866dcd2
7
- data.tar.gz: 64dd13aaf160b127f8c601f8028a63eaeb5c95908a26545e9b6a9ae4a45e49e0e8ab8b7fe8d339cac65f183af9df1c3fd21af64e11e76d2abeec5ed75cd7e5e2
6
+ metadata.gz: 59ca0e5be733df0df23ab836e621073be11848bc10521bf875885e920a9b94ccf395dc696dda443754e9115da0bd92a23473b37ffe83210eeb6c0209f9c17411
7
+ data.tar.gz: c97deaa79937754ada8b1807b975b0c7381b6cd282679e1e111e45dfb7ccbe165218a187095d06b1ea5e9f833f97e7f4a4af6285622fd0657d813b0da89fb9e7
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'courier_spec'
7
- spec.version = '0.0.2'
7
+ spec.version = '0.0.3'
8
8
  spec.date = '2019-09-12'
9
9
  spec.summary = "Courier Spec for proto files!"
10
10
  spec.description = "The gem is the generated files for proto file"
@@ -0,0 +1,23 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: balance.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("balance.proto", :syntax => :proto3) do
8
+ add_message "balance.BalanceRequest" do
9
+ optional :msisdn, :int64, 1
10
+ optional :amount, :int64, 2
11
+ optional :currency, :string, 3
12
+ end
13
+ add_message "balance.BalanceReply" do
14
+ optional :value, :float, 1
15
+ optional :currency, :string, 2
16
+ end
17
+ end
18
+ end
19
+
20
+ module Balance
21
+ BalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceRequest").msgclass
22
+ BalanceReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceReply").msgclass
23
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: balance.proto for package 'balance'
3
+
4
+ require 'grpc'
5
+ require 'balance_pb'
6
+
7
+ module Balance
8
+ module Balance
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'balance.Balance'
16
+
17
+ rpc :GetBalance, BalanceRequest, BalanceReply
18
+ rpc :SetBalance, BalanceRequest, BalanceReply
19
+ rpc :AddBalance, BalanceRequest, BalanceReply
20
+ rpc :DeductBalance, BalanceRequest, BalanceReply
21
+ end
22
+
23
+ Stub = Service.rpc_stub_class
24
+ end
25
+ end
@@ -5,16 +5,19 @@ require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
7
  add_file("todo.proto", :syntax => :proto3) do
8
- add_message "todo.HelloRequest" do
9
- optional :name, :string, 1
8
+ add_message "balance.BalanceRequest" do
9
+ optional :msisdn, :int64, 1
10
+ optional :amount, :int64, 2
11
+ optional :currency, :string, 3
10
12
  end
11
- add_message "todo.HelloReply" do
12
- optional :message, :string, 1
13
+ add_message "balance.BalanceReply" do
14
+ optional :value, :float, 1
15
+ optional :currency, :string, 2
13
16
  end
14
17
  end
15
18
  end
16
19
 
17
- module Todo
18
- HelloRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("todo.HelloRequest").msgclass
19
- HelloReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("todo.HelloReply").msgclass
20
+ module Balance
21
+ BalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceRequest").msgclass
22
+ BalanceReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceReply").msgclass
20
23
  end
@@ -1,37 +1,23 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: todo.proto for package 'todo'
3
- # Original file comments:
4
- # Copyright 2015 gRPC authors.
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
- #
2
+ # Source: todo.proto for package 'balance'
18
3
 
19
4
  require 'grpc'
20
5
  require 'todo_pb'
21
6
 
22
- module Todo
23
- module Greeter
24
- # The greeting service definition.
7
+ module Balance
8
+ module Balance
25
9
  class Service
26
10
 
27
11
  include GRPC::GenericService
28
12
 
29
13
  self.marshal_class_method = :encode
30
14
  self.unmarshal_class_method = :decode
31
- self.service_name = 'todo.Greeter'
15
+ self.service_name = 'balance.Balance'
32
16
 
33
- # Sends a greeting
34
- rpc :SayHello, HelloRequest, HelloReply
17
+ rpc :GetBalance, BalanceRequest, BalanceReply
18
+ rpc :SetBalance, BalanceRequest, BalanceReply
19
+ rpc :AddBalance, BalanceRequest, BalanceReply
20
+ rpc :DeductBalance, BalanceRequest, BalanceReply
35
21
  end
36
22
 
37
23
  Stub = Service.rpc_stub_class
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: courier_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruiyang Zhang
@@ -31,6 +31,8 @@ extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
33
  - courier_proto.gemspec
34
+ - lib/balance_pb.rb
35
+ - lib/balance_services_pb.rb
34
36
  - lib/helloworld_pb.rb
35
37
  - lib/helloworld_services_pb.rb
36
38
  - lib/todo_pb.rb