metadata_schema.proto 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "MetadataSchemaProto";
  23. option java_package = "com.google.cloud.aiplatform.v1beta1";
  24. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  25. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  26. // Instance of a general MetadataSchema.
  27. message MetadataSchema {
  28. option (google.api.resource) = {
  29. type: "aiplatform.googleapis.com/MetadataSchema"
  30. pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}"
  31. };
  32. // Describes the type of the MetadataSchema.
  33. enum MetadataSchemaType {
  34. // Unspecified type for the MetadataSchema.
  35. METADATA_SCHEMA_TYPE_UNSPECIFIED = 0;
  36. // A type indicating that the MetadataSchema will be used by Artifacts.
  37. ARTIFACT_TYPE = 1;
  38. // A typee indicating that the MetadataSchema will be used by Executions.
  39. EXECUTION_TYPE = 2;
  40. // A state indicating that the MetadataSchema will be used by Contexts.
  41. CONTEXT_TYPE = 3;
  42. }
  43. // Output only. The resource name of the MetadataSchema.
  44. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  45. // The version of the MetadataSchema. The version's format must match
  46. // the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would
  47. // allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.
  48. string schema_version = 2;
  49. // Required. The raw YAML string representation of the MetadataSchema. The combination
  50. // of [MetadataSchema.version] and the schema name given by `title` in
  51. // [MetadataSchema.schema] must be unique within a MetadataStore.
  52. //
  53. // The schema is defined as an OpenAPI 3.0.2
  54. // [MetadataSchema
  55. // Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject)
  56. string schema = 3 [(google.api.field_behavior) = REQUIRED];
  57. // The type of the MetadataSchema. This is a property that identifies which
  58. // metadata types will use the MetadataSchema.
  59. MetadataSchemaType schema_type = 4;
  60. // Output only. Timestamp when this MetadataSchema was created.
  61. google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  62. // Description of the Metadata Schema
  63. string description = 6;
  64. }