annotation_spec.proto 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.v1;
  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.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 = "AnnotationSpecProto";
  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. // Identifies a concept with which DataItems may be annotated with.
  28. message AnnotationSpec {
  29. option (google.api.resource) = {
  30. type: "aiplatform.googleapis.com/AnnotationSpec"
  31. pattern: "projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}"
  32. };
  33. // Output only. Resource name of the AnnotationSpec.
  34. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  35. // Required. The user-defined name of the AnnotationSpec.
  36. // The name can be up to 128 characters long and can be consist of any UTF-8
  37. // characters.
  38. string display_name = 2 [(google.api.field_behavior) = REQUIRED];
  39. // Output only. Timestamp when this AnnotationSpec was created.
  40. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  41. // Output only. Timestamp when AnnotationSpec was last updated.
  42. google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  43. // Optional. Used to perform consistent read-modify-write updates. If not set, a blind
  44. // "overwrite" update happens.
  45. string etag = 5 [(google.api.field_behavior) = OPTIONAL];
  46. }