Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame^] | 1 | # -*- coding: utf-8 -*- |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: api_clients_config.proto |
| 4 | |
| 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 | |
| 15 | |
| 16 | DESCRIPTOR = _descriptor.FileDescriptor( |
| 17 | name='api_clients_config.proto', |
| 18 | package='monorail', |
| 19 | syntax='proto2', |
| 20 | serialized_options=None, |
| 21 | create_key=_descriptor._internal_create_key, |
| 22 | 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' |
| 23 | ) |
| 24 | |
| 25 | |
| 26 | |
| 27 | _PROJECTPERMISSION_ROLE = _descriptor.EnumDescriptor( |
| 28 | name='Role', |
| 29 | full_name='monorail.ProjectPermission.Role', |
| 30 | filename=None, |
| 31 | file=DESCRIPTOR, |
| 32 | create_key=_descriptor._internal_create_key, |
| 33 | values=[ |
| 34 | _descriptor.EnumValueDescriptor( |
| 35 | name='committer', index=0, number=1, |
| 36 | serialized_options=None, |
| 37 | type=None, |
| 38 | create_key=_descriptor._internal_create_key), |
| 39 | _descriptor.EnumValueDescriptor( |
| 40 | name='contributor', index=1, number=2, |
| 41 | serialized_options=None, |
| 42 | type=None, |
| 43 | create_key=_descriptor._internal_create_key), |
| 44 | ], |
| 45 | containing_type=None, |
| 46 | serialized_options=None, |
| 47 | serialized_start=165, |
| 48 | serialized_end=203, |
| 49 | ) |
| 50 | _sym_db.RegisterEnumDescriptor(_PROJECTPERMISSION_ROLE) |
| 51 | |
| 52 | |
| 53 | _PROJECTPERMISSION = _descriptor.Descriptor( |
| 54 | name='ProjectPermission', |
| 55 | full_name='monorail.ProjectPermission', |
| 56 | filename=None, |
| 57 | file=DESCRIPTOR, |
| 58 | containing_type=None, |
| 59 | create_key=_descriptor._internal_create_key, |
| 60 | fields=[ |
| 61 | _descriptor.FieldDescriptor( |
| 62 | name='project', full_name='monorail.ProjectPermission.project', index=0, |
| 63 | number=1, type=9, cpp_type=9, label=1, |
| 64 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 65 | message_type=None, enum_type=None, containing_type=None, |
| 66 | is_extension=False, extension_scope=None, |
| 67 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 68 | _descriptor.FieldDescriptor( |
| 69 | name='role', full_name='monorail.ProjectPermission.role', index=1, |
| 70 | number=2, type=14, cpp_type=8, label=1, |
| 71 | has_default_value=True, default_value=2, |
| 72 | message_type=None, enum_type=None, containing_type=None, |
| 73 | is_extension=False, extension_scope=None, |
| 74 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 75 | _descriptor.FieldDescriptor( |
| 76 | name='extra_permissions', full_name='monorail.ProjectPermission.extra_permissions', index=2, |
| 77 | number=3, type=9, cpp_type=9, label=3, |
| 78 | has_default_value=False, default_value=[], |
| 79 | message_type=None, enum_type=None, containing_type=None, |
| 80 | is_extension=False, extension_scope=None, |
| 81 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 82 | ], |
| 83 | extensions=[ |
| 84 | ], |
| 85 | nested_types=[], |
| 86 | enum_types=[ |
| 87 | _PROJECTPERMISSION_ROLE, |
| 88 | ], |
| 89 | serialized_options=None, |
| 90 | is_extendable=False, |
| 91 | syntax='proto2', |
| 92 | extension_ranges=[], |
| 93 | oneofs=[ |
| 94 | ], |
| 95 | serialized_start=39, |
| 96 | serialized_end=203, |
| 97 | ) |
| 98 | |
| 99 | |
| 100 | _CLIENT = _descriptor.Descriptor( |
| 101 | name='Client', |
| 102 | full_name='monorail.Client', |
| 103 | filename=None, |
| 104 | file=DESCRIPTOR, |
| 105 | containing_type=None, |
| 106 | create_key=_descriptor._internal_create_key, |
| 107 | fields=[ |
| 108 | _descriptor.FieldDescriptor( |
| 109 | name='client_email', full_name='monorail.Client.client_email', index=0, |
| 110 | number=1, type=9, cpp_type=9, label=1, |
| 111 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 112 | message_type=None, enum_type=None, containing_type=None, |
| 113 | is_extension=False, extension_scope=None, |
| 114 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 115 | _descriptor.FieldDescriptor( |
| 116 | name='display_name', full_name='monorail.Client.display_name', index=1, |
| 117 | number=2, type=9, cpp_type=9, label=1, |
| 118 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 119 | message_type=None, enum_type=None, containing_type=None, |
| 120 | is_extension=False, extension_scope=None, |
| 121 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 122 | _descriptor.FieldDescriptor( |
| 123 | name='client_id', full_name='monorail.Client.client_id', index=2, |
| 124 | number=3, type=9, cpp_type=9, label=1, |
| 125 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 126 | message_type=None, enum_type=None, containing_type=None, |
| 127 | is_extension=False, extension_scope=None, |
| 128 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 129 | _descriptor.FieldDescriptor( |
| 130 | name='allowed_origins', full_name='monorail.Client.allowed_origins', index=3, |
| 131 | number=10, type=9, cpp_type=9, label=3, |
| 132 | has_default_value=False, default_value=[], |
| 133 | message_type=None, enum_type=None, containing_type=None, |
| 134 | is_extension=False, extension_scope=None, |
| 135 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 136 | _descriptor.FieldDescriptor( |
| 137 | name='description', full_name='monorail.Client.description', index=4, |
| 138 | number=4, type=9, cpp_type=9, label=1, |
| 139 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 140 | message_type=None, enum_type=None, containing_type=None, |
| 141 | is_extension=False, extension_scope=None, |
| 142 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 143 | _descriptor.FieldDescriptor( |
| 144 | name='project_permissions', full_name='monorail.Client.project_permissions', index=5, |
| 145 | number=5, type=11, cpp_type=10, label=3, |
| 146 | has_default_value=False, default_value=[], |
| 147 | message_type=None, enum_type=None, containing_type=None, |
| 148 | is_extension=False, extension_scope=None, |
| 149 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 150 | _descriptor.FieldDescriptor( |
| 151 | name='period_limit', full_name='monorail.Client.period_limit', index=6, |
| 152 | number=6, type=5, cpp_type=1, label=1, |
| 153 | has_default_value=True, default_value=100000, |
| 154 | message_type=None, enum_type=None, containing_type=None, |
| 155 | is_extension=False, extension_scope=None, |
| 156 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 157 | _descriptor.FieldDescriptor( |
| 158 | name='lifetime_limit', full_name='monorail.Client.lifetime_limit', index=7, |
| 159 | number=7, type=5, cpp_type=1, label=1, |
| 160 | has_default_value=True, default_value=1000000, |
| 161 | message_type=None, enum_type=None, containing_type=None, |
| 162 | is_extension=False, extension_scope=None, |
| 163 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 164 | _descriptor.FieldDescriptor( |
| 165 | name='contacts', full_name='monorail.Client.contacts', index=8, |
| 166 | number=8, type=9, cpp_type=9, label=3, |
| 167 | has_default_value=False, default_value=[], |
| 168 | message_type=None, enum_type=None, containing_type=None, |
| 169 | is_extension=False, extension_scope=None, |
| 170 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 171 | _descriptor.FieldDescriptor( |
| 172 | name='qpm_limit', full_name='monorail.Client.qpm_limit', index=9, |
| 173 | number=9, type=5, cpp_type=1, label=1, |
| 174 | has_default_value=True, default_value=100, |
| 175 | message_type=None, enum_type=None, containing_type=None, |
| 176 | is_extension=False, extension_scope=None, |
| 177 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 178 | ], |
| 179 | extensions=[ |
| 180 | ], |
| 181 | nested_types=[], |
| 182 | enum_types=[ |
| 183 | ], |
| 184 | serialized_options=None, |
| 185 | is_extendable=False, |
| 186 | syntax='proto2', |
| 187 | extension_ranges=[], |
| 188 | oneofs=[ |
| 189 | ], |
| 190 | serialized_start=206, |
| 191 | serialized_end=486, |
| 192 | ) |
| 193 | |
| 194 | |
| 195 | _CLIENTCFG = _descriptor.Descriptor( |
| 196 | name='ClientCfg', |
| 197 | full_name='monorail.ClientCfg', |
| 198 | filename=None, |
| 199 | file=DESCRIPTOR, |
| 200 | containing_type=None, |
| 201 | create_key=_descriptor._internal_create_key, |
| 202 | fields=[ |
| 203 | _descriptor.FieldDescriptor( |
| 204 | name='clients', full_name='monorail.ClientCfg.clients', index=0, |
| 205 | number=1, type=11, cpp_type=10, label=3, |
| 206 | has_default_value=False, default_value=[], |
| 207 | message_type=None, enum_type=None, containing_type=None, |
| 208 | is_extension=False, extension_scope=None, |
| 209 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 210 | ], |
| 211 | extensions=[ |
| 212 | ], |
| 213 | nested_types=[], |
| 214 | enum_types=[ |
| 215 | ], |
| 216 | serialized_options=None, |
| 217 | is_extendable=False, |
| 218 | syntax='proto2', |
| 219 | extension_ranges=[], |
| 220 | oneofs=[ |
| 221 | ], |
| 222 | serialized_start=488, |
| 223 | serialized_end=534, |
| 224 | ) |
| 225 | |
| 226 | _PROJECTPERMISSION.fields_by_name['role'].enum_type = _PROJECTPERMISSION_ROLE |
| 227 | _PROJECTPERMISSION_ROLE.containing_type = _PROJECTPERMISSION |
| 228 | _CLIENT.fields_by_name['project_permissions'].message_type = _PROJECTPERMISSION |
| 229 | _CLIENTCFG.fields_by_name['clients'].message_type = _CLIENT |
| 230 | DESCRIPTOR.message_types_by_name['ProjectPermission'] = _PROJECTPERMISSION |
| 231 | DESCRIPTOR.message_types_by_name['Client'] = _CLIENT |
| 232 | DESCRIPTOR.message_types_by_name['ClientCfg'] = _CLIENTCFG |
| 233 | _sym_db.RegisterFileDescriptor(DESCRIPTOR) |
| 234 | |
| 235 | ProjectPermission = _reflection.GeneratedProtocolMessageType('ProjectPermission', (_message.Message,), { |
| 236 | 'DESCRIPTOR' : _PROJECTPERMISSION, |
| 237 | '__module__' : 'api_clients_config_pb2' |
| 238 | # @@protoc_insertion_point(class_scope:monorail.ProjectPermission) |
| 239 | }) |
| 240 | _sym_db.RegisterMessage(ProjectPermission) |
| 241 | |
| 242 | Client = _reflection.GeneratedProtocolMessageType('Client', (_message.Message,), { |
| 243 | 'DESCRIPTOR' : _CLIENT, |
| 244 | '__module__' : 'api_clients_config_pb2' |
| 245 | # @@protoc_insertion_point(class_scope:monorail.Client) |
| 246 | }) |
| 247 | _sym_db.RegisterMessage(Client) |
| 248 | |
| 249 | ClientCfg = _reflection.GeneratedProtocolMessageType('ClientCfg', (_message.Message,), { |
| 250 | 'DESCRIPTOR' : _CLIENTCFG, |
| 251 | '__module__' : 'api_clients_config_pb2' |
| 252 | # @@protoc_insertion_point(class_scope:monorail.ClientCfg) |
| 253 | }) |
| 254 | _sym_db.RegisterMessage(ClientCfg) |
| 255 | |
| 256 | |
| 257 | # @@protoc_insertion_point(module_scope) |