Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
Adrià Vilanova MartÃnez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 2 | # Copyright 2016 The Chromium Authors |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 5 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 6 | # source: api_clients_config.proto |
| 7 | |
| 8 | from google.protobuf import descriptor as _descriptor |
| 9 | from google.protobuf import message as _message |
| 10 | from google.protobuf import reflection as _reflection |
| 11 | from google.protobuf import symbol_database as _symbol_database |
| 12 | # @@protoc_insertion_point(imports) |
| 13 | |
| 14 | _sym_db = _symbol_database.Default() |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | DESCRIPTOR = _descriptor.FileDescriptor( |
| 20 | name='api_clients_config.proto', |
| 21 | package='monorail', |
| 22 | syntax='proto2', |
| 23 | serialized_options=None, |
| 24 | create_key=_descriptor._internal_create_key, |
| 25 | serialized_pb=b'\n\x18\x61pi_clients_config.proto\x12\x08monorail\"\xa4\x01\n\x11ProjectPermission\x12\x0f\n\x07project\x18\x01 \x01(\t\x12;\n\x04role\x18\x02 \x01(\x0e\x32 .monorail.ProjectPermission.Role:\x0b\x63ontributor\x12\x19\n\x11\x65xtra_permissions\x18\x03 \x03(\t\"&\n\x04Role\x12\r\n\tcommitter\x10\x01\x12\x0f\n\x0b\x63ontributor\x10\x02\"\x98\x02\n\x06\x43lient\x12\x14\n\x0c\x63lient_email\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x11\n\tclient_id\x18\x03 \x01(\t\x12\x17\n\x0f\x61llowed_origins\x18\n \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x38\n\x13project_permissions\x18\x05 \x03(\x0b\x32\x1b.monorail.ProjectPermission\x12\x1c\n\x0cperiod_limit\x18\x06 \x01(\x05:\x06\x31\x30\x30\x30\x30\x30\x12\x1f\n\x0elifetime_limit\x18\x07 \x01(\x05:\x07\x31\x30\x30\x30\x30\x30\x30\x12\x10\n\x08\x63ontacts\x18\x08 \x03(\t\x12\x16\n\tqpm_limit\x18\t \x01(\x05:\x03\x31\x30\x30\".\n\tClientCfg\x12!\n\x07\x63lients\x18\x01 \x03(\x0b\x32\x10.monorail.Client' |
| 26 | ) |
| 27 | |
| 28 | |
| 29 | |
| 30 | _PROJECTPERMISSION_ROLE = _descriptor.EnumDescriptor( |
| 31 | name='Role', |
| 32 | full_name='monorail.ProjectPermission.Role', |
| 33 | filename=None, |
| 34 | file=DESCRIPTOR, |
| 35 | create_key=_descriptor._internal_create_key, |
| 36 | values=[ |
| 37 | _descriptor.EnumValueDescriptor( |
| 38 | name='committer', index=0, number=1, |
| 39 | serialized_options=None, |
| 40 | type=None, |
| 41 | create_key=_descriptor._internal_create_key), |
| 42 | _descriptor.EnumValueDescriptor( |
| 43 | name='contributor', index=1, number=2, |
| 44 | serialized_options=None, |
| 45 | type=None, |
| 46 | create_key=_descriptor._internal_create_key), |
| 47 | ], |
| 48 | containing_type=None, |
| 49 | serialized_options=None, |
| 50 | serialized_start=165, |
| 51 | serialized_end=203, |
| 52 | ) |
| 53 | _sym_db.RegisterEnumDescriptor(_PROJECTPERMISSION_ROLE) |
| 54 | |
| 55 | |
| 56 | _PROJECTPERMISSION = _descriptor.Descriptor( |
| 57 | name='ProjectPermission', |
| 58 | full_name='monorail.ProjectPermission', |
| 59 | filename=None, |
| 60 | file=DESCRIPTOR, |
| 61 | containing_type=None, |
| 62 | create_key=_descriptor._internal_create_key, |
| 63 | fields=[ |
| 64 | _descriptor.FieldDescriptor( |
| 65 | name='project', full_name='monorail.ProjectPermission.project', index=0, |
| 66 | number=1, type=9, cpp_type=9, label=1, |
| 67 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 68 | message_type=None, enum_type=None, containing_type=None, |
| 69 | is_extension=False, extension_scope=None, |
| 70 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 71 | _descriptor.FieldDescriptor( |
| 72 | name='role', full_name='monorail.ProjectPermission.role', index=1, |
| 73 | number=2, type=14, cpp_type=8, label=1, |
| 74 | has_default_value=True, default_value=2, |
| 75 | message_type=None, enum_type=None, containing_type=None, |
| 76 | is_extension=False, extension_scope=None, |
| 77 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 78 | _descriptor.FieldDescriptor( |
| 79 | name='extra_permissions', full_name='monorail.ProjectPermission.extra_permissions', index=2, |
| 80 | number=3, type=9, cpp_type=9, label=3, |
| 81 | has_default_value=False, default_value=[], |
| 82 | message_type=None, enum_type=None, containing_type=None, |
| 83 | is_extension=False, extension_scope=None, |
| 84 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 85 | ], |
| 86 | extensions=[ |
| 87 | ], |
| 88 | nested_types=[], |
| 89 | enum_types=[ |
| 90 | _PROJECTPERMISSION_ROLE, |
| 91 | ], |
| 92 | serialized_options=None, |
| 93 | is_extendable=False, |
| 94 | syntax='proto2', |
| 95 | extension_ranges=[], |
| 96 | oneofs=[ |
| 97 | ], |
| 98 | serialized_start=39, |
| 99 | serialized_end=203, |
| 100 | ) |
| 101 | |
| 102 | |
| 103 | _CLIENT = _descriptor.Descriptor( |
| 104 | name='Client', |
| 105 | full_name='monorail.Client', |
| 106 | filename=None, |
| 107 | file=DESCRIPTOR, |
| 108 | containing_type=None, |
| 109 | create_key=_descriptor._internal_create_key, |
| 110 | fields=[ |
| 111 | _descriptor.FieldDescriptor( |
| 112 | name='client_email', full_name='monorail.Client.client_email', index=0, |
| 113 | number=1, 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 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 118 | _descriptor.FieldDescriptor( |
| 119 | name='display_name', full_name='monorail.Client.display_name', index=1, |
| 120 | number=2, type=9, cpp_type=9, label=1, |
| 121 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 122 | message_type=None, enum_type=None, containing_type=None, |
| 123 | is_extension=False, extension_scope=None, |
| 124 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 125 | _descriptor.FieldDescriptor( |
| 126 | name='client_id', full_name='monorail.Client.client_id', index=2, |
| 127 | number=3, type=9, cpp_type=9, label=1, |
| 128 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 129 | message_type=None, enum_type=None, containing_type=None, |
| 130 | is_extension=False, extension_scope=None, |
| 131 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 132 | _descriptor.FieldDescriptor( |
| 133 | name='allowed_origins', full_name='monorail.Client.allowed_origins', index=3, |
| 134 | number=10, type=9, cpp_type=9, label=3, |
| 135 | has_default_value=False, default_value=[], |
| 136 | message_type=None, enum_type=None, containing_type=None, |
| 137 | is_extension=False, extension_scope=None, |
| 138 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 139 | _descriptor.FieldDescriptor( |
| 140 | name='description', full_name='monorail.Client.description', index=4, |
| 141 | number=4, type=9, cpp_type=9, label=1, |
| 142 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 143 | message_type=None, enum_type=None, containing_type=None, |
| 144 | is_extension=False, extension_scope=None, |
| 145 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 146 | _descriptor.FieldDescriptor( |
| 147 | name='project_permissions', full_name='monorail.Client.project_permissions', index=5, |
| 148 | number=5, type=11, cpp_type=10, label=3, |
| 149 | has_default_value=False, default_value=[], |
| 150 | message_type=None, enum_type=None, containing_type=None, |
| 151 | is_extension=False, extension_scope=None, |
| 152 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 153 | _descriptor.FieldDescriptor( |
| 154 | name='period_limit', full_name='monorail.Client.period_limit', index=6, |
| 155 | number=6, type=5, cpp_type=1, label=1, |
| 156 | has_default_value=True, default_value=100000, |
| 157 | message_type=None, enum_type=None, containing_type=None, |
| 158 | is_extension=False, extension_scope=None, |
| 159 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 160 | _descriptor.FieldDescriptor( |
| 161 | name='lifetime_limit', full_name='monorail.Client.lifetime_limit', index=7, |
| 162 | number=7, type=5, cpp_type=1, label=1, |
| 163 | has_default_value=True, default_value=1000000, |
| 164 | message_type=None, enum_type=None, containing_type=None, |
| 165 | is_extension=False, extension_scope=None, |
| 166 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 167 | _descriptor.FieldDescriptor( |
| 168 | name='contacts', full_name='monorail.Client.contacts', index=8, |
| 169 | number=8, type=9, cpp_type=9, label=3, |
| 170 | has_default_value=False, default_value=[], |
| 171 | message_type=None, enum_type=None, containing_type=None, |
| 172 | is_extension=False, extension_scope=None, |
| 173 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 174 | _descriptor.FieldDescriptor( |
| 175 | name='qpm_limit', full_name='monorail.Client.qpm_limit', index=9, |
| 176 | number=9, type=5, cpp_type=1, label=1, |
| 177 | has_default_value=True, default_value=100, |
| 178 | message_type=None, enum_type=None, containing_type=None, |
| 179 | is_extension=False, extension_scope=None, |
| 180 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 181 | ], |
| 182 | extensions=[ |
| 183 | ], |
| 184 | nested_types=[], |
| 185 | enum_types=[ |
| 186 | ], |
| 187 | serialized_options=None, |
| 188 | is_extendable=False, |
| 189 | syntax='proto2', |
| 190 | extension_ranges=[], |
| 191 | oneofs=[ |
| 192 | ], |
| 193 | serialized_start=206, |
| 194 | serialized_end=486, |
| 195 | ) |
| 196 | |
| 197 | |
| 198 | _CLIENTCFG = _descriptor.Descriptor( |
| 199 | name='ClientCfg', |
| 200 | full_name='monorail.ClientCfg', |
| 201 | filename=None, |
| 202 | file=DESCRIPTOR, |
| 203 | containing_type=None, |
| 204 | create_key=_descriptor._internal_create_key, |
| 205 | fields=[ |
| 206 | _descriptor.FieldDescriptor( |
| 207 | name='clients', full_name='monorail.ClientCfg.clients', index=0, |
| 208 | number=1, type=11, cpp_type=10, label=3, |
| 209 | has_default_value=False, default_value=[], |
| 210 | message_type=None, enum_type=None, containing_type=None, |
| 211 | is_extension=False, extension_scope=None, |
| 212 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 213 | ], |
| 214 | extensions=[ |
| 215 | ], |
| 216 | nested_types=[], |
| 217 | enum_types=[ |
| 218 | ], |
| 219 | serialized_options=None, |
| 220 | is_extendable=False, |
| 221 | syntax='proto2', |
| 222 | extension_ranges=[], |
| 223 | oneofs=[ |
| 224 | ], |
| 225 | serialized_start=488, |
| 226 | serialized_end=534, |
| 227 | ) |
| 228 | |
| 229 | _PROJECTPERMISSION.fields_by_name['role'].enum_type = _PROJECTPERMISSION_ROLE |
| 230 | _PROJECTPERMISSION_ROLE.containing_type = _PROJECTPERMISSION |
| 231 | _CLIENT.fields_by_name['project_permissions'].message_type = _PROJECTPERMISSION |
| 232 | _CLIENTCFG.fields_by_name['clients'].message_type = _CLIENT |
| 233 | DESCRIPTOR.message_types_by_name['ProjectPermission'] = _PROJECTPERMISSION |
| 234 | DESCRIPTOR.message_types_by_name['Client'] = _CLIENT |
| 235 | DESCRIPTOR.message_types_by_name['ClientCfg'] = _CLIENTCFG |
| 236 | _sym_db.RegisterFileDescriptor(DESCRIPTOR) |
| 237 | |
| 238 | ProjectPermission = _reflection.GeneratedProtocolMessageType('ProjectPermission', (_message.Message,), { |
| 239 | 'DESCRIPTOR' : _PROJECTPERMISSION, |
| 240 | '__module__' : 'api_clients_config_pb2' |
| 241 | # @@protoc_insertion_point(class_scope:monorail.ProjectPermission) |
| 242 | }) |
| 243 | _sym_db.RegisterMessage(ProjectPermission) |
| 244 | |
| 245 | Client = _reflection.GeneratedProtocolMessageType('Client', (_message.Message,), { |
| 246 | 'DESCRIPTOR' : _CLIENT, |
| 247 | '__module__' : 'api_clients_config_pb2' |
| 248 | # @@protoc_insertion_point(class_scope:monorail.Client) |
| 249 | }) |
| 250 | _sym_db.RegisterMessage(Client) |
| 251 | |
| 252 | ClientCfg = _reflection.GeneratedProtocolMessageType('ClientCfg', (_message.Message,), { |
| 253 | 'DESCRIPTOR' : _CLIENTCFG, |
| 254 | '__module__' : 'api_clients_config_pb2' |
| 255 | # @@protoc_insertion_point(class_scope:monorail.ClientCfg) |
| 256 | }) |
| 257 | _sym_db.RegisterMessage(ClientCfg) |
| 258 | |
| 259 | |
| 260 | # @@protoc_insertion_point(module_scope) |