artifact.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 = "ArtifactProto";
  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 artifact.
  30. message Artifact {
  31. option (google.api.resource) = {
  32. type: "aiplatform.googleapis.com/Artifact"
  33. pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}"
  34. };
  35. // Describes the state of the Artifact.
  36. enum State {
  37. // Unspecified state for the Artifact.
  38. STATE_UNSPECIFIED = 0;
  39. // A state used by systems like Vertex Pipelines to indicate that the
  40. // underlying data item represented by this Artifact is being created.
  41. PENDING = 1;
  42. // A state indicating that the Artifact should exist, unless something
  43. // external to the system deletes it.
  44. LIVE = 2;
  45. }
  46. // Output only. The resource name of the Artifact.
  47. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // User provided display name of the Artifact.
  49. // May be up to 128 Unicode characters.
  50. string display_name = 2;
  51. // The uniform resource identifier of the artifact file.
  52. // May be empty if there is no actual artifact file.
  53. string uri = 6;
  54. // An eTag used to perform consistent read-modify-write updates. If not set, a
  55. // blind "overwrite" update happens.
  56. string etag = 9;
  57. // The labels with user-defined metadata to organize your Artifacts.
  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 Artifact (System
  63. // labels are excluded).
  64. map<string, string> labels = 10;
  65. // Output only. Timestamp when this Artifact was created.
  66. google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  67. // Output only. Timestamp when this Artifact was last updated.
  68. google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  69. // The state of this Artifact. This is a property of the Artifact, and does
  70. // not imply or capture any ongoing process. This property is managed by
  71. // clients (such as Vertex Pipelines), and the system does not prescribe
  72. // or check the validity of state transitions.
  73. State state = 13;
  74. // The title of the schema describing the metadata.
  75. //
  76. // Schema title and version is expected to be registered in earlier Create
  77. // Schema calls. And both are used together as unique identifiers to identify
  78. // schemas within the local metadata store.
  79. string schema_title = 14;
  80. // The version of the schema in schema_name to use.
  81. //
  82. // Schema title and version is expected to be registered in earlier Create
  83. // Schema calls. And both are used together as unique identifiers to identify
  84. // schemas within the local metadata store.
  85. string schema_version = 15;
  86. // Properties of the Artifact.
  87. google.protobuf.Struct metadata = 16;
  88. // Description of the Artifact
  89. string description = 17;
  90. }