blob: 772f127ed181e837d2f2428bd1920687b6dce8a7 [file] [log] [blame]
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +02001# -*- coding: utf-8 -*-
Copybara854996b2021-09-07 19:36:02 +00002# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: api/api_proto/user_objects.proto
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +02004"""Generated protocol buffer code."""
Copybara854996b2021-09-07 19:36:02 +00005from google.protobuf import descriptor as _descriptor
6from google.protobuf import message as _message
7from google.protobuf import reflection as _reflection
8from google.protobuf import symbol_database as _symbol_database
9# @@protoc_insertion_point(imports)
10
11_sym_db = _symbol_database.Default()
12
13
14from api.api_proto import common_pb2 as api_dot_api__proto_dot_common__pb2
15
16
17DESCRIPTOR = _descriptor.FileDescriptor(
18 name='api/api_proto/user_objects.proto',
19 package='monorail',
20 syntax='proto3',
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020021 serialized_options=b'Z\'infra/monorailv2/api/api_proto;monorail',
22 create_key=_descriptor._internal_create_key,
23 serialized_pb=b'\n api/api_proto/user_objects.proto\x12\x08monorail\x1a\x1a\x61pi/api_proto/common.proto\"\xb6\x01\n\x04User\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\x03\x12\x15\n\ris_site_admin\x18\x03 \x01(\x08\x12\x14\n\x0c\x61vailability\x18\x04 \x01(\t\x12,\n\x11linked_parent_ref\x18\x05 \x01(\x0b\x32\x11.monorail.UserRef\x12,\n\x11linked_child_refs\x18\x06 \x03(\x0b\x32\x11.monorail.UserRef\",\n\rUserPrefValue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\x8a\x01\n\x0cUserProjects\x12#\n\x08user_ref\x18\x01 \x01(\x0b\x32\x11.monorail.UserRef\x12\x10\n\x08owner_of\x18\x02 \x03(\t\x12\x11\n\tmember_of\x18\x03 \x03(\t\x12\x16\n\x0e\x63ontributor_to\x18\x04 \x03(\t\x12\x18\n\x10starred_projects\x18\x05 \x03(\tB)Z\'infra/monorailv2/api/api_proto;monorailb\x06proto3'
Copybara854996b2021-09-07 19:36:02 +000024 ,
25 dependencies=[api_dot_api__proto_dot_common__pb2.DESCRIPTOR,])
26
27
28
29
30_USER = _descriptor.Descriptor(
31 name='User',
32 full_name='monorail.User',
33 filename=None,
34 file=DESCRIPTOR,
35 containing_type=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020036 create_key=_descriptor._internal_create_key,
Copybara854996b2021-09-07 19:36:02 +000037 fields=[
38 _descriptor.FieldDescriptor(
39 name='display_name', full_name='monorail.User.display_name', index=0,
40 number=1, type=9, cpp_type=9, label=1,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020041 has_default_value=False, default_value=b"".decode('utf-8'),
Copybara854996b2021-09-07 19:36:02 +000042 message_type=None, enum_type=None, containing_type=None,
43 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020044 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +000045 _descriptor.FieldDescriptor(
46 name='user_id', full_name='monorail.User.user_id', index=1,
47 number=2, type=3, cpp_type=2, label=1,
48 has_default_value=False, default_value=0,
49 message_type=None, enum_type=None, containing_type=None,
50 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020051 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +000052 _descriptor.FieldDescriptor(
53 name='is_site_admin', full_name='monorail.User.is_site_admin', index=2,
54 number=3, type=8, cpp_type=7, label=1,
55 has_default_value=False, default_value=False,
56 message_type=None, enum_type=None, containing_type=None,
57 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020058 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +000059 _descriptor.FieldDescriptor(
60 name='availability', full_name='monorail.User.availability', index=3,
61 number=4, type=9, cpp_type=9, label=1,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020062 has_default_value=False, default_value=b"".decode('utf-8'),
Copybara854996b2021-09-07 19:36:02 +000063 message_type=None, enum_type=None, containing_type=None,
64 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020065 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +000066 _descriptor.FieldDescriptor(
67 name='linked_parent_ref', full_name='monorail.User.linked_parent_ref', index=4,
68 number=5, type=11, cpp_type=10, label=1,
69 has_default_value=False, default_value=None,
70 message_type=None, enum_type=None, containing_type=None,
71 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020072 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +000073 _descriptor.FieldDescriptor(
74 name='linked_child_refs', full_name='monorail.User.linked_child_refs', index=5,
75 number=6, type=11, cpp_type=10, label=3,
76 has_default_value=False, default_value=[],
77 message_type=None, enum_type=None, containing_type=None,
78 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020079 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +000080 ],
81 extensions=[
82 ],
83 nested_types=[],
84 enum_types=[
85 ],
86 serialized_options=None,
87 is_extendable=False,
88 syntax='proto3',
89 extension_ranges=[],
90 oneofs=[
91 ],
92 serialized_start=75,
93 serialized_end=257,
94)
95
96
97_USERPREFVALUE = _descriptor.Descriptor(
98 name='UserPrefValue',
99 full_name='monorail.UserPrefValue',
100 filename=None,
101 file=DESCRIPTOR,
102 containing_type=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200103 create_key=_descriptor._internal_create_key,
Copybara854996b2021-09-07 19:36:02 +0000104 fields=[
105 _descriptor.FieldDescriptor(
106 name='name', full_name='monorail.UserPrefValue.name', index=0,
107 number=1, type=9, cpp_type=9, label=1,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200108 has_default_value=False, default_value=b"".decode('utf-8'),
Copybara854996b2021-09-07 19:36:02 +0000109 message_type=None, enum_type=None, containing_type=None,
110 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200111 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +0000112 _descriptor.FieldDescriptor(
113 name='value', full_name='monorail.UserPrefValue.value', index=1,
114 number=2, type=9, cpp_type=9, label=1,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200115 has_default_value=False, default_value=b"".decode('utf-8'),
Copybara854996b2021-09-07 19:36:02 +0000116 message_type=None, enum_type=None, containing_type=None,
117 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200118 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +0000119 ],
120 extensions=[
121 ],
122 nested_types=[],
123 enum_types=[
124 ],
125 serialized_options=None,
126 is_extendable=False,
127 syntax='proto3',
128 extension_ranges=[],
129 oneofs=[
130 ],
131 serialized_start=259,
132 serialized_end=303,
133)
134
135
136_USERPROJECTS = _descriptor.Descriptor(
137 name='UserProjects',
138 full_name='monorail.UserProjects',
139 filename=None,
140 file=DESCRIPTOR,
141 containing_type=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200142 create_key=_descriptor._internal_create_key,
Copybara854996b2021-09-07 19:36:02 +0000143 fields=[
144 _descriptor.FieldDescriptor(
145 name='user_ref', full_name='monorail.UserProjects.user_ref', index=0,
146 number=1, type=11, cpp_type=10, label=1,
147 has_default_value=False, default_value=None,
148 message_type=None, enum_type=None, containing_type=None,
149 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200150 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +0000151 _descriptor.FieldDescriptor(
152 name='owner_of', full_name='monorail.UserProjects.owner_of', index=1,
153 number=2, type=9, cpp_type=9, label=3,
154 has_default_value=False, default_value=[],
155 message_type=None, enum_type=None, containing_type=None,
156 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200157 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +0000158 _descriptor.FieldDescriptor(
159 name='member_of', full_name='monorail.UserProjects.member_of', index=2,
160 number=3, type=9, cpp_type=9, label=3,
161 has_default_value=False, default_value=[],
162 message_type=None, enum_type=None, containing_type=None,
163 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200164 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +0000165 _descriptor.FieldDescriptor(
166 name='contributor_to', full_name='monorail.UserProjects.contributor_to', index=3,
167 number=4, type=9, cpp_type=9, label=3,
168 has_default_value=False, default_value=[],
169 message_type=None, enum_type=None, containing_type=None,
170 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200171 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +0000172 _descriptor.FieldDescriptor(
173 name='starred_projects', full_name='monorail.UserProjects.starred_projects', index=4,
174 number=5, type=9, cpp_type=9, label=3,
175 has_default_value=False, default_value=[],
176 message_type=None, enum_type=None, containing_type=None,
177 is_extension=False, extension_scope=None,
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200178 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +0000179 ],
180 extensions=[
181 ],
182 nested_types=[],
183 enum_types=[
184 ],
185 serialized_options=None,
186 is_extendable=False,
187 syntax='proto3',
188 extension_ranges=[],
189 oneofs=[
190 ],
191 serialized_start=306,
192 serialized_end=444,
193)
194
195_USER.fields_by_name['linked_parent_ref'].message_type = api_dot_api__proto_dot_common__pb2._USERREF
196_USER.fields_by_name['linked_child_refs'].message_type = api_dot_api__proto_dot_common__pb2._USERREF
197_USERPROJECTS.fields_by_name['user_ref'].message_type = api_dot_api__proto_dot_common__pb2._USERREF
198DESCRIPTOR.message_types_by_name['User'] = _USER
199DESCRIPTOR.message_types_by_name['UserPrefValue'] = _USERPREFVALUE
200DESCRIPTOR.message_types_by_name['UserProjects'] = _USERPROJECTS
201_sym_db.RegisterFileDescriptor(DESCRIPTOR)
202
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200203User = _reflection.GeneratedProtocolMessageType('User', (_message.Message,), {
204 'DESCRIPTOR' : _USER,
205 '__module__' : 'api.api_proto.user_objects_pb2'
Copybara854996b2021-09-07 19:36:02 +0000206 # @@protoc_insertion_point(class_scope:monorail.User)
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200207 })
Copybara854996b2021-09-07 19:36:02 +0000208_sym_db.RegisterMessage(User)
209
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200210UserPrefValue = _reflection.GeneratedProtocolMessageType('UserPrefValue', (_message.Message,), {
211 'DESCRIPTOR' : _USERPREFVALUE,
212 '__module__' : 'api.api_proto.user_objects_pb2'
Copybara854996b2021-09-07 19:36:02 +0000213 # @@protoc_insertion_point(class_scope:monorail.UserPrefValue)
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200214 })
Copybara854996b2021-09-07 19:36:02 +0000215_sym_db.RegisterMessage(UserPrefValue)
216
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200217UserProjects = _reflection.GeneratedProtocolMessageType('UserProjects', (_message.Message,), {
218 'DESCRIPTOR' : _USERPROJECTS,
219 '__module__' : 'api.api_proto.user_objects_pb2'
Copybara854996b2021-09-07 19:36:02 +0000220 # @@protoc_insertion_point(class_scope:monorail.UserProjects)
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200221 })
Copybara854996b2021-09-07 19:36:02 +0000222_sym_db.RegisterMessage(UserProjects)
223
224
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +0200225DESCRIPTOR._options = None
Copybara854996b2021-09-07 19:36:02 +0000226# @@protoc_insertion_point(module_scope)