Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 1 | # -*- coding: utf-8 -*- |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: api/api_proto/user_objects.proto |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 4 | """Generated protocol buffer code.""" |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 5 | from google.protobuf import descriptor as _descriptor |
| 6 | from google.protobuf import message as _message |
| 7 | from google.protobuf import reflection as _reflection |
| 8 | from google.protobuf import symbol_database as _symbol_database |
| 9 | # @@protoc_insertion_point(imports) |
| 10 | |
| 11 | _sym_db = _symbol_database.Default() |
| 12 | |
| 13 | |
| 14 | from api.api_proto import common_pb2 as api_dot_api__proto_dot_common__pb2 |
| 15 | |
| 16 | |
| 17 | DESCRIPTOR = _descriptor.FileDescriptor( |
| 18 | name='api/api_proto/user_objects.proto', |
| 19 | package='monorail', |
| 20 | syntax='proto3', |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 21 | 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' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 24 | , |
| 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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 36 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 37 | 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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 41 | has_default_value=False, default_value=b"".decode('utf-8'), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 42 | message_type=None, enum_type=None, containing_type=None, |
| 43 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 44 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 45 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 51 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 52 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 58 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 59 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 62 | has_default_value=False, default_value=b"".decode('utf-8'), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 63 | message_type=None, enum_type=None, containing_type=None, |
| 64 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 65 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 66 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 72 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 73 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 79 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 80 | ], |
| 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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 103 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 104 | 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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 108 | has_default_value=False, default_value=b"".decode('utf-8'), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 109 | message_type=None, enum_type=None, containing_type=None, |
| 110 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 111 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 112 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 115 | has_default_value=False, default_value=b"".decode('utf-8'), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 116 | message_type=None, enum_type=None, containing_type=None, |
| 117 | is_extension=False, extension_scope=None, |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 118 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 119 | ], |
| 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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 142 | create_key=_descriptor._internal_create_key, |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 143 | 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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 150 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 151 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 157 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 158 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 164 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 165 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 171 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 172 | _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ínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 178 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 179 | ], |
| 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 |
| 198 | DESCRIPTOR.message_types_by_name['User'] = _USER |
| 199 | DESCRIPTOR.message_types_by_name['UserPrefValue'] = _USERPREFVALUE |
| 200 | DESCRIPTOR.message_types_by_name['UserProjects'] = _USERPROJECTS |
| 201 | _sym_db.RegisterFileDescriptor(DESCRIPTOR) |
| 202 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 203 | User = _reflection.GeneratedProtocolMessageType('User', (_message.Message,), { |
| 204 | 'DESCRIPTOR' : _USER, |
| 205 | '__module__' : 'api.api_proto.user_objects_pb2' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 206 | # @@protoc_insertion_point(class_scope:monorail.User) |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 207 | }) |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 208 | _sym_db.RegisterMessage(User) |
| 209 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 210 | UserPrefValue = _reflection.GeneratedProtocolMessageType('UserPrefValue', (_message.Message,), { |
| 211 | 'DESCRIPTOR' : _USERPREFVALUE, |
| 212 | '__module__' : 'api.api_proto.user_objects_pb2' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 213 | # @@protoc_insertion_point(class_scope:monorail.UserPrefValue) |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 214 | }) |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 215 | _sym_db.RegisterMessage(UserPrefValue) |
| 216 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 217 | UserProjects = _reflection.GeneratedProtocolMessageType('UserProjects', (_message.Message,), { |
| 218 | 'DESCRIPTOR' : _USERPROJECTS, |
| 219 | '__module__' : 'api.api_proto.user_objects_pb2' |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 220 | # @@protoc_insertion_point(class_scope:monorail.UserProjects) |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 221 | }) |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 222 | _sym_db.RegisterMessage(UserProjects) |
| 223 | |
| 224 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame^] | 225 | DESCRIPTOR._options = None |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 226 | # @@protoc_insertion_point(module_scope) |