forked from mozy/ruby-protocol-buffers
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes to Rpc and Service, services.proto and services.pb.rb in spec…
…/proto_files/
- Loading branch information
Showing
4 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env ruby | ||
# Generated by the protocol buffer compiler. DO NOT EDIT! | ||
|
||
require 'protocol_buffers' | ||
|
||
module Services | ||
# forward declarations | ||
class FooRequest < ::ProtocolBuffers::Message; end | ||
class FooResponse < ::ProtocolBuffers::Message; end | ||
class BarRequest < ::ProtocolBuffers::Message; end | ||
class BarResponse < ::ProtocolBuffers::Message; end | ||
|
||
class FooRequest < ::ProtocolBuffers::Message | ||
set_fully_qualified_name "services.FooRequest" | ||
|
||
optional :sint64, :one, 1 | ||
end | ||
|
||
class FooResponse < ::ProtocolBuffers::Message | ||
set_fully_qualified_name "services.FooResponse" | ||
|
||
optional :uint64, :two, 1 | ||
end | ||
|
||
class BarRequest < ::ProtocolBuffers::Message | ||
set_fully_qualified_name "services.BarRequest" | ||
|
||
optional :string, :three, 1 | ||
end | ||
|
||
class BarResponse < ::ProtocolBuffers::Message | ||
set_fully_qualified_name "services.BarResponse" | ||
|
||
optional :bytes, :four, 1 | ||
end | ||
|
||
class FooBarService < ::ProtocolBuffers::Service | ||
set_fully_qualified_name "services.FooBarService" | ||
|
||
rpc :get_foo, "GetFoo", ::Services::FooRequest, ::Services::FooResponse | ||
rpc :get_bar, "GetBar", ::Services::BarRequest, ::Services::BarResponse | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package services; | ||
|
||
message FooRequest { | ||
optional sint64 one = 1; | ||
} | ||
|
||
message FooResponse { | ||
optional uint64 two = 1; | ||
} | ||
|
||
message BarRequest { | ||
optional string three = 1; | ||
} | ||
|
||
message BarResponse { | ||
optional bytes four = 1; | ||
} | ||
|
||
service FooBarService { | ||
rpc GetFoo(FooRequest) returns (FooResponse); | ||
rpc GetBar(BarRequest) returns (BarResponse); | ||
} |