execution.proto 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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.cloud.aiplatform.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/struct.proto";
  19. import "google/protobuf/timestamp.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 = "ExecutionProto";
  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. // Instance of a general execution.
  28. message Execution {
  29. option (google.api.resource) = {
  30. type: "aiplatform.googleapis.com/Execution"
  31. pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}"
  32. };
  33. // Describes the state of the Execution.
  34. enum State {
  35. // Unspecified Execution state
  36. STATE_UNSPECIFIED = 0;
  37. // The Execution is new
  38. NEW = 1;
  39. // The Execution is running
  40. RUNNING = 2;
  41. // The Execution has finished running
  42. COMPLETE = 3;
  43. // The Execution has failed
  44. FAILED = 4;
  45. // The Execution completed through Cache hit.
  46. CACHED = 5;
  47. // The Execution was cancelled.
  48. CANCELLED = 6;
  49. }
  50. // Output only. The resource name of the Execution.
  51. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  52. // User provided display name of the Execution.
  53. // May be up to 128 Unicode characters.
  54. string display_name = 2;
  55. // The state of this Execution. This is a property of the Execution, and does
  56. // not imply or capture any ongoing process. This property is managed by
  57. // clients (such as Vertex AI Pipelines) and the system does not prescribe
  58. // or check the validity of state transitions.
  59. State state = 6;
  60. // An eTag used to perform consistent read-modify-write updates. If not set, a
  61. // blind "overwrite" update happens.
  62. string etag = 9;
  63. // The labels with user-defined metadata to organize your Executions.
  64. //
  65. // Label keys and values can be no longer than 64 characters
  66. // (Unicode codepoints), can only contain lowercase letters, numeric
  67. // characters, underscores and dashes. International characters are allowed.
  68. // No more than 64 user labels can be associated with one Execution (System
  69. // labels are excluded).
  70. map<string, string> labels = 10;
  71. // Output only. Timestamp when this Execution was created.
  72. google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // Output only. Timestamp when this Execution was last updated.
  74. google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  75. // The title of the schema describing the metadata.
  76. //
  77. // Schema title and version is expected to be registered in earlier Create
  78. // Schema calls. And both are used together as unique identifiers to identify
  79. // schemas within the local metadata store.
  80. string schema_title = 13;
  81. // The version of the schema in `schema_title` to use.
  82. //
  83. // Schema title and version is expected to be registered in earlier Create
  84. // Schema calls. And both are used together as unique identifiers to identify
  85. // schemas within the local metadata store.
  86. string schema_version = 14;
  87. // Properties of the Execution.
  88. // Top level metadata keys' heading and trailing spaces will be trimmed.
  89. // The size of this field should not exceed 200KB.
  90. google.protobuf.Struct metadata = 15;
  91. // Description of the Execution
  92. string description = 16;
  93. }