blob: e545fb31ecdebb6cc83c299e13d927935f465c4d [file] [log] [blame]
Zsolt Harasztia54f2ac2016-09-21 15:54:15 -07001# Generated by the protocol buffer compiler. DO NOT EDIT!
2# source: addressbook.proto
3
4from google.protobuf import descriptor as _descriptor
5from google.protobuf import message as _message
6from google.protobuf import reflection as _reflection
7from google.protobuf import symbol_database as _symbol_database
8from google.protobuf import descriptor_pb2
9# @@protoc_insertion_point(imports)
10
11_sym_db = _symbol_database.Default()
12
13
14
15
16DESCRIPTOR = _descriptor.FileDescriptor(
17 name='addressbook.proto',
18 package='tutorial',
19 syntax='proto3',
20 serialized_pb=b'\n\x11\x61\x64\x64ressbook.proto\x12\x08tutorial\"\xd5\x01\n\x06Person\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x05\x12\r\n\x05\x65mail\x18\x03 \x01(\t\x12,\n\x06phones\x18\x04 \x03(\x0b\x32\x1c.tutorial.Person.PhoneNumber\x1aG\n\x0bPhoneNumber\x12\x0e\n\x06number\x18\x01 \x01(\t\x12(\n\x04type\x18\x02 \x01(\x0e\x32\x1a.tutorial.Person.PhoneType\"+\n\tPhoneType\x12\n\n\x06MOBILE\x10\x00\x12\x08\n\x04HOME\x10\x01\x12\x08\n\x04WORK\x10\x02\"/\n\x0b\x41\x64\x64ressBook\x12 \n\x06people\x18\x01 \x03(\x0b\x32\x10.tutorial.PersonBP\n\x14\x63om.example.tutorialB\x11\x41\x64\x64ressBookProtos\xaa\x02$Google.Protobuf.Examples.AddressBookb\x06proto3'
21)
22_sym_db.RegisterFileDescriptor(DESCRIPTOR)
23
24
25
26_PERSON_PHONETYPE = _descriptor.EnumDescriptor(
27 name='PhoneType',
28 full_name='tutorial.Person.PhoneType',
29 filename=None,
30 file=DESCRIPTOR,
31 values=[
32 _descriptor.EnumValueDescriptor(
33 name='MOBILE', index=0, number=0,
34 options=None,
35 type=None),
36 _descriptor.EnumValueDescriptor(
37 name='HOME', index=1, number=1,
38 options=None,
39 type=None),
40 _descriptor.EnumValueDescriptor(
41 name='WORK', index=2, number=2,
42 options=None,
43 type=None),
44 ],
45 containing_type=None,
46 options=None,
47 serialized_start=202,
48 serialized_end=245,
49)
50_sym_db.RegisterEnumDescriptor(_PERSON_PHONETYPE)
51
52
53_PERSON_PHONENUMBER = _descriptor.Descriptor(
54 name='PhoneNumber',
55 full_name='tutorial.Person.PhoneNumber',
56 filename=None,
57 file=DESCRIPTOR,
58 containing_type=None,
59 fields=[
60 _descriptor.FieldDescriptor(
61 name='number', full_name='tutorial.Person.PhoneNumber.number', index=0,
62 number=1, type=9, cpp_type=9, label=1,
63 has_default_value=False, default_value=b"".decode('utf-8'),
64 message_type=None, enum_type=None, containing_type=None,
65 is_extension=False, extension_scope=None,
66 options=None),
67 _descriptor.FieldDescriptor(
68 name='type', full_name='tutorial.Person.PhoneNumber.type', index=1,
69 number=2, type=14, cpp_type=8, label=1,
70 has_default_value=False, default_value=0,
71 message_type=None, enum_type=None, containing_type=None,
72 is_extension=False, extension_scope=None,
73 options=None),
74 ],
75 extensions=[
76 ],
77 nested_types=[],
78 enum_types=[
79 ],
80 options=None,
81 is_extendable=False,
82 syntax='proto3',
83 extension_ranges=[],
84 oneofs=[
85 ],
86 serialized_start=129,
87 serialized_end=200,
88)
89
90_PERSON = _descriptor.Descriptor(
91 name='Person',
92 full_name='tutorial.Person',
93 filename=None,
94 file=DESCRIPTOR,
95 containing_type=None,
96 fields=[
97 _descriptor.FieldDescriptor(
98 name='name', full_name='tutorial.Person.name', index=0,
99 number=1, type=9, cpp_type=9, label=1,
100 has_default_value=False, default_value=b"".decode('utf-8'),
101 message_type=None, enum_type=None, containing_type=None,
102 is_extension=False, extension_scope=None,
103 options=None),
104 _descriptor.FieldDescriptor(
105 name='id', full_name='tutorial.Person.id', index=1,
106 number=2, type=5, cpp_type=1, label=1,
107 has_default_value=False, default_value=0,
108 message_type=None, enum_type=None, containing_type=None,
109 is_extension=False, extension_scope=None,
110 options=None),
111 _descriptor.FieldDescriptor(
112 name='email', full_name='tutorial.Person.email', index=2,
113 number=3, type=9, cpp_type=9, label=1,
114 has_default_value=False, default_value=b"".decode('utf-8'),
115 message_type=None, enum_type=None, containing_type=None,
116 is_extension=False, extension_scope=None,
117 options=None),
118 _descriptor.FieldDescriptor(
119 name='phones', full_name='tutorial.Person.phones', index=3,
120 number=4, type=11, cpp_type=10, label=3,
121 has_default_value=False, default_value=[],
122 message_type=None, enum_type=None, containing_type=None,
123 is_extension=False, extension_scope=None,
124 options=None),
125 ],
126 extensions=[
127 ],
128 nested_types=[_PERSON_PHONENUMBER, ],
129 enum_types=[
130 _PERSON_PHONETYPE,
131 ],
132 options=None,
133 is_extendable=False,
134 syntax='proto3',
135 extension_ranges=[],
136 oneofs=[
137 ],
138 serialized_start=32,
139 serialized_end=245,
140)
141
142
143_ADDRESSBOOK = _descriptor.Descriptor(
144 name='AddressBook',
145 full_name='tutorial.AddressBook',
146 filename=None,
147 file=DESCRIPTOR,
148 containing_type=None,
149 fields=[
150 _descriptor.FieldDescriptor(
151 name='people', full_name='tutorial.AddressBook.people', index=0,
152 number=1, type=11, cpp_type=10, label=3,
153 has_default_value=False, default_value=[],
154 message_type=None, enum_type=None, containing_type=None,
155 is_extension=False, extension_scope=None,
156 options=None),
157 ],
158 extensions=[
159 ],
160 nested_types=[],
161 enum_types=[
162 ],
163 options=None,
164 is_extendable=False,
165 syntax='proto3',
166 extension_ranges=[],
167 oneofs=[
168 ],
169 serialized_start=247,
170 serialized_end=294,
171)
172
173_PERSON_PHONENUMBER.fields_by_name['type'].enum_type = _PERSON_PHONETYPE
174_PERSON_PHONENUMBER.containing_type = _PERSON
175_PERSON.fields_by_name['phones'].message_type = _PERSON_PHONENUMBER
176_PERSON_PHONETYPE.containing_type = _PERSON
177_ADDRESSBOOK.fields_by_name['people'].message_type = _PERSON
178DESCRIPTOR.message_types_by_name['Person'] = _PERSON
179DESCRIPTOR.message_types_by_name['AddressBook'] = _ADDRESSBOOK
180
181Person = _reflection.GeneratedProtocolMessageType('Person', (_message.Message,), dict(
182
183 PhoneNumber = _reflection.GeneratedProtocolMessageType('PhoneNumber', (_message.Message,), dict(
184 DESCRIPTOR = _PERSON_PHONENUMBER,
185 __module__ = 'addressbook_pb2'
186 # @@protoc_insertion_point(class_scope:tutorial.Person.PhoneNumber)
187 ))
188 ,
189 DESCRIPTOR = _PERSON,
190 __module__ = 'addressbook_pb2'
191 # @@protoc_insertion_point(class_scope:tutorial.Person)
192 ))
193_sym_db.RegisterMessage(Person)
194_sym_db.RegisterMessage(Person.PhoneNumber)
195
196AddressBook = _reflection.GeneratedProtocolMessageType('AddressBook', (_message.Message,), dict(
197 DESCRIPTOR = _ADDRESSBOOK,
198 __module__ = 'addressbook_pb2'
199 # @@protoc_insertion_point(class_scope:tutorial.AddressBook)
200 ))
201_sym_db.RegisterMessage(AddressBook)
202
203
204DESCRIPTOR.has_options = True
205DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), b'\n\024com.example.tutorialB\021AddressBookProtos\252\002$Google.Protobuf.Examples.AddressBook')
206# @@protoc_insertion_point(module_scope)