event.proto 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // Copyright 2021 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.cloud.aiplatform.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. import "google/api/annotations.proto";
  20. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "EventProto";
  24. option java_package = "com.google.cloud.aiplatform.v1beta1";
  25. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  26. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  27. // An edge describing the relationship between an Artifact and an Execution in
  28. // a lineage graph.
  29. message Event {
  30. // Describes whether an Event's Artifact is the Execution's input or output.
  31. enum Type {
  32. // Unspecified whether input or output of the Execution.
  33. TYPE_UNSPECIFIED = 0;
  34. // An input of the Execution.
  35. INPUT = 1;
  36. // An output of the Execution.
  37. OUTPUT = 2;
  38. }
  39. // Required. The relative resource name of the Artifact in the Event.
  40. string artifact = 1 [
  41. (google.api.field_behavior) = REQUIRED,
  42. (google.api.resource_reference) = {
  43. type: "aiplatform.googleapis.com/Artifact"
  44. }
  45. ];
  46. // Output only. The relative resource name of the Execution in the Event.
  47. string execution = 2 [
  48. (google.api.field_behavior) = OUTPUT_ONLY,
  49. (google.api.resource_reference) = {
  50. type: "aiplatform.googleapis.com/Execution"
  51. }
  52. ];
  53. // Output only. Time the Event occurred.
  54. google.protobuf.Timestamp event_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. // Required. The type of the Event.
  56. Type type = 4 [(google.api.field_behavior) = REQUIRED];
  57. // The labels with user-defined metadata to annotate Events.
  58. //
  59. // Label keys and values can be no longer than 64 characters
  60. // (Unicode codepoints), can only contain lowercase letters, numeric
  61. // characters, underscores and dashes. International characters are allowed.
  62. // No more than 64 user labels can be associated with one Event (System
  63. // labels are excluded).
  64. //
  65. // See https://goo.gl/xmQnxf for more information and examples of labels.
  66. // System reserved label keys are prefixed with "aiplatform.googleapis.com/"
  67. // and are immutable.
  68. map<string, string> labels = 5;
  69. }