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/v3/api_proto/permission_objects.proto |
Adrià Vilanova MartÃnez | f5e1039 | 2021-12-07 22:55:40 +0100 | [diff] [blame] | 4 | """Generated protocol buffer code.""" |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 5 | from google.protobuf.internal import enum_type_wrapper |
| 6 | from google.protobuf import descriptor as _descriptor |
| 7 | from google.protobuf import message as _message |
| 8 | from google.protobuf import reflection as _reflection |
| 9 | from google.protobuf import symbol_database as _symbol_database |
| 10 | # @@protoc_insertion_point(imports) |
| 11 | |
| 12 | _sym_db = _symbol_database.Default() |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | DESCRIPTOR = _descriptor.FileDescriptor( |
| 18 | name='api/v3/api_proto/permission_objects.proto', |
| 19 | package='monorail.v3', |
| 20 | syntax='proto3', |
| 21 | serialized_options=b'Z\020api/v3/api_proto', |
| 22 | create_key=_descriptor._internal_create_key, |
| 23 | serialized_pb=b'\n)api/v3/api_proto/permission_objects.proto\x12\x0bmonorail.v3\"O\n\rPermissionSet\x12\x10\n\x08resource\x18\x01 \x01(\t\x12,\n\x0bpermissions\x18\x02 \x03(\x0e\x32\x17.monorail.v3.Permission*\x90\x01\n\nPermission\x12\x1a\n\x16PERMISSION_UNSPECIFIED\x10\x00\x12\x10\n\x0cHOTLIST_EDIT\x10\x01\x12\x16\n\x12HOTLIST_ADMINISTER\x10\x02\x12\x0e\n\nISSUE_EDIT\x10\x03\x12\x12\n\x0e\x46IELD_DEF_EDIT\x10\x04\x12\x18\n\x14\x46IELD_DEF_VALUE_EDIT\x10\x05\x42\x12Z\x10\x61pi/v3/api_protob\x06proto3' |
| 24 | ) |
| 25 | |
| 26 | _PERMISSION = _descriptor.EnumDescriptor( |
| 27 | name='Permission', |
| 28 | full_name='monorail.v3.Permission', |
| 29 | filename=None, |
| 30 | file=DESCRIPTOR, |
| 31 | create_key=_descriptor._internal_create_key, |
| 32 | values=[ |
| 33 | _descriptor.EnumValueDescriptor( |
| 34 | name='PERMISSION_UNSPECIFIED', index=0, number=0, |
| 35 | serialized_options=None, |
| 36 | type=None, |
| 37 | create_key=_descriptor._internal_create_key), |
| 38 | _descriptor.EnumValueDescriptor( |
| 39 | name='HOTLIST_EDIT', index=1, number=1, |
| 40 | serialized_options=None, |
| 41 | type=None, |
| 42 | create_key=_descriptor._internal_create_key), |
| 43 | _descriptor.EnumValueDescriptor( |
| 44 | name='HOTLIST_ADMINISTER', index=2, number=2, |
| 45 | serialized_options=None, |
| 46 | type=None, |
| 47 | create_key=_descriptor._internal_create_key), |
| 48 | _descriptor.EnumValueDescriptor( |
| 49 | name='ISSUE_EDIT', index=3, number=3, |
| 50 | serialized_options=None, |
| 51 | type=None, |
| 52 | create_key=_descriptor._internal_create_key), |
| 53 | _descriptor.EnumValueDescriptor( |
| 54 | name='FIELD_DEF_EDIT', index=4, number=4, |
| 55 | serialized_options=None, |
| 56 | type=None, |
| 57 | create_key=_descriptor._internal_create_key), |
| 58 | _descriptor.EnumValueDescriptor( |
| 59 | name='FIELD_DEF_VALUE_EDIT', index=5, number=5, |
| 60 | serialized_options=None, |
| 61 | type=None, |
| 62 | create_key=_descriptor._internal_create_key), |
| 63 | ], |
| 64 | containing_type=None, |
| 65 | serialized_options=None, |
| 66 | serialized_start=140, |
| 67 | serialized_end=284, |
| 68 | ) |
| 69 | _sym_db.RegisterEnumDescriptor(_PERMISSION) |
| 70 | |
| 71 | Permission = enum_type_wrapper.EnumTypeWrapper(_PERMISSION) |
| 72 | PERMISSION_UNSPECIFIED = 0 |
| 73 | HOTLIST_EDIT = 1 |
| 74 | HOTLIST_ADMINISTER = 2 |
| 75 | ISSUE_EDIT = 3 |
| 76 | FIELD_DEF_EDIT = 4 |
| 77 | FIELD_DEF_VALUE_EDIT = 5 |
| 78 | |
| 79 | |
| 80 | |
| 81 | _PERMISSIONSET = _descriptor.Descriptor( |
| 82 | name='PermissionSet', |
| 83 | full_name='monorail.v3.PermissionSet', |
| 84 | filename=None, |
| 85 | file=DESCRIPTOR, |
| 86 | containing_type=None, |
| 87 | create_key=_descriptor._internal_create_key, |
| 88 | fields=[ |
| 89 | _descriptor.FieldDescriptor( |
| 90 | name='resource', full_name='monorail.v3.PermissionSet.resource', index=0, |
| 91 | number=1, type=9, cpp_type=9, label=1, |
| 92 | has_default_value=False, default_value=b"".decode('utf-8'), |
| 93 | message_type=None, enum_type=None, containing_type=None, |
| 94 | is_extension=False, extension_scope=None, |
| 95 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 96 | _descriptor.FieldDescriptor( |
| 97 | name='permissions', full_name='monorail.v3.PermissionSet.permissions', index=1, |
| 98 | number=2, type=14, cpp_type=8, label=3, |
| 99 | has_default_value=False, default_value=[], |
| 100 | message_type=None, enum_type=None, containing_type=None, |
| 101 | is_extension=False, extension_scope=None, |
| 102 | serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 103 | ], |
| 104 | extensions=[ |
| 105 | ], |
| 106 | nested_types=[], |
| 107 | enum_types=[ |
| 108 | ], |
| 109 | serialized_options=None, |
| 110 | is_extendable=False, |
| 111 | syntax='proto3', |
| 112 | extension_ranges=[], |
| 113 | oneofs=[ |
| 114 | ], |
| 115 | serialized_start=58, |
| 116 | serialized_end=137, |
| 117 | ) |
| 118 | |
| 119 | _PERMISSIONSET.fields_by_name['permissions'].enum_type = _PERMISSION |
| 120 | DESCRIPTOR.message_types_by_name['PermissionSet'] = _PERMISSIONSET |
| 121 | DESCRIPTOR.enum_types_by_name['Permission'] = _PERMISSION |
| 122 | _sym_db.RegisterFileDescriptor(DESCRIPTOR) |
| 123 | |
| 124 | PermissionSet = _reflection.GeneratedProtocolMessageType('PermissionSet', (_message.Message,), { |
| 125 | 'DESCRIPTOR' : _PERMISSIONSET, |
| 126 | '__module__' : 'api.v3.api_proto.permission_objects_pb2' |
| 127 | # @@protoc_insertion_point(class_scope:monorail.v3.PermissionSet) |
| 128 | }) |
| 129 | _sym_db.RegisterMessage(PermissionSet) |
| 130 | |
| 131 | |
| 132 | DESCRIPTOR._options = None |
| 133 | # @@protoc_insertion_point(module_scope) |