metadata_schema.proto 3.2 KB

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