forked from alexeyxo/protobuf-objc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
person.pb.rb
39 lines (28 loc) · 883 Bytes
/
person.pb.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env ruby
# Generated by the protocol buffer compiler. DO NOT EDIT!
require 'protocol_buffers'
# forward declarations
class Person < ::ProtocolBuffers::Message; end
class Person < ::ProtocolBuffers::Message
# forward declarations
class PhoneNumber < ::ProtocolBuffers::Message; end
# enums
module PhoneType
include ::ProtocolBuffers::Enum
set_fully_qualified_name "Person.PhoneType"
MOBILE = 0
HOME = 1
WORK = 2
end
set_fully_qualified_name "Person"
# nested messages
class PhoneNumber < ::ProtocolBuffers::Message
set_fully_qualified_name "Person.PhoneNumber"
required :string, :number, 1
optional ::Person::PhoneType, :type, 2, :default => ::Person::PhoneType::HOME
end
required :string, :name, 1
required :int64, :personId, 2
optional :string, :email, 3
repeated ::Person::PhoneNumber, :phones, 4
end