Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Generated by rprotoc. DO NOT EDIT!
- ### <proto file: person.proto>
- # message Person {
- # required int32 id = 1;
- # required string name = 2;
- # optional string email = 3;
- #
- # extensions 10 to max;
- # }
- #
- # message Phone {
- # extend Person {
- # repeated Phone phones = 10;
- # }
- # enum PHONE_TYPE {
- # MOBILE = 1;
- # HOME = 2;
- # }
- # optional string num = 1;
- # optional PHONE_TYPE type = 2;
- # }
- require 'protobuf/message/message'
- require 'protobuf/message/enum'
- require 'protobuf/message/service'
- require 'protobuf/message/extend'
- class Person < ::Protobuf::Message
- defined_in __FILE__
- required :int32, :id, 1
- required :string, :name, 2
- optional :string, :email, 3
- extensions 10..::Protobuf::Extend::MAX
- end
- class Phone < ::Protobuf::Message
- defined_in __FILE__
- class Person < ::Protobuf::Message
- defined_in __FILE__
- repeated :Phone, :phones, 10
- end
- class PHONE_TYPE < ::Protobuf::Enum
- defined_in __FILE__
- MOBILE = value(:MOBILE, 1)
- HOME = value(:HOME, 2)
- end
- optional :string, :num, 1
- optional :PHONE_TYPE, :type, 2
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement