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