1// Copyright 2023 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 15syntax = "proto3"; 16 17package google.apps.drive.labels.v2beta; 18 19import "google/api/field_behavior.proto"; 20import "google/api/resource.proto"; 21 22option go_package = "google.golang.org/genproto/googleapis/apps/drive/labels/v2beta;labels"; 23option java_multiple_files = true; 24option java_outer_classname = "UserCapabilitiesProto"; 25option java_package = "com.google.apps.drive.labels.v2beta"; 26option objc_class_prefix = "DLBL"; 27 28// The capabilities of a user. 29message UserCapabilities { 30 option (google.api.resource) = { 31 type: "drivelabels.googleapis.com/UserCapabilities" 32 pattern: "users/{id}/capabilities" 33 }; 34 35 // Output only. Resource name for the user capabilities. 36 string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; 37 38 // Output only. Whether the user is allowed access to the label manager. 39 bool can_access_label_manager = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; 40 41 // Output only. Whether the user is an administrator for the shared labels 42 // feature. 43 bool can_administrate_labels = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; 44 45 // Output only. Whether the user is allowed to create new shared labels. 46 bool can_create_shared_labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; 47 48 // Output only. Whether the user is allowed to create new admin labels. 49 bool can_create_admin_labels = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; 50} 51