1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package labels
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type UserCapabilities struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45
46 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
47
48 CanAccessLabelManager bool `protobuf:"varint,2,opt,name=can_access_label_manager,json=canAccessLabelManager,proto3" json:"can_access_label_manager,omitempty"`
49
50
51 CanAdministrateLabels bool `protobuf:"varint,3,opt,name=can_administrate_labels,json=canAdministrateLabels,proto3" json:"can_administrate_labels,omitempty"`
52
53 CanCreateSharedLabels bool `protobuf:"varint,4,opt,name=can_create_shared_labels,json=canCreateSharedLabels,proto3" json:"can_create_shared_labels,omitempty"`
54
55 CanCreateAdminLabels bool `protobuf:"varint,5,opt,name=can_create_admin_labels,json=canCreateAdminLabels,proto3" json:"can_create_admin_labels,omitempty"`
56 }
57
58 func (x *UserCapabilities) Reset() {
59 *x = UserCapabilities{}
60 if protoimpl.UnsafeEnabled {
61 mi := &file_google_apps_drive_labels_v2_user_capabilities_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65 }
66
67 func (x *UserCapabilities) String() string {
68 return protoimpl.X.MessageStringOf(x)
69 }
70
71 func (*UserCapabilities) ProtoMessage() {}
72
73 func (x *UserCapabilities) ProtoReflect() protoreflect.Message {
74 mi := &file_google_apps_drive_labels_v2_user_capabilities_proto_msgTypes[0]
75 if protoimpl.UnsafeEnabled && x != nil {
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 if ms.LoadMessageInfo() == nil {
78 ms.StoreMessageInfo(mi)
79 }
80 return ms
81 }
82 return mi.MessageOf(x)
83 }
84
85
86 func (*UserCapabilities) Descriptor() ([]byte, []int) {
87 return file_google_apps_drive_labels_v2_user_capabilities_proto_rawDescGZIP(), []int{0}
88 }
89
90 func (x *UserCapabilities) GetName() string {
91 if x != nil {
92 return x.Name
93 }
94 return ""
95 }
96
97 func (x *UserCapabilities) GetCanAccessLabelManager() bool {
98 if x != nil {
99 return x.CanAccessLabelManager
100 }
101 return false
102 }
103
104 func (x *UserCapabilities) GetCanAdministrateLabels() bool {
105 if x != nil {
106 return x.CanAdministrateLabels
107 }
108 return false
109 }
110
111 func (x *UserCapabilities) GetCanCreateSharedLabels() bool {
112 if x != nil {
113 return x.CanCreateSharedLabels
114 }
115 return false
116 }
117
118 func (x *UserCapabilities) GetCanCreateAdminLabels() bool {
119 if x != nil {
120 return x.CanCreateAdminLabels
121 }
122 return false
123 }
124
125 var File_google_apps_drive_labels_v2_user_capabilities_proto protoreflect.FileDescriptor
126
127 var file_google_apps_drive_labels_v2_user_capabilities_proto_rawDesc = []byte{
128 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x72,
129 0x69, 0x76, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73,
130 0x65, 0x72, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e,
131 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
132 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e,
133 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66,
134 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72,
135 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
136 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb,
137 0x02, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
138 0x69, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
139 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x18,
140 0x63, 0x61, 0x6e, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c,
141 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03,
142 0xe0, 0x41, 0x03, 0x52, 0x15, 0x63, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x61,
143 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x17, 0x63, 0x61,
144 0x6e, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c,
145 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03,
146 0x52, 0x15, 0x63, 0x61, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74,
147 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3c, 0x0a, 0x18, 0x63, 0x61, 0x6e, 0x5f, 0x63,
148 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x62,
149 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x15,
150 0x63, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x4c,
151 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3a, 0x0a, 0x17, 0x63, 0x61, 0x6e, 0x5f, 0x63, 0x72, 0x65,
152 0x61, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73,
153 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x14, 0x63, 0x61, 0x6e,
154 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c,
155 0x73, 0x3a, 0x49, 0xea, 0x41, 0x46, 0x0a, 0x2b, 0x64, 0x72, 0x69, 0x76, 0x65, 0x6c, 0x61, 0x62,
156 0x65, 0x6c, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
157 0x6f, 0x6d, 0x2f, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
158 0x69, 0x65, 0x73, 0x12, 0x17, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f,
159 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x42, 0x84, 0x01, 0x0a,
160 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73,
161 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x32,
162 0x42, 0x15, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69,
163 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
164 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
165 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
166 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65,
167 0x6c, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0xa2, 0x02, 0x04, 0x44,
168 0x4c, 0x42, 0x4c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
169 }
170
171 var (
172 file_google_apps_drive_labels_v2_user_capabilities_proto_rawDescOnce sync.Once
173 file_google_apps_drive_labels_v2_user_capabilities_proto_rawDescData = file_google_apps_drive_labels_v2_user_capabilities_proto_rawDesc
174 )
175
176 func file_google_apps_drive_labels_v2_user_capabilities_proto_rawDescGZIP() []byte {
177 file_google_apps_drive_labels_v2_user_capabilities_proto_rawDescOnce.Do(func() {
178 file_google_apps_drive_labels_v2_user_capabilities_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_apps_drive_labels_v2_user_capabilities_proto_rawDescData)
179 })
180 return file_google_apps_drive_labels_v2_user_capabilities_proto_rawDescData
181 }
182
183 var file_google_apps_drive_labels_v2_user_capabilities_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
184 var file_google_apps_drive_labels_v2_user_capabilities_proto_goTypes = []interface{}{
185 (*UserCapabilities)(nil),
186 }
187 var file_google_apps_drive_labels_v2_user_capabilities_proto_depIdxs = []int32{
188 0,
189 0,
190 0,
191 0,
192 0,
193 }
194
195 func init() { file_google_apps_drive_labels_v2_user_capabilities_proto_init() }
196 func file_google_apps_drive_labels_v2_user_capabilities_proto_init() {
197 if File_google_apps_drive_labels_v2_user_capabilities_proto != nil {
198 return
199 }
200 if !protoimpl.UnsafeEnabled {
201 file_google_apps_drive_labels_v2_user_capabilities_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
202 switch v := v.(*UserCapabilities); i {
203 case 0:
204 return &v.state
205 case 1:
206 return &v.sizeCache
207 case 2:
208 return &v.unknownFields
209 default:
210 return nil
211 }
212 }
213 }
214 type x struct{}
215 out := protoimpl.TypeBuilder{
216 File: protoimpl.DescBuilder{
217 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
218 RawDescriptor: file_google_apps_drive_labels_v2_user_capabilities_proto_rawDesc,
219 NumEnums: 0,
220 NumMessages: 1,
221 NumExtensions: 0,
222 NumServices: 0,
223 },
224 GoTypes: file_google_apps_drive_labels_v2_user_capabilities_proto_goTypes,
225 DependencyIndexes: file_google_apps_drive_labels_v2_user_capabilities_proto_depIdxs,
226 MessageInfos: file_google_apps_drive_labels_v2_user_capabilities_proto_msgTypes,
227 }.Build()
228 File_google_apps_drive_labels_v2_user_capabilities_proto = out.File
229 file_google_apps_drive_labels_v2_user_capabilities_proto_rawDesc = nil
230 file_google_apps_drive_labels_v2_user_capabilities_proto_goTypes = nil
231 file_google_apps_drive_labels_v2_user_capabilities_proto_depIdxs = nil
232 }
233
View as plain text