log.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright 2016 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. import "google/api/label.proto";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "LogProto";
  19. option java_package = "com.google.api";
  20. option objc_class_prefix = "GAPI";
  21. // A description of a log type. Example in YAML format:
  22. //
  23. // - name: library.googleapis.com/activity_history
  24. // description: The history of borrowing and returning library items.
  25. // display_name: Activity
  26. // labels:
  27. // - key: /customer_id
  28. // description: Identifier of a library customer
  29. message LogDescriptor {
  30. // The name of the log. It must be less than 512 characters long and can
  31. // include the following characters: upper- and lower-case alphanumeric
  32. // characters [A-Za-z0-9], and punctuation characters including
  33. // slash, underscore, hyphen, period [/_-.].
  34. string name = 1;
  35. // The set of labels that are available to describe a specific log entry.
  36. // Runtime requests that contain labels not specified here are
  37. // considered invalid.
  38. repeated LabelDescriptor labels = 2;
  39. // A human-readable description of this log. This information appears in
  40. // the documentation and can contain details.
  41. string description = 3;
  42. // The human-readable name for this log. This information appears on
  43. // the user interface and should be concise.
  44. string display_name = 4;
  45. }