execution.proto 4.1 KB

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