blob: 25af879fc2254f75797375ec4c4566481593eb52 [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/permission_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.internal import enum_type_wrapper
6from google.protobuf import descriptor as _descriptor
7from google.protobuf import message as _message
8from google.protobuf import reflection as _reflection
9from google.protobuf import symbol_database as _symbol_database
10# @@protoc_insertion_point(imports)
11
12_sym_db = _symbol_database.Default()
13
14
15
16
17DESCRIPTOR = _descriptor.FileDescriptor(
18 name='api/v3/api_proto/permission_objects.proto',
19 package='monorail.v3',
20 syntax='proto3',
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +020021 serialized_options=b'Z!infra/monorailv2/api/v3/api_proto',
Copybara854996b2021-09-07 19:36:02 +000022 create_key=_descriptor._internal_create_key,
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +020023 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#Z!infra/monorailv2/api/v3/api_protob\x06proto3'
Copybara854996b2021-09-07 19:36:02 +000024)
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
71Permission = enum_type_wrapper.EnumTypeWrapper(_PERMISSION)
72PERMISSION_UNSPECIFIED = 0
73HOTLIST_EDIT = 1
74HOTLIST_ADMINISTER = 2
75ISSUE_EDIT = 3
76FIELD_DEF_EDIT = 4
77FIELD_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
120DESCRIPTOR.message_types_by_name['PermissionSet'] = _PERMISSIONSET
121DESCRIPTOR.enum_types_by_name['Permission'] = _PERMISSION
122_sym_db.RegisterFileDescriptor(DESCRIPTOR)
123
124PermissionSet = _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
132DESCRIPTOR._options = None
133# @@protoc_insertion_point(module_scope)