Debian Codegraph @

googleapis/apps/drive/labels/v2beta/user_capabilities.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/apps/drive/labels/v2beta/user_capabilities.proto
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 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // The capabilities of a user.
40 type UserCapabilities struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // Output only. Resource name for the user capabilities.
46 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
47 // Output only. Whether the user is allowed access to the label manager.
48 CanAccessLabelManager bool `protobuf:"varint,2,opt,name=can_access_label_manager,json=canAccessLabelManager,proto3" json:"can_access_label_manager,omitempty"`
49 // Output only. Whether the user is an administrator for the shared labels
50 // feature.
51 CanAdministrateLabels bool `protobuf:"varint,3,opt,name=can_administrate_labels,json=canAdministrateLabels,proto3" json:"can_administrate_labels,omitempty"`
52 // Output only. Whether the user is allowed to create new shared labels.
53 CanCreateSharedLabels bool `protobuf:"varint,4,opt,name=can_create_shared_labels,json=canCreateSharedLabels,proto3" json:"can_create_shared_labels,omitempty"`
54 // Output only. Whether the user is allowed to create new admin labels.
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_v2beta_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_v2beta_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 // Deprecated: Use UserCapabilities.ProtoReflect.Descriptor instead.
86 func (*UserCapabilities) Descriptor() ([]byte, []int) {
87 return file_google_apps_drive_labels_v2beta_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_v2beta_user_capabilities_proto protoreflect.FileDescriptor
126
127 var file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDesc = []byte{
128 0x0a, 0x37, 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, 0x62, 0x65, 0x74,
130 0x61, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
131 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
132 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x6c, 0x61, 0x62,
133 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
134 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
135 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f,
136 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
137 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x02, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x43,
138 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x6e,
139 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04,
140 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x18, 0x63, 0x61, 0x6e, 0x5f, 0x61, 0x63, 0x63, 0x65,
141 0x73, 0x73, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72,
142 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x15, 0x63, 0x61, 0x6e,
143 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x6e, 0x61, 0x67,
144 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x17, 0x63, 0x61, 0x6e, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x69,
145 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20,
146 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x15, 0x63, 0x61, 0x6e, 0x41, 0x64, 0x6d,
147 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12,
148 0x3c, 0x0a, 0x18, 0x63, 0x61, 0x6e, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x68,
149 0x61, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
150 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x15, 0x63, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74,
151 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3a, 0x0a,
152 0x17, 0x63, 0x61, 0x6e, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x6d, 0x69,
153 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03,
154 0xe0, 0x41, 0x03, 0x52, 0x14, 0x63, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64,
155 0x6d, 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x3a, 0x49, 0xea, 0x41, 0x46, 0x0a, 0x2b,
156 0x64, 0x72, 0x69, 0x76, 0x65, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
157 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x73, 0x65, 0x72, 0x43,
158 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x17, 0x75, 0x73, 0x65,
159 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69,
160 0x74, 0x69, 0x65, 0x73, 0x42, 0x8c, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
161 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x6c,
162 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, 0x15, 0x55, 0x73,
163 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x50, 0x72,
164 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
165 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
166 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x70,
167 0x73, 0x2f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2f, 0x76,
168 0x32, 0x62, 0x65, 0x74, 0x61, 0x3b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0xa2, 0x02, 0x04, 0x44,
169 0x4c, 0x42, 0x4c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
170 }
171
172 var (
173 file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDescOnce sync.Once
174 file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDescData = file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDesc
175 )
176
177 func file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDescGZIP() []byte {
178 file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDescOnce.Do(func() {
179 file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDescData)
180 })
181 return file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDescData
182 }
183
184 var file_google_apps_drive_labels_v2beta_user_capabilities_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
185 var file_google_apps_drive_labels_v2beta_user_capabilities_proto_goTypes = []interface{}{
186 (*UserCapabilities)(nil), // 0: google.apps.drive.labels.v2beta.UserCapabilities
187 }
188 var file_google_apps_drive_labels_v2beta_user_capabilities_proto_depIdxs = []int32{
189 0, // [0:0] is the sub-list for method output_type
190 0, // [0:0] is the sub-list for method input_type
191 0, // [0:0] is the sub-list for extension type_name
192 0, // [0:0] is the sub-list for extension extendee
193 0, // [0:0] is the sub-list for field type_name
194 }
195
196 func init() { file_google_apps_drive_labels_v2beta_user_capabilities_proto_init() }
197 func file_google_apps_drive_labels_v2beta_user_capabilities_proto_init() {
198 if File_google_apps_drive_labels_v2beta_user_capabilities_proto != nil {
199 return
200 }
201 if !protoimpl.UnsafeEnabled {
202 file_google_apps_drive_labels_v2beta_user_capabilities_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
203 switch v := v.(*UserCapabilities); i {
204 case 0:
205 return &v.state
206 case 1:
207 return &v.sizeCache
208 case 2:
209 return &v.unknownFields
210 default:
211 return nil
212 }
213 }
214 }
215 type x struct{}
216 out := protoimpl.TypeBuilder{
217 File: protoimpl.DescBuilder{
218 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
219 RawDescriptor: file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDesc,
220 NumEnums: 0,
221 NumMessages: 1,
222 NumExtensions: 0,
223 NumServices: 0,
224 },
225 GoTypes: file_google_apps_drive_labels_v2beta_user_capabilities_proto_goTypes,
226 DependencyIndexes: file_google_apps_drive_labels_v2beta_user_capabilities_proto_depIdxs,
227 MessageInfos: file_google_apps_drive_labels_v2beta_user_capabilities_proto_msgTypes,
228 }.Build()
229 File_google_apps_drive_labels_v2beta_user_capabilities_proto = out.File
230 file_google_apps_drive_labels_v2beta_user_capabilities_proto_rawDesc = nil
231 file_google_apps_drive_labels_v2beta_user_capabilities_proto_goTypes = nil
232 file_google_apps_drive_labels_v2beta_user_capabilities_proto_depIdxs = nil
233 }