log.proto 2.0 KB

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