label.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (c) 2015, Google Inc.
  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.api;
  16. option java_multiple_files = true;
  17. option java_outer_classname = "LabelProto";
  18. option java_package = "com.google.api";
  19. // A description of a label.
  20. message LabelDescriptor {
  21. // Value types that can be used as label values.
  22. enum ValueType {
  23. // A variable-length string. This is the default.
  24. STRING = 0;
  25. // Boolean; true or false.
  26. BOOL = 1;
  27. // A 64-bit signed integer.
  28. INT64 = 2;
  29. }
  30. // The label key.
  31. string key = 1;
  32. // The type of data that can be assigned to the label.
  33. ValueType value_type = 2;
  34. // A human-readable description for the label.
  35. string description = 3;
  36. }