artifact.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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.v1;
  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.V1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "ArtifactProto";
  24. option java_package = "com.google.cloud.aiplatform.v1";
  25. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  26. option ruby_package = "Google::Cloud::AIPlatform::V1";
  27. // Instance of a general artifact.
  28. message Artifact {
  29. option (google.api.resource) = {
  30. type: "aiplatform.googleapis.com/Artifact"
  31. pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}"
  32. };
  33. // Describes the state of the Artifact.
  34. enum State {
  35. // Unspecified state for the Artifact.
  36. STATE_UNSPECIFIED = 0;
  37. // A state used by systems like Vertex AI Pipelines to indicate that the
  38. // underlying data item represented by this Artifact is being created.
  39. PENDING = 1;
  40. // A state indicating that the Artifact should exist, unless something
  41. // external to the system deletes it.
  42. LIVE = 2;
  43. }
  44. // Output only. The resource name of the Artifact.
  45. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  46. // User provided display name of the Artifact.
  47. // May be up to 128 Unicode characters.
  48. string display_name = 2;
  49. // The uniform resource identifier of the artifact file.
  50. // May be empty if there is no actual artifact file.
  51. string uri = 6;
  52. // An eTag used to perform consistent read-modify-write updates. If not set, a
  53. // blind "overwrite" update happens.
  54. string etag = 9;
  55. // The labels with user-defined metadata to organize your Artifacts.
  56. //
  57. // Label keys and values can be no longer than 64 characters
  58. // (Unicode codepoints), can only contain lowercase letters, numeric
  59. // characters, underscores and dashes. International characters are allowed.
  60. // No more than 64 user labels can be associated with one Artifact (System
  61. // labels are excluded).
  62. map<string, string> labels = 10;
  63. // Output only. Timestamp when this Artifact was created.
  64. google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  65. // Output only. Timestamp when this Artifact was last updated.
  66. google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  67. // The state of this Artifact. This is a property of the Artifact, and does
  68. // not imply or capture any ongoing process. This property is managed by
  69. // clients (such as Vertex AI Pipelines), and the system does not prescribe
  70. // or check the validity of state transitions.
  71. State state = 13;
  72. // The title of the schema describing the metadata.
  73. //
  74. // Schema title and version is expected to be registered in earlier Create
  75. // Schema calls. And both are used together as unique identifiers to identify
  76. // schemas within the local metadata store.
  77. string schema_title = 14;
  78. // The version of the schema in schema_name to use.
  79. //
  80. // Schema title and version is expected to be registered in earlier Create
  81. // Schema calls. And both are used together as unique identifiers to identify
  82. // schemas within the local metadata store.
  83. string schema_version = 15;
  84. // Properties of the Artifact.
  85. // Top level metadata keys' heading and trailing spaces will be trimmed.
  86. // The size of this field should not exceed 200KB.
  87. google.protobuf.Struct metadata = 16;
  88. // Description of the Artifact
  89. string description = 17;
  90. }