label_permission.proto 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.apps.drive.labels.v2;
  16. import "google/api/resource.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/apps/drive/labels/v2;labels";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "LabelPermissionProto";
  20. option java_package = "com.google.apps.drive.labels.v2";
  21. option objc_class_prefix = "DLBL";
  22. option (google.api.resource_definition) = {
  23. type: "groups.googleapis.com/Group"
  24. pattern: "groups/{group}"
  25. };
  26. // The permission that applies to a principal (user, group, audience) on a
  27. // label.
  28. message LabelPermission {
  29. // Roles are concentric with subsequent role.
  30. enum LabelRole {
  31. // Unknown role.
  32. LABEL_ROLE_UNSPECIFIED = 0;
  33. // A reader can read the label and associated metadata applied to Drive
  34. // items.
  35. READER = 1;
  36. // An applier can write associated metadata on Drive items in which they
  37. // also have write access to. Implies `READER`.
  38. APPLIER = 2;
  39. // An organizer can pin this label in shared drives they manage
  40. // and add new appliers to the label.
  41. ORGANIZER = 3;
  42. // Editors can make any update including deleting the label which
  43. // also deletes the associated Drive item metadata. Implies `APPLIER`.
  44. EDITOR = 4;
  45. }
  46. }