blob: 242dc98a7f62456b04c28391bb434c4881f99ea8 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# -*- coding: utf-8 -*-
2# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: api/v3/api_proto/user_objects.proto
Adrià Vilanova Martínezf5e10392021-12-07 22:55:40 +01004"""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 google.api import resource_pb2 as google_dot_api_dot_resource__pb2
15from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
16
17
18DESCRIPTOR = _descriptor.FileDescriptor(
19 name='api/v3/api_proto/user_objects.proto',
20 package='monorail.v3',
21 syntax='proto3',
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +020022 serialized_options=b'Z!infra/monorailv2/api/v3/api_proto',
Copybara854996b2021-09-07 19:36:02 +000023 create_key=_descriptor._internal_create_key,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +020024 serialized_pb=b'\n#api/v3/api_proto/user_objects.proto\x12\x0bmonorail.v3\x1a\x19google/api/resource.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xa4\x01\n\x04User\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\x05\x65mail\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x14\x61vailability_message\x18\x03 \x01(\t\x12\x1c\n\x14last_visit_timestamp\x18\x05 \x01(\x05:(\xea\x41%\n\x12\x61pi.crbug.com/User\x12\x0fusers/{user_id}\"\x9a\t\n\x0cUserSettings\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xfa\x41\x1c\n\x1a\x61pi.crbug.com/UserSettings\x12:\n\tsite_role\x18\x02 \x01(\x0e\x32\".monorail.v3.UserSettings.SiteRoleB\x03\xe0\x41\x03\x12:\n\x16linked_secondary_users\x18\x03 \x03(\tB\x1a\xfa\x41\x14\n\x12\x61pi.crbug.com/User\xe0\x41\x03\x12>\n\x0bsite_access\x18\x04 \x01(\x0b\x32$.monorail.v3.UserSettings.SiteAccessB\x03\xe0\x41\x03\x12I\n\x13notification_traits\x18\x05 \x03(\x0e\x32,.monorail.v3.UserSettings.NotificationTraits\x12?\n\x0eprivacy_traits\x18\x06 \x03(\x0e\x32\'.monorail.v3.UserSettings.PrivacyTraits\x12P\n\x17site_interaction_traits\x18\x07 \x03(\x0e\x32/.monorail.v3.UserSettings.SiteInteractionTraits\x1a\x98\x01\n\nSiteAccess\x12;\n\x06status\x18\x01 \x01(\x0e\x32+.monorail.v3.UserSettings.SiteAccess.Status\x12\x0e\n\x06reason\x18\x02 \x01(\t\"=\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x46ULL_ACCESS\x10\x01\x12\n\n\x06\x42\x41NNED\x10\x02\"<\n\x08SiteRole\x12\x19\n\x15SITE_ROLE_UNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\t\n\x05\x41\x44MIN\x10\x02\"\xea\x01\n\x12NotificationTraits\x12#\n\x1fNOTIFICATION_TRAITS_UNSPECIFIED\x10\x00\x12\'\n#NOTIFY_ON_OWNED_OR_CC_ISSUE_CHANGES\x10\x01\x12#\n\x1fNOTIFY_ON_STARRED_ISSUE_CHANGES\x10\x02\x12\"\n\x1eNOTIFY_ON_STARRED_NOTIFY_DATES\x10\x03\x12\x18\n\x14\x43OMPACT_SUBJECT_LINE\x10\x04\x12#\n\x1fGMAIL_INCLUDE_ISSUE_LINK_BUTTON\x10\x05\"B\n\rPrivacyTraits\x12\x1e\n\x1aPRIVACY_TRAITS_UNSPECIFIED\x10\x00\x12\x11\n\rOBSCURE_EMAIL\x10\x01\"\x81\x01\n\x15SiteInteractionTraits\x12\'\n#SITE_INTERACTION_TRAITS_UNSPECIFIED\x10\x00\x12&\n\"REPORT_RESTRICT_VIEW_GOOGLE_ISSUES\x10\x01\x12\x17\n\x13PUBLIC_ISSUE_BANNER\x10\x02:7\xea\x41\x34\n\x1a\x61pi.crbug.com/UserSettings\x12\x16usersettings/{user_id}\"\xf4\x02\n\x0eUserSavedQuery\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\r\n\x05query\x18\x03 \x01(\t\x12,\n\x08projects\x18\x04 \x03(\tB\x1a\xfa\x41\x17\n\x15\x61pi.crbug.com/Project\x12G\n\x11subscription_mode\x18\x05 \x01(\x0e\x32,.monorail.v3.UserSavedQuery.SubscriptionMode\"f\n\x10SubscriptionMode\x12!\n\x1dSUBSCRIPTION_MODE_UNSPECIFIED\x10\x00\x12\x13\n\x0fNO_NOTIFICATION\x10\x01\x12\x1a\n\x16IMMEDIATE_NOTIFICATION\x10\x02:P\xea\x41M\n\x1c\x61pi.crbug.com/UserSavedQuery\x12-users/{user_id}/savedQueries/{saved_query_id}\"h\n\x0bProjectStar\x12\x0c\n\x04name\x18\x01 \x01(\t:K\xea\x41H\n\x19\x61pi.crbug.com/ProjectStar\x12+users/{user_id}/projectStars/{project_name}B#Z!infra/monorailv2/api/v3/api_protob\x06proto3'
Copybara854996b2021-09-07 19:36:02 +000025 ,
26 dependencies=[google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,])
27
28
29
30_USERSETTINGS_SITEACCESS_STATUS = _descriptor.EnumDescriptor(
31 name='Status',
32 full_name='monorail.v3.UserSettings.SiteAccess.Status',
33 filename=None,
34 file=DESCRIPTOR,
35 create_key=_descriptor._internal_create_key,
36 values=[
37 _descriptor.EnumValueDescriptor(
38 name='STATUS_UNSPECIFIED', index=0, number=0,
39 serialized_options=None,
40 type=None,
41 create_key=_descriptor._internal_create_key),
42 _descriptor.EnumValueDescriptor(
43 name='FULL_ACCESS', index=1, number=1,
44 serialized_options=None,
45 type=None,
46 create_key=_descriptor._internal_create_key),
47 _descriptor.EnumValueDescriptor(
48 name='BANNED', index=2, number=2,
49 serialized_options=None,
50 type=None,
51 create_key=_descriptor._internal_create_key),
52 ],
53 containing_type=None,
54 serialized_options=None,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +020055 serialized_start=841,
56 serialized_end=902,
Copybara854996b2021-09-07 19:36:02 +000057)
58_sym_db.RegisterEnumDescriptor(_USERSETTINGS_SITEACCESS_STATUS)
59
60_USERSETTINGS_SITEROLE = _descriptor.EnumDescriptor(
61 name='SiteRole',
62 full_name='monorail.v3.UserSettings.SiteRole',
63 filename=None,
64 file=DESCRIPTOR,
65 create_key=_descriptor._internal_create_key,
66 values=[
67 _descriptor.EnumValueDescriptor(
68 name='SITE_ROLE_UNSPECIFIED', index=0, number=0,
69 serialized_options=None,
70 type=None,
71 create_key=_descriptor._internal_create_key),
72 _descriptor.EnumValueDescriptor(
73 name='NORMAL', index=1, number=1,
74 serialized_options=None,
75 type=None,
76 create_key=_descriptor._internal_create_key),
77 _descriptor.EnumValueDescriptor(
78 name='ADMIN', index=2, number=2,
79 serialized_options=None,
80 type=None,
81 create_key=_descriptor._internal_create_key),
82 ],
83 containing_type=None,
84 serialized_options=None,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +020085 serialized_start=904,
86 serialized_end=964,
Copybara854996b2021-09-07 19:36:02 +000087)
88_sym_db.RegisterEnumDescriptor(_USERSETTINGS_SITEROLE)
89
90_USERSETTINGS_NOTIFICATIONTRAITS = _descriptor.EnumDescriptor(
91 name='NotificationTraits',
92 full_name='monorail.v3.UserSettings.NotificationTraits',
93 filename=None,
94 file=DESCRIPTOR,
95 create_key=_descriptor._internal_create_key,
96 values=[
97 _descriptor.EnumValueDescriptor(
98 name='NOTIFICATION_TRAITS_UNSPECIFIED', index=0, number=0,
99 serialized_options=None,
100 type=None,
101 create_key=_descriptor._internal_create_key),
102 _descriptor.EnumValueDescriptor(
103 name='NOTIFY_ON_OWNED_OR_CC_ISSUE_CHANGES', index=1, number=1,
104 serialized_options=None,
105 type=None,
106 create_key=_descriptor._internal_create_key),
107 _descriptor.EnumValueDescriptor(
108 name='NOTIFY_ON_STARRED_ISSUE_CHANGES', index=2, number=2,
109 serialized_options=None,
110 type=None,
111 create_key=_descriptor._internal_create_key),
112 _descriptor.EnumValueDescriptor(
113 name='NOTIFY_ON_STARRED_NOTIFY_DATES', index=3, number=3,
114 serialized_options=None,
115 type=None,
116 create_key=_descriptor._internal_create_key),
117 _descriptor.EnumValueDescriptor(
118 name='COMPACT_SUBJECT_LINE', index=4, number=4,
119 serialized_options=None,
120 type=None,
121 create_key=_descriptor._internal_create_key),
122 _descriptor.EnumValueDescriptor(
123 name='GMAIL_INCLUDE_ISSUE_LINK_BUTTON', index=5, number=5,
124 serialized_options=None,
125 type=None,
126 create_key=_descriptor._internal_create_key),
127 ],
128 containing_type=None,
129 serialized_options=None,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200130 serialized_start=967,
131 serialized_end=1201,
Copybara854996b2021-09-07 19:36:02 +0000132)
133_sym_db.RegisterEnumDescriptor(_USERSETTINGS_NOTIFICATIONTRAITS)
134
135_USERSETTINGS_PRIVACYTRAITS = _descriptor.EnumDescriptor(
136 name='PrivacyTraits',
137 full_name='monorail.v3.UserSettings.PrivacyTraits',
138 filename=None,
139 file=DESCRIPTOR,
140 create_key=_descriptor._internal_create_key,
141 values=[
142 _descriptor.EnumValueDescriptor(
143 name='PRIVACY_TRAITS_UNSPECIFIED', index=0, number=0,
144 serialized_options=None,
145 type=None,
146 create_key=_descriptor._internal_create_key),
147 _descriptor.EnumValueDescriptor(
148 name='OBSCURE_EMAIL', index=1, number=1,
149 serialized_options=None,
150 type=None,
151 create_key=_descriptor._internal_create_key),
152 ],
153 containing_type=None,
154 serialized_options=None,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200155 serialized_start=1203,
156 serialized_end=1269,
Copybara854996b2021-09-07 19:36:02 +0000157)
158_sym_db.RegisterEnumDescriptor(_USERSETTINGS_PRIVACYTRAITS)
159
160_USERSETTINGS_SITEINTERACTIONTRAITS = _descriptor.EnumDescriptor(
161 name='SiteInteractionTraits',
162 full_name='monorail.v3.UserSettings.SiteInteractionTraits',
163 filename=None,
164 file=DESCRIPTOR,
165 create_key=_descriptor._internal_create_key,
166 values=[
167 _descriptor.EnumValueDescriptor(
168 name='SITE_INTERACTION_TRAITS_UNSPECIFIED', index=0, number=0,
169 serialized_options=None,
170 type=None,
171 create_key=_descriptor._internal_create_key),
172 _descriptor.EnumValueDescriptor(
173 name='REPORT_RESTRICT_VIEW_GOOGLE_ISSUES', index=1, number=1,
174 serialized_options=None,
175 type=None,
176 create_key=_descriptor._internal_create_key),
177 _descriptor.EnumValueDescriptor(
178 name='PUBLIC_ISSUE_BANNER', index=2, number=2,
179 serialized_options=None,
180 type=None,
181 create_key=_descriptor._internal_create_key),
182 ],
183 containing_type=None,
184 serialized_options=None,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200185 serialized_start=1272,
186 serialized_end=1401,
Copybara854996b2021-09-07 19:36:02 +0000187)
188_sym_db.RegisterEnumDescriptor(_USERSETTINGS_SITEINTERACTIONTRAITS)
189
190_USERSAVEDQUERY_SUBSCRIPTIONMODE = _descriptor.EnumDescriptor(
191 name='SubscriptionMode',
192 full_name='monorail.v3.UserSavedQuery.SubscriptionMode',
193 filename=None,
194 file=DESCRIPTOR,
195 create_key=_descriptor._internal_create_key,
196 values=[
197 _descriptor.EnumValueDescriptor(
198 name='SUBSCRIPTION_MODE_UNSPECIFIED', index=0, number=0,
199 serialized_options=None,
200 type=None,
201 create_key=_descriptor._internal_create_key),
202 _descriptor.EnumValueDescriptor(
203 name='NO_NOTIFICATION', index=1, number=1,
204 serialized_options=None,
205 type=None,
206 create_key=_descriptor._internal_create_key),
207 _descriptor.EnumValueDescriptor(
208 name='IMMEDIATE_NOTIFICATION', index=2, number=2,
209 serialized_options=None,
210 type=None,
211 create_key=_descriptor._internal_create_key),
212 ],
213 containing_type=None,
214 serialized_options=None,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200215 serialized_start=1649,
216 serialized_end=1751,
Copybara854996b2021-09-07 19:36:02 +0000217)
218_sym_db.RegisterEnumDescriptor(_USERSAVEDQUERY_SUBSCRIPTIONMODE)
219
220
221_USER = _descriptor.Descriptor(
222 name='User',
223 full_name='monorail.v3.User',
224 filename=None,
225 file=DESCRIPTOR,
226 containing_type=None,
227 create_key=_descriptor._internal_create_key,
228 fields=[
229 _descriptor.FieldDescriptor(
230 name='name', full_name='monorail.v3.User.name', index=0,
231 number=1, type=9, cpp_type=9, label=1,
232 has_default_value=False, default_value=b"".decode('utf-8'),
233 message_type=None, enum_type=None, containing_type=None,
234 is_extension=False, extension_scope=None,
235 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
236 _descriptor.FieldDescriptor(
237 name='display_name', full_name='monorail.v3.User.display_name', index=1,
238 number=2, type=9, cpp_type=9, label=1,
239 has_default_value=False, default_value=b"".decode('utf-8'),
240 message_type=None, enum_type=None, containing_type=None,
241 is_extension=False, extension_scope=None,
242 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
243 _descriptor.FieldDescriptor(
244 name='email', full_name='monorail.v3.User.email', index=2,
245 number=4, type=9, cpp_type=9, label=1,
246 has_default_value=False, default_value=b"".decode('utf-8'),
247 message_type=None, enum_type=None, containing_type=None,
248 is_extension=False, extension_scope=None,
249 serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
250 _descriptor.FieldDescriptor(
251 name='availability_message', full_name='monorail.v3.User.availability_message', index=3,
252 number=3, type=9, cpp_type=9, label=1,
253 has_default_value=False, default_value=b"".decode('utf-8'),
254 message_type=None, enum_type=None, containing_type=None,
255 is_extension=False, extension_scope=None,
256 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200257 _descriptor.FieldDescriptor(
258 name='last_visit_timestamp', full_name='monorail.v3.User.last_visit_timestamp', index=4,
259 number=5, type=5, cpp_type=1, label=1,
260 has_default_value=False, default_value=0,
261 message_type=None, enum_type=None, containing_type=None,
262 is_extension=False, extension_scope=None,
263 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
Copybara854996b2021-09-07 19:36:02 +0000264 ],
265 extensions=[
266 ],
267 nested_types=[],
268 enum_types=[
269 ],
270 serialized_options=b'\352A%\n\022api.crbug.com/User\022\017users/{user_id}',
271 is_extendable=False,
272 syntax='proto3',
273 extension_ranges=[],
274 oneofs=[
275 ],
276 serialized_start=113,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200277 serialized_end=277,
Copybara854996b2021-09-07 19:36:02 +0000278)
279
280
281_USERSETTINGS_SITEACCESS = _descriptor.Descriptor(
282 name='SiteAccess',
283 full_name='monorail.v3.UserSettings.SiteAccess',
284 filename=None,
285 file=DESCRIPTOR,
286 containing_type=None,
287 create_key=_descriptor._internal_create_key,
288 fields=[
289 _descriptor.FieldDescriptor(
290 name='status', full_name='monorail.v3.UserSettings.SiteAccess.status', index=0,
291 number=1, type=14, cpp_type=8, label=1,
292 has_default_value=False, default_value=0,
293 message_type=None, enum_type=None, containing_type=None,
294 is_extension=False, extension_scope=None,
295 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
296 _descriptor.FieldDescriptor(
297 name='reason', full_name='monorail.v3.UserSettings.SiteAccess.reason', index=1,
298 number=2, type=9, cpp_type=9, label=1,
299 has_default_value=False, default_value=b"".decode('utf-8'),
300 message_type=None, enum_type=None, containing_type=None,
301 is_extension=False, extension_scope=None,
302 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
303 ],
304 extensions=[
305 ],
306 nested_types=[],
307 enum_types=[
308 _USERSETTINGS_SITEACCESS_STATUS,
309 ],
310 serialized_options=None,
311 is_extendable=False,
312 syntax='proto3',
313 extension_ranges=[],
314 oneofs=[
315 ],
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200316 serialized_start=750,
317 serialized_end=902,
Copybara854996b2021-09-07 19:36:02 +0000318)
319
320_USERSETTINGS = _descriptor.Descriptor(
321 name='UserSettings',
322 full_name='monorail.v3.UserSettings',
323 filename=None,
324 file=DESCRIPTOR,
325 containing_type=None,
326 create_key=_descriptor._internal_create_key,
327 fields=[
328 _descriptor.FieldDescriptor(
329 name='name', full_name='monorail.v3.UserSettings.name', index=0,
330 number=1, type=9, cpp_type=9, label=1,
331 has_default_value=False, default_value=b"".decode('utf-8'),
332 message_type=None, enum_type=None, containing_type=None,
333 is_extension=False, extension_scope=None,
334 serialized_options=b'\372A\034\n\032api.crbug.com/UserSettings', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
335 _descriptor.FieldDescriptor(
336 name='site_role', full_name='monorail.v3.UserSettings.site_role', index=1,
337 number=2, type=14, cpp_type=8, label=1,
338 has_default_value=False, default_value=0,
339 message_type=None, enum_type=None, containing_type=None,
340 is_extension=False, extension_scope=None,
341 serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
342 _descriptor.FieldDescriptor(
343 name='linked_secondary_users', full_name='monorail.v3.UserSettings.linked_secondary_users', index=2,
344 number=3, type=9, cpp_type=9, label=3,
345 has_default_value=False, default_value=[],
346 message_type=None, enum_type=None, containing_type=None,
347 is_extension=False, extension_scope=None,
348 serialized_options=b'\372A\024\n\022api.crbug.com/User\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
349 _descriptor.FieldDescriptor(
350 name='site_access', full_name='monorail.v3.UserSettings.site_access', index=3,
351 number=4, type=11, cpp_type=10, label=1,
352 has_default_value=False, default_value=None,
353 message_type=None, enum_type=None, containing_type=None,
354 is_extension=False, extension_scope=None,
355 serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
356 _descriptor.FieldDescriptor(
357 name='notification_traits', full_name='monorail.v3.UserSettings.notification_traits', index=4,
358 number=5, type=14, cpp_type=8, label=3,
359 has_default_value=False, default_value=[],
360 message_type=None, enum_type=None, containing_type=None,
361 is_extension=False, extension_scope=None,
362 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
363 _descriptor.FieldDescriptor(
364 name='privacy_traits', full_name='monorail.v3.UserSettings.privacy_traits', index=5,
365 number=6, type=14, cpp_type=8, label=3,
366 has_default_value=False, default_value=[],
367 message_type=None, enum_type=None, containing_type=None,
368 is_extension=False, extension_scope=None,
369 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
370 _descriptor.FieldDescriptor(
371 name='site_interaction_traits', full_name='monorail.v3.UserSettings.site_interaction_traits', index=6,
372 number=7, type=14, cpp_type=8, label=3,
373 has_default_value=False, default_value=[],
374 message_type=None, enum_type=None, containing_type=None,
375 is_extension=False, extension_scope=None,
376 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
377 ],
378 extensions=[
379 ],
380 nested_types=[_USERSETTINGS_SITEACCESS, ],
381 enum_types=[
382 _USERSETTINGS_SITEROLE,
383 _USERSETTINGS_NOTIFICATIONTRAITS,
384 _USERSETTINGS_PRIVACYTRAITS,
385 _USERSETTINGS_SITEINTERACTIONTRAITS,
386 ],
387 serialized_options=b'\352A4\n\032api.crbug.com/UserSettings\022\026usersettings/{user_id}',
388 is_extendable=False,
389 syntax='proto3',
390 extension_ranges=[],
391 oneofs=[
392 ],
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200393 serialized_start=280,
394 serialized_end=1458,
Copybara854996b2021-09-07 19:36:02 +0000395)
396
397
398_USERSAVEDQUERY = _descriptor.Descriptor(
399 name='UserSavedQuery',
400 full_name='monorail.v3.UserSavedQuery',
401 filename=None,
402 file=DESCRIPTOR,
403 containing_type=None,
404 create_key=_descriptor._internal_create_key,
405 fields=[
406 _descriptor.FieldDescriptor(
407 name='name', full_name='monorail.v3.UserSavedQuery.name', index=0,
408 number=1, type=9, cpp_type=9, label=1,
409 has_default_value=False, default_value=b"".decode('utf-8'),
410 message_type=None, enum_type=None, containing_type=None,
411 is_extension=False, extension_scope=None,
412 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
413 _descriptor.FieldDescriptor(
414 name='display_name', full_name='monorail.v3.UserSavedQuery.display_name', index=1,
415 number=2, type=9, cpp_type=9, label=1,
416 has_default_value=False, default_value=b"".decode('utf-8'),
417 message_type=None, enum_type=None, containing_type=None,
418 is_extension=False, extension_scope=None,
419 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
420 _descriptor.FieldDescriptor(
421 name='query', full_name='monorail.v3.UserSavedQuery.query', index=2,
422 number=3, type=9, cpp_type=9, label=1,
423 has_default_value=False, default_value=b"".decode('utf-8'),
424 message_type=None, enum_type=None, containing_type=None,
425 is_extension=False, extension_scope=None,
426 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
427 _descriptor.FieldDescriptor(
428 name='projects', full_name='monorail.v3.UserSavedQuery.projects', index=3,
429 number=4, type=9, cpp_type=9, label=3,
430 has_default_value=False, default_value=[],
431 message_type=None, enum_type=None, containing_type=None,
432 is_extension=False, extension_scope=None,
433 serialized_options=b'\372A\027\n\025api.crbug.com/Project', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
434 _descriptor.FieldDescriptor(
435 name='subscription_mode', full_name='monorail.v3.UserSavedQuery.subscription_mode', index=4,
436 number=5, type=14, cpp_type=8, label=1,
437 has_default_value=False, default_value=0,
438 message_type=None, enum_type=None, containing_type=None,
439 is_extension=False, extension_scope=None,
440 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
441 ],
442 extensions=[
443 ],
444 nested_types=[],
445 enum_types=[
446 _USERSAVEDQUERY_SUBSCRIPTIONMODE,
447 ],
448 serialized_options=b'\352AM\n\034api.crbug.com/UserSavedQuery\022-users/{user_id}/savedQueries/{saved_query_id}',
449 is_extendable=False,
450 syntax='proto3',
451 extension_ranges=[],
452 oneofs=[
453 ],
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200454 serialized_start=1461,
455 serialized_end=1833,
Copybara854996b2021-09-07 19:36:02 +0000456)
457
458
459_PROJECTSTAR = _descriptor.Descriptor(
460 name='ProjectStar',
461 full_name='monorail.v3.ProjectStar',
462 filename=None,
463 file=DESCRIPTOR,
464 containing_type=None,
465 create_key=_descriptor._internal_create_key,
466 fields=[
467 _descriptor.FieldDescriptor(
468 name='name', full_name='monorail.v3.ProjectStar.name', index=0,
469 number=1, type=9, cpp_type=9, label=1,
470 has_default_value=False, default_value=b"".decode('utf-8'),
471 message_type=None, enum_type=None, containing_type=None,
472 is_extension=False, extension_scope=None,
473 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
474 ],
475 extensions=[
476 ],
477 nested_types=[],
478 enum_types=[
479 ],
480 serialized_options=b'\352AH\n\031api.crbug.com/ProjectStar\022+users/{user_id}/projectStars/{project_name}',
481 is_extendable=False,
482 syntax='proto3',
483 extension_ranges=[],
484 oneofs=[
485 ],
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200486 serialized_start=1835,
487 serialized_end=1939,
Copybara854996b2021-09-07 19:36:02 +0000488)
489
490_USERSETTINGS_SITEACCESS.fields_by_name['status'].enum_type = _USERSETTINGS_SITEACCESS_STATUS
491_USERSETTINGS_SITEACCESS.containing_type = _USERSETTINGS
492_USERSETTINGS_SITEACCESS_STATUS.containing_type = _USERSETTINGS_SITEACCESS
493_USERSETTINGS.fields_by_name['site_role'].enum_type = _USERSETTINGS_SITEROLE
494_USERSETTINGS.fields_by_name['site_access'].message_type = _USERSETTINGS_SITEACCESS
495_USERSETTINGS.fields_by_name['notification_traits'].enum_type = _USERSETTINGS_NOTIFICATIONTRAITS
496_USERSETTINGS.fields_by_name['privacy_traits'].enum_type = _USERSETTINGS_PRIVACYTRAITS
497_USERSETTINGS.fields_by_name['site_interaction_traits'].enum_type = _USERSETTINGS_SITEINTERACTIONTRAITS
498_USERSETTINGS_SITEROLE.containing_type = _USERSETTINGS
499_USERSETTINGS_NOTIFICATIONTRAITS.containing_type = _USERSETTINGS
500_USERSETTINGS_PRIVACYTRAITS.containing_type = _USERSETTINGS
501_USERSETTINGS_SITEINTERACTIONTRAITS.containing_type = _USERSETTINGS
502_USERSAVEDQUERY.fields_by_name['subscription_mode'].enum_type = _USERSAVEDQUERY_SUBSCRIPTIONMODE
503_USERSAVEDQUERY_SUBSCRIPTIONMODE.containing_type = _USERSAVEDQUERY
504DESCRIPTOR.message_types_by_name['User'] = _USER
505DESCRIPTOR.message_types_by_name['UserSettings'] = _USERSETTINGS
506DESCRIPTOR.message_types_by_name['UserSavedQuery'] = _USERSAVEDQUERY
507DESCRIPTOR.message_types_by_name['ProjectStar'] = _PROJECTSTAR
508_sym_db.RegisterFileDescriptor(DESCRIPTOR)
509
510User = _reflection.GeneratedProtocolMessageType('User', (_message.Message,), {
511 'DESCRIPTOR' : _USER,
512 '__module__' : 'api.v3.api_proto.user_objects_pb2'
513 # @@protoc_insertion_point(class_scope:monorail.v3.User)
514 })
515_sym_db.RegisterMessage(User)
516
517UserSettings = _reflection.GeneratedProtocolMessageType('UserSettings', (_message.Message,), {
518
519 'SiteAccess' : _reflection.GeneratedProtocolMessageType('SiteAccess', (_message.Message,), {
520 'DESCRIPTOR' : _USERSETTINGS_SITEACCESS,
521 '__module__' : 'api.v3.api_proto.user_objects_pb2'
522 # @@protoc_insertion_point(class_scope:monorail.v3.UserSettings.SiteAccess)
523 })
524 ,
525 'DESCRIPTOR' : _USERSETTINGS,
526 '__module__' : 'api.v3.api_proto.user_objects_pb2'
527 # @@protoc_insertion_point(class_scope:monorail.v3.UserSettings)
528 })
529_sym_db.RegisterMessage(UserSettings)
530_sym_db.RegisterMessage(UserSettings.SiteAccess)
531
532UserSavedQuery = _reflection.GeneratedProtocolMessageType('UserSavedQuery', (_message.Message,), {
533 'DESCRIPTOR' : _USERSAVEDQUERY,
534 '__module__' : 'api.v3.api_proto.user_objects_pb2'
535 # @@protoc_insertion_point(class_scope:monorail.v3.UserSavedQuery)
536 })
537_sym_db.RegisterMessage(UserSavedQuery)
538
539ProjectStar = _reflection.GeneratedProtocolMessageType('ProjectStar', (_message.Message,), {
540 'DESCRIPTOR' : _PROJECTSTAR,
541 '__module__' : 'api.v3.api_proto.user_objects_pb2'
542 # @@protoc_insertion_point(class_scope:monorail.v3.ProjectStar)
543 })
544_sym_db.RegisterMessage(ProjectStar)
545
546
547DESCRIPTOR._options = None
548_USER.fields_by_name['email']._options = None
549_USER._options = None
550_USERSETTINGS.fields_by_name['name']._options = None
551_USERSETTINGS.fields_by_name['site_role']._options = None
552_USERSETTINGS.fields_by_name['linked_secondary_users']._options = None
553_USERSETTINGS.fields_by_name['site_access']._options = None
554_USERSETTINGS._options = None
555_USERSAVEDQUERY.fields_by_name['projects']._options = None
556_USERSAVEDQUERY._options = None
557_PROJECTSTAR._options = None
558# @@protoc_insertion_point(module_scope)