contextio_next 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cat_pb.rb +15 -13
- data/lib/cat_services_pb.rb +20 -18
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d934d99e22044aca1fd0906c2b1a11f6eac2419f
|
4
|
+
data.tar.gz: ec387cca0d004028c6dd9aaae7ddd7321b4e2988
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ad2954e3efa0ae2eeb518cad247db328a95920015e419ab082c991fc48af03d5dc3ef8fbc01a2edab77c4766a19c4bd38c302784fb7d9fa6d97158ed3410a8a
|
7
|
+
data.tar.gz: 951efdd924618d0a6c1625a6062ce5f3fea6e9bc8fb7c3b29ff952a172c77bbff01cab0d96d324e345de80c295a94414d23fd2c6785d48b6dacf24b4bcb6086a
|
data/lib/cat_pb.rb
CHANGED
@@ -4,31 +4,33 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_message "Cat" do
|
7
|
+
add_message "contextio_next.Cat" do
|
8
8
|
optional :id, :int32, 1
|
9
9
|
optional :name, :string, 2
|
10
10
|
optional :color, :string, 3
|
11
11
|
end
|
12
|
-
add_message "CatList" do
|
13
|
-
repeated :cats, :message, 1, "Cat"
|
12
|
+
add_message "contextio_next.CatList" do
|
13
|
+
repeated :cats, :message, 1, "contextio_next.Cat"
|
14
14
|
end
|
15
|
-
add_message "NewCatRequest" do
|
15
|
+
add_message "contextio_next.NewCatRequest" do
|
16
16
|
optional :name, :string, 1
|
17
17
|
optional :color, :string, 2
|
18
18
|
end
|
19
|
-
add_message "GetCatRequest" do
|
19
|
+
add_message "contextio_next.GetCatRequest" do
|
20
20
|
optional :name, :string, 1
|
21
21
|
end
|
22
|
-
add_message "DeleteCatRequest" do
|
22
|
+
add_message "contextio_next.DeleteCatRequest" do
|
23
23
|
optional :name, :string, 1
|
24
24
|
end
|
25
|
-
add_message "CatListRequest" do
|
25
|
+
add_message "contextio_next.CatListRequest" do
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
module ContextioNext
|
30
|
+
Cat = Google::Protobuf::DescriptorPool.generated_pool.lookup("contextio_next.Cat").msgclass
|
31
|
+
CatList = Google::Protobuf::DescriptorPool.generated_pool.lookup("contextio_next.CatList").msgclass
|
32
|
+
NewCatRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("contextio_next.NewCatRequest").msgclass
|
33
|
+
GetCatRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("contextio_next.GetCatRequest").msgclass
|
34
|
+
DeleteCatRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("contextio_next.DeleteCatRequest").msgclass
|
35
|
+
CatListRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("contextio_next.CatListRequest").msgclass
|
36
|
+
end
|
data/lib/cat_services_pb.rb
CHANGED
@@ -1,28 +1,30 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: cat.proto for package ''
|
2
|
+
# Source: cat.proto for package 'contextio_next'
|
3
3
|
|
4
4
|
require 'grpc'
|
5
5
|
require 'cat_pb'
|
6
6
|
|
7
|
-
module
|
8
|
-
|
9
|
-
|
7
|
+
module ContextioNext
|
8
|
+
module CatService
|
9
|
+
# CatService is BestService
|
10
|
+
class Service
|
10
11
|
|
11
|
-
|
12
|
+
include GRPC::GenericService
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
self.marshal_class_method = :encode
|
15
|
+
self.unmarshal_class_method = :decode
|
16
|
+
self.service_name = 'contextio_next.CatService'
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
rpc :NewCat, NewCatRequest, Cat
|
19
|
+
# Creates a new cat
|
20
|
+
rpc :GetCat, GetCatRequest, Cat
|
21
|
+
# Get a cat by name
|
22
|
+
rpc :DeleteCat, DeleteCatRequest, Cat
|
23
|
+
# Delete a cat by name
|
24
|
+
rpc :GetCatList, CatListRequest, CatList
|
25
|
+
# Get all the cats!
|
26
|
+
end
|
26
27
|
|
27
|
-
|
28
|
+
Stub = Service.rpc_stub_class
|
29
|
+
end
|
28
30
|
end
|